/* ============================================================
   patient-guide.org — Main Stylesheet
   Design System v3 | WCAG 2.1 AA compliant
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Ocean palette */
  --ocean-deep:    #0D3349;
  --ocean-mid:     #1A5C80;
  --ocean-light:   #2E8CB0;
  --ocean-pale:    #E8F4F9;

  /* Sage — action */
  --sage:          #3A6B5E;
  --sage-light:    #EAF3F0;

  /* Amber — insider accent */
  --amber:         #E07A2F;
  --amber-text:    #8A4A08;   /* 5.9:1 on amber-light */
  --amber-light:   #FDF0E6;

  /* Coral — warning */
  --coral:         #B84020;
  --coral-light:   #FAEAE4;

  /* Neutrals */
  --ivory:         #FAFAF7;
  --warm-white:    #FFFFFF;
  --ink:           #1E1C18;
  --stone-100:     #F5F4F1;
  --stone-200:     #E8E6E1;
  --stone-300:     #C8C4BC;
  --stone-600:     #595550;   /* 6.4:1 on white */
  --stone-800:     #3A3730;   /* 10.4:1 on ivory */

  /* Typography */
  --font-display: 'Lora', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.375rem;
  --text-hero: 3.25rem;

  /* 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;

  /* Radii */
  --r-sm:4px; --r-md:8px; --r-lg:16px; --r-xl:24px; --r-pill:9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(13,51,73,0.08), 0 1px 2px rgba(13,51,73,0.05);
  --shadow-md: 0 4px 12px rgba(13,51,73,0.10), 0 2px 6px rgba(13,51,73,0.06);
  --shadow-lg: 0 12px 32px rgba(13,51,73,0.12), 0 4px 16px rgba(13,51,73,0.06);
  --shadow-xl: 0 24px 48px rgba(13,51,73,0.14);

  --nav-h: 68px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--ivory); color: var(--stone-800); line-height: 1.6; }
img { max-width: 100%; display: block; }

/* ── WCAG: Skip link ────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -200px; left: var(--s4); z-index: 99999;
  background: var(--ocean-deep); color: white;
  padding: var(--s3) var(--s6); border-radius: var(--r-md);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  text-decoration: none; transition: top 200ms ease; box-shadow: var(--shadow-lg);
}
.skip-link:focus { top: 8px; }

/* ── WCAG: Focus ring ───────────────────────────────────────── */
:focus-visible { outline: 3px solid var(--ocean-light); outline-offset: 3px; border-radius: var(--r-sm); }
:focus:not(:focus-visible) { outline: none; }

/* ── WCAG: Screen reader only ───────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── WCAG: Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   SITE NAVIGATION
   Edit in includes/nav.php — updates everywhere
   ============================================================ */
.site-nav {
  height: var(--nav-h); background: var(--warm-white);
  border-bottom: 1px solid var(--stone-200);
  display: flex; align-items: center; padding: 0 var(--s8); gap: var(--s6);
  position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm);
}
.logo { display: flex; align-items: center; gap: var(--s3); text-decoration: none; margin-right: auto; flex-shrink: 0; }
.logo-mark { width: 36px; height: 36px; background: var(--ocean-deep); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark svg { width: 18px; height: 18px; fill: #8ECFE8; }
.logo-text { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ocean-deep); line-height: 1; }
.logo-text span { font-size: 11px; font-family: var(--font-body); font-weight: 400; color: var(--stone-600); display: block; letter-spacing: .03em; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: var(--s1); list-style: none; }
.nav-links a { font-size: var(--text-sm); font-weight: 500; color: var(--stone-600); text-decoration: none; padding: var(--s2) var(--s3); border-radius: var(--r-md); transition: all 150ms ease; white-space: nowrap; }
.nav-links a:hover { color: var(--ocean-deep); background: var(--ocean-pale); }
.nav-links a.current { color: var(--ocean-mid); background: var(--ocean-pale); font-weight: 600; }
.nav-cta { font-size: var(--text-sm); font-weight: 600; color: white; background: var(--ocean-mid); text-decoration: none; padding: var(--s2) var(--s5); border-radius: var(--r-md); transition: all 150ms ease; white-space: nowrap; border: none; cursor: pointer; font-family: var(--font-body); }
.nav-cta:hover { background: var(--ocean-deep); }
.nav-search { width: 36px; height: 36px; background: var(--stone-100); border: 1px solid var(--stone-200); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--stone-600); transition: all 150ms ease; }
.nav-search:hover { background: var(--ocean-pale); color: var(--ocean-mid); border-color: var(--ocean-light); }

