/* ═══════════════════════════════════════════════════════════════════
   SSG Style v4 — Pixel-perfect match to React SPA screenshots
   Full-width hero carousel, horizontal featured card, vertical 2-col grid,
   article page with breadcrumbs + editorial verification banner
   ═══════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  --forest: oklch(0.35 0.08 145);
  --forest-dark: oklch(0.28 0.07 145);
  --forest-light: oklch(0.42 0.09 145);
  --gold: oklch(0.62 0.12 70);
  --gold-light: oklch(0.72 0.10 70);
  --gold-pale: oklch(0.90 0.04 70);
  --ivory: oklch(0.97 0.005 90);
  --ivory-warm: oklch(0.95 0.01 80);
  --text-primary: oklch(0.25 0.04 145);
  --text-secondary: oklch(0.50 0.03 145);
  --text-muted: oklch(0.65 0.02 145);
  --border: oklch(0.90 0.01 70);
  --border-light: oklch(0.94 0.005 70);
  --card-bg: #ffffff;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 8px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.05);
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-xs: 0.375rem;
  --radius-md: 0.625rem;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.2s ease;
  --terracotta: oklch(0.55 0.12 50);
}

/* ── Dark mode — comprehensive overrides matching SPA ─────── */
html.dark {
  --ivory: oklch(0.16 0.008 70);
  --ivory-warm: oklch(0.18 0.008 70);
  --text-primary: oklch(0.95 0.005 80);
  --text-secondary: oklch(0.82 0.006 70);
  --text-muted: oklch(0.60 0.006 70);
  --forest: oklch(0.50 0.10 160);
  --forest-dark: oklch(0.42 0.08 160);
  --forest-light: oklch(0.58 0.10 160);
  --gold: oklch(0.72 0.09 70);
  --gold-light: oklch(0.82 0.08 70);
  --gold-pale: oklch(0.30 0.02 70);
  --border: oklch(0.36 0.008 70);
  --border-light: oklch(0.28 0.008 70);
  --card-bg: oklch(0.21 0.008 70);
  --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
  --card-shadow-hover: 0 8px 25px rgba(0,0,0,0.4);
  --terracotta: oklch(0.65 0.10 50);
  color-scheme: dark;
}

/* ── Dark mode: smooth transition ── */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, fill 150ms ease, stroke 150ms ease, box-shadow 150ms ease !important;
  transition-delay: 0s !important;
}

/* ── Dark mode: header ── */
html.dark .site-header {
  background: oklch(0.18 0.008 70 / 0.95);
  border-bottom-color: oklch(0.36 0.008 70);
}

html.dark .site-logo { color: oklch(0.58 0.10 160); }
html.dark .site-nav a { color: oklch(0.82 0.006 70); }
html.dark .site-nav a:hover { color: oklch(0.58 0.10 160); }
html.dark .header-icon-btn { color: oklch(0.82 0.006 70); }
html.dark .header-icon-btn:hover { background: oklch(0.28 0.008 70); color: oklch(0.58 0.10 160); }
html.dark .subscribe-btn { background: oklch(0.50 0.10 160); }
html.dark .subscribe-btn:hover { background: oklch(0.58 0.10 160); }

/* ── Dark mode: toggle icon swap ── */
html.dark .theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

/* ── Dark mode: article cards ── */
html.dark .article-card {
  background: oklch(0.21 0.008 70);
  border-color: oklch(0.36 0.008 70);
}
html.dark .article-card:hover {
  border-color: oklch(0.72 0.09 70);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
html.dark .card-title a:hover { color: oklch(0.58 0.10 160); }
html.dark .card-bookmark { color: oklch(0.60 0.006 70); }
html.dark .card-bookmark:hover { color: oklch(0.72 0.09 70); }

/* ── Dark mode: featured card ── */
html.dark .article-card-featured {
  background: oklch(0.21 0.008 70);
  border-color: oklch(0.36 0.008 70);
}

/* ── Dark mode: sidebar ── */
html.dark .sidebar-section {
  background: oklch(0.21 0.008 70);
  border-color: oklch(0.28 0.008 70);
}
html.dark .sidebar-logo strong { color: oklch(0.58 0.10 160); }
html.dark .sidebar-stat-num { color: oklch(0.72 0.09 70); }

/* ── Dark mode: sidebar TOC ── */
html.dark .sidebar-toc {
  background: oklch(0.21 0.008 70);
  border-color: oklch(0.28 0.008 70);
}
html.dark .sidebar-toc-item { border-left-color: oklch(0.28 0.008 70); }
html.dark .sidebar-toc-item.active { border-left-color: oklch(0.50 0.10 160); background: oklch(0.24 0.008 70); }
html.dark .sidebar-toc-item.completed { border-left-color: oklch(0.72 0.09 70); }
html.dark .sidebar-toc-title { color: oklch(0.82 0.006 70); }
html.dark .sidebar-toc-item.active .sidebar-toc-title { color: oklch(0.95 0.005 80); }

/* ── Dark mode: newsletter ── */
html.dark .sidebar-newsletter {
  background: oklch(0.24 0.008 70);
  border-color: oklch(0.36 0.008 70);
}
html.dark .sidebar-newsletter input {
  background: oklch(0.18 0.008 70);
  border-color: oklch(0.36 0.008 70);
  color: oklch(0.95 0.005 80);
}
html.dark .sidebar-newsletter button {
  background: oklch(0.50 0.10 160);
}

/* ── Dark mode: article body ── */
html.dark .article-body {
  color: oklch(0.92 0.005 80);
}
html.dark .article-body h2,
html.dark .article-body h3,
html.dark .article-body h4 {
  color: oklch(0.95 0.005 80);
}
html.dark .article-body a {
  color: oklch(0.58 0.10 160);
}
html.dark .article-body a:hover {
  color: oklch(0.65 0.10 160);
}
html.dark .article-body blockquote {
  border-left-color: oklch(0.72 0.09 70);
  background: oklch(0.21 0.008 70);
  color: oklch(0.88 0.005 80);
}
html.dark .article-body code {
  background: oklch(0.24 0.008 70);
  color: oklch(0.82 0.08 70);
}
html.dark .article-body pre {
  background: oklch(0.14 0.008 70);
  border-color: oklch(0.28 0.008 70);
}
html.dark .article-body table {
  border-color: oklch(0.36 0.008 70);
}
html.dark .article-body td,
html.dark .article-body th {
  border-color: oklch(0.36 0.008 70);
}
html.dark .article-body th {
  background: oklch(0.24 0.008 70);
}
html.dark .article-body tr:nth-child(even) td {
  background: oklch(0.18 0.008 70);
}

/* ── Dark mode: breadcrumbs ── */
html.dark .breadcrumb a { color: oklch(0.60 0.006 70); }
html.dark .breadcrumb a:hover { color: oklch(0.58 0.10 160); }
html.dark .breadcrumb-sep { color: oklch(0.45 0.006 70); }
html.dark .breadcrumb-current { color: oklch(0.82 0.006 70); }

/* ── Dark mode: social sharing ── */
html.dark .social-share-btn {
  background: oklch(0.24 0.008 70);
  color: oklch(0.82 0.006 70);
  border-color: oklch(0.36 0.008 70);
}
html.dark .social-share-btn:hover {
  background: oklch(0.30 0.008 70);
  color: oklch(0.95 0.005 80);
}

/* ── Dark mode: prev/next navigation ── */
html.dark .seq-nav-card {
  background: oklch(0.21 0.008 70);
  border-color: oklch(0.36 0.008 70);
}
html.dark .seq-nav-card:hover {
  border-color: oklch(0.50 0.10 160);
  background: oklch(0.24 0.008 70);
}
html.dark .seq-nav-title { color: oklch(0.95 0.005 80); }

/* ── Dark mode: pagination ── */
html.dark .pagination a {
  background: oklch(0.21 0.008 70);
  border-color: oklch(0.36 0.008 70);
  color: oklch(0.82 0.006 70);
}
html.dark .pagination a:hover {
  background: oklch(0.28 0.008 70);
  color: oklch(0.95 0.005 80);
}
html.dark .pagination .current {
  background: oklch(0.50 0.10 160);
  color: white;
}

/* ── Dark mode: reading progress ── */
html.dark #reading-progress {
  background: oklch(0.21 0.008 70);
  border-color: oklch(0.36 0.008 70);
}

