/* ============================================================
   Soliguy — Steward's Log  |  stewards-log.css
   ============================================================ */

:root {
  --sl-green-dark:  #3d4a2a;
  --sl-green-mid:   #4c5e35;
  --sl-cream:       #f5f0e8;
  --sl-cream-alt:   #f0ebe0;
  --sl-white:       #ffffff;
  --sl-text:        #1a1a1a;
  --sl-text-muted:  #6b7280;
  --sl-border:      #e4e0d8;

  --sl-pill-green-bg:      #e6f4e0;
  --sl-pill-green-text:    #2a5417;
  --sl-pill-amber-bg:      #fef9e7;
  --sl-pill-amber-text:    #856404;
  --sl-pill-caution-bg:    #fef3e2;
  --sl-pill-caution-text:  #8b4513;

  --sl-font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --sl-font-body:    'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Theme container resets (scoped to our body class) ── */
body.ssl-stewards-log-page .page_content_wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.ssl-stewards-log-page .content_wrap,
body.ssl-stewards-log-page .content_wrap_fullscreen {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}
body.ssl-stewards-log-page .content {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Hide theme's own sidebar (Agrarian uses div.sidebar.widget_area) */
body.ssl-stewards-log-page div.sidebar.widget_area,
body.ssl-stewards-log-page .sidebar_outer,
body.ssl-stewards-log-page #sidebar {
  display: none !important;
}

/* ── Page wrapper ── */
.sl-page-wrapper {
  font-family: var(--sl-font-body);
  color: var(--sl-text);
  background: var(--sl-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.sl-page-wrapper *,
.sl-page-wrapper *::before,
.sl-page-wrapper *::after {
  box-sizing: border-box;
}

/* ============================================================
   HERO
   ============================================================ */
.log-hero {
  background: var(--sl-green-dark);
  color: #fff;
  padding: 72px 0 56px;
}
.log-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
}
.log-hero-left {
  flex: 1;
  min-width: 0;
}
.log-hero-kicker {
  font-family: var(--sl-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}
.log-hero-title {
  font-family: var(--sl-font-heading);
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  max-width: 560px;
  margin: 0 0 22px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.log-hero-desc {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
  margin: 0;
}
.log-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 28px 32px;
  min-width: 200px;
  flex-shrink: 0;
  align-self: stretch;
  justify-content: center;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.hero-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .log-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .log-hero-meta {
    width: 100%;
    min-width: unset;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-self: auto;
    justify-content: flex-start;
  }
}

/* ============================================================
   FEATURED STRIP
   ============================================================ */
.featured-strip {
  background: var(--sl-cream);
  border-bottom: 1px solid var(--sl-border);
}
.featured-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}
.featured-entry {
  display: block;
  text-decoration: none;
  color: var(--sl-text);
  padding: 40px 44px 40px 0;
  border-right: 1px solid var(--sl-border);
  transition: background 0.18s ease;
}
.featured-entry:last-child {
  border-right: none;
  padding: 40px 0 40px 44px;
}
.featured-entry:hover {
  background: rgba(0, 0, 0, 0.025);
  text-decoration: none;
}
.featured-tag {
  display: inline-block;
  font-family: var(--sl-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.featured-tag.latest {
  background: var(--sl-green-dark);
  color: #fff;
}
.featured-tag.prev {
  background: transparent;
  color: var(--sl-text-muted);
  border: 1px solid var(--sl-border);
}
.featured-title {
  font-family: var(--sl-font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sl-text);
  margin-bottom: 10px;
  transition: color 0.18s;
  overflow-wrap: break-word;
  word-break: break-word;
}
.featured-entry:hover .featured-title {
  color: var(--theme-color-link, var(--sl-green-dark));
  text-decoration: none;
}
.featured-excerpt {
  font-size: 14px;
  line-height: 1.68;
  color: var(--sl-text-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-date {
  font-size: 12px;
  color: var(--sl-text-muted);
  font-weight: 500;
}

/* ============================================================
   MAIN CONTENT WRAPPER
   ============================================================ */
.sl-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 32px 96px;
  box-sizing: border-box;
  width: 100%;
}
.sl-page-wrapper .content-area {
  display: grid !important;
  grid-template-columns: 1fr 308px;
  gap: 52px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* ============================================================
   ENTRIES LIST
   ============================================================ */
.entries-main {
  min-width: 0;
}
.entries-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--sl-border);
}
.entries-heading {
  font-family: var(--sl-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sl-text-muted);
}
.entries-count {
  font-size: 12px;
  color: var(--sl-text-muted);
}
.entries-list {
  display: flex;
  flex-direction: column;
}

/* Entry card */
.entry-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  text-decoration: none;
  color: var(--sl-text);
  padding: 26px 0;
  border-bottom: 1px solid var(--sl-border);
}
.entry-card:hover {
  text-decoration: none;
}
.entry-card:hover .entry-card-title {
  color: var(--theme-color-link, var(--sl-green-dark));
  text-decoration: none;
}
.entry-card-body {
  flex: 1;
  min-width: 0;
}
.entry-card-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
}
.entry-card-week {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sl-green-dark);
  background: rgba(61, 74, 42, 0.09);
  padding: 2px 8px;
  border-radius: 3px;
}
.entry-card-sep {
  width: 1px;
  height: 12px;
  background: var(--sl-border);
  flex-shrink: 0;
}
.entry-card-date {
  font-size: 12px;
  color: var(--sl-text-muted);
}
.entry-card-title {
  font-family: var(--sl-font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  transition: color 0.15s ease;
  overflow-wrap: break-word;
  word-break: break-word;
}
.entry-card-excerpt {
  font-size: 13px;
  line-height: 1.68;
  color: var(--sl-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Signal pills column */
.entry-card-signals {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
    width: 155px;
    padding-top: 4px;
}

.signal-pill {
    font-family: var(--sl-font-body);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 100%;
}

.signal-pill.green {
  background: var(--sl-pill-green-bg);
  color: var(--sl-pill-green-text);
}
.signal-pill.amber {
  background: var(--sl-pill-amber-bg);
  color: var(--sl-pill-amber-text);
}
.signal-pill.caution {
  background: var(--sl-pill-caution-bg);
  color: var(--sl-pill-caution-text);
}

/* Load more */
.load-more-wrap {
  text-align: center;
  padding: 44px 0 0;
}
.load-more-btn {
  font-family: var(--sl-font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--sl-text);
  background: transparent;
  border: 1px solid var(--sl-border);
  padding: 11px 30px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.load-more-btn:hover {
  border-color: var(--sl-green-dark);
  background: rgba(61, 74, 42, 0.04);
}
.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sl-page-wrapper .sidebar {
  display: flex !important;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* About / Journal card */
.about-card {
  background: var(--sl-green-dark);
  color: #fff;
  padding: 26px 24px;
  border-radius: 6px;
}
.about-title {
  font-family: var(--sl-font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 12px;
}
.about-body {
  font-size: 13px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 20px;
}
.about-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.18s;
}
.about-cta:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Newsletter card */
.newsletter-card {
  background: var(--sl-white);
  border: 1px solid var(--sl-border);
  padding: 22px 20px;
  border-radius: 6px;
}
.newsletter-title {
  font-family: var(--sl-font-heading);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.newsletter-sub {
  font-size: 13px;
  color: var(--sl-text-muted);
  line-height: 1.55;
  margin: 0 0 14px;
}
.newsletter-input {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  font-family: var(--sl-font-body);
  border: 1px solid var(--sl-border);
  border-radius: 4px;
  margin-bottom: 10px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-input:focus {
  border-color: var(--sl-green-dark);
}
.newsletter-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--sl-green-dark);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sl-font-body);
  cursor: pointer;
  transition: background 0.18s;
}
.newsletter-btn:hover {
  background: var(--sl-green-mid);
}

/* Song card */
.song-card {
  background: var(--sl-green-dark);
  color: #fff;
  padding: 22px 20px;
  border-radius: 6px;
}
.song-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.song-icon {
  font-size: 16px;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}
.song-card-title {
  font-size: 13px;
  font-weight: 600;
}
.song-card-genre {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.58);
  margin-top: 3px;
}
.song-card-note {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}
.song-link a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.song-link a:hover {
  color: #fff;
}

/* Archive card */
.sidebar-card {
  background: var(--sl-white);
  border: 1px solid var(--sl-border);
  padding: 22px 20px;
  border-radius: 6px;
}
.sidebar-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sl-text-muted);
  margin-bottom: 14px;
}
.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.archive-item {
  border-bottom: 1px solid var(--sl-border);
}
.archive-item:last-child {
  border-bottom: none;
}
.archive-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  text-decoration: none;
  font-size: 13px;
  color: var(--sl-text);
  transition: color 0.15s;
}
.archive-link:hover {
  color: var(--sl-green-dark);
}
.archive-count {
  font-size: 11px;
  color: var(--sl-text-muted);
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.archive-empty {
  font-size: 13px;
  color: var(--sl-text-muted);
  margin: 0;
}
.archive-item--active .archive-link {
  color: var(--sl-green-dark);
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .sl-page-wrapper .content-area {
    grid-template-columns: 1fr !important;
  }
  .sl-page-wrapper .sidebar {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .about-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .featured-strip-inner {
    grid-template-columns: 1fr;
  }
  .featured-entry {
    border-right: none !important;
    border-bottom: 1px solid var(--sl-border);
    padding: 28px 0 !important;
  }
  .featured-entry:last-child {
    border-bottom: none;
  }
  .entry-card {
    flex-direction: column;
    gap: 14px;
  }
  .entry-card-signals {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: 0;
  }
  .sl-page-wrapper .sidebar {
    grid-template-columns: 1fr !important;
  }
  .log-hero {
    padding: 48px 0 40px;
  }
  .log-hero-inner,
  .featured-strip-inner,
  .sl-page-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
}