/* ============================================================
   FOOTER
   Edit in includes/footer.php — updates everywhere
   ============================================================ */
.site-footer { background: var(--ocean-deep); color: var(--ocean-pale); padding: var(--s16) var(--s8) var(--s8); margin-top: var(--s24); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s12); padding-bottom: var(--s10); border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand p { font-size: var(--text-sm); color: rgba(232,244,249,0.78); margin-top: var(--s4); max-width: 260px; line-height: 1.7; }
.footer-col-head { font-size: var(--text-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(232,244,249,0.55); margin-bottom: var(--s4); font-family: var(--font-body); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--s2); }
.footer-col a { font-size: var(--text-sm); color: rgba(232,244,249,0.85); text-decoration: none; transition: color 150ms ease; }
.footer-col a:hover { color: white; text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-xs); color: rgba(232,244,249,0.55); margin-top: var(--s8); }
.footer-disclaimer { font-size: 12px; color: rgba(232,244,249,0.65); line-height: 1.7; margin-top: var(--s6); padding: var(--s4); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-md); max-width: 600px; }
.footer-logo-text { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: white; line-height: 1; }
.footer-logo-text span { color: rgba(232,244,249,0.5); }

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--font-body); font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: all 150ms ease; border-radius: var(--r-md); }
.btn-ocean  { background: var(--ocean-mid);  color: white; padding: var(--s3) var(--s6); font-size: var(--text-sm); }
.btn-ocean:hover  { background: var(--ocean-deep); }
.btn-amber  { background: var(--amber);       color: white; padding: var(--s3) var(--s6); font-size: var(--text-sm); }
.btn-amber:hover  { background: #C06020; }
.btn-outline{ background: transparent; color: var(--ocean-mid); padding: var(--s3) var(--s6); font-size: var(--text-sm); border: 2px solid var(--ocean-mid); }
.btn-outline:hover{ background: var(--ocean-pale); color: var(--ocean-deep); }
.btn-ghost  { background: rgba(255,255,255,0.12); color: white; padding: var(--s3) var(--s6); font-size: var(--text-sm); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-ghost:hover  { background: rgba(255,255,255,0.22); }
.btn-white  { background: white; color: var(--ocean-deep); padding: var(--s3) var(--s6); font-size: var(--text-sm); font-weight: 700; text-decoration: none; border: none; cursor: pointer; font-family: var(--font-body); transition: all 150ms ease; border-radius: var(--r-md); }
.btn-white:hover { background: var(--ivory); }

/* Guide tags */
.guide-tag { display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--r-pill); margin-bottom: var(--s3); }
.tag-amber  { background: var(--amber-light); color: var(--amber-text); }
.tag-ocean  { background: var(--ocean-pale);  color: var(--ocean-mid); }
.tag-coral  { background: var(--coral-light); color: var(--coral); }
.tag-sage   { background: var(--sage-light);  color: var(--sage); }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: var(--s2); font-size: var(--text-xs); color: var(--stone-600); margin-bottom: var(--s6); flex-wrap: wrap; }
.breadcrumb a { color: var(--ocean-mid); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Section headers */
.section-eyebrow { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--amber-text); margin-bottom: var(--s2); }
.section-title { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 600; color: var(--ocean-deep); letter-spacing: -.01em; line-height: 1.15; }
.section-sub { font-size: var(--text-base); color: var(--stone-600); margin-top: var(--s2); max-width: 540px; line-height: 1.6; }