/* ── Dark mode: footer (already dark, just adjust) ── */
html.dark .site-footer {
  background: oklch(0.12 0.008 70);
}

/* ── Dark mode: 404 page ── */
html.dark .error-page { background: oklch(0.16 0.008 70); }
html.dark .error-title { color: oklch(0.72 0.09 70); }

/* ── Dark mode: selection ── */
html.dark ::selection {
  background: oklch(0.58 0.10 160 / 0.28);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 1rem;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Gold Rule (double-line editorial rule matching SPA) ───────────────────── */
.gold-rule {
  border: none;
  height: 0;
  margin: 0 0 1.75rem;
  position: relative;
  padding: 0;
}

.gold-rule::before,
.gold-rule::after {
  content: '';
  display: block;
  height: 2px;
  border-radius: 1px;
}

.gold-rule::before {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent 80%);
  margin-bottom: 3px;
}

.gold-rule::after {
  background: linear-gradient(90deg, oklch(0.65 0.10 70 / 0.4), oklch(0.72 0.08 70 / 0.2), transparent 60%);
  width: 60%;
}
/* ═══════════════════════════════════════════════════════════════
   HEADER — Ivory background, matching React SPA
   ═══════════════════════════════════════════════════════════════ */
.site-header {
  background: var(--ivory-warm);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--forest);
  white-space: nowrap;
}

.site-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--forest);
  color: white;
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.site-logo-subtitle {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-family: var(--font-sans);
  line-height: 1;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  white-space: nowrap;
}

.site-nav a:hover { color: var(--forest); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.header-icon-btn:hover {
  background: var(--border-light);
  color: var(--forest);
}

.subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--forest);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.subscribe-btn:hover { background: var(--forest-dark); }

.nav-toggle {
  display: none;
  border: none;
  background: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   HERO — 3+2 grid layout matching SPA HeroSlider
   ═══════════════════════════════════════════════════════════════ */
.hero-section {
  padding: 2rem 0 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.25rem;
  min-height: 420px;
}

.hero-main-card,
.hero-secondary-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: white;
}

.hero-main-card {
  min-height: 420px;
}

.hero-secondary-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}

.hero-secondary-card {
  min-height: 195px;
}

.hero-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-main-card:hover .hero-card-img,
.hero-secondary-card:hover .hero-card-img {
  transform: scale(1.03);
}

/* Subtle vignette for depth */
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.15) 100%);
}

/* Category flag floating above panel */
.hero-category-flag {
  position: absolute;
  left: 1.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  font-family: var(--font-sans);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-main-card .hero-category-flag {
  bottom: calc(48% - 8px);
}

.hero-secondary-card .hero-category-flag {
  bottom: calc(55% - 6px);
  left: 1rem;
  font-size: 0.625rem;
  padding: 0.25rem 0.625rem;
}

.hero-cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(0.85 0.08 70);
}

/* Solid editorial panel with angled top edge */
.hero-solid-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
  transition: background 0.3s;
}

.hero-main-card .hero-solid-panel {
  height: 48%;
  background: rgba(12, 12, 10, 0.88);
}

.hero-main-card:hover .hero-solid-panel {
  background: rgba(12, 12, 10, 0.92);
}

.hero-secondary-card .hero-solid-panel {
  height: 55%;
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
  background: rgba(12, 12, 10, 0.85);
}

html.dark .hero-main-card .hero-solid-panel {
  background: rgba(18, 18, 16, 0.92);
}

html.dark .hero-main-card:hover .hero-solid-panel {
  background: rgba(18, 18, 16, 0.96);
}

html.dark .hero-secondary-card .hero-solid-panel {
  background: rgba(18, 18, 16, 0.90);
}

/* Gold accent stripe at angled top edge */
.hero-gold-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, oklch(0.65 0.12 70), oklch(0.55 0.10 145), oklch(0.65 0.12 70));
  pointer-events: none;
  transform: translateY(-1px);
}

.hero-main-card .hero-gold-stripe {
  clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
}

.hero-secondary-card .hero-gold-stripe {
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

/* Panel content */
.hero-panel-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-main-card .hero-panel-content {
  padding: 2.5rem 1.75rem 1.5rem;
}

.hero-secondary-card .hero-panel-content {
  padding: 1.5rem 1.25rem 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: white;
  letter-spacing: -0.02em;
}

.hero-main-card .hero-title {
  font-size: 1.875rem;
  margin-bottom: 0.625rem;
  max-width: 95%;
}

.hero-secondary-card .hero-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-main-card:hover .hero-title-text,
.hero-secondary-card:hover .hero-title-text {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255,255,255,0.3);
  text-decoration-thickness: 2px;
}

.hero-description {
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 90%;
  font-family: var(--font-sans);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  font-family: var(--font-sans);
}

.hero-secondary-card .hero-meta {
  font-size: 0.6875rem;
  gap: 0.625rem;
}

.hero-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: oklch(0.65 0.12 70 / 0.5);
  flex-shrink: 0;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.hero-difficulty {
  font-weight: 600;
}

.hero-read-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  color: white;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.3s;
}

.hero-main-card:hover .hero-read-cta {
  opacity: 1;
  transform: translateX(0);
}

/* ═══════════════════════════════════════════════════════════════
   CONTENT + SIDEBAR LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--ivory-warm);
  border-radius: var(--radius-sm);
  color: var(--gold);
  flex-shrink: 0;
}

.section-header h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-count-badge {
  margin-left: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   SHARED CARD ELEMENTS
   ═══════════════════════════════════════════════════════════════ */
.card-category {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--forest);
  color: white;
}

.cat-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  flex-shrink: 0;
}

.meta-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--border);
  flex-shrink: 0;
}

.difficulty-badge {
  font-size: 0.75rem;
  font-weight: 600;
}

.difficulty-badge.quick { color: var(--forest); }
.difficulty-badge.standard { color: var(--gold); }
.difficulty-badge.deep { color: var(--terracotta); }

html.dark .difficulty-badge.quick { color: #86efac; }
html.dark .difficulty-badge.standard { color: #fcd34d; }
html.dark .difficulty-badge.deep { color: #fb923c; }

/* ═══════════════════════════════════════════════════════════════
   FEATURED CARD — Horizontal layout matching screenshot 2
   ═══════════════════════════════════════════════════════════════ */
.article-card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
  margin-bottom: 1.75rem;
  transition: box-shadow 0.3s ease;
}

.article-card-featured:hover {
  box-shadow: var(--card-shadow-hover);
}

.featured-image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 320px;
}

.featured-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.4s ease;
}

.article-card-featured:hover .featured-image-wrap img {
  transform: scale(1.03);
}

.featured-image-wrap .card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-dark);
  background: var(--gold-light);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  z-index: 2;
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 2rem;
}

.featured-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.featured-title a { color: inherit; }
.featured-title a:hover { color: var(--forest); }

.featured-excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.featured-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.read-full-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--forest);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--transition);
  align-self: flex-start;
}

.read-full-cta:hover {
  background: var(--forest-dark);
  gap: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE CARDS — 2-column vertical grid matching screenshot 3
   ═══════════════════════════════════════════════════════════════ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.article-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--gold);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.article-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

