/* ═══════════════════════════════════════════════════
   Canada Health Journal — Swiss Medical Editorial
   ═══════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* Palette */
  --emerald:       #0b2d1c;
  --emerald-mid:   #174228;
  --emerald-light: #2a6444;
  --gold:          #b8903a;
  --gold-light:    #d4aa5c;
  --gold-pale:     #f5edd9;
  --cream:         #faf8f3;
  --cream-dark:    #f2ede2;
  --cream-border:  #e2dbd0;
  --text:          #1c1a15;
  --text-mid:      #3d3830;
  --text-muted:    #7a7265;
  --white:         #ffffff;
  --red-alert:     #8b1e2f;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-ui:      'DM Sans', -apple-system, sans-serif;

  /* Scale */
  --text-xs:   .75rem;
  --text-sm:   .875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  clamp(1.75rem, 3vw, 2.25rem);
  --text-4xl:  clamp(2.25rem, 4vw, 3.25rem);
  --text-5xl:  clamp(2.75rem, 5vw, 4.5rem);
  --text-hero: clamp(3rem, 6vw, 5.5rem);

  /* Spacing */
  --s1: .25rem; --s2: .5rem;  --s3: .75rem; --s4: 1rem;
  --s5: 1.25rem; --s6: 1.5rem; --s8: 2rem;  --s10: 2.5rem;
  --s12: 3rem;  --s16: 4rem;  --s20: 5rem;  --s24: 6rem;

  /* Layout */
  --max-w:       1140px;
  --max-article: 720px;
  --header-h:    72px;
  --radius:      3px;
  --radius-md:   6px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(11,45,28,.08);
  --shadow-md: 0 4px 16px rgba(11,45,28,.12);
  --shadow-lg: 0 12px 40px rgba(11,45,28,.16);

  --transition: 200ms cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s6);
}
@media (max-width: 640px) { .container { padding: 0 var(--s4); } }

/* ── Utility ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */

/* Top strip */
.site-topbar {
  background: var(--emerald);
  color: rgba(255,255,255,.7);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--emerald-mid);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s6);
}
.topbar-left { display: flex; gap: var(--s6); align-items: center; }
.topbar-badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  color: var(--gold-light);
}
.topbar-badge::before { content: "✦"; font-size: 8px; }
.topbar-right { display: none; }
@media (min-width: 768px) { .topbar-right { display: block; } }

/* Main header */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--cream-border);
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s6);
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s6);
}

/* Logo */
.site-logo { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: .01em;
  line-height: 1.05;
  white-space: nowrap;
}
.logo-sub {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: none;
}
@media (min-width: 640px) { .logo-sub { display: block; } }

/* Nav */
.main-nav { display: flex; justify-content: center; }
.nav-list { display: flex; gap: var(--s1); }
.nav-list a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-mid);
  padding: var(--s2) var(--s3);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-list a:hover { color: var(--emerald); background: var(--cream); }
.nav-list a.active { color: var(--emerald); font-weight: 600; }

/* Header CTA */
.header-cta {
  display: flex; align-items: center; gap: var(--s3);
}
.btn-search {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: color var(--transition), background var(--transition);
}
.btn-search:hover { color: var(--emerald); background: var(--cream); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 36px; height: 36px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .main-nav {
    display: none; position: absolute; top: var(--header-h);
    left: 0; right: 0; z-index: 300;
    background: var(--white);
    border-bottom: 2px solid var(--emerald);
    padding: var(--s4);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: var(--s2); }
  .nav-list a { padding: var(--s3) var(--s4); font-size: var(--text-base); }
  .nav-toggle { display: flex; }
  .header-cta .btn-search { display: none; }
}

/* ═══════════════════════════════════════
   HOMEPAGE
   ═══════════════════════════════════════ */

/* Section label */
.section-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: var(--s3);
  margin-bottom: var(--s6);
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cream-border);
  max-width: 60px;
}

/* Hero */
.hero { padding: var(--s12) 0; background: var(--white); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 3fr 2fr;
    gap: var(--s8);
    align-items: stretch;
  }
}