/* Guide cards — used on homepage + hub pages */
.guide-card-meta { display: flex; align-items: center; gap: var(--s3); font-size: 11px; color: var(--stone-600); font-family: var(--font-mono); margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--stone-200); }
.guide-card-hero { background: var(--warm-white); border: 1px solid var(--stone-200); border-radius: var(--r-xl); overflow: hidden; text-decoration: none; transition: all 220ms ease; display: flex; flex-direction: column; }
.guide-card-hero:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.guide-card-hero .banner { height: 190px; background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.guide-card-hero .banner::before { content:''; position:absolute; inset:0; background: repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(255,255,255,0.015) 18px, rgba(255,255,255,0.015) 19px); }
.banner-label { font-family: var(--font-display); font-size: var(--text-3xl); font-style: italic; color: rgba(255,255,255,0.16); font-weight: 600; text-align: center; line-height: 1.1; padding: 0 var(--s6); position: relative; z-index: 1; }
.guide-card-hero .body { padding: var(--s6); flex: 1; }
.guide-card-hero h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--ocean-deep); line-height: 1.25; margin-bottom: var(--s3); }
.guide-card-hero p { font-size: var(--text-sm); color: var(--stone-600); line-height: 1.6; }
.guide-card-sm { background: var(--warm-white); border: 1px solid var(--stone-200); border-radius: var(--r-xl); padding: var(--s5); text-decoration: none; transition: all 220ms ease; display: flex; flex-direction: column; }
.guide-card-sm:hover { border-color: var(--ocean-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.guide-card-sm h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--ocean-deep); line-height: 1.25; margin-bottom: var(--s2); flex: 1; }
.guide-card-sm p { font-size: var(--text-sm); color: var(--stone-600); line-height: 1.55; margin-bottom: var(--s4); }

/* ============================================================
   HOMEPAGE
   ============================================================ */