/* Bookmark button on hover */
.card-bookmark {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.3s;
  color: var(--text-secondary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.article-card:hover .card-bookmark {
  opacity: 1;
  transform: translateY(0);
}

.card-bookmark:hover {
  background: var(--forest);
  color: white;
}

/* Read article overlay on hover */
.card-read-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-image-wrap:hover .card-read-overlay {
  opacity: 1;
}

.card-read-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: white;
  color: var(--forest);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

.card-image-wrap {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .card-image-wrap img { transform: scale(1.05); }

.card-image-wrap .card-category {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  z-index: 2;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card-title a { color: inherit; }
.card-title a:hover { color: var(--forest); }

.card-excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  margin-top: auto;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   OUR BLOGS DROPDOWN
   ═══════════════════════════════════════════════════════════════ */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav-dropdown-trigger:hover { color: var(--forest); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 0.5rem;
  z-index: 100;
  margin-top: 0.5rem;
}

.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-item {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-dropdown-item:hover { background: var(--ivory-warm); }

.nav-dropdown-item strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.nav-dropdown-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR — Matching React SPA sidebar
   ═══════════════════════════════════════════════════════════════ */
.sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-section {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--gold-pale);
}

.sidebar-section-header svg { color: var(--gold); }

/* About section */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.sidebar-logo strong {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--forest);
}

.sidebar-tagline {
  display: block;
  font-size: 0.6875rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.sidebar-description {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.875rem;
}

.sidebar-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.stat-item {
  padding: 0.5rem;
  background: var(--ivory-warm);
  border-radius: var(--radius-sm);
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest);
}

.stat-label {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

/* Categories */
.sidebar-categories {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-categories li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-xs);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.sidebar-categories li a:hover {
  background: var(--ivory-warm);
  color: var(--forest);
}

.cat-count {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--border-light);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

/* Trending */
.trending-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.trending-number {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  min-width: 1.5rem;
  flex-shrink: 0;
  padding-top: 0.125rem;
}

.trending-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
}

.trending-content {
  flex: 1;
  min-width: 0;
}

.trending-content .card-category {
  background: var(--ivory-warm);
  color: var(--text-secondary);
  font-size: 0.5625rem;
  padding: 0.1rem 0.4rem;
  margin-bottom: 0.25rem;
}

.trending-content .card-category .cat-dot { background: var(--gold); }

.trending-content h4 {
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-top: 0.125rem;
}

.trending-content h4 a:hover { color: var(--forest); }

.trending-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

/* Newsletter */
.newsletter-gradient {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%) !important;
  color: white !important;
  border-color: transparent !important;
}

.newsletter-gradient .sidebar-section-header {
  color: white;
  border-bottom-color: rgba(255,255,255,0.2);
}

.newsletter-gradient p { color: rgba(255,255,255,0.85); }

.newsletter-gradient .newsletter-input {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: white;
}

.newsletter-gradient .newsletter-input::placeholder { color: rgba(255,255,255,0.5); }

.newsletter-gradient .newsletter-btn { background: var(--gold); color: white; }
.newsletter-gradient .newsletter-btn:hover { background: var(--gold-light); }

.sidebar-newsletter p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  background: var(--ivory);
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: border-color var(--transition);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(45,80,22,0.1);
}

.newsletter-btn {
  width: 100%;
  padding: 0.5rem;
  background: var(--forest);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  font-family: var(--font-sans);
}

.newsletter-btn:hover { background: var(--forest-dark); }

/* ═══════════════════════════════════════════════════════════════
   ARTICLE PAGE — Breadcrumbs, hero banner, editorial verification
   ═══════════════════════════════════════════════════════════════ */

/* Breadcrumb */
.breadcrumb {
  background: var(--ivory);
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.breadcrumb a:hover { color: var(--forest); }

.breadcrumb-back { font-weight: 500; }

.breadcrumb-sep {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
}

.breadcrumb-current {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 400px;
}

/* Article Hero Banner */
.article-hero {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  background: var(--forest-dark);
}

.article-hero-img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.article-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 0 2.5rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  color: white;
}

.article-hero-overlay .card-category {
  margin-bottom: 0.75rem;
}

.article-hero-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 800px;
}

/* Editorial Verification Banner */
.editorial-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 2rem 0 1.5rem;
}

html.dark .editorial-banner {
  background: #064e3b;
  border-color: #065f46;
}

.editorial-banner-icon {
  color: #059669;
  flex-shrink: 0;
  margin-top: 2px;
}

