:root {
  --blue-primary: #1a4a6b;
  --blue-light: #e8f0f7;
  --blue-mid: #2e6a96;
  --accent-orange: #e8734a;
  --orange-light: #fdf0eb;
  --green-good: #2d6a4f;
  --green-light: #e8f5ee;
  --red-warn: #8b2e2e;
  --red-emergency: #c0392b;
  --red-light: #fdf0f0;
  --gray-callout: #f4f4f2;
  --gray-border: #c8c8c4;
  --bg-light: #faf9f7;
  --text-primary: #1a1a18;
  --text-secondary: #4a4a46;
  --text-light: #7a7a74;
}

/* ── Series nav ──────────────────────────────────────── */
.series-nav {
  background: white;
  border-bottom: 1px solid #e0ddd8;
  padding: 0;
  overflow-x: auto;
}
.series-nav ul {
  list-style: none;
  display: flex;
  min-width: max-content;
  padding: 0 2rem;
}
.series-nav li a {
  display: block;
  padding: 0.85rem 1.1rem;
  font-family: 'Source Serif 4', serif;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.series-nav li a:hover { color: var(--blue-primary); }
.series-nav li.active a {
  color: var(--blue-primary);
  border-bottom-color: var(--accent-orange);
  font-weight: 600;
}



.article-header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid #e0ddd8;
  margin-bottom: 2.5rem;
}

.series-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-orange);
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  line-height: 1.2;
  color: var(--blue-primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.byline {
  font-size: 0.85rem;
  color: var(--text-light);
  font-family: 'Source Serif 4', serif;
}
.byline strong { color: var(--text-secondary); }

/* ── Body content ────────────────────────────────────── */
.article-body { padding-bottom: 4rem; }

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  color: var(--blue-primary);
  margin: 2.5rem 0 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  color: var(--blue-primary);
  margin: 1.8rem 0 0.6rem;
  font-weight: 600;
}

p { margin-bottom: 1.1rem; }

a { color: var(--blue-mid); text-decoration: underline; }
a:hover { color: var(--blue-primary); }

/* ── Callouts ────────────────────────────────────────── */
.callout {
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0;
  font-size: 0.96rem;
  line-height: 1.65;
}