.hero { background: var(--ocean-deep); padding: var(--s20) var(--s8) var(--s24); position: relative; overflow: hidden; }
.hero::before { content:''; position:absolute; inset:0; pointer-events:none; background: radial-gradient(ellipse 55% 70% at 95% 10%, rgba(46,140,176,0.2) 0%, transparent 55%), radial-gradient(ellipse 40% 50% at 5% 90%, rgba(26,92,128,0.18) 0%, transparent 50%); }
.hero::after { content:''; position:absolute; inset:0; pointer-events:none; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 48px 48px; }
.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 400px; gap: var(--s16); align-items: center; }
.eyebrow-tag { display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #8ECFE8; background: rgba(46,140,176,0.16); border: 1px solid rgba(142,207,232,0.28); padding: var(--s1) var(--s3); border-radius: var(--r-pill); margin-bottom: var(--s5); }
.eyebrow-tag::before { content:''; width:5px; height:5px; border-radius:50%; background:#8ECFE8; }
.hero h1 { font-family: var(--font-display); font-size: var(--text-hero); font-weight: 700; color: white; line-height: 1.1; letter-spacing: -.02em; margin-bottom: var(--s6); }
.hero h1 em { font-style: italic; color: #8ECFE8; font-weight: 400; }
.hero p.hero-sub { font-size: var(--text-lg); color: #A8D4E4; max-width: 480px; margin-bottom: var(--s8); line-height: 1.7; }
.hero-btns { display: flex; gap: var(--s3); flex-wrap: wrap; }

.situation-widget { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-xl); padding: var(--s6); }
.situation-widget-heading { font-size: var(--text-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #A8D4E4; margin-bottom: var(--s4); font-family: var(--font-mono); }
.situation-cards { display: flex; flex-direction: column; gap: var(--s2); }
.situation-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-lg); padding: var(--s4); text-decoration: none; display: flex; align-items: center; gap: var(--s3); transition: all 200ms ease; }
.situation-card:hover { background: rgba(255,255,255,0.14); border-color: rgba(142,207,232,0.4); transform: translateX(3px); }
.sit-icon { width: 38px; height: 38px; border-radius: var(--r-md); background: rgba(46,140,176,0.18); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.sit-text strong { font-size: var(--text-sm); font-weight: 600; color: white; display: block; margin-bottom: 1px; }
.sit-text span { font-size: var(--text-xs); color: #A8D4E4; }
.sit-arrow { color: #A8D4E4; font-size: var(--text-sm); flex-shrink: 0; }

.stat-band { background: var(--ocean-mid); border-bottom: 1px solid rgba(255,255,255,0.1); padding: var(--s4) var(--s8); }
.stat-band-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: var(--s8); flex-wrap: wrap; }
.stat-pill { display: flex; align-items: center; gap: var(--s3); font-size: var(--text-sm); color: #C8E4F0; }
.stat-pill strong { color: white; font-weight: 700; }
.stat-divider { width: 1px; height: 18px; background: rgba(255,255,255,0.2); flex-shrink: 0; }

.page-body { max-width: 1100px; margin: 0 auto; padding: var(--s16) var(--s8); }
.section-head { margin-bottom: var(--s8); }

.situation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-bottom: var(--s16); }
.sit-browse-card { background: var(--warm-white); border: 1px solid var(--stone-200); border-radius: var(--r-xl); padding: var(--s6); text-decoration: none; transition: all 220ms ease; position: relative; overflow: hidden; }
.sit-browse-card::after { content:'→'; position:absolute; bottom:var(--s5); right:var(--s5); font-size:var(--text-lg); color:var(--stone-200); transition:all 200ms ease; }
.sit-browse-card:hover { border-color: var(--ocean-light); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.sit-browse-card:hover::after { color: var(--amber); transform: translate(2px,0); }
.sit-browse-icon { width: 48px; height: 48px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: var(--s4); }
.sit-browse-card h2 { font-size: var(--text-lg); font-weight: 600; color: var(--ocean-deep); margin-bottom: var(--s2); line-height: 1.25; font-family: var(--font-display); }
.sit-browse-card p { font-size: var(--text-sm); color: var(--stone-600); line-height: 1.55; }
.guide-count { font-family: var(--font-mono); font-size: 11px; color: var(--stone-600); margin-top: var(--s4); display: flex; align-items: center; gap: var(--s2); }

.topic-strip { margin-bottom: var(--s16); }
.strip-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--s6); }
.see-all { font-size: var(--text-sm); font-weight: 600; color: var(--ocean-mid); text-decoration: none; }
.see-all:hover { text-decoration: underline; }
.topic-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s3); }
.topic-pill-card { background: var(--warm-white); border: 1px solid var(--stone-200); border-radius: var(--r-lg); padding: var(--s4) var(--s5); text-decoration: none; transition: all 150ms ease; display: flex; align-items: center; gap: var(--s3); }
.topic-pill-card:hover { border-color: var(--ocean-light); background: var(--ocean-pale); }
.topic-pill-card .ico { font-size: 18px; }
.topic-pill-card .label { font-size: var(--text-sm); font-weight: 600; color: var(--ocean-deep); }
.topic-pill-card .ct { font-size: 11px; font-family: var(--font-mono); color: var(--stone-600); margin-left: auto; }

.guides-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s5); margin-bottom: var(--s6); }