html.dark .editorial-banner-icon { color: #6ee7b7; }

.editorial-banner strong {
  display: block;
  font-size: 0.9375rem;
  color: #065f46;
  margin-bottom: 0.25rem;
}

html.dark .editorial-banner strong { color: #a7f3d0; }

.editorial-banner p {
  font-size: 0.8125rem;
  color: #047857;
  line-height: 1.5;
  margin: 0;
}

html.dark .editorial-banner p { color: #6ee7b7; }

/* Author Byline */
.author-byline {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ivory-warm);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  flex-shrink: 0;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.author-name-row strong {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #059669;
  background: #ecfdf5;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
}

html.dark .ai-badge {
  color: #6ee7b7;
  background: #064e3b;
  border-color: #065f46;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.author-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.author-meta .meta-dot {
  color: var(--text-muted);
}

.content-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0 0 2rem;
}

/* Article Content */
.article-content {
  padding: 0 1.25rem 2.5rem;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--forest);
}

.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.article-content p { margin-bottom: 1.25rem; }

.article-content ul, .article-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.article-content li { margin-bottom: 0.5rem; }

.article-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--ivory-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* Table — green header matching screenshot */
.article-table-wrap {
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-content table,
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.article-content th, .article-content td,
.article-body th, .article-body td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-content th,
.article-body th {
  background: var(--forest);
  color: white;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

html.dark .article-content th,
html.dark .article-body th {
  background: var(--forest-dark);
}

.article-content tr:last-child td,
.article-body tr:last-child td {
  border-bottom: none;
}

/* Metadata Bar — below author byline */
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.meta-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.meta-bar-dot {
  color: var(--text-muted);
}

.meta-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid;
}

.meta-bar-badge.verified {
  color: #059669;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

html.dark .meta-bar-badge.verified {
  color: #6ee7b7;
  border-color: #065f46;
  background: #064e3b;
}

.meta-bar-badge.topic {
  color: var(--terracotta);
  border-color: var(--gold-pale);
  background: #fef9ee;
}

html.dark .meta-bar-badge.topic {
  color: var(--gold-light);
  border-color: #78350f;
  background: #451a03;
}

/* Tags — pill style with icon */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.875rem;
  background: var(--ivory-warm);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.tag svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.tag:hover {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}

.tag:hover svg { opacity: 1; }

/* Key Takeaway Highlight Box */
.kt-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  background: var(--ivory-warm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.kt-highlight-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.kt-highlight-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.375rem;
}

.kt-highlight-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

/* Key Takeaways Accordion */
.kt-accordion {
  border: 1px solid #a7f3d0;
  border-left: 4px solid #059669;
  border-radius: var(--radius-sm);
  margin: 1rem 0 1.5rem;
  overflow: hidden;
  background: #ecfdf5;
}

html.dark .kt-accordion {
  background: #064e3b;
  border-color: #065f46;
  border-left-color: #10b981;
}

.kt-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  color: var(--text-primary);
}

.kt-accordion-icon {
  color: #059669;
  flex-shrink: 0;
}

html.dark .kt-accordion-icon { color: #6ee7b7; }

.kt-accordion-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #065f46;
}

html.dark .kt-accordion-title { color: #a7f3d0; }

.kt-accordion-count {
  font-size: 0.75rem;
  color: #059669;
  margin-left: 0.25rem;
}

html.dark .kt-accordion-count { color: #6ee7b7; }

.kt-accordion-chevron {
  margin-left: auto;
  transition: transform 0.2s;
  color: #059669;
}

html.dark .kt-accordion-chevron { color: #6ee7b7; }

.kt-accordion:not(.open) .kt-accordion-chevron { transform: rotate(180deg); }

.kt-accordion-body {
  display: none;
  padding: 0 1.25rem 1rem;
}

.kt-accordion.open .kt-accordion-body { display: block; }

.kt-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kt-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(5, 150, 105, 0.15);
}

.kt-list li:last-child { border-bottom: none; }

.kt-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: var(--radius-xs);
  background: #059669;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

html.dark .kt-num { background: #10b981; }

/* Part of Guide Box */
.part-of-guide {
  border: 1px solid #a7f3d0;
  border-left: 4px solid #059669;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  overflow: hidden;
  background: #ecfdf5;
}

html.dark .part-of-guide {
  background: #064e3b;
  border-color: #065f46;
  border-left-color: #10b981;
}

.part-of-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
}

.part-of-icon {
  color: #059669;
  flex-shrink: 0;
}

html.dark .part-of-icon { color: #6ee7b7; }

.part-of-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.part-of-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

html.dark .part-of-title { color: #6ee7b7; }

.part-of-body {
  padding: 0 1.25rem 1rem;
}

.part-of-also {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.part-of-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.part-of-link {
  display: inline-block;
  padding: 0.35rem 0.875rem;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.8125rem;
  color: #059669;
  transition: all var(--transition);
}

html.dark .part-of-link {
  background: rgba(255,255,255,0.05);
  color: #6ee7b7;
}

.part-of-link:hover {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}

/* Drop Cap */
.article-body .drop-cap::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  line-height: 0.8;
  color: var(--forest);
  padding-right: 0.5rem;
  padding-top: 0.25rem;
}

html.dark .article-body .drop-cap::first-letter {
  color: #6ee7b7;
}

/* Article Body */
.article-body {
  margin-top: 1rem;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  color: var(--forest);
  scroll-margin-top: 80px;
}

.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.article-body p { margin-bottom: 1.25rem; }

.article-body ul, .article-body ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.article-body li { margin-bottom: 0.5rem; }

.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--ivory-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* Reading Progress Floating Indicator */
.reading-progress {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 100;
  transition: opacity 0.3s;
}

.reading-progress span:last-child {
  background: #ecfdf5;
  color: #059669;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.6875rem;
}

html.dark .reading-progress span:last-child {
  background: #064e3b;
  color: #6ee7b7;
}

/* TOC Open Button (floating) */
.toc-open-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 100;
  transition: all var(--transition);
}

.toc-open-btn:hover {
  background: var(--forest-dark);
  transform: translateX(-50%) scale(1.05);
}

/* TOC Bottom Sheet Panel */
.toc-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.toc-panel.open {
  opacity: 1;
  pointer-events: auto;
}

.toc-sheet {
  width: 100%;
  max-height: 70vh;
  background: var(--card-bg);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0.75rem 1.25rem 1.5rem;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.toc-panel.open .toc-sheet {
  transform: translateY(0);
}

.toc-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 0.75rem;
}

.toc-sheet-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.toc-sheet-icon {
  color: var(--forest);
  flex-shrink: 0;
}

.toc-sheet-title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.toc-sheet-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.toc-close-btn {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  transition: color var(--transition);
}

.toc-close-btn:hover { color: var(--text-primary); }

.toc-progress-bar {
  height: 3px;
  background: var(--border-light);
  border-radius: 2px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.toc-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s;
}

.toc-reading-status {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.toc-sections-read {
  color: var(--text-muted);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.toc-item:last-child { border-bottom: none; }

.toc-bullet {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all 0.2s;
}

.toc-item.active .toc-bullet {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.toc-item.active {
  background: var(--ivory-warm);
  margin: 0 -1.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-xs);
}

.toc-item.completed .toc-bullet {
  border-color: #059669;
  background: #059669;
}

.toc-link {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  line-height: 1.4;
}

.toc-item.active .toc-link {
  color: var(--text-primary);
  font-weight: 600;
}

.toc-est {
  font-size: 0.6875rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

/* Related Articles */
.related-articles {
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-articles h2 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

/* FAQ */
.faq-section { margin: 2rem 0; }

.faq-section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
}

.faq-chevron { transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER (Category, Tag, Search)
   ═══════════════════════════════════════════════════════════════ */
.page-header {
  background: var(--forest);
  color: white;
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.page-header p {
  font-size: 0.9375rem;
  opacity: 0.85;
}

.article-count {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.15);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
}

/* Search */
.search-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--card-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: border-color var(--transition);
  margin-bottom: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--forest);
}

.search-results-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — Dark forest green, matching React SPA
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--forest-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.footer-logo .site-logo-icon { background: rgba(255,255,255,0.15); }

.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
}

.footer-logo-subtitle {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  font-weight: 600;
}

.footer-description {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.footer-rss {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-rss:hover { color: var(--gold-light); }

/* ═══════════════════════════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════════════════════════ */
.not-found {
  text-align: center;
  padding: 5rem 1rem;
}

.not-found h1 {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.not-found p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font-sans);
}

.btn-primary { background: var(--forest); color: white; }
.btn-primary:hover { background: var(--forest-dark); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .sidebar-newsletter { grid-column: span 2; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .subscribe-btn { display: none; }
  .nav-toggle { display: block; }

  .site-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ivory-warm);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    gap: 0.75rem;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-main-card {
    min-height: 360px;
  }

  .hero-secondary-stack {
    display: none;
  }

  .hero-main-card .hero-title {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 0.875rem;
    max-width: 100%;
  }

  .article-card-featured {
    grid-template-columns: 1fr;
  }

  .featured-image-wrap { min-height: 220px; }
  .featured-body { padding: 1.25rem; }
  .featured-title { font-size: 1.25rem; }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-newsletter { grid-column: span 1; }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    margin-top: 0.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .article-hero { min-height: 300px; }
  .article-hero-img { min-height: 300px; }
  .article-hero-title { font-size: 1.625rem; }

  .breadcrumb-current { max-width: 200px; }

  .page-header h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-main-card { min-height: 280px; }
  .hero-main-card .hero-title { font-size: 1.25rem; }
  .hero-description { display: none; }
  .hero-read-cta { display: none; }

  .article-hero { min-height: 240px; }
  .article-hero-img { min-height: 240px; }
  .article-hero-title { font-size: 1.375rem; }

  .author-byline { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE LAYOUT — Content + Sidebar grid (matching SPA)
   ═══════════════════════════════════════════════════════════════ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.article-content {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem 1.75rem 2rem;
  font-size: 1.0625rem;
  min-width: 0;
}

/* ── Sidebar Sticky TOC ─────────────────────────────────────── */
.article-sidebar {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-toc-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
}

.sidebar-toc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-toc-icon {
  color: var(--forest);
  flex-shrink: 0;
}

.sidebar-toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.sidebar-toc-count {
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.sidebar-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-toc-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.375rem;
  border-radius: var(--radius-xs);
  transition: all 0.2s;
}

.sidebar-toc-item.active {
  background: var(--ivory-warm);
}

.sidebar-toc-item.completed .sidebar-toc-link {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--border);
}

.sidebar-toc-link {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  transition: color 0.2s;
}

.sidebar-toc-item.active .sidebar-toc-link {
  color: var(--forest);
  font-weight: 600;
}

.sidebar-toc-link:hover {
  color: var(--forest);
}

.sidebar-toc-est {
  font-size: 0.625rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Sidebar Newsletter ─────────────────────────────────────── */
.sidebar-newsletter-card {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: white;
}

.sidebar-newsletter-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-newsletter-desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-newsletter-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-xs);
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 0.8125rem;
  font-family: var(--font-sans);
}

.sidebar-newsletter-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.sidebar-newsletter-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.2);
}

.sidebar-newsletter-btn {
  width: 100%;
  padding: 0.5rem;
  background: var(--gold);
  color: white;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s;
}

.sidebar-newsletter-btn:hover {
  background: var(--gold-light);
}

.sidebar-newsletter-thanks {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.9);
  text-align: center;
}

/* ── Reading Progress Bar (top of page) ─────────────────────── */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border-light);
  z-index: 1000;
}

.reading-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--forest), var(--gold));
  transition: width 0.15s ease-out;
}

/* ── Social Sharing ─────────────────────────────────────────── */
.social-share {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.social-share-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  text-decoration: none;
}

.social-btn:hover {
  border-color: var(--forest);
  color: var(--forest);
  background: var(--ivory-warm);
}

.social-x:hover { color: #000; border-color: #000; }
.social-linkedin:hover { color: #0077b5; border-color: #0077b5; }
.social-whatsapp:hover { color: #25d366; border-color: #25d366; }
.social-facebook:hover { color: #1877f2; border-color: #1877f2; }
.social-email:hover { color: var(--forest); border-color: var(--forest); }
.social-copy:hover { color: var(--gold); border-color: var(--gold); }

html.dark .social-x:hover { color: #fff; }

/* ── Article Feedback ───────────────────────────────────────── */
.article-feedback {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--ivory-warm);
  border-radius: var(--radius-sm);
  text-align: center;
}

.feedback-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.75rem;
}

.feedback-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.feedback-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.2s;
}

.feedback-btn:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.feedback-btn.active {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}

.feedback-thanks {
  font-size: 0.8125rem;
  color: var(--forest);
  margin-top: 0.75rem;
  font-weight: 500;
}

/* ── Cite This Article ──────────────────────────────────────── */
.cite-article {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--ivory-warm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.cite-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cite-formats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cite-format {
  padding: 0.75rem;
  background: var(--card-bg);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
}

.cite-label {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--forest);
  background: var(--ivory-warm);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-xs);
  margin-bottom: 0.375rem;
}

.cite-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  word-break: break-all;
}