.callout-evidence {
  background: var(--blue-light);
  border-left: 4px solid var(--blue-primary);
}
.callout-evidence .callout-label {
  font-weight: 700;
  color: var(--blue-primary);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.callout-synthesis {
  background: var(--gray-callout);
  border-left: 4px solid var(--gray-border);
  font-style: italic;
}
.callout-synthesis .callout-label {
  font-weight: 700;
  font-style: normal;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.callout-warning {
  background: var(--orange-light);
  border-left: 4px solid var(--accent-orange);
}
.callout-warning .callout-label {
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.callout-emergency {
  background: var(--red-light);
  border: 2px solid var(--red-emergency);
  border-radius: 6px;
}
.callout-emergency .callout-label {
  font-weight: 700;
  color: var(--red-emergency);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.callout p:last-child { margin-bottom: 0; }

/* ── Badges ──────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Source Serif 4', serif;
  vertical-align: middle;
  margin-left: 0.3rem;
}
.badge-good { background: var(--green-light); color: var(--green-good); }
.badge-skip { background: var(--red-light); color: var(--red-warn); }
.badge-mixed { background: #fff8e8; color: #7a5a00; }
.badge-limited { background: #f0f0ef; color: #5a5a56; }

/* ── Organ system cards ──────────────────────────────── */
.organ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.organ-card {
  background: white;
  border: 1px solid #e0ddd8;
  border-top: 3px solid var(--blue-primary);
  border-radius: 4px;
  padding: 1rem 1.1rem;
}
.organ-card .organ-icon { font-size: 1.4rem; margin-bottom: 0.4rem; }
.organ-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--blue-primary);
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.organ-card p { font-size: 0.82rem; color: var(--text-secondary); margin: 0; line-height: 1.5; }

/* ── Series footer ───────────────────────────────────── */
.series-footer {
  border-top: 1px solid #e0ddd8;
  padding: 2.5rem 0 3rem;
  margin-top: 3rem;
}
.series-footer h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.series-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.series-link {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.series-link:hover { color: var(--blue-primary); }
.series-link.current { color: var(--blue-primary); font-weight: 600; pointer-events: none; }
.series-link .num {
  font-size: 0.75rem;
  color: var(--text-light);
  min-width: 1.5rem;
}

/* ── Citations ───────────────────────────────────────── */
.citations {
  background: white;
  border: 1px solid #e0ddd8;
  border-radius: 4px;
  padding: 1.5rem 1.6rem;
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.citations h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.citations ol { padding-left: 1.4rem; }
.citations li { margin-bottom: 0.5rem; }
/* Bottom card nav */
.series-links { margin-top: 56px; border-top: 2px solid var(--border-light); padding-top: 28px; }
.series-links h3 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.series-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.series-link-card { background: #fff; border: 1px solid var(--border-light); border-left: 3px solid var(--blue-primary); border-radius: 4px; padding: 14px 16px; text-decoration: none; color: inherit; font-size: 0.85rem; transition: box-shadow 0.15s; display: block; }
.series-link-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.series-link-card .link-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 4px; }
.series-link-card .link-title { color: var(--blue-primary); font-weight: 600; line-height: 1.3; }
.series-link-card.current-post { background: #eef4f9; border-left-color: var(--accent-orange); cursor: default; }
.series-link-card.current-post .link-label { color: var(--accent-orange); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  .organ-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Stat cards ── */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1.5rem 0; }
@media (max-width: 500px) { .stat-row { grid-template-columns: 1fr; } }
.stat-card { background: white; border: 1px solid #e0ddd8; border-radius: 8px; padding: 1rem; text-align: center; }
.stat-card .snum { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 700; color: var(--blue-primary); line-height: 1; margin-bottom: 0.3rem; }
.stat-card .slabel { font-size: 0.75rem; color: var(--text-light); line-height: 1.45; }
/* Comparison chart */
.comparison-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.88rem; }
.comparison-table th { padding: 0.7rem 1rem; text-align: center; font-family: 'Source Serif 4', serif; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.03em; }
.comparison-table th.row-header { text-align: left; background: var(--blue-primary); color: white; }
.comparison-table th.col-lifestyle { background: #2d5a3d; color: white; }
.comparison-table th.col-glp1 { background: var(--blue-mid); color: white; }
.comparison-table th.col-surgery { background: #5a3060; color: white; }
.comparison-table td { padding: 0.65rem 1rem; border-bottom: 1px solid #e0ddd8; vertical-align: top; text-align: center; }
.comparison-table td.row-label { text-align: left; font-weight: 600; color: var(--text-secondary); font-size: 0.85rem; background: #f8f7f5; }
.comparison-table tr:last-child td { border-bottom: none; }
/* Weight loss bar chart visual */
.bar-chart { margin: 1.5rem 0 2rem; }
.bar-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.8rem; }
.bar-label { font-size: 0.82rem; color: var(--text-secondary); min-width: 200px; font-weight: 600; }
.bar-track { flex: 1; background: #e8e6e2; border-radius: 3px; height: 22px; position: relative; }
.bar-fill { height: 100%; border-radius: 3px; display: flex; align-items: center; justify-content: flex-end; padding-right: 0.5rem; font-size: 0.75rem; font-weight: 700; color: white; min-width: 2rem; }
.bar-lifestyle { background: #2d5a3d; }
.bar-glp1-sema { background: var(--blue-mid); }
.bar-glp1-tirz { background: var(--blue-primary); }
.bar-surgery-sleeve { background: #7a4090; }
.bar-surgery-bypass { background: #5a3060; }
/* side-effect table */
.se-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.se-table th { background: var(--blue-primary); color: white; padding: 0.6rem 0.9rem; text-align: left; font-family: 'Source Serif 4', serif; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.03em; }
.se-table td { padding: 0.65rem 0.9rem; border-bottom: 1px solid #e0ddd8; vertical-align: top; }
.se-table tr:nth-child(even) td { background: #f5f4f2; }
.se-table .freq-common { color: var(--accent-orange); font-weight: 600; font-size: 0.82rem; }
.se-table .freq-uncommon { color: var(--text-light); font-size: 0.82rem; }
.se-table .freq-rare { color: var(--green-good); font-size: 0.82rem; }
/* decision timeline */
.timeline { position: relative; padding: 1rem 0 1rem 2rem; margin: 1.5rem 0; }
.timeline::before { content: ''; position: absolute; left: 0.4rem; top: 0; bottom: 0; width: 2px; background: var(--blue-primary); opacity: 0.2; }
.timeline-item { position: relative; margin-bottom: 1.2rem; padding-left: 1rem; }
.timeline-item::before { content: ''; position: absolute; left: -1.75rem; top: 0.55rem; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-primary); }
.timeline-item h4 { font-family: 'Playfair Display', serif; font-size: 0.95rem; color: var(--blue-primary); margin-bottom: 0.25rem; font-weight: 600; }
.timeline-item p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; line-height: 1.55; }
/* PCOS mechanism visual */
.pcos-cycle { background: white; border: 1px solid #e0ddd8; border-radius: 8px; padding: 1.4rem 1.5rem; margin: 1.5rem 0; }
.pcos-cycle h4 { font-family: 'Playfair Display', serif; color: var(--blue-primary); font-size: 0.95rem; margin-bottom: 1rem; font-weight: 600; }
.cycle-steps { display: flex; gap: 0; overflow-x: auto; }
.cycle-step .step-box { background: var(--blue-light); border-radius: 4px; padding: 0.5rem 0.4rem; margin-bottom: 0.3rem; font-size: 0.75rem; font-weight: 600; color: var(--blue-primary); }
.cycle-arrow { display: flex; align-items: center; color: var(--blue-primary); font-size: 1.2rem; padding-top: 0.3rem; }
/* myth cards */
.myth-card { background: white; border: 1px solid #e0ddd8; border-radius: 6px; margin: 1.5rem 0; overflow: hidden; }
.myth-header { background: var(--red-light); border-bottom: 1px solid #e8c8c8; padding: 0.8rem 1.2rem; }
.myth-header .myth-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red-warn); font-weight: 700; margin-bottom: 0.2rem; }
.myth-header h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--red-warn); margin: 0; font-weight: 600; }
.myth-body { padding: 1rem 1.2rem; }
.myth-body .verdict-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-good); font-weight: 700; margin-bottom: 0.4rem; }
/* compounding checklist */
.checklist { background: white; border: 1px solid #e0ddd8; border-radius: 6px; padding: 1.3rem 1.5rem; margin: 1.5rem 0; }
.checklist h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--blue-primary); margin-bottom: 0.9rem; font-weight: 600; }
.check-item { display: flex; gap: 0.8rem; margin-bottom: 0.65rem; font-size: 0.9rem; line-height: 1.55; }
.check-icon { color: var(--green-good); font-weight: 700; flex-shrink: 0; margin-top: 0.1rem; }
.check-icon.warn { color: var(--red-warn); }
/* recommendation box */
.recommendation-box { background: var(--green-light); border: 1px solid var(--green-good); border-radius: 6px; padding: 1.3rem 1.5rem; margin: 1.8rem 0; }
.recommendation-box .rec-label { font-weight: 700; color: var(--green-good); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6rem; }
.recommendation-box ul { padding-left: 1.3rem; }
.recommendation-box li { margin-bottom: 0.4rem; font-size: 0.95rem; line-height: 1.6; }
/* benefit columns */
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.benefit-card { background: white; border: 1px solid #e0ddd8; border-radius: 4px; padding: 1rem 1.1rem; }
.benefit-card h4 { font-family: 'Playfair Display', serif; font-size: 0.95rem; color: var(--blue-primary); margin-bottom: 0.4rem; font-weight: 600; }
.benefit-card p { font-size: 0.83rem; color: var(--text-secondary); margin: 0; line-height: 1.5; }
.benefit-card .icon { font-size: 1.3rem; margin-bottom: 0.35rem; }