.cta-banner { background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%); border-radius: var(--r-xl); padding: var(--s10) var(--s12); display: flex; align-items: center; justify-content: space-between; gap: var(--s8); margin-bottom: var(--s16); position: relative; overflow: hidden; }
.cta-banner::before { content:''; position:absolute; inset:0; pointer-events:none; background: repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 21px); }
.cta-banner h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; color: white; margin-bottom: var(--s2); position: relative; z-index: 1; }
.cta-banner p { font-size: var(--text-base); color: #A8D4E4; max-width: 400px; position: relative; z-index: 1; line-height: 1.6; }
.cta-banner .btns { display: flex; gap: var(--s3); flex-shrink: 0; position: relative; z-index: 1; }

/* ============================================================
   GUIDE / ARTICLE PAGE
   ============================================================ */
.guide-header { background: var(--warm-white); border-bottom: 1px solid var(--stone-200); padding: var(--s10) var(--s8); }
.guide-header-inner { max-width: 1100px; margin: 0 auto; }
.guide-header h1 { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 700; color: var(--ocean-deep); line-height: 1.12; letter-spacing: -.02em; max-width: 760px; margin-bottom: var(--s5); }
.guide-lede { font-size: var(--text-lg); color: var(--stone-600); line-height: 1.7; max-width: 660px; margin-bottom: var(--s6); }
.guide-promise { display: flex; gap: var(--s4); margin-bottom: var(--s6); flex-wrap: wrap; }
.promise-item { display: flex; align-items: center; gap: var(--s2); font-size: var(--text-sm); font-weight: 600; color: var(--ocean-deep); background: var(--ocean-pale); border: 1px solid rgba(46,140,176,0.22); padding: var(--s2) var(--s4); border-radius: var(--r-pill); }
.guide-meta-bar { display: flex; align-items: center; gap: var(--s4); font-family: var(--font-mono); font-size: 11px; color: var(--stone-600); padding-top: var(--s5); border-top: 1px solid var(--stone-200); flex-wrap: wrap; }
.contributor { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); background: var(--stone-100); border-radius: var(--r-md); }
.contrib-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--ocean-deep); color: #8ECFE8; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; font-family: var(--font-body); }
.contributor strong { color: var(--stone-800); font-family: var(--font-body); font-size: 12px; }

.guide-layout { max-width: 1100px; margin: 0 auto; padding: var(--s10) var(--s8); display: grid; grid-template-columns: 200px 1fr 260px; gap: var(--s10); align-items: start; }

/* Table of contents */
.toc { position: sticky; top: calc(var(--nav-h) + var(--s5)); }
.toc-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--stone-600); margin-bottom: var(--s3); }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; position: relative; padding-left: var(--s6); margin-bottom: var(--s2); }
.toc li::before { content: counter(toc); position: absolute; left: 0; top: 1px; font-family: var(--font-mono); font-size: 10px; width: 18px; height: 18px; background: var(--stone-100); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--stone-600); }
.toc li a { font-size: var(--text-xs); color: var(--stone-600); text-decoration: none; line-height: 1.4; display: block; }
.toc li a:hover, .toc li a.active { color: var(--ocean-mid); font-weight: 600; }

/* Article prose */
.prose { min-width: 0; }
.prose h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; color: var(--ocean-deep); margin-top: var(--s12); margin-bottom: var(--s4); padding-top: var(--s10); border-top: 1px solid var(--stone-200); letter-spacing: -.01em; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--ocean-deep); margin-top: var(--s6); margin-bottom: var(--s3); }
.prose p { font-size: var(--text-base); color: var(--stone-800); line-height: 1.78; margin-bottom: var(--s4); }
.prose ul, .prose ol { padding-left: var(--s6); margin-bottom: var(--s4); }
.prose li { font-size: var(--text-base); color: var(--stone-800); line-height: 1.7; margin-bottom: var(--s2); }
.prose strong { font-weight: 700; color: var(--ocean-deep); }
.prose a { color: var(--ocean-mid); }
.prose a:hover { text-decoration: underline; }