/* ── Editorial Trust Box ────────────────────────────────────── */
.editorial-trust-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--ivory-warm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.trust-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trust-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.trust-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.trust-step strong {
  font-size: 0.875rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.125rem;
}

.trust-step p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ── Previous / Next Navigation ─────────────────────────────── */
.prev-next-nav {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.prev-next-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.prev-next-icon {
  color: var(--text-muted);
}

.prev-next-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.prev-next-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.prev-next-counter {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-family: monospace;
}

.prev-next-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.prev-next-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: all 0.2s;
  text-decoration: none;
}

.prev-next-card:hover {
  border-color: var(--forest);
  box-shadow: var(--card-shadow);
}

.prev-next-dir {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.prev-next-card-next {
  text-align: right;
}

.prev-next-card-next .prev-next-dir {
  justify-content: flex-end;
}

.prev-next-title {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prev-next-card:hover .prev-next-title {
  color: var(--forest);
}

/* ── Article Layout Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .sidebar-newsletter-card {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .prev-next-cards {
    grid-template-columns: 1fr;
  }

  .social-share-buttons {
    justify-content: center;
  }

  .article-content {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .article-content {
    padding: 1rem;
    font-size: 1rem;
  }

  .feedback-buttons {
    flex-direction: column;
  }
}

/* ── Search Overlay (Cmd+K) — matches SPA SearchOverlay ─────── */
.search-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.search-overlay-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.search-overlay {
  position: fixed;
  top: 12vh;
  left: 50%;
  transform: translateX(-50%) scale(0.96) translateY(-10px);
  width: 95vw;
  max-width: 640px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.search-overlay.active {
  opacity: 1;
  transform: translateX(-50%) scale(1) translateY(0);
  pointer-events: auto;
}

.search-overlay-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  overflow: hidden;
}

/* Search input row */
.search-overlay-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.search-overlay-input-row svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-overlay-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
}
.search-overlay-input::placeholder {
  color: var(--text-muted);
}
.search-overlay-clear {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.search-overlay-clear.visible {
  display: flex;
}
.search-overlay-clear:hover {
  background: var(--ivory-warm);
  color: var(--text-primary);
}
.search-overlay-kbd {
  display: none;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--ivory-warm);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  font-family: var(--font-sans);
}
@media (min-width: 640px) {
  .search-overlay-kbd { display: inline-flex; }
}

/* Category filter chips */
.search-overlay-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  scrollbar-width: none;
}
.search-overlay-filters::-webkit-scrollbar { display: none; }
.search-overlay-filters svg {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition);
  background: var(--ivory-warm);
  color: var(--text-muted);
}
.search-chip:hover {
  background: var(--border);
  color: var(--text-primary);
}
.search-chip.active {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.search-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.search-chip-count {
  font-size: 0.5625rem;
  opacity: 0.7;
}

/* Search results */
.search-overlay-results {
  max-height: 45vh;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
  font-family: var(--font-sans);
  text-decoration: none;
  color: inherit;
}
.search-result-item:hover,
.search-result-item.selected {
  background: var(--ivory-warm);
}
.search-result-item + .search-result-item {
  border-top: 1px solid var(--border-light);
}
.search-result-thumb {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ivory-warm);
}
.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-result-content {
  flex: 1;
  min-width: 0;
}
.search-result-category {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-xs);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 0.25rem;
}
.search-result-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  font-family: var(--font-serif);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}
.search-result-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.search-result-meta svg {
  width: 10px;
  height: 10px;
}
.search-result-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.5rem;
  color: var(--text-muted);
}
.search-result-item.selected .search-result-arrow {
  color: var(--text-primary);
}
mark.search-highlight {
  background: oklch(0.65 0.12 70 / 0.25);
  color: var(--text-primary);
  border-radius: 2px;
  padding: 0 2px;
}
html.dark mark.search-highlight {
  background: oklch(0.68 0.09 70 / 0.2);
}

/* Search overlay empty state */
.search-overlay-empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
}
.search-overlay-empty svg {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  color: var(--text-muted);
}
.search-overlay-empty p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}
.search-overlay-empty .sub {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Search overlay footer */
.search-overlay-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1.25rem;
  border-top: 1px solid var(--border-light);
  background: var(--ivory-warm);
}
.search-overlay-footer-hint {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.search-overlay-footer-hint span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.625rem;
  color: var(--text-muted);
}
.search-overlay-footer-hint kbd {
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 0.5625rem;
}
.search-overlay-count {
  font-size: 0.625rem;
  color: var(--text-muted);
}

/* Search overlay hint text */
.search-overlay-hint {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.search-overlay-hint p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* Theme toggle icon visibility */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html.dark .theme-toggle .icon-sun { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }

/* Theme transition */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

@media (max-width: 640px) {
  .search-overlay {
    top: 8vh;
  }
  .search-overlay-footer {
    display: none;
  }
}

/* ── Load More Button ── */
.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.load-more-btn:hover {
  background: var(--forest);
  color: white;
}
html.dark .load-more-btn {
  color: var(--gold-light);
  border-color: var(--gold-light);
}
html.dark .load-more-btn:hover {
  background: var(--gold-light);
  color: oklch(0.15 0.03 145);
}

/* == Review Status Banner == */
.review-banner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
}
.review-banner-icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.review-banner strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.review-banner p {
  margin: 0;
  opacity: 0.85;
}
.review-banner-warning {
  background: oklch(0.95 0.06 85);
  border: 1px solid oklch(0.80 0.12 85);
  color: oklch(0.35 0.08 85);
}
.review-banner-warning .review-banner-icon {
  color: oklch(0.65 0.15 85);
}
.review-banner-ok {
  background: oklch(0.95 0.04 145);
  border: 1px solid oklch(0.80 0.08 145);
  color: oklch(0.30 0.06 145);
}
.review-banner-ok .review-banner-icon {
  color: oklch(0.50 0.12 145);
}
html.dark .review-banner-warning {
  background: oklch(0.25 0.04 85);
  border-color: oklch(0.40 0.08 85);
  color: oklch(0.85 0.06 85);
}
html.dark .review-banner-ok {
  background: oklch(0.20 0.03 145);
  border-color: oklch(0.35 0.06 145);
  color: oklch(0.85 0.04 145);
}

/* == Age Badge == */
.meta-bar-badge.age-old {
  background: oklch(0.92 0.06 85);
  color: oklch(0.40 0.10 85);
  border: 1px solid oklch(0.80 0.10 85);
}
.meta-bar-badge.age-recent {
  background: oklch(0.95 0.03 200);
  color: oklch(0.40 0.06 200);
  border: 1px solid oklch(0.85 0.05 200);
}
html.dark .meta-bar-badge.age-old {
  background: oklch(0.25 0.04 85);
  color: oklch(0.85 0.06 85);
  border-color: oklch(0.40 0.06 85);
}
html.dark .meta-bar-badge.age-recent {
  background: oklch(0.22 0.03 200);
  color: oklch(0.85 0.04 200);
  border-color: oklch(0.38 0.04 200);
}

/* == Sidebar Cards (shared) == */
.sidebar-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--forest);
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid oklch(0.88 0.02 85);
}
html.dark .sidebar-card-title {
  color: var(--gold-light);
  border-bottom-color: oklch(0.30 0.02 145);
}