/* Hero main card */
.hero-main {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--emerald);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-lg);
}
.hero-main-img {
  position: absolute; inset: 0;
}
.hero-main-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.hero-main:hover .hero-main-img img { transform: scale(1.03); }
.hero-main-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,45,28,.95) 0%, rgba(11,45,28,.5) 50%, transparent 100%);
}
.hero-main-body {
  position: relative; z-index: 1;
  padding: var(--s8);
  color: var(--white);
}
.hero-cat {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--s4);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--s4);
  color: var(--white);
}
.hero-excerpt {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgba(255,255,255,.75);
  margin-bottom: var(--s5);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta {
  display: flex; align-items: center; gap: var(--s4);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
}
.hero-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.btn-hero-read {
  display: inline-flex; align-items: center; gap: var(--s2);
  margin-top: var(--s5);
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--s3) var(--s5);
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  letter-spacing: .02em;
}
.btn-hero-read:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-hero-read::after { content: "→"; }

/* Hero sidebar */
.hero-sidebar { display: flex; flex-direction: column; gap: var(--s4); }
.hero-side-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--s4);
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: var(--s4);
  transition: box-shadow var(--transition), border-color var(--transition);
  align-items: start;
}
.hero-side-card:hover { box-shadow: var(--shadow-md); border-color: var(--gold-pale); }
.hero-side-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.hero-side-img img { width: 100%; height: 100%; object-fit: cover; }
.side-card-cat {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--emerald-light);
  margin-bottom: var(--s2);
}
.side-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: var(--s2);
  transition: color var(--transition);
}
.hero-side-card:hover .side-card-title { color: var(--emerald); }
.side-card-date {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Latest articles */
.latest-section {
  padding: var(--s16) 0;
  background: var(--cream);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s6);
}

/* Article card */
.article-card {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream-dark);
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.article-card:hover .card-img img { transform: scale(1.05); }

.card-body { padding: var(--s5); flex: 1; display: flex; flex-direction: column; }
.card-cat {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--emerald-light);
  margin-bottom: var(--s3);
  transition: color var(--transition);
}
.card-cat:hover { color: var(--gold); }
.card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: var(--s3);
  flex: 1;
}
.card-title a { transition: color var(--transition); }
.card-title a:hover { color: var(--emerald); }
.card-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--s4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding-top: var(--s4);
  border-top: 1px solid var(--cream-border);
  margin-top: auto;
}
.card-author { font-weight: 500; color: var(--text-mid); }
.card-read-link {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--emerald);
  letter-spacing: .04em;
  transition: color var(--transition);
  display: flex; align-items: center; gap: 4px;
}
.card-read-link::after { content: "→"; }
.card-read-link:hover { color: var(--gold); }

/* View all */
.view-all-wrap { text-align: center; margin-top: var(--s10); }
.btn-outline {
  display: inline-flex; align-items: center; gap: var(--s2);
  border: 2px solid var(--emerald);
  color: var(--emerald);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--s3) var(--s8);
  border-radius: var(--radius);
  letter-spacing: .04em;
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover { background: var(--emerald); color: var(--white); }

/* Categories section */
.categories-section {
  padding: var(--s16) 0;
  background: var(--emerald);
  position: relative;
  overflow: hidden;
}
.categories-section::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,.015) 40px,
    rgba(255,255,255,.015) 80px
  );
}
.categories-section .section-label { color: var(--gold-light); }
.categories-section .section-label::after { background: rgba(255,255,255,.15); }
.cat-section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--s10);
  line-height: 1.1;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--s4);
}
.cat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: var(--s5) var(--s4);
  text-align: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
}
.cat-card:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.cat-icon { font-size: 1.75rem; line-height: 1; }
.cat-name {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,.85);
  line-height: 1.3;
}
.cat-count {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(255,255,255,.4);
}

