/* ==========================================================
   Yin-Ting (YT) Chen, MD — site stylesheet
   Palette: deep teal, coral, sunny gold and raspberry on warm cream.
   Change the colors in :root below to restyle the whole site.
   ========================================================== */
:root {
  --ink: #1d2b2a;
  --ink-soft: #56625f;
  --paper: #ffffff;
  --paper-alt: #fbf5ec;     /* warm cream */
  --accent: #0f766e;        /* deep teal: links, headings */
  --accent-dark: #0b4f4c;
  --accent-light: #e0f2ee;  /* mint */
  --cta: #bf4128;           /* coral: main buttons, labels */
  --cta-dark: #9c3420;
  --cta-light: #fde8e1;
  --gold: #f2b134;          /* sunny yellow: highlights */
  --gold-light: #fdf1d6;
  --berry: #a83a6b;         /* raspberry: extra accent */
  --line: #ebe2d6;
  --radius: 14px;
  --max: 1140px;
  --head: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--alt { background: var(--paper-alt); }
.section--tight { padding: 56px 0; }
.eyebrow {
  font-family: var(--head); font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cta); margin-bottom: .8em;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 680px; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px; font-family: var(--head);
  font-weight: 700; font-size: .95rem; text-decoration: none; text-align: center;
  border: 2px solid var(--accent); transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn--primary:hover { background: var(--cta-dark); border-color: var(--cta-dark); color: #fff; }
.btn--ghost { color: var(--accent); background: transparent; }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn--white { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--white:hover { background: transparent; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.brand { text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand strong { font-family: var(--head); font-size: 1.15rem; display: block; }
.brand span { font-size: .78rem; color: var(--ink-soft); letter-spacing: .04em; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links .btn { padding: 10px 18px; color: #fff; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 80px;
  background:
    radial-gradient(circle at 92% 8%, rgba(242,177,52,.28) 0, rgba(242,177,52,0) 34%),
    radial-gradient(circle at 4% 96%, rgba(191,65,40,.12) 0, rgba(191,65,40,0) 32%),
    linear-gradient(180deg, var(--paper-alt) 0%, #fff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.hero-photo { border-radius: 20px; overflow: hidden; box-shadow: 18px 18px 0 var(--gold), 0 24px 48px rgba(29,43,42,.14); aspect-ratio: 1 / 1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.creds { font-family: var(--head); font-weight: 600; color: var(--accent); margin: -.2em 0 1em; letter-spacing: .02em; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--head); font-size: 1.25rem; color: var(--accent); line-height: 1.25; margin-bottom: 4px; }
.stat span { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Two-column ---------- */
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { color: var(--accent-dark); }
.card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); font-size: .96rem; }
.card li { margin-bottom: 4px; }
a.card { text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,32,43,.08); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 4px; top: 8px; color: var(--accent); font-weight: 700; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 24px 0 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 24px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 3px var(--cta-light); }
.timeline h4 { font-size: 1.02rem; margin-bottom: 2px; }
.timeline .when { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Publications ---------- */
.pub-list { list-style: none; padding: 0; margin: 24px 0 0; }
.pub-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.pub-list .title { font-weight: 600; display: block; margin-bottom: 2px; }
.pub-list .meta { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Clinic block ---------- */
.clinic { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.clinic-logo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }

/* ---------- Appointment band (every page) ---------- */
.appt { background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.appt::after { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(242,177,52,.18); pointer-events: none; }
.appt .container { position: relative; z-index: 1; }
.appt-grid { display: grid; grid-template-columns: 1.4fr auto; gap: 48px; align-items: center; }
.appt h2 { color: #fff; }
.appt p { color: rgba(255,255,255,.85); }
.appt a:not(.btn) { color: #fff; }
.appt-details { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .95rem; margin-top: 20px; color: rgba(255,255,255,.9); }
.qr { background: #fff; border-radius: var(--radius); padding: 16px; text-align: center; width: 218px; }
.qr img { width: 186px; height: 186px; image-rendering: pixelated; }
.qr span { display: block; color: var(--cta); font-family: var(--head); font-weight: 700; font-size: .72rem; letter-spacing: .12em; margin-top: 8px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--paper-alt); padding: 64px 0 48px; border-bottom: 1px solid var(--line); }

/* ---------- Article ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 64px 24px; }
.article h1 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); }
.article h2 { font-size: 1.45rem; margin-top: 1.6em; }
.article p, .article li { font-size: 1.06rem; }
.article blockquote { margin: 1.6em 0; padding: 14px 20px; border-left: 4px solid var(--cta); background: var(--cta-light); border-radius: 0 10px 10px 0; font-size: 1.15rem; color: var(--ink-soft); }
.notice { background: var(--accent-light); border-left: 4px solid var(--accent); border-radius: 6px; padding: 16px 20px; font-size: .92rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: #10302e; color: rgba(255,255,255,.72); padding: 48px 0 36px; font-size: .9rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .8rem; color: rgba(255,255,255,.55); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { gap: 18px; }
  .hero-grid, .split, .split--even, .clinic { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 420px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; }
  .appt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .hero { padding: 48px 0; }
  .card-grid, .card-grid--2, .stats, .footer-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* ---------- Articles ---------- */
.post-card { display: flex; flex-direction: column; }
.post-card h3 { font-size: 1.08rem; }
.post-meta { font-size: .82rem; color: var(--ink-soft); margin-bottom: 8px; }
.read-more { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: .92rem; color: var(--cta); }
.back-link { display: inline-block; margin-bottom: 24px; text-decoration: none; font-size: .92rem; }
.byline { color: var(--ink-soft); font-size: .95rem; }
.note-top { font-size: .88rem; color: var(--ink-soft); background: var(--paper-alt); padding: 10px 14px; border-radius: 6px; }
.glance { background: var(--gold-light); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 22px 26px; margin: 28px 0; }
.glance h3 { color: var(--ink); margin-bottom: 8px; }
.glance ul { margin: 0; }
.glance li { margin-bottom: 6px; }
.article-cta { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 44px 0 8px; }
.article-cta p { color: var(--ink-soft); }
.sources { font-size: .9rem; color: var(--ink-soft); }
.sources li { margin-bottom: 8px; }
.disclaimer-box { margin-top: 36px; border: 1px solid var(--line); border-left: 4px solid var(--berry); border-radius: 8px; padding: 20px 22px; background: #fbfcfd; }
.disclaimer-box p { margin: 6px 0 0; font-size: .92rem; color: var(--ink-soft); }

/* ---------- Color accents ---------- */
.card { border-top: 5px solid var(--accent); }
.card-grid > .card:nth-child(4n+2) { border-top-color: var(--cta); }
.card-grid > .card:nth-child(4n+3) { border-top-color: var(--gold); }
.card-grid > .card:nth-child(4n+4) { border-top-color: var(--berry); }
.card-grid > .card:nth-child(4n+2) h3 { color: var(--cta-dark); }
.card-grid > .card:nth-child(4n+4) h3 { color: var(--berry); }
.stat:nth-child(2) strong { color: var(--cta); }
.stat:nth-child(3) strong { color: #8a5a00; }
.stat:nth-child(4) strong { color: var(--berry); }
.stats { border-top: 5px solid var(--gold); }
.page-head { background:
    radial-gradient(circle at 95% 0%, rgba(242,177,52,.25) 0, rgba(242,177,52,0) 30%),
    var(--paper-alt); }
.check-list li::before { color: var(--cta); }
.nav-links a.active { color: var(--cta); }
.brand strong { color: var(--accent-dark); }
.clinic-logo { border-top: 5px solid var(--accent); }
.article-cta { background: var(--accent-light); border-color: transparent; }

/* ---------- Logo ---------- */
.brand { display: block; flex: none; }
.brand img { height: 62px; width: auto; display: block; }
.nav-links a { white-space: nowrap; }
.nav-cta-mobile { display: none; }
.footer-logo { height: 50px; width: auto; margin-bottom: 14px; }
@media (max-width: 1100px) {
  .nav { height: 80px; }
  .brand img { height: 52px; }
  .nav-toggle { display: block; }
  .nav-cta-mobile { display: inline-block; margin-left: auto; padding: 9px 16px; font-size: .85rem; }
  .nav { gap: 14px; }
  .nav-links {
    display: none; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; }
}
@media (max-width: 620px) { .nav { height: 72px; } .brand img { height: 42px; } .nav-links { top: 72px; } }


/* ---------- Mobile refinements ---------- */
.cta-short { display: none; }
.nav-toggle { min-width: 44px; min-height: 44px; }
.site-footer li a, .appt-details a { display: inline-block; padding: 7px 0; }
.footer-grid li { margin-bottom: 0; }
.pub-list .meta a { display: inline-block; padding: 6px 0; }
.qr span { font-size: .78rem; }
@media (max-width: 440px) {
  .container { padding: 0 16px; }
  .brand img { height: 31px; }
  .nav { gap: 8px; }
  .nav-cta-mobile { padding: 9px 14px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .nav-links { padding: 8px 16px 20px; }
  h1 { font-size: 2rem; }
  .appt-details { flex-direction: column; }
  .qr { width: 100%; max-width: 240px; }
}
.text-link { display: inline-block; padding: 10px 0; font-weight: 600; }

/* ==========================================================
   Story-led home page
   ========================================================== */
:root { --hh: 88px; --serif: "Lora", Georgia, "Times New Roman", serif; }
@media (max-width: 1100px) { :root { --hh: 80px; } }
@media (max-width: 620px) { :root { --hh: 72px; } }

.story-hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(circle at 90% 10%, rgba(242,177,52,.30) 0, rgba(242,177,52,0) 35%),
    radial-gradient(circle at 0% 100%, rgba(191,65,40,.12) 0, rgba(191,65,40,0) 35%),
    var(--paper-alt);
}
.story-hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; }
.story-h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 4.8vw, 3.7rem); line-height: 1.08; letter-spacing: -0.015em; color: var(--accent-dark); }
.story-h1 em { font-style: italic; color: var(--cta); }
.story-portrait { position: relative; max-width: 440px; justify-self: end; }
.story-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 220px 220px 24px 24px; box-shadow: 18px 18px 0 var(--gold); }
.portrait-tag {
  position: absolute; left: -28px; bottom: 36px; background: #fff; border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 14px 30px rgba(29,43,42,.16); font-size: .9rem; line-height: 1.5; color: var(--ink-soft);
}
.portrait-tag b { font-family: var(--serif); font-size: 1.3rem; color: var(--cta); margin-right: 4px; }

/* sticky chapter bar */
.story-nav { position: sticky; top: var(--hh); z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.story-nav-inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.story-nav-inner::-webkit-scrollbar { display: none; }
.story-nav a {
  flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 14px; border-radius: 10px;
  text-decoration: none; color: var(--ink-soft); font-size: .78rem; min-height: 44px; transition: background .2s, color .2s;
}
.story-nav a b { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.story-nav a:hover { background: var(--paper-alt); }
.story-nav a.active { background: var(--accent); color: #e0f2ee; }
.story-nav a.active b { color: #fff; }

/* chapters */
.chapter { padding: 96px 0; scroll-margin-top: calc(var(--hh) + 70px); background: #fff; }
.chapter--alt { background: var(--paper-alt); }
.chapter-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.chapter-year { position: sticky; top: calc(var(--hh) + 96px); }
.year {
  display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(4rem, 9vw, 7.5rem); line-height: .9;
  color: var(--c); letter-spacing: -0.03em;
}
.year::after { content: ""; display: block; width: 64px; height: 6px; border-radius: 3px; background: var(--c); margin-top: 18px; opacity: .9; }
.chapter-body { max-width: 680px; }
.chapter-body p { font-size: 1.08rem; }
.chapter .eyebrow { color: var(--c); }
.story-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; color: var(--accent-dark); margin-bottom: .7em; }
.chapter-facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chapter-facts li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 8px; padding: 8px 14px; font-size: .92rem; font-weight: 500; }
.chapter--alt .chapter-facts li { background: #fff; }
/* Afghanistan chapter */
.chapter--dark { background: linear-gradient(135deg, #0b2f2d 0%, #10302e 60%, #163f3b 100%); color: #e6efed; }
.chapter--dark .story-title { color: #fff; }
.chapter--dark .eyebrow { color: var(--gold); }
.chapter--dark p { color: #d5e4e1; }
.chapter--dark .chapter-facts li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); border-left-color: var(--gold); color: #fff; }

/* today */
.chapter--today { background:
    radial-gradient(circle at 100% 0%, rgba(242,177,52,.22) 0, rgba(242,177,52,0) 32%), var(--accent-light); }
.today-head { max-width: 760px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.principle { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 26px rgba(15,118,110,.08); }
.principle .num { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: #fff; background: var(--cta); margin-bottom: 14px; }
.principle:nth-child(2) .num { background: var(--accent); }
.principle:nth-child(3) .num { background: #a5700a; }
.principle h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--accent-dark); }
.principle p { color: var(--ink-soft); margin: 0; }
.today-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-top: 44px; background: #fff; border-radius: var(--radius); padding: 24px 30px; }
.today-cta img { width: 260px; height: auto; }
.today-cta .btn-row { margin-top: 0; }

/* what I treat chips */
.treat-strip { background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; background: var(--paper-alt); }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.chips .chip-all { background: var(--accent); color: #fff; border-color: var(--accent); }
.chips .chip-all:hover { background: var(--accent-dark); color: #fff; }

/* scroll reveal (only when JS is running; respects reduced motion) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 960px) {
  .story-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .story-portrait { justify-self: start; max-width: 360px; }
  .chapter-grid { grid-template-columns: 1fr; gap: 10px; }
  .chapter-year { position: static; }
  .year { font-size: 4.2rem; }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .chapter { padding: 64px 0; }
  .story-hero { padding: 44px 0 60px; }
  .portrait-tag { left: 12px; bottom: 16px; }
  .story-portrait img { box-shadow: 12px 12px 0 var(--gold); }
  .story-nav a { padding: 6px 10px; }
  .today-cta { padding: 20px; }
  .today-cta img { width: 200px; }
}

/* ---------- Short home: help + mini story ---------- */
.help .principles { margin-top: 28px; }
.help-label { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--accent-dark); margin: 44px 0 14px; }
.mini-story-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.mini-story-head .story-title { margin-bottom: 0; }
.milestones { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.milestones::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--cta), var(--gold), var(--berry), var(--accent)); border-radius: 2px; }
.milestones li { position: relative; padding: 32px 14px 0 0; }
.milestones li::before { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); }
.milestones li:nth-child(2)::before { border-color: var(--cta); }
.milestones li:nth-child(3)::before { border-color: #a5700a; }
.milestones li:nth-child(4)::before { border-color: var(--gold); }
.milestones li:nth-child(5)::before { border-color: var(--berry); }
.milestones li:last-child::before { background: var(--cta); border-color: var(--cta); }
.milestones b { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--accent-dark); margin-bottom: 4px; }
.milestones span { font-size: .92rem; color: var(--ink-soft); line-height: 1.45; display: block; }
@media (max-width: 960px) {
  .milestones { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .milestones::before { left: 7px; right: auto; top: 6px; bottom: 6px; width: 3px; height: auto; background: linear-gradient(180deg, var(--accent), var(--cta), var(--gold), var(--berry), var(--accent)); }
  .milestones li { padding: 0 0 18px 34px; }
  .milestones li::before { top: 4px; }
  .milestones b { display: inline; margin-right: 8px; font-size: 1.15rem; }
  .milestones span { display: inline; font-size: .98rem; }
}

/* ==========================================================
   Info-site layer (Nov 2026 redesign)
   Two typefaces: Plus Jakarta Sans for headings and interface,
   Source Serif 4 for long reading. Cool mint wash replaces cream.
   ========================================================== */
:root {
  --head: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --paper-alt: #f0f5f3;
  --wash: #e3eeeb;
  --figure: #cfe2dd;
  --line: #dbe5e2;
  --alert: #b23a22;
}
body { font-size: 16.5px; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 600; }
.footer-grid h4 { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.page-head { background: var(--paper-alt); }
.story-hero, .chapter--today { background: var(--paper-alt); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

/* header */
.nav { height: 76px; }
.brand img { height: 52px; }
.nav-links { gap: 26px; }
.nav-links a { font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a[aria-current="page"] { color: var(--accent-dark); border-bottom-color: var(--accent); }
.nav-toggle { font-family: var(--head); font-weight: 600; font-size: .95rem; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 14px; }
@media (max-width: 1100px) {
  .nav { height: 72px; }
  .brand img { height: 44px; }
  .nav-links { top: 72px; }
}
@media (max-width: 440px) { .brand img { height: 34px; } }

/* body-area bar */
.area-bar { background: var(--accent-dark); }
.area-bar-inner { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.area-bar-inner::-webkit-scrollbar { display: none; }
.area-bar-label { color: #a9d3cb; font-size: .85rem; font-weight: 600; margin-right: 10px; white-space: nowrap; }
.area-bar a { color: #fff; text-decoration: none; font-size: .92rem; font-weight: 500; padding: 11px 12px; white-space: nowrap; border-bottom: 3px solid transparent; }
.area-bar a:hover { background: rgba(255,255,255,.08); color: #fff; }
.area-bar a[aria-current="page"] { border-bottom-color: var(--gold); }
@media (max-width: 620px) { .area-bar-label { display: none; } }

/* home hero with body map */
.map-hero { background: var(--paper-alt); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.map-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.map-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--accent-dark); margin-bottom: .35em; }
.map-hero .lead { font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
.map-hero-byline { font-size: .95rem; color: var(--ink-soft); margin-top: 18px; }
.body-map { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto; }
.body-map .figure { fill: var(--figure); stroke: none; }
.body-map .figure polyline { fill: none; stroke: var(--figure); stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; }
.body-map .figure polyline.leg { stroke-width: 30; }
.body-map .leader { fill: none; stroke: #8fb3ab; stroke-width: 1.5; }
.body-map .dot { fill: var(--cta); }
.body-map .ring { fill: none; stroke: var(--cta); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.body-map text { font-family: var(--head); font-size: 17px; font-weight: 600; fill: var(--ink); }
.body-map .spot { cursor: pointer; }
.body-map .spot:hover text, .body-map .spot:focus text { fill: var(--cta); text-decoration: underline; }
.body-map .spot:hover .leader, .body-map .spot:focus .leader { stroke: var(--cta); }
.body-map .spot:hover .ring, .body-map .spot:focus .ring { opacity: 1; }
.body-map .spot:focus { outline: none; }
.body-map .spot:focus-visible .dot { stroke: var(--gold); stroke-width: 4; }
@media (prefers-reduced-motion: no-preference) {
  .body-map .ring { animation: ping 1.4s ease-out both; animation-delay: calc(.35s + var(--i) * .12s); }
  @keyframes ping { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.2); } }
  .body-map .spot:hover .ring { animation: none; opacity: 1; }
}

/* search */
.search { display: flex; gap: 8px; max-width: 520px; margin-top: 26px; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 14px 16px; border: 1.5px solid #b9cfca; border-radius: 10px; background: #fff; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,118,110,.18); }
.search button { font: inherit; font-weight: 700; padding: 0 20px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer; }
.search button:hover { background: var(--accent-dark); }

/* section heads */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.section-lead { color: var(--ink-soft); max-width: 640px; margin-top: -4px; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* basics list */
.basics-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.basics-list a { display: block; text-decoration: none; color: var(--ink); border-top: 3px solid var(--accent); padding-top: 16px; }
.basics-list .basic-title { display: block; font-family: var(--head); font-weight: 700; font-size: 1.15rem; line-height: 1.3; color: var(--accent-dark); margin-bottom: 8px; }
.basics-list a:hover .basic-title { text-decoration: underline; }
.basics-list .basic-desc { display: block; color: var(--ink-soft); font-size: .97rem; }

/* article list rows */
.art-list { list-style: none; padding: 0; margin: 24px 0 0; }
.art-list--2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.art-row { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.art-row[hidden] { display: none; }
.art-tag { font-size: .84rem; font-weight: 600; color: var(--cta); margin: 0 0 4px; }
.art-row h2, .art-row h3 { font-size: 1.12rem; line-height: 1.35; margin: 0 0 6px; }
.art-row h2 a, .art-row h3 a { color: var(--ink); text-decoration: none; }
.art-row h2 a:hover, .art-row h3 a:hover { color: var(--accent); text-decoration: underline; }
.art-row > p:last-child { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* treatments index on home */
.tx-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; margin-top: 28px; }
.tx-index-group h3 { font-size: 1rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 6px; }
.tx-index-group p { margin: 0; line-height: 1.8; }
.tx-index-group a { font-weight: 500; }

/* about strip */
.about-strip { display: grid; grid-template-columns: 160px 1fr; gap: 36px; align-items: start; max-width: 900px; }
.about-strip img { border-radius: 50%; width: 160px; height: 160px; object-fit: cover; }
.about-strip h2 { font-size: 1.4rem; }
.about-strip p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.65; }
.about-strip-links { font-family: var(--body) !important; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .97rem !important; }
.about-strip-links a { font-weight: 600; }

/* hub / reference pages */
.hub-head { background: var(--paper-alt); padding: 40px 0 36px; border-bottom: 1px solid var(--line); }
.hub-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.025em; color: var(--accent-dark); margin-bottom: .3em; }
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }
.lead--serif { font-family: var(--serif); font-size: 1.2rem; line-height: 1.6; color: var(--ink); max-width: 720px; }
.hub-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-top: 44px; padding-bottom: 64px; align-items: start; }
.hub-main { max-width: 740px; }
.hub-aside { position: sticky; top: 96px; display: grid; gap: 28px; }
.hub-aside h2 { font-size: 1rem; margin-bottom: 10px; }
.jump ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.jump a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-soft); font-size: .93rem; line-height: 1.35; }
.jump a:hover { color: var(--accent); border-left-color: var(--accent); }
.redflags, .side-note { border-radius: 10px; padding: 18px 20px; font-size: .92rem; }
.redflags { background: #fdf0ec; border-left: 4px solid var(--alert); }
.redflags h2 { color: var(--alert); }
.side-note { background: var(--paper-alt); }
.redflags ul, .side-note ul { margin: 0; padding-left: 1.1em; }
.redflags li, .side-note li { margin-bottom: 8px; line-height: 1.45; }
.condition { padding: 8px 0 30px; margin-bottom: 26px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.condition h2, .condition h3 { font-size: 1.45rem; color: var(--accent-dark); margin-bottom: 14px; }
.condition dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 24px; margin: 0; }
.condition dt { font-weight: 600; font-size: .92rem; color: var(--ink-soft); padding-top: 3px; }
.condition dd { margin: 0; font-family: var(--serif); font-size: 1.07rem; line-height: 1.6; }
.related { margin: 16px 0 0; font-size: .95rem; }
.related span { color: var(--ink-soft); }
.tx-group { scroll-margin-top: 96px; margin-bottom: 18px; }
.tx-group > h2 { font-size: 1rem; color: var(--cta); font-weight: 700; margin: 8px 0 16px; }
.hub-articles { margin-top: 12px; }
.hub-articles > h2 { font-size: 1.3rem; }
.fineprint { font-size: .85rem; color: var(--ink-soft); margin-top: 28px; }

/* author note */
.author-more { font-weight: 600; margin: 40px 0 0; }
.author-note { display: flex; gap: 18px; align-items: flex-start; margin: 28px 0 8px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.author-note img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author-note p { margin: 0 0 6px; font-size: .97rem !important; font-family: var(--body) !important; }
.author-note .author-note-small { color: var(--ink-soft); font-size: .9rem !important; margin: 0; }

/* articles */
.article p, .article li { font-family: var(--serif); font-size: 1.14rem; line-height: 1.7; }
.article h1 { font-weight: 800; letter-spacing: -0.02em; color: var(--accent-dark); }
.article h2 { font-size: 1.4rem; }
.article .sources li, .article .disclaimer-box p, .article .note-top, .article .byline { font-family: var(--body); }
.article .note-top, .article .byline { font-size: .9rem; }
.article .sources li { font-size: .9rem; }
.article .disclaimer-box p { font-size: .9rem; }
.article .glance li { font-family: var(--body); font-size: 1rem; }
.article blockquote { font-family: var(--serif); font-style: italic; border-left-color: var(--accent); background: var(--paper-alt); }
.glance { background: var(--paper-alt); border-left-color: var(--accent); }
.back-link { font-weight: 600; }
.keep-reading { font-size: 1.3rem; }

/* library */
.library { padding-top: 32px; padding-bottom: 64px; max-width: 900px; }
.search--library { margin-top: 0; max-width: none; }
.topic-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.topic-filter button { font: inherit; font-size: .92rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; min-height: 40px; }
.topic-filter button:hover { border-color: var(--accent); }
.topic-filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.cond-results { margin: 24px 0 8px; padding: 18px 22px; background: var(--paper-alt); border-radius: 10px; }
.cond-results h2 { font-size: 1rem; margin-bottom: 8px; }
.cond-results ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.cond-results li { padding: 4px 0; break-inside: avoid; }
.cond-results li span { color: var(--ink-soft); font-size: .88rem; margin-left: 6px; }
.no-results { margin-top: 24px; }

/* A-Z */
.az-letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; }
.az-letters a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.az { padding-top: 36px; padding-bottom: 64px; columns: 2; column-gap: 56px; }
.az-letter { break-inside: avoid; margin-bottom: 26px; scroll-margin-top: 96px; }
.az-letter h2 { font-size: 1.6rem; color: var(--cta); margin-bottom: 6px; }
.az-letter ul { list-style: none; padding: 0; margin: 0; }
.az-letter li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.az-letter li span { color: var(--ink-soft); font-size: .88rem; margin-left: 6px; }

/* seeing Dr. Chen */
.care { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; padding-top: 40px; padding-bottom: 64px; max-width: 1000px; }
.care-main { max-width: 680px; }
.care-main h2 { font-size: 1.25rem; margin-top: 1.4em; }
.care-main p, .care-main li { font-family: var(--serif); font-size: 1.08rem; }
.care-main .fineprint { font-family: var(--body); }
.care-aside .qr { display: block; border: 1px solid var(--line); text-decoration: none; }
.care-aside .qr span { letter-spacing: 0; font-size: .85rem; color: var(--ink-soft); font-weight: 600; }

/* footer */
.footer-grid--4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }

@media (max-width: 960px) {
  .map-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .map-hero-figure { order: 2; }
  .basics-list, .tx-index { grid-template-columns: 1fr; gap: 20px; }
  .art-list--2 { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .hub-aside { position: static; }
  .jump { display: none; }
  .care { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .map-hero { padding: 36px 0 20px; }
  .about-strip { grid-template-columns: 1fr; gap: 18px; }
  .about-strip img { width: 110px; height: 110px; }
  .condition dl { grid-template-columns: 1fr; gap: 2px; }
  .condition dd { margin-bottom: 10px; }
  .az { columns: 1; }
  .cond-results ul { columns: 1; }
  .footer-grid--4 { grid-template-columns: 1fr; }
}

/* ==========================================================
   v3 layer: intro hero with photo, single Conditions page,
   Learn, article figures, "Seeing Dr. Chen" band
   ========================================================== */
.intro-hero { background: var(--paper-alt); padding: 56px 0; border-bottom: 1px solid var(--line); }
.intro-hero-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 56px; align-items: center; }
.intro-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 0 2px var(--accent); }
.intro-name { font-weight: 700; color: var(--accent); font-size: 1.05rem; margin-bottom: .4em; }
.intro-text h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; color: var(--accent-dark); margin-bottom: .35em; }
.intro-text .lead { font-family: var(--serif); font-size: 1.28rem; line-height: 1.55; color: var(--ink); max-width: 620px; }
.intro-creds { font-size: .92rem; color: var(--ink-soft); margin-top: 18px; max-width: 620px; }
.area-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.area-tiles a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: #fff; }
.area-tiles a:hover { border-color: var(--accent); }
.area-tiles a:hover span { color: var(--accent); text-decoration: underline; }
.area-tiles span { font-weight: 700; font-size: 1.05rem; color: var(--accent-dark); }
.area-tiles small { color: var(--ink-soft); font-size: .86rem; }

/* understanding pain list */
.u-wrap { padding-top: 36px; padding-bottom: 64px; max-width: 860px; }
.u-list { list-style: none; padding: 0; margin: 0; }
.u-list a { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.u-num { width: 40px; height: 40px; border-radius: 50%; background: var(--wash); color: var(--accent-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.u-title { display: block; font-weight: 700; font-size: 1.18rem; color: var(--accent-dark); margin-bottom: 4px; }
.u-desc { display: block; color: var(--ink-soft); }
.u-list a:hover .u-title { text-decoration: underline; }

/* conditions page */
.cond-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: center; }
.cond-map .body-map { max-width: 420px; }
.az-letters .az-all { width: auto; padding: 0 12px; }
.area-section { scroll-margin-top: 90px; padding-bottom: 28px; margin-bottom: 40px; border-bottom: 3px solid var(--wash); }
.area-section > h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); font-weight: 800; color: var(--accent-dark); margin-bottom: .4em; }
.area-intro { font-family: var(--serif); font-size: 1.1rem; line-height: 1.6; }
.area-cond-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.area-cond-links a { font-size: .9rem; padding: 6px 12px; border-radius: 999px; background: var(--paper-alt); text-decoration: none; color: var(--ink); }
.area-cond-links a:hover { background: var(--wash); color: var(--accent-dark); }
.redflags--inline { margin: 0 0 28px; }
.redflags--inline h3 { color: var(--alert); font-size: 1rem; margin-bottom: 8px; }
.area-section .condition h3 { font-size: 1.3rem; }
.condition { scroll-margin-top: 90px; }
.area-articles { background: var(--paper-alt); border-radius: 10px; padding: 18px 22px; margin-top: 8px; }
.area-articles h3 { font-size: 1rem; margin-bottom: 8px; }
.area-articles ul { margin: 0; padding-left: 1.1em; }
.area-articles li { margin-bottom: 6px; }
.az-section { scroll-margin-top: 90px; }
.az-section > h2 { font-size: 1.8rem; font-weight: 800; color: var(--accent-dark); }
.az-section .az { padding: 12px 0 0; }
.az-letter h3 { font-size: 1.5rem; color: var(--cta); margin-bottom: 6px; }

/* learn */
.tx-quick { margin: 22px 0 6px; padding: 18px 22px; border: 1.5px solid var(--line); border-radius: 10px; }
.tx-quick h2 { font-size: 1.1rem; margin-bottom: 4px; }
.tx-quick-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: .95rem; }

/* article figures and tables */
.art-fig { margin: 28px 0; }
.art-fig img { width: 100%; border-radius: 8px; background: #000; }
.art-fig figcaption { font-family: var(--body); font-size: .92rem; line-height: 1.5; color: var(--ink-soft); margin-top: 8px; }
.art-fig--diagram svg { width: 100%; height: auto; display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.table-wrap { overflow-x: auto; margin: 20px 0; }
.simple-table { border-collapse: collapse; width: 100%; font-size: .97rem; }
.simple-table th, .simple-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-family: var(--body); }
.simple-table th { background: var(--paper-alt); }
.article .simple-table td { font-size: .97rem; }
.based-on { font-family: var(--body) !important; font-size: .9rem !important; color: var(--ink-soft); }

/* seeing Dr. Chen band (every page) */
.seeing-band { background: var(--wash); border-top: 1px solid var(--line); }
.seeing-inner { display: flex; align-items: center; gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.seeing-inner img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.seeing-inner h2 { font-size: 1.15rem; margin: 0 0 2px; color: var(--accent-dark); }
.seeing-inner p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.seeing-link { margin-left: auto; font-weight: 700; padding: 11px 20px; border-radius: 999px; border: 2px solid var(--accent); text-decoration: none; white-space: nowrap; }
.seeing-link:hover { background: var(--accent); color: #fff; }

@media (max-width: 960px) {
  .intro-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .intro-photo { max-width: 200px; }
  .area-tiles { grid-template-columns: 1fr 1fr; }
  .cond-head-grid { grid-template-columns: minmax(0, 1fr); }
  .cond-map { max-width: 420px; }
}
@media (max-width: 620px) {
  .intro-hero { padding: 32px 0; }
  .intro-photo { max-width: 150px; }
  .seeing-inner { flex-wrap: wrap; }
  .seeing-link { margin-left: 0; }
}

/* treatment philosophy (home) */
.philosophy { background: #fff; padding: 64px 0 56px; }
.philosophy h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; color: var(--accent-dark); }
.phil-list { list-style: none; counter-reset: phil; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 36px; }
.phil-list li { counter-increment: phil; border-top: 3px solid var(--accent); padding-top: 14px; }
.phil-list li::before { content: counter(phil); display: block; font-weight: 800; font-size: 1.6rem; color: var(--cta); line-height: 1; margin-bottom: 8px; }
.phil-list h3 { font-size: 1.15rem; color: var(--accent-dark); margin-bottom: 6px; }
.phil-list p { margin: 0; font-family: var(--serif); font-size: 1.04rem; line-height: 1.6; color: var(--ink); }
.art-fig--small { max-width: 560px; margin: 18px 0 6px; }
.partner-steps li { margin-bottom: 6px; }
@media (max-width: 960px) { .phil-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .phil-list { grid-template-columns: 1fr; } }
.art-fig img { width: auto; max-width: 100%; max-height: 440px; display: block; }
.jump h2 a.jump-top { color: var(--ink); text-decoration: none; }
.jump h2 a.jump-top::after { content: " ↑"; color: var(--accent); }
.jump h2 a.jump-top:hover { color: var(--accent); }
.back-to-map { margin: 14px 0 0; font-size: .93rem; font-weight: 600; }
#body-map { scroll-margin-top: 80px; }

/* ==========================================================
   v4: brighter, more cheerful palette
   sky teal (links, buttons) · sunshine yellow · coral · light sky
   ========================================================== */
:root {
  --ink: #1e2a35;
  --ink-soft: #4b5a66;
  --accent: #0a7c86;        /* sky teal: links, buttons */
  --accent-dark: #066570;   /* headings */
  --accent-light: #e0f4f6;
  --cta: #c2410c;           /* coral: labels, tags */
  --coral: #ff6b4a;         /* bright coral: dots, decoration */
  --gold: #ffc83d;          /* sunshine */
  --gold-light: #fff4cf;
  --sky: #e9f7fc;           /* light sky backgrounds */
  --paper-alt: #e9f7fc;
  --wash: #d4eef5;
  --figure: #bfe3ee;
  --line: #d6e6ec;
  --alert: #c0392b;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* header: sunny accent line */
.site-header { border-bottom: 0; box-shadow: 0 3px 0 var(--gold); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--coral); }

/* hero */
.intro-hero { background: linear-gradient(180deg, var(--sky) 0%, #f6fcfe 100%); }
.intro-photo img { border: 8px solid #fff; box-shadow: 0 0 0 5px var(--gold), 0 18px 40px rgba(10,124,134,.18); }
.intro-name { color: var(--cta); }
.search input { border-color: #a9d6e0; }
.search button, .btn--primary { background: var(--accent); border-color: var(--accent); }
.search button:hover, .btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* patient-centered care: colorful markers */
.phil-list li { border-top-width: 4px; }
.phil-list li:nth-child(6n+1) { border-top-color: var(--accent); }
.phil-list li:nth-child(6n+2) { border-top-color: var(--gold); }
.phil-list li:nth-child(6n+3) { border-top-color: var(--coral); }
.phil-list li:nth-child(6n+4) { border-top-color: #4cb8e0; }
.phil-list li:nth-child(6n+5) { border-top-color: #8bc34a; }
.phil-list li:nth-child(6n+6) { border-top-color: #b07ad6; }
.phil-list li::before { color: var(--accent); }

/* alternating sections: sky and sunshine */
.section--alt { background: var(--sky); }
.home-basics.section--alt { background: var(--gold-light); }
.basics-list a { border-top-color: var(--coral); }
.basics-list .basic-title { color: var(--accent-dark); }
.art-tag { color: var(--cta); }

/* inner page heads */
.hub-head, .page-head { background: linear-gradient(180deg, var(--sky) 0%, #f6fcfe 100%); }
.hub-head h1, .intro-text h1, .article h1, .area-section > h2 { color: var(--accent-dark); }

/* body map */
.body-map .figure { fill: var(--figure); }
.body-map .figure polyline { stroke: var(--figure); }
.body-map .dot { fill: var(--coral); }
.body-map .ring { stroke: var(--coral); }
.body-map .leader { stroke: #7fb9c8; }
.body-map .spot:hover text, .body-map .spot:focus text { fill: var(--cta); }

/* chips, tiles, filters */
.area-cond-links a { background: var(--gold-light); }
.area-cond-links a:hover { background: var(--gold); color: var(--ink); }
.topic-filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.az-letter h3, .az-letter h2 { color: var(--cta); }
.az-letters a { border-color: #a9d6e0; }
.u-num { background: var(--gold); color: var(--ink); }

/* callouts */
.glance { background: var(--gold-light); border-left-color: var(--gold); }
.article blockquote { background: var(--sky); border-left-color: var(--coral); }
.area-articles, .side-note, .cond-results { background: var(--sky); }
.redflags { background: #fff0ec; border-left-color: var(--coral); }
.disclaimer-box { border-left-color: #4cb8e0; }
.note-top { background: var(--sky); }

/* seeing Dr. Chen band */
.seeing-band { background: var(--gold-light); border-top: 0; }
.seeing-inner img { box-shadow: 0 0 0 3px var(--gold); }
.seeing-link { background: var(--accent); color: #fff; border-color: var(--accent); }
.seeing-link:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* footer: lighter, brighter teal */
.site-footer { background: #0b6e78; color: #d7f0f2; }
.site-footer a { color: #fff; }
.footer-grid h4 { color: var(--gold); }
.disclaimer { color: #c3e6ea; border-top-color: rgba(255,255,255,.2); }

/* story / about pages carried over */
.story-hero, .chapter--today { background: linear-gradient(180deg, var(--sky) 0%, #f6fcfe 100%); }
.chapter--alt { background: var(--sky); }
.check-list li::before { color: var(--coral); }
.timeline li::before { background: var(--coral); box-shadow: 0 0 0 3px #ffe1d8; }
.article .eyebrow { font-family: var(--body); font-size: .9rem; }

/* ==========================================================
   v5: mobile polish (tap targets, small-screen navigation)
   ========================================================== */
html { -webkit-text-size-adjust: 100%; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0; }
.az-letter li a { display: inline-block; padding: 8px 0; }
.az-letter li { padding: 0; }
.art-row h2 a, .art-row h3 a { display: inline-block; padding: 4px 0; }
.related a, .area-articles a { display: inline-block; padding: 4px 0; }
.area-cond-links a { min-height: 40px; display: inline-flex; align-items: center; }
.az-letters a { width: 44px; height: 44px; }
.az-letters .az-all { width: auto; }
.topic-filter button { min-height: 44px; }
.text-link { padding: 10px 0; }
.nav-links a { display: inline-block; padding: 10px 0; }
.mobile-areas { display: none; }
@media (max-width: 860px) {
  .nav-links { box-shadow: 0 12px 24px rgba(30,42,53,.12); }
  .nav-links li { padding: 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.05rem; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .intro-text h1 { font-size: 2.3rem; }
  .intro-text .lead { font-size: 1.12rem; }
  .search { flex-direction: column; }
  .search button { min-height: 48px; }
  .hub-head h1 { font-size: 2.1rem; }
  .lead--serif { font-size: 1.08rem; }
  .article { padding: 32px 18px 48px; }
  .article h1 { font-size: 1.9rem; }
  .article p, .article li { font-size: 1.07rem; }
  .art-fig img { max-height: 320px; }
  .condition h2, .condition h3, .area-section .condition h3 { font-size: 1.2rem; }
  .area-section > h2 { font-size: 1.7rem; }
  .cond-map { display: none; }
  .mobile-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
  .mobile-areas a { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; border-radius: 10px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; text-decoration: none; color: var(--accent-dark); }
  .mobile-areas a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); margin-right: 10px; flex: none; }
  .phil-list { gap: 22px; }
  .seeing-inner { gap: 14px; }
  .seeing-link { width: 100%; text-align: center; }
  .footer-grid li a { padding: 9px 0; }
  .tx-index { gap: 16px; }
  .tx-index-group a { display: inline-block; padding: 3px 0; }
  .u-list a { grid-template-columns: 40px 1fr; gap: 14px; }
  .simple-table { font-size: .9rem; }
}
details.condition > summary { list-style: none; cursor: default; }
details.condition > summary::-webkit-details-marker { display: none; }
details.condition > summary h3 { display: inline; }
@media (max-width: 860px) { .nav-links { gap: 0; padding-top: 0; padding-bottom: 6px; } }
@media (max-width: 620px) {
  details.condition { padding: 0; margin: 0; border-bottom: 1px solid var(--line); }
  details.condition > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 0; }
  details.condition > summary h3 { display: block; margin: 0; font-size: 1.1rem; }
  details.condition > summary::after { content: "+"; font-size: 1.6rem; font-weight: 600; color: var(--accent); line-height: 1; flex: none; }
  details.condition[open] > summary::after { content: "–"; }
  details.condition[open] { padding-bottom: 20px; }
  .area-section .redflags--inline { margin-bottom: 8px; }
}

/* ==========================================================
   v6: compact home page
   ========================================================== */
.intro-hero { padding: 36px 0 32px; }
.intro-hero-grid { grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 40px; }
.intro-text h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-bottom: .25em; }
.intro-text .lead { font-size: 1.14rem; line-height: 1.55; margin-bottom: 0; max-width: 680px; }
.intro-text .search { margin-top: 18px; }
.intro-creds { margin-top: 12px; margin-bottom: 0; }
.home-articles { padding: 36px 0 44px; background: #fff; }
.home-articles-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.col-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 3px solid var(--gold); padding-bottom: 6px; margin-bottom: 4px; }
.home-col:first-child .col-head { border-bottom-color: var(--coral); }
.col-head h2 { font-size: 1.45rem; margin: 0; }
.col-head .text-link { font-size: .95rem; }
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li { border-bottom: 1px solid var(--line); }
.mini-list a { display: block; padding: 12px 0; text-decoration: none; color: var(--ink); }
.mini-tag { display: block; font-size: .8rem; font-weight: 600; color: var(--cta); margin-bottom: 2px; }
.mini-title { display: block; font-weight: 700; font-size: 1.02rem; line-height: 1.35; color: var(--accent-dark); }
.mini-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .93rem; line-height: 1.5; color: var(--ink-soft); margin-top: 3px; }
.mini-list a:hover .mini-title { text-decoration: underline; }
@media (max-width: 960px) {
  .intro-hero-grid { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; }
  .intro-photo { max-width: 120px; }
  .home-articles-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 620px) {
  .intro-hero { padding: 20px 0 22px; }
  .intro-hero-grid { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .intro-photo { max-width: 76px; }
  .intro-photo img { border-width: 3px; box-shadow: 0 0 0 3px var(--gold); }
  .intro-name { font-size: .95rem; margin-bottom: .2em; }
  .intro-text h1 { font-size: 1.8rem; }
  .intro-text .lead { grid-column: 1 / -1; font-size: 1.02rem; }
  .intro-text { display: contents; }
  .intro-text > .intro-name, .intro-text > h1 { grid-column: 2; }
  .intro-text > .lead, .intro-text > .search, .intro-text > .intro-creds { grid-column: 1 / -1; }
  .intro-text .search { margin-top: 4px; }
  .intro-creds { font-size: .85rem; }
  .home-articles { padding: 24px 0 32px; }
  .col-head h2 { font-size: 1.25rem; }
  .mini-desc { -webkit-line-clamp: 2; font-size: .9rem; }
}
@media (max-width: 620px) {
  .intro-hero-grid { row-gap: 0; align-items: center; }
  .intro-photo { grid-row: 1 / span 2; grid-column: 1; align-self: center; }
  .intro-text > .intro-name { grid-row: 1; align-self: end; }
  .intro-text > h1 { grid-row: 2; align-self: start; margin-bottom: 0; }
  .intro-text > .lead { margin-top: 12px; }
  .intro-text .search { flex-direction: row; margin-top: 12px; }
  .intro-text .search input { padding: 12px 14px; }
  .intro-text .search button { min-height: 46px; padding: 0 16px; }
  .intro-creds { display: none; }
}

/* ==========================================================
   v7: Treatments in menu, About dropdown, home treatments heading
   ========================================================== */
.home-tx { padding: 36px 0 48px; background: var(--sky); }
.home-tx .col-head { border-bottom-color: var(--accent); }
.home-tx .tx-lead { margin: 12px 0 0; }
.home-tx .tx-index { margin-top: 20px; }

.nav-links { gap: 22px; }
.has-sub { position: relative; }
.sub-toggle { font: inherit; font-size: .95rem; font-weight: 500; color: var(--ink); background: none; border: 0; padding: 10px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid transparent; }
.sub-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }
.sub-toggle:hover, .has-sub.is-current .sub-toggle { color: var(--accent-dark); }
.has-sub.is-current .sub-toggle { border-bottom-color: var(--coral); }
.sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; right: 0; top: 100%; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px rgba(30,42,53,.14); display: none; z-index: 60; }
.sub li { padding: 0; }
.sub a { display: block; padding: 10px 18px; white-space: nowrap; border: 0; }
.sub a:hover, .sub a:focus { background: var(--sky); color: var(--accent-dark); }
.has-sub.open .sub { display: block; }
@media (hover: hover) and (min-width: 1101px) { .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; } }
@media (max-width: 1100px) {
  .has-sub { width: 100%; }
  .sub-toggle { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 1.05rem; }
  .sub { position: static; display: none; border: 0; box-shadow: none; border-radius: 0; padding: 0 0 6px 14px; min-width: 0; }
  .has-sub.open .sub { display: block; }
  .sub a { padding: 11px 0; white-space: normal; }
}
@media (max-width: 1100px) {
  .nav-links { gap: 0; padding-top: 0; padding-bottom: 6px; box-shadow: 0 12px 24px rgba(30,42,53,.12); }
  .nav-links > li { padding: 0; border-bottom: 1px solid var(--line); }
  .nav-links > li:last-child { border-bottom: 0; }
  .nav-links > li > a { display: block; padding: 14px 0; font-size: 1.05rem; }
}

/* v8: "Treatment options in this article" box */
.tx-options { margin: 40px 0 0; padding: 20px 24px; border-radius: 12px; background: var(--sky); border-left: 5px solid var(--accent); }
.tx-options h2 { font-size: 1.15rem !important; margin: 0 0 10px !important; color: var(--accent-dark); }
.tx-options ul { list-style: none; padding: 0; margin: 0; }
.tx-options li { padding: 8px 0; border-bottom: 1px solid var(--line); font-family: var(--body) !important; font-size: .95rem !important; line-height: 1.45; }
.tx-options li:last-child { border-bottom: 0; }
.tx-options li a { display: inline-block; font-weight: 700; margin-right: 6px; }
.tx-options li span { color: var(--ink-soft); }
.tx-options p { margin: 10px 0 0; font-family: var(--body) !important; font-size: .95rem !important; font-weight: 600; }
.article h3 { font-size: 1.15rem; margin-top: 1.4em; color: var(--accent-dark); }
.tx-options li a { padding: 6px 0; } .tx-options li { padding: 4px 0 8px; } .tx-options p a { display: inline-block; padding: 8px 0; }
/* v9: tables from the 2nd lecture batch */
.simple-table caption { caption-side: bottom; text-align: left; font-size: .85rem; color: #56625f; padding-top: 8px; font-family: var(--body); }
.article-extra { margin-top: 2rem; }
@media (max-width: 640px) {
  .simple-table.stack thead { display: none; }
  .simple-table.stack, .simple-table.stack tbody, .simple-table.stack tr, .simple-table.stack td { display: block; width: 100%; }
  .simple-table.stack tr { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; background: #fff; }
  .simple-table.stack td { border: 0; padding: 4px 0; }
  .simple-table.stack td::before { content: attr(data-label); display: block; font-weight: 700; font-size: .8rem; color: #066570; }
  .simple-table.stack td[data-label=""]::before { display: none; }
  .simple-table.stack td:first-child { font-weight: 700; font-size: 1.02rem; }
  .simple-table.stack td:empty { display: none; }
}
/* v10: smaller article type, readable dark chapter, tighter footer */
.article h1 { font-size: clamp(1.55rem, 1.1rem + 1.5vw, 2.05rem); line-height: 1.2; }
.article h2 { font-size: 1.25rem; }
.article h3 { font-size: 1.07rem; }
.article p, .article li { font-size: 1.02rem; line-height: 1.65; }
.article .glance h3 { font-size: 1.05rem; }
.article .simple-table, .article .simple-table td { font-size: .92rem; }
@media (max-width: 640px) {
  .article h1 { font-size: 1.5rem; }
  .article h2 { font-size: 1.18rem; }
  .article p, .article li { font-size: 1rem; }
}
.chapter--dark, .chapter--dark.chapter--alt { background: linear-gradient(135deg, #075560 0%, #0b6e78 60%, #0d7d87 100%); color: #e9f7f8; }
.chapter--dark p { color: #e3f3f4; }
.site-footer ul { margin: 0; padding: 0; }
.site-footer li { margin: 0; line-height: 1.35; }
.site-footer li a { padding: 3px 0; }
.article .faq { margin-top: 2.2rem; padding-top: .4rem; border-top: 2px solid var(--gold); }
.article .faq-item h3 { font-size: 1.02rem; margin: 1.2em 0 .3em; }
.article .faq-item p { margin: 0; }