/* == Sidebar Categories == */
.sidebar-categories-card {
  background: var(--ivory);
  border: 1px solid oklch(0.90 0.02 85);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
html.dark .sidebar-categories-card {
  background: oklch(0.18 0.02 145);
  border-color: oklch(0.28 0.02 145);
}
.sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid oklch(0.93 0.01 85);
}
.sidebar-cat-item:last-child { border-bottom: none; }
.sidebar-cat-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.sidebar-cat-item a:hover { color: var(--forest); }
.sidebar-cat-item.active a { color: var(--forest); font-weight: 600; }
.sidebar-cat-count {
  background: oklch(0.93 0.02 145);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-sans);
}
html.dark .sidebar-cat-item { border-bottom-color: oklch(0.28 0.02 145); }
html.dark .sidebar-cat-item a { color: oklch(0.85 0.02 85); }
html.dark .sidebar-cat-item a:hover { color: var(--gold-light); }
html.dark .sidebar-cat-item.active a { color: var(--gold-light); }
html.dark .sidebar-cat-count { background: oklch(0.25 0.03 145); color: var(--gold-light); }

/* == Sidebar Trending == */
.sidebar-trending-card {
  background: var(--ivory);
  border: 1px solid oklch(0.90 0.02 85);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
html.dark .sidebar-trending-card {
  background: oklch(0.18 0.02 145);
  border-color: oklch(0.28 0.02 145);
}
.sidebar-trending-list { list-style: none; padding: 0; margin: 0; }
.sidebar-trending-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.625rem 0;
  border-bottom: 1px solid oklch(0.93 0.01 85);
}
.sidebar-trending-item:last-child { border-bottom: none; }
html.dark .sidebar-trending-item { border-bottom-color: oklch(0.28 0.02 145); }
.trending-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
}
html.dark .trending-num { background: var(--gold-light); color: oklch(0.15 0.03 145); }
.trending-link {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}
.trending-title {
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  transition: color var(--transition);
}
.trending-link:hover .trending-title { color: var(--forest); }
html.dark .trending-title { color: oklch(0.90 0.02 85); }
html.dark .trending-link:hover .trending-title { color: var(--gold-light); }
.trending-meta {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* == Sidebar Guides == */
.sidebar-guides-card {
  background: var(--ivory);
  border: 1px solid oklch(0.90 0.02 85);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
html.dark .sidebar-guides-card {
  background: oklch(0.18 0.02 145);
  border-color: oklch(0.28 0.02 145);
}
.sidebar-guide-list { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-guide-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  background: oklch(0.97 0.01 85);
  text-decoration: none;
  transition: all var(--transition);
}
.sidebar-guide-item:hover { background: oklch(0.94 0.03 145); transform: translateX(2px); }
html.dark .sidebar-guide-item { background: oklch(0.22 0.02 145); }
html.dark .sidebar-guide-item:hover { background: oklch(0.26 0.03 145); }
.guide-icon { flex-shrink: 0; color: var(--forest); }
html.dark .guide-icon { color: var(--gold-light); }
.guide-name {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}
html.dark .guide-name { color: oklch(0.90 0.02 85); }

/* == Back to Top Button == */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: all 0.3s ease;
  z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover {
  background: oklch(0.28 0.06 145);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
html.dark .back-to-top { background: var(--gold-light); color: oklch(0.15 0.03 145); }
html.dark .back-to-top:hover { background: oklch(0.78 0.12 85); }

/* == Category Page Redesign == */
.category-hero {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: white;
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.category-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.category-hero-inner { display: flex; align-items: center; gap: 1.5rem; }
.category-hero-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.category-hero-icon svg { width: 28px; height: 28px; stroke: white; }
.category-hero h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.category-hero-desc {
  font-size: 0.9375rem;
  opacity: 0.85;
  max-width: 600px;
  line-height: 1.5;
}
.category-hero-stats { display: flex; gap: 1.5rem; margin-top: 0.75rem; }
.category-hero-stat {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  opacity: 0.8;
}
html.dark .category-hero {
  background: linear-gradient(135deg, oklch(0.20 0.04 145) 0%, oklch(0.15 0.03 145) 100%);
}

/* == Category: Editors Pick == */
.editors-pick { margin-bottom: 2rem; }
.editors-pick-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.editors-pick-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  transition: all var(--transition);
}
.editors-pick-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.editors-pick-img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.editors-pick-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.editors-pick-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest);
  margin-bottom: 0.5rem;
}
.editors-pick-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.editors-pick-excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.editors-pick-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
html.dark .editors-pick-card { background: oklch(0.21 0.008 70); border-color: oklch(0.36 0.008 70); }
html.dark .editors-pick-title { color: oklch(0.95 0.005 80); }
html.dark .editors-pick-cat { color: var(--gold-light); }

/* == Category: Numbered Article List == */
.numbered-article-list { list-style: none; padding: 0; margin: 0; }
.numbered-article-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
}
.numbered-article-item:last-child { border-bottom: none; }
.numbered-article-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.95 0.02 145);
  color: var(--forest);
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
html.dark .numbered-article-num { background: oklch(0.25 0.03 145); color: var(--gold-light); }
.numbered-article-body { flex: 1; min-width: 0; }
.numbered-article-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.25rem;
}
.numbered-article-title a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}
.numbered-article-title a:hover { color: var(--forest); }
html.dark .numbered-article-title a:hover { color: var(--gold-light); }
.numbered-article-excerpt {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.numbered-article-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.numbered-article-meta .meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* == Category Page: Sidebar TOC == */
.category-sidebar-toc {
  background: var(--ivory);
  border: 1px solid oklch(0.90 0.02 85);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
  position: sticky;
  top: 5rem;
}
html.dark .category-sidebar-toc { background: oklch(0.18 0.02 145); border-color: oklch(0.28 0.02 145); }
.category-sidebar-toc h3 {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
html.dark .category-sidebar-toc h3 { color: var(--gold-light); }
.category-sidebar-toc ul { list-style: none; padding: 0; margin: 0; }
.category-sidebar-toc li { padding: 0.375rem 0; }
.category-sidebar-toc a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.category-sidebar-toc a:hover { color: var(--forest); }
html.dark .category-sidebar-toc a:hover { color: var(--gold-light); }

@media (max-width: 768px) {
  .editors-pick-card { grid-template-columns: 1fr; }
  .editors-pick-img { min-height: 200px; }
  .editors-pick-body { padding: 1.25rem; }
  .editors-pick-title { font-size: 1.25rem; }
  .category-hero h1 { font-size: 1.5rem; }
  .category-hero-icon { width: 3rem; height: 3rem; }
  .category-hero-stats { flex-wrap: wrap; gap: 0.75rem; }
}

/* == Tag Hero Variant == */
.tag-hero {
  background: linear-gradient(135deg, oklch(0.30 0.06 200) 0%, oklch(0.22 0.04 220) 100%);
}
html.dark .tag-hero {
  background: linear-gradient(135deg, oklch(0.18 0.04 200) 0%, oklch(0.14 0.03 220) 100%);
}
.tag-hero h1 { color: oklch(0.95 0.02 90); }
.tag-hero .category-hero-desc { color: oklch(0.85 0.02 90); }
.tag-hero .category-hero-icon {
  background: oklch(0.40 0.08 200);
  border-color: oklch(0.50 0.08 200);
}
html.dark .tag-hero .category-hero-icon {
  background: oklch(0.25 0.06 200);
  border-color: oklch(0.35 0.06 200);
}
.tag-hero .category-hero-stat { color: oklch(0.88 0.02 90); }
.tag-hero .category-hero-stat svg { color: oklch(0.80 0.06 90); }

/* == Sidebar Tag Cloud == */
.sidebar-tagcloud-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
html.dark .sidebar-tagcloud-card {
  background: oklch(0.21 0.008 70);
  border-color: oklch(0.28 0.008 70);
}
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  line-height: 1.6;
}
.tagcloud-tag {
  display: inline-block;
  padding: 0.2em 0.55em;
  border-radius: var(--radius-xs);
  background: oklch(0.96 0.01 145 / 0.6);
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-sans);
  transition: background var(--transition), color var(--transition), transform 0.15s ease;
  white-space: nowrap;
}
.tagcloud-tag:hover {
  background: oklch(0.90 0.04 145 / 0.5);
  color: var(--forest);
  transform: scale(1.05);
}
html.dark .tagcloud-tag {
  background: oklch(0.26 0.008 70);
  color: oklch(0.75 0.006 70);
}
html.dark .tagcloud-tag:hover {
  background: oklch(0.32 0.02 160);
  color: oklch(0.82 0.08 160);
}