/* Trust strip */
.trust-strip {
  background: var(--gold-pale);
  border-top: 1px solid #e8d8b0;
  border-bottom: 1px solid #e8d8b0;
  padding: var(--s8) 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s6);
}
.trust-item {
  display: flex; align-items: flex-start; gap: var(--s4);
}
.trust-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--emerald);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.trust-item-title {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 2px;
}
.trust-item-desc {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   LIST PAGE (Category)
   ═══════════════════════════════════════ */
.list-page { padding: var(--s16) 0; }

.list-hero {
  background: var(--emerald);
  padding: var(--s12) 0;
  margin-bottom: var(--s12);
  position: relative;
  overflow: hidden;
}
.list-hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to left, rgba(255,255,255,.04), transparent);
}
.list-hero-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--s3);
}
.list-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--s4);
}
.list-hero-desc {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: rgba(255,255,255,.65);
  max-width: 560px;
  line-height: 1.7;
}

.breadcrumb {
  margin-bottom: var(--s10);
}
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: var(--s2);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: var(--s2); color: var(--cream-border); }
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--emerald); }
.breadcrumb [aria-current] { color: var(--text-mid); }

.no-posts {
  text-align: center; padding: var(--s24) 0;
  font-family: var(--font-body);
  font-size: var(--text-xl);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   ARTICLE SINGLE
   ═══════════════════════════════════════ */

/* Reading progress */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cream-border);
  z-index: 500;
}
.reading-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--emerald), var(--gold));
  width: 0%;
  transition: width .1s linear;
}

/* Article layout */
.article-single { padding: var(--s16) 0 var(--s24); }
.article-container {
  max-width: var(--max-article);
  margin: 0 auto;
}

/* Article header */
.article-header { margin-bottom: var(--s10); }

.article-cat-link {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--emerald-light);
  margin-bottom: var(--s4);
  transition: color var(--transition);
}
.article-cat-link:hover { color: var(--gold); }
.article-cat-link::before { content: "—"; color: var(--gold); margin-right: var(--s1); }

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: var(--s6);
  letter-spacing: -.01em;
}

.article-lead {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: var(--s6);
  border-left: 3px solid var(--gold);
  padding-left: var(--s5);
}

/* Byline card */
.byline-card {
  display: flex;
  align-items: center;
  gap: var(--s4);
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: var(--s4) var(--s5);
  margin-bottom: var(--s8);
}
.byline-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  overflow: hidden;
}
.byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline-info { flex: 1; }
.byline-name {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}
.byline-cred {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}
.byline-dates {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: right;
  line-height: 1.6;
}
.review-stamp {
  display: inline-flex; align-items: center; gap: 4px;
  background: #e6f4ea;
  color: #1a6b30;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 4px;
}
.review-stamp::before { content: "✓"; }

/* Hero image */
.article-hero-img {
  margin-bottom: var(--s8);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--cream-dark);
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Article body */
.article-body {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.85;
  color: var(--text);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--emerald);
  margin: var(--s12) 0 var(--s5);
  padding-top: var(--s8);
  border-top: 1px solid var(--cream-border);
  line-height: 1.2;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text);
  margin: var(--s8) 0 var(--s4);
  line-height: 1.25;
}
.article-body h4 {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin: var(--s6) 0 var(--s3);
}
.article-body p { margin-bottom: var(--s5); }
.article-body strong { font-weight: 600; color: var(--text); }
.article-body em { font-style: italic; }
.article-body a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; transition: color var(--transition); }
.article-body a:hover { color: var(--gold); }
.article-body ul, .article-body ol { margin: var(--s5) 0 var(--s5) var(--s6); }
.article-body ul { list-style: none; }
.article-body ul li { position: relative; padding-left: var(--s5); margin-bottom: var(--s3); }
.article-body ul li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .6em; top: .35em; }
.article-body ol { list-style: decimal; }
.article-body ol li { margin-bottom: var(--s3); padding-left: var(--s2); }
.article-body blockquote {
  margin: var(--s8) 0;
  padding: var(--s5) var(--s6);
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--emerald);
  line-height: 1.5;
}
.article-body table {
  width: 100%; border-collapse: collapse;
  margin: var(--s8) 0;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
}
.article-body th {
  background: var(--emerald);
  color: var(--white);
  padding: var(--s3) var(--s4);
  text-align: left;
  font-weight: 600;
}
.article-body td {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--cream-border);
}
.article-body tr:nth-child(even) td { background: var(--cream); }
.article-body img {
  border-radius: var(--radius-md);
  margin: var(--s6) 0;
}