/* Callout blocks */
.callout { border-radius: var(--r-lg); padding: var(--s5) var(--s6); margin: var(--s6) 0; display: flex; gap: var(--s4); }
.callout-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.callout-body h3 { font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--s2); }
.callout-body p, .callout-body ul { font-size: var(--text-sm); line-height: 1.65; margin: 0; }
.callout-body ul { margin: var(--s2) 0 0 var(--s5); padding: 0; }
.callout-body li { margin-bottom: var(--s1); }
.callout.insider { background: var(--amber-light); border-left: 4px solid var(--amber); }
.callout.insider .callout-body h3,
.callout.insider .callout-body p,
.callout.insider .callout-body li { color: var(--amber-text); }
.callout.action { background: var(--ocean-pale); border-left: 4px solid var(--ocean-light); }
.callout.action .callout-body h3,
.callout.action .callout-body p,
.callout.action .callout-body li { color: var(--ocean-deep); }
.callout.warning { background: var(--coral-light); border-left: 4px solid var(--coral); }
.callout.warning .callout-body h3,
.callout.warning .callout-body p { color: var(--coral); }

/* Script box */
.script-box { background: var(--ocean-deep); border-radius: var(--r-lg); overflow: hidden; margin: var(--s6) 0; }
.script-box-header { padding: var(--s3) var(--s5); background: rgba(0,0,0,0.22); display: flex; align-items: center; gap: var(--s3); font-family: var(--font-mono); font-size: 11px; color: #A8D4E4; letter-spacing: .08em; text-transform: uppercase; }
.script-box-body { padding: var(--s5) var(--s6); }
.script-line { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); color: white; line-height: 1.55; margin-bottom: var(--s3); }
.script-why { font-size: var(--text-xs); color: #8ECFE8; font-family: var(--font-body); padding-top: var(--s3); margin-top: var(--s3); border-top: 1px solid rgba(255,255,255,0.12); line-height: 1.6; }

/* Checklist */
.checklist { background: var(--warm-white); border: 1px solid var(--stone-200); border-radius: var(--r-lg); overflow: hidden; margin: var(--s6) 0; }
.checklist-header { background: var(--stone-100); padding: var(--s3) var(--s5); font-weight: 600; font-size: var(--text-sm); color: var(--ocean-deep); border-bottom: 1px solid var(--stone-200); display: flex; align-items: center; gap: var(--s2); }
.check-item { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s3) var(--s5); border-bottom: 1px solid var(--stone-100); font-size: var(--text-sm); color: var(--stone-800); line-height: 1.5; }
.check-item:last-child { border-bottom: none; }
.check-box { width: 18px; height: 18px; border: 2px solid var(--stone-300); border-radius: 4px; flex-shrink: 0; margin-top: 1px; background: white; }

/* Guide sidebar */
.guide-sidebar { position: sticky; top: calc(var(--nav-h) + var(--s5)); display: flex; flex-direction: column; gap: var(--s4); }
.sidebar-card { background: var(--warm-white); border: 1px solid var(--stone-200); border-radius: var(--r-lg); overflow: hidden; }
.sidebar-card-head { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--stone-200); font-size: var(--text-sm); font-weight: 600; color: var(--ocean-deep); display: flex; align-items: center; gap: var(--s2); }
.sidebar-card-body { padding: var(--s4); }
.sidebar-link { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-sm); color: var(--stone-600); text-decoration: none; padding: var(--s2) 0; border-bottom: 1px solid var(--stone-100); transition: color 150ms ease; }
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--ocean-mid); }
.quick-tip-card { background: var(--amber-light); border: 1px solid rgba(224,122,47,0.2); border-radius: var(--r-lg); padding: var(--s5); }
.quick-tip-card .qt-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-text); margin-bottom: var(--s2); display: flex; align-items: center; gap: var(--s2); }
.quick-tip-card p { font-size: var(--text-sm); color: var(--amber-text); line-height: 1.6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .situation-widget { display: none; }
  .situation-grid { grid-template-columns: 1fr 1fr; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .toc, .guide-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .cta-banner { flex-direction: column; }
  .hero h1 { font-size: var(--text-4xl); }
}
@media (max-width: 600px) {
  .situation-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-body, .guide-header, .guide-layout { padding-left: var(--s4); padding-right: var(--s4); }
}