/* Active tag (matches current article's tags) */
.tagcloud-tag.active {
  background: oklch(0.35 0.08 145 / 0.12);
  color: var(--forest);
  font-weight: 600;
  border: 1px solid oklch(0.35 0.08 145 / 0.25);
}
html.dark .tagcloud-tag.active {
  background: oklch(0.50 0.10 160 / 0.15);
  color: oklch(0.65 0.10 160);
  border-color: oklch(0.50 0.10 160 / 0.3);
}

/* 5 size tiers — frequency-weighted */
.tagcloud-tag.tier-1 { font-size: 0.6875rem; }
.tagcloud-tag.tier-2 { font-size: 0.8125rem; }
.tagcloud-tag.tier-3 { font-size: 0.9375rem; }
.tagcloud-tag.tier-4 { font-size: 1.0625rem; font-weight: 500; }
.tagcloud-tag.tier-5 { font-size: 1.1875rem; font-weight: 600; }

/* == Enhanced Search Page ================================================= */

/* Search Box */
.search-box {
  max-width: 640px;
  margin: 0 auto 1.5rem;
}
.search-input-wrap {
  position: relative;
}
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-box .search-input {
  padding-left: 3rem;
  padding-right: 2.5rem;
  width: 100%;
  font-size: 1rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box .search-input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.12);
}
.search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
.search-clear svg { width: 16px; height: 16px; }
.search-clear:hover { color: var(--text-primary); }

/* Search Controls Container */
.search-controls {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

/* Filter Rows */
.search-filter-row {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}
.search-filter-row:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.search-filter-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
}
.search-filter-label svg { width: 14px; height: 14px; }

/* Category Chips */
.search-chips {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

/* Tag Cloud in Search */
.search-tags {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  align-items: baseline;
}
.search-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.search-tag:hover {
  border-color: var(--forest);
  color: var(--forest);
  background: rgba(27, 67, 50, 0.06);
}
.search-tag.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
  font-weight: 600;
}
.search-tags-toggle {
  display: block;
  margin-top: 0.5rem;
  background: none;
  border: none;
  color: var(--forest);
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: var(--font-sans);
  padding: 0;
}
.search-tags-toggle:hover { text-decoration: underline; }

/* Sort + Difficulty Row */
.search-sort-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}
.search-sort-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.search-sort-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-family: var(--font-sans);
}
.search-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  cursor: pointer;
  appearance: auto;
}
.search-select:focus {
  outline: none;
  border-color: var(--forest);
}

/* Difficulty Chips */
.search-difficulty-chips {
  display: flex;
  gap: 0.25rem;
}
.diff-chip {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.diff-chip:hover {
  border-color: var(--forest);
  color: var(--forest);
}
.diff-chip.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
  font-weight: 600;
}

/* Active Filters Bar */
.active-filters {
  max-width: 900px;
  margin: 0 auto 1rem;
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  align-items: center;
}
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  background: rgba(27, 67, 50, 0.08);
  border: 1px solid rgba(27, 67, 50, 0.2);
  border-radius: 1rem;
  font-size: 0.75rem;
  color: var(--forest);
  font-family: var(--font-sans);
}
.active-filter-chip button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
}
.active-filter-chip button:hover { opacity: 1; }
.active-filter-chip.tag { background: rgba(45, 106, 79, 0.08); border-color: rgba(45, 106, 79, 0.2); }
.active-filter-chip.diff { background: rgba(198, 139, 44, 0.08); border-color: rgba(198, 139, 44, 0.2); color: #C68B2C; }
.active-filter-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font-sans);
  margin-left: 0.25rem;
}
.active-filter-clear:hover { color: var(--text-primary); }

/* Card Tags */
.card-tags {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.card-tag {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}
.card-tag.highlighted {
  color: var(--forest);
  font-weight: 600;
}

/* Card Badges Row */
.card-badges {
  display: flex;
  gap: 0.375rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.card-cat-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}
.card-diff-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 600;
  border: 1px solid;
}

/* Search Empty State */
.search-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* Search Results Count */
.search-results-count {
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-sans);
  margin-bottom: 1rem;
}

/* Dark Mode Overrides */
[data-theme="dark"] .search-controls {
  background: var(--card-bg);
  border-color: var(--border);
}
[data-theme="dark"] .search-box .search-input:focus {
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.2);
}
[data-theme="dark"] .search-tag:hover {
  background: rgba(64, 145, 108, 0.15);
}
[data-theme="dark"] .search-select {
  background: var(--card-bg);
}
[data-theme="dark"] .active-filter-chip {
  background: rgba(64, 145, 108, 0.15);
  border-color: rgba(64, 145, 108, 0.3);
}
[data-theme="dark"] .active-filter-chip.diff {
  background: rgba(198, 139, 44, 0.15);
  border-color: rgba(198, 139, 44, 0.3);
}