/* ── Subcategory chips (pillar pages) ── */
.subcat-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s10);
  padding-bottom: var(--s6);
  border-bottom: 1px solid var(--cream-border);
}
.subcat-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: var(--s2);
}
.subcat-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--emerald);
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: 20px;
  padding: var(--s2) var(--s4);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.subcat-chip span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: var(--cream);
  border-radius: 10px;
  padding: 1px var(--s2);
}
.subcat-chip:hover {
  border-color: var(--emerald);
  background: var(--emerald);
  color: #fff;
  text-decoration: none;
}
.subcat-chip:hover span { background: rgba(255,255,255,.2); color: #fff; }

/* ── Table of Contents ── */
.toc {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-md);
  margin: var(--s8) 0;
  overflow: hidden;
  font-family: var(--font-ui);
}
.toc-header {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  background: var(--white);
  border-bottom: 1px solid var(--cream-border);
  cursor: pointer;
}
.toc-icon { color: var(--emerald); display: flex; }
.toc-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: .04em;
  text-transform: uppercase;
  flex: 1;
}
.toc-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.toc-toggle:hover { background: var(--cream-dark); color: var(--emerald); }
.toc-toggle.is-collapsed { transform: rotate(180deg); }

.toc-nav {
  padding: var(--s4) var(--s5);
  transition: max-height .3s ease, opacity .3s ease;
  max-height: 600px;
  overflow: hidden;
}
.toc-nav.is-hidden { max-height: 0; opacity: 0; padding: 0 var(--s5); }

/* Hugo generates <ul><li><a> structure */
.toc-nav ul { list-style: none; }
.toc-nav > ul { margin: 0; }
.toc-nav > ul > li { margin-bottom: var(--s2); }
.toc-nav > ul > li > a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 3px 0;
  transition: color var(--transition);
  line-height: 1.4;
}
.toc-nav > ul > li > a::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.toc-nav > ul > li > a:hover { color: var(--emerald); }

/* H3 sub-items */
.toc-nav ul ul { margin: var(--s1) 0 var(--s2) var(--s5); }
.toc-nav ul ul li { margin-bottom: var(--s1); }
.toc-nav ul ul a {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  padding: 2px 0;
  transition: color var(--transition);
  display: flex; align-items: center; gap: var(--s2);
}
.toc-nav ul ul a::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  flex-shrink: 0;
}
.toc-nav ul ul a:hover { color: var(--emerald); }

/* Medical disclaimer */
.medical-disclaimer {
  background: var(--gold-pale);
  border: 1px solid #dcc97a;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: var(--s5) var(--s6);
  margin: var(--s10) 0;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: #5a4a10;
  line-height: 1.6;
}
.medical-disclaimer strong { color: #3d3000; }

/* Article tags */
.article-tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6); }
.tag-pill {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--s2) var(--s3);
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: 20px;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}
.tag-pill:hover { border-color: var(--emerald); color: var(--emerald); }

/* Related */
.related-section {
  padding: var(--s16) 0;
  background: var(--cream-dark);
  border-top: 1px solid var(--cream-border);
}
.related-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--s8);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s5);
}

/* ═══════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s4); margin-top: var(--s12);
  padding: var(--s8) 0;
  border-top: 1px solid var(--cream-border);
}
.pag-btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--s3) var(--s5);
  border: 2px solid var(--cream-border);
  border-radius: var(--radius);
  color: var(--text-mid);
  letter-spacing: .02em;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.pag-btn:hover { border-color: var(--emerald); color: var(--emerald); background: var(--cream); }
.pag-info { font-family: var(--font-ui); font-size: var(--text-sm); color: var(--text-muted); }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
  background: var(--emerald);
  color: rgba(255,255,255,.65);
  margin-top: 0;
}
.footer-top {
  padding: var(--s16) 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: var(--s12);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--s8); }
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
  margin-bottom: var(--s4);
  display: block;
}
.footer-brand-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: var(--s6);
}
.footer-badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  padding: var(--s2) var(--s4);
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gold-light);
  font-weight: 500;
}
.footer-col-title {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--s5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--s3); }
.footer-col a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding: var(--s5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s4);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }
.footer-legal { display: flex; gap: var(--s4); }