/* Responsive */
@media (max-width: 640px) {
  .search-sort-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  .search-difficulty-chips {
    flex-wrap: wrap;
  }
  .search-controls {
    padding: 0.75rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   SPRINT 196 — SPA ↔ SSG TOC & Floating Parity
   ══════════════════════════════════════════════════════════════ */

/* == Sidebar TOC Progress Bar == */
.sidebar-toc-progress { margin: 0.625rem 0 0.75rem; position: relative; height: 2px; border-radius: 9999px; overflow: hidden; }
.sidebar-toc-progress-track { position: absolute; inset: 0; border-radius: 9999px; background: linear-gradient(90deg, rgba(139,110,60,0.15), rgba(139,110,60,0.08), transparent); }
.sidebar-toc-progress-fill { position: absolute; inset: 0; left: 0; width: 0; border-radius: 9999px; background: linear-gradient(90deg, #8b6e3c, rgba(139,110,60,0.7)); transition: width 0.7s ease-out; }

/* == Sidebar TOC Status == */
.sidebar-toc-status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.625rem; color: var(--text-muted); margin-bottom: 0.5rem; font-family: var(--font-sans); }
.sidebar-toc-pct { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.125rem 0.375rem; border-radius: 9999px; font-size: 0.5625rem; font-weight: 500; background: rgba(139,110,60,0.1); color: #8b6e3c; }
.sidebar-toc-pct.complete { background: rgba(34,120,80,0.12); color: #22784f; }

/* == Sidebar TOC Item Enhancements == */
.sidebar-toc-item { position: relative; border-left: 2.5px solid transparent; transition: all 0.3s ease-out; }
.sidebar-toc-item.active { border-left-color: #8b6e3c; background: rgba(139,110,60,0.08); }
.sidebar-toc-item.active .sidebar-toc-link { color: var(--text-primary); font-weight: 600; }

/* Read indicator (checkmark) */
.sidebar-toc-indicator { display: none; }
.sidebar-toc-item.read .sidebar-toc-indicator,
.sidebar-toc-item.completed .sidebar-toc-indicator {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-right: 0.25rem;
  background: rgba(34,120,80,0.12); color: #22784f;
}
.sidebar-toc-item.read .sidebar-toc-indicator::after,
.sidebar-toc-item.completed .sidebar-toc-indicator::after {
  content: "✓"; font-size: 8px; font-weight: 700;
}
/* Active pulsing dot */
.sidebar-toc-item.active .sidebar-toc-indicator {
  display: inline-flex; background: rgba(139,110,60,0.2);
}
.sidebar-toc-item.active .sidebar-toc-indicator::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8b6e3c; animation: tocPulse 2s ease-in-out infinite;
}
@keyframes tocPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* == Sidebar TOC Footer == */
.sidebar-toc-footer { margin-top: 0.75rem; padding-top: 0.625rem; border-top: 1px solid rgba(0,0,0,0.06); font-size: 0.6875rem; color: var(--text-muted); font-family: var(--font-sans); }

/* == Sidebar TOC Scrollable List == */
.sidebar-toc-list { max-height: 60vh; overflow-y: auto; scrollbar-width: thin; }

/* == Reading Progress Pill (matches SPA) == */
.reading-progress-pill {
  position: fixed; top: 66px; right: 12px; z-index: 60;
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.625rem 0.25rem 0.5rem;
  border-radius: 9999px; border: 1px solid var(--border-color);
  background: var(--card-bg); backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  font-family: var(--font-sans);
  transition: opacity 0.3s, transform 0.3s, background 0.3s, border-color 0.3s;
  pointer-events: auto;
}
.reading-progress-pill.complete {
  background: rgba(34,120,80,0.06); border-color: rgba(34,120,80,0.4);
}
.reading-pill-icon { display: flex; align-items: center; color: #8b6e3c; flex-shrink: 0; }
.reading-progress-pill.complete .reading-pill-icon { color: var(--accent-green); }
.reading-pill-label { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.02em; color: var(--text-primary); white-space: nowrap; }
.reading-pill-badge {
  font-size: 0.625rem; font-weight: 700; padding: 0.125rem 0.375rem;
  border-radius: 9999px; font-variant-numeric: tabular-nums;
  background: rgba(139,110,60,0.12); color: #8b6e3c;
}
.reading-pill-badge.complete { background: rgba(139,110,60,0.25); color: #c4a265; }
@media (min-width: 640px) {
  .reading-progress-pill { top: 74px; right: 16px; gap: 0.5rem; padding: 0.375rem 0.875rem 0.375rem 0.75rem; }
  .reading-pill-label { font-size: 0.75rem; }
  .reading-pill-badge { font-size: 0.6875rem; padding: 0.125rem 0.5rem; }
}

/* == TOC Open Button Enhanced (matches SPA) == */
.toc-open-btn {
  position: fixed; bottom: 80px; left: 16px; z-index: 50;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 0.875rem; border-radius: 9999px;
  background: rgba(30,30,25,0.95); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  color: #e8e0d0; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: var(--font-sans);
}
.toc-open-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.toc-open-btn:active { transform: scale(0.95); }
.toc-open-btn svg { width: 15px; height: 15px; color: #c4a265; }
.toc-open-label { font-size: 0.75rem; font-weight: 600; }
.toc-open-pct {
  display: none; align-items: center; justify-content: center;
  font-size: 0.625rem; font-weight: 500; padding: 0.125rem 0.375rem;
  border-radius: 9999px; background: rgba(139,110,60,0.2); color: #c4a265;
}
.toc-open-pct.complete {
  background: rgba(34,120,80,0.2); color: var(--accent-green);
}

/* == Back to Top Ring Glow == */
.back-to-top-ring {
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(139,110,60,0.3);
  opacity: 0; transition: opacity 0.2s;
  pointer-events: none;
}
.back-to-top:hover .back-to-top-ring { opacity: 1; }

/* == Dark Mode Overrides == */
.dark .sidebar-toc-progress-track { background: linear-gradient(90deg, rgba(196,162,101,0.2), rgba(196,162,101,0.1), transparent); }
.dark .sidebar-toc-progress-fill { background: linear-gradient(90deg, #c4a265, rgba(196,162,101,0.7)); }
.dark .sidebar-toc-pct { background: rgba(196,162,101,0.15); color: #c4a265; }
.dark .sidebar-toc-pct.complete { background: rgba(34,180,100,0.15); color: #34b464; }
.dark .sidebar-toc-item.active { border-left-color: #c4a265; background: rgba(196,162,101,0.1); }
.dark .sidebar-toc-item.read .sidebar-toc-indicator,
.dark .sidebar-toc-item.completed .sidebar-toc-indicator { background: rgba(34,180,100,0.15); color: #34b464; }
.dark .sidebar-toc-item.active .sidebar-toc-indicator { background: rgba(196,162,101,0.2); }
.dark .sidebar-toc-item.active .sidebar-toc-indicator::after { background: #c4a265; }
.dark .sidebar-toc-footer { border-top-color: rgba(255,255,255,0.06); }
.dark .reading-progress-pill { background: rgba(30,28,24,0.95); border-color: rgba(255,255,255,0.08); }
.dark .reading-progress-pill.complete { background: rgba(34,120,80,0.1); border-color: rgba(34,180,100,0.3); }
.dark .reading-pill-icon { color: #c4a265; }
.dark .reading-pill-label { color: #e8e0d0; }
.dark .reading-pill-badge { background: rgba(196,162,101,0.15); color: #c4a265; }
.dark .reading-pill-badge.complete { background: rgba(196,162,101,0.3); color: #e0c880; }
.dark .back-to-top-ring { box-shadow: 0 0 0 3px rgba(196,162,101,0.3); }


/* ══ Sprint 197 — SPA ↔ SSG Parity Fixes ══════════════════════════════════ */

/* ── Gold Rule Left (sidebar divider matching SPA) ──────────────────────── */
.gold-rule-left {
  height: 2px;
  background: linear-gradient(90deg, var(--gold), oklch(0.72 0.08 70 / 0.3) 60%, transparent);
  border-radius: 1px;
  margin: 0.25rem 0;
}
html.dark .gold-rule-left {
  background: linear-gradient(90deg, oklch(0.55 0.10 70 / 0.5), oklch(0.45 0.08 70 / 0.2) 60%, transparent);
}

/* ── Editorial Double Rule (under "Latest Articles" header) ─────────────── */
.editorial-double-rule {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 1.5rem;
}
.editorial-double-rule .rule-thick {
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--gold), oklch(0.72 0.08 70 / 0.3) 60%, transparent);
}
.editorial-double-rule .rule-thin {
  height: 1px;
  border-radius: 0.5px;
  background: linear-gradient(90deg, oklch(0.65 0.10 70 / 0.4), oklch(0.72 0.08 70 / 0.1) 50%, transparent);
}
html.dark .editorial-double-rule .rule-thick {
  background: linear-gradient(90deg, oklch(0.55 0.10 70 / 0.5), oklch(0.45 0.08 70 / 0.2) 60%, transparent);
}
html.dark .editorial-double-rule .rule-thin {
  background: linear-gradient(90deg, oklch(0.50 0.08 70 / 0.3), oklch(0.40 0.06 70 / 0.1) 50%, transparent);
}

/* ── Load Progress Area (replaces simple "Show all" button) ─────────────── */
.load-progress-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.load-progress-counter {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.load-progress-track {
  width: 100%;
  max-width: 16rem;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-muted);
  overflow: hidden;
}
.load-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), oklch(0.45 0.12 155), var(--forest));
  transition: width 0.5s ease-out;
}
html.dark .load-progress-track {
  background: oklch(0.25 0.01 70 / 0.5);
}
html.dark .load-progress-fill {
  background: linear-gradient(90deg, oklch(0.55 0.10 70), oklch(0.45 0.10 155), oklch(0.40 0.12 155));
}

/* ── Load More Button (enhanced) ────────────────────────────────────────── */
.load-more-btn {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s ease;
}
.load-more-btn:hover {
  border-color: var(--gold);
  background: oklch(0.65 0.12 70 / 0.06);
  color: var(--forest);
}
html.dark .load-more-btn {
  background: oklch(0.22 0.01 70);
  border-color: oklch(0.30 0.02 70);
  color: oklch(0.85 0.02 70);
}
html.dark .load-more-btn:hover {
  border-color: oklch(0.55 0.10 70);
  background: oklch(0.28 0.03 70);
}

/* ── All Loaded Indicator ───────────────────────────────────────────────── */
.all-loaded-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.all-loaded-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.all-loaded-check svg {
  color: var(--forest);
  width: 15px;
  height: 15px;
}

/* ── Mobile Sidebar Reorder ─────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .sidebar {
    display: flex;
    flex-direction: column;
  }
  /* Order: Categories (1), Newsletter (2), About (3), Trending (4), dividers hidden */
  .sidebar > .sidebar-section:nth-child(1) { order: 5; } /* About → 5th */
  .sidebar > .gold-rule-left:nth-child(2) { order: 6; display: none; }
  .sidebar > .sidebar-section:nth-child(3) { order: 1; } /* Categories → 1st */
  .sidebar > .gold-rule-left:nth-child(4) { order: 2; display: none; }
  .sidebar > .sidebar-section:nth-child(5) { order: 7; } /* Trending → 7th */
  .sidebar > .gold-rule-left:nth-child(6) { order: 8; display: none; }
  .sidebar > .sidebar-newsletter { order: 3; } /* Newsletter → 3rd */
}
