/* ==========================================================================
   ConfusedLife.online — Design System
   Mobile-first, zero web-font blocking, print-friendly.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces — warm paper, easy on the eyes for long reads */
  --paper: #FBFAF7;
  --surface: #FFFFFF;
  --mist: #F2EFE8;
  --mist-deep: #E8E4D9;
  --line: #DEDACF;

  /* Ink */
  --ink: #16211C;
  --ink-soft: #47534C;
  --ink-faint: #6E7A72;

  /* Brand */
  --teal: #0E6B5C;
  --teal-deep: #0A4F44;
  --teal-wash: #E6F1EE;
  --clay: #B4532A;
  --clay-wash: #FAEDE4;
  --amber: #A9761B;
  --amber-wash: #FAF2E0;

  /* Type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Rhythm */
  --measure: 43rem;       /* ~68ch reading column */
  --wide: 72rem;
  --gutter: clamp(1.15rem, 4vw, 2rem);
  --radius: 14px;
  --radius-sm: 9px;

  /* Elevation — soft, low-contrast shadows only */
  --shadow-sm: 0 1px 2px rgba(22, 33, 28, .05), 0 1px 3px rgba(22, 33, 28, .04);
  --shadow: 0 2px 4px rgba(22, 33, 28, .04), 0 8px 20px -6px rgba(22, 33, 28, .10);
}

@media (prefers-color-scheme: dark) and (not print) {
  :root {
    --paper: #101614;
    --surface: #171F1B;
    --mist: #1C2521;
    --mist-deep: #222C26;
    --line: #2C3831;

    --ink: #E9EDE9;
    --ink-soft: #AFBCB3;
    --ink-faint: #8B9A91;

    --teal: #5FCFB8;
    --teal-deep: #7FDCC8;
    --teal-wash: #14241F;
    --clay: #E08A5C;
    --clay-wash: #26190F;
    --amber: #E0B45C;
    --amber-wash: #241C0C;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 10px 28px -8px rgba(0, 0, 0, .5);
  }
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal); text-decoration-thickness: .07em; text-underline-offset: .18em; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--ink);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.2vw, 3rem); letter-spacing: -.024em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); letter-spacing: -.018em; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.25em; text-wrap: pretty; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.35em; }
li { margin-bottom: .5em; }
li::marker { color: var(--ink-faint); }
strong { font-weight: 650; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.75rem 0; }

::selection { background: var(--teal-wash); color: var(--ink); }

/* ---------- 3. Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }
.stack > * + * { margin-top: 1.25em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--teal); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- 4. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(4px)) { .site-header { background: var(--paper); } }

.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }

.brand { display: inline-flex; align-items: baseline; gap: .5rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); display: inline-block; transform: translateY(-2px); }
.brand-tld { color: var(--ink-faint); font-family: var(--sans); font-size: .78rem; font-weight: 500; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.primary-nav a { color: var(--ink-soft); text-decoration: none; font-size: .93rem; font-weight: 500; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--teal); }
.primary-nav a[aria-current="page"] { font-weight: 650; }

.nav-toggle {
  display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .45rem .7rem; cursor: pointer; line-height: 0;
}
.nav-toggle:focus-visible { outline-offset: 2px; }
.nav-toggle-bar { display: block; width: 20px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle-bar + .nav-toggle-bar { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; inset: 100% 0 auto 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none; margin: 0;
  }
  .primary-nav[data-open="true"] { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.1rem; }
  .primary-nav li + li { border-top: 1px solid var(--line); }
  .primary-nav a { display: block; padding: .8rem 0; font-size: 1rem; }
}

/* Reading progress */
.progress-track { position: fixed; top: 0; left: 0; right: 0; height: 2.5px; z-index: 130; background: transparent; pointer-events: none; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--teal), var(--clay)); transition: width .1s linear; }

/* ---------- 5. Hero ---------- */
.hero { padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.25rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.hero .eyebrow { margin-bottom: 1.1rem; }
.hero h1 { max-width: 24ch; margin-bottom: 1rem; }
.hero-lede { font-size: clamp(1.1rem, 2.3vw, 1.3rem); line-height: 1.62; color: var(--ink-soft); max-width: 46ch; margin-bottom: 1.9rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-wash);
  padding: .38rem .75rem; border-radius: 999px;
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font-size: .96rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  min-height: 2.9rem;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--mist); color: var(--ink); border-color: var(--ink-faint); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (prefers-color-scheme: dark) { .btn-primary { color: #06231D; } .btn-primary:hover { color: #06231D; } }

/* ---------- 7. Cards & grids ---------- */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.section { padding: clamp(2.75rem, 7vw, 5rem) 0; }
.section-alt { background: var(--mist); border-block: 1px solid var(--line); }
.section-head { max-width: 52ch; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: .5rem; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 1.05rem; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: .65rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--teal) 35%, var(--line)); }
.card h3 { font-size: 1.2rem; margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--teal); }
.card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.card-link { margin-top: auto; padding-top: .5rem; font-size: .9rem; font-weight: 650; text-decoration: none; }
.card-link::after { content: " \2192"; }
.card-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clay); }

/* ---------- 8. Article typography ---------- */
.article-header { padding: clamp(2.5rem, 7vw, 4.5rem) 0 0; }
.article-header h1 { margin-bottom: 1rem; }
.article-lede { font-size: clamp(1.08rem, 2.2vw, 1.25rem); line-height: 1.65; color: var(--ink-soft); margin-bottom: 1.5rem; max-width: 52ch; }

.byline { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; font-size: .87rem; color: var(--ink-faint); padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.byline-author { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 600; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--teal-wash); color: var(--teal); display: grid; place-items: center; font-weight: 700; font-size: .8rem; font-family: var(--serif); flex-shrink: 0; }

.article-layout { display: grid; gap: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
@media (min-width: 1080px) { .article-layout { grid-template-columns: 15.5rem minmax(0, var(--measure)); justify-content: center; } }

.article-body { max-width: var(--measure); }
.article-body h2 { margin-top: 2.6em; scroll-margin-top: 6rem; }
.article-body h3 { margin-top: 2em; scroll-margin-top: 6rem; }
.article-body h2 + *, .article-body h3 + * { margin-top: 0; }
.article-body > p:first-of-type { font-size: 1.1em; }
.article-body li { padding-left: .2em; }
.article-body li > strong { color: var(--teal); }
.article-body a { text-decoration-thickness: .06em; }

/* Lead-in drop cap on the pillar guide only */
.article-body.dropcap > p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 3.4em; float: left; line-height: .82;
  padding: .06em .1em 0 0; color: var(--clay); font-weight: 600;
}

/* Table of contents */
.toc { position: sticky; top: 5.5rem; align-self: start; max-height: calc(100vh - 8rem); overflow-y: auto; font-size: .9rem; }
@media (max-width: 1079px) { .toc { display: none; } }
.toc-title { font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .9rem; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin: 0; counter-increment: toc; }
.toc a { display: block; padding: .42rem 0 .42rem .95rem; color: var(--ink-soft); text-decoration: none; border-left: 2px solid var(--line); position: relative; }
.toc a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: -2.1rem; top: .42rem; font-size: .72rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--teal); border-left-color: var(--teal); }
.toc a.is-active { color: var(--teal); border-left-color: var(--teal); font-weight: 650; }

/* Callouts */
.callout { border-radius: var(--radius); padding: 1.15rem 1.35rem; margin: 2rem 0; border: 1px solid var(--line); background: var(--surface); }
.callout p:last-child { margin-bottom: 0; }
.callout-title { font-family: var(--serif); font-weight: 650; font-size: 1.02rem; margin: 0 0 .45rem; display: flex; align-items: center; gap: .5rem; }
.callout-note { background: var(--teal-wash); border-color: color-mix(in srgb, var(--teal) 25%, transparent); }
.callout-note .callout-title { color: var(--teal); }
.callout-warn { background: var(--amber-wash); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }
.callout-warn .callout-title { color: var(--amber); }
.callout-clay { background: var(--clay-wash); border-color: color-mix(in srgb, var(--clay) 22%, transparent); }
.callout-clay .callout-title { color: var(--clay); }

/* Key takeaways box */
.key-takeaways { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; margin: 2rem 0; }
.key-takeaways h2, .key-takeaways h3 { font-size: 1.05rem; margin: 0 0 .8rem; font-family: var(--sans); letter-spacing: .04em; text-transform: uppercase; font-size: .76rem; color: var(--ink-faint); }
.key-takeaways ul { margin: 0; padding-left: 1.2rem; }
.key-takeaways li { margin-bottom: .55rem; font-size: .99rem; }

/* Numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 2rem 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 1.75rem 3.4rem; margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: .1rem;
  width: 2.35rem; height: 2.35rem; border-radius: 50%;
  background: var(--teal); color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
}
.steps > li::after { content: ""; position: absolute; left: 1.13rem; top: 2.7rem; bottom: .3rem; width: 1.5px; background: var(--line); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { margin: 0 0 .4rem; font-size: 1.16rem; }
@media (prefers-color-scheme: dark) { .steps > li::before { color: #06231D; } }

/* Blockquote */
blockquote { margin: 2rem 0; padding: .35rem 0 .35rem 1.5rem; border-left: 3px solid var(--clay); font-family: var(--serif); font-size: 1.14em; font-style: italic; line-height: 1.6; color: var(--ink); }
blockquote p:last-child { margin-bottom: 0; }
blockquote cite { display: block; margin-top: .6rem; font-family: var(--sans); font-style: normal; font-size: .82rem; color: var(--ink-faint); letter-spacing: .01em; }

/* Data table */
.table-scroll { overflow-x: auto; margin: 2rem 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 30rem; }
caption { text-align: left; font-size: .85rem; color: var(--ink-faint); padding-bottom: .7rem; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--sans); font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 2px solid var(--line); white-space: nowrap; }
tbody tr:hover { background: var(--mist); }

/* ---------- 9. FAQ ---------- */
.faq { margin: 2rem 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 1.05rem 1.35rem; font-weight: 600; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  transition: background .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--mist); }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.45rem; line-height: 1; color: var(--teal); flex-shrink: 0; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { background: var(--mist); }
.faq-answer { padding: 0 1.35rem 1.25rem; }
.faq-answer > *:last-child { margin-bottom: 0; }
.faq-answer p { color: var(--ink-soft); }

/* ---------- 10. Quiz ---------- */
.quiz-shell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.quiz-head { padding: 1.5rem 1.6rem 1.15rem; border-bottom: 1px solid var(--line); background: var(--mist); }
.quiz-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; font-size: .8rem; font-weight: 650; color: var(--ink-faint); letter-spacing: .04em; text-transform: uppercase; }
.quiz-track { height: 6px; background: var(--mist-deep); border-radius: 999px; overflow: hidden; }
.quiz-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--clay)); border-radius: 999px; transition: width .35s cubic-bezier(.4, 0, .2, 1); }
.quiz-body { padding: 1.6rem; }
.quiz-q { font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.45rem); line-height: 1.35; margin: 0 0 1.4rem; }
.quiz-options { display: grid; gap: .65rem; }
.quiz-option {
  display: flex; align-items: flex-start; gap: .8rem; width: 100%; text-align: left; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.quiz-option:hover { border-color: var(--teal); background: var(--teal-wash); transform: translateX(2px); }
.quiz-option.is-selected { border-color: var(--teal); background: var(--teal-wash); }
.quiz-key { width: 1.55rem; height: 1.55rem; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: .76rem; font-weight: 700; color: var(--ink-faint); flex-shrink: 0; background: var(--surface); }
.quiz-option.is-selected .quiz-key { background: var(--teal); border-color: var(--teal); color: #fff; }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.6rem; border-top: 1px solid var(--line); background: var(--mist); }
.quiz-foot .btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

.quiz-result { padding: 1.6rem; }
.result-badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.result-score { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .4rem; }
.result-score strong { font-family: var(--serif); font-size: 2.6rem; line-height: 1; font-weight: 600; }
.result-score span { color: var(--ink-faint); font-size: .95rem; }
.result-meter { height: 8px; background: var(--mist-deep); border-radius: 999px; overflow: hidden; margin: 1rem 0 1.75rem; }
.result-meter-fill { height: 100%; border-radius: 999px; transition: width .8s cubic-bezier(.4, 0, .2, 1); }
.result-dims { display: grid; gap: .75rem; margin: 1.5rem 0; }
.dim-row { display: grid; grid-template-columns: 8.5rem 1fr 2.6rem; align-items: center; gap: .8rem; font-size: .87rem; }
.dim-label { color: var(--ink-soft); font-weight: 550; }
.dim-bar { height: 7px; background: var(--mist-deep); border-radius: 999px; overflow: hidden; }
.dim-fill { height: 100%; border-radius: 999px; }
.dim-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-faint); font-size: .82rem; }
@media (max-width: 520px) { .dim-row { grid-template-columns: 6.5rem 1fr 2.2rem; font-size: .82rem; } }

/* ---------- 11. Quote cards ---------- */
.quote-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.15rem; display: flex; flex-direction: column; gap: 1rem;
  transition: box-shadow .18s ease, transform .18s ease;
}
.quote-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.quote-text { font-family: var(--serif); font-size: 1.16rem; line-height: 1.55; margin: 0; color: var(--ink); }
.quote-text::before { content: "\201C"; }
.quote-text::after { content: "\201D"; }
.quote-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: auto; padding-top: .25rem; border-top: 1px solid var(--line); }
.quote-author { font-size: .87rem; color: var(--ink-faint); font-style: italic; }
.quote-actions { display: flex; gap: .35rem; flex-shrink: 0; }
.icon-btn {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  width: 2.15rem; height: 2.15rem; display: grid; place-items: center; cursor: pointer;
  color: var(--ink-faint); transition: color .15s ease, border-color .15s ease, background .15s ease; padding: 0;
}
.icon-btn:hover { color: var(--teal); border-color: var(--teal); background: var(--teal-wash); }
.icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.is-done { color: var(--teal); border-color: var(--teal); }

/* ---------- 12. Promo / CTA ---------- */
.cta-panel {
  background: linear-gradient(150deg, var(--teal-wash), var(--paper) 70%);
  border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line));
  border-radius: var(--radius); padding: clamp(1.85rem, 5vw, 3rem); text-align: center;
}
.cta-panel h2 { margin-bottom: .6rem; }
.cta-panel p { color: var(--ink-soft); max-width: 48ch; margin-inline: auto; margin-bottom: 1.6rem; }
.cta-panel .btn-row { justify-content: center; }

/* Reserved ad slot — intentionally left empty, no layout shift */
.ad-slot { margin: 2.5rem 0; padding: 1.1rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); text-align: center; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); background: var(--mist); min-height: 5.5rem; display: grid; place-items: center; }

/* ---------- 13. Breadcrumbs ---------- */
.breadcrumbs { font-size: .84rem; color: var(--ink-faint); padding: 1.15rem 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; align-items: center; }
.breadcrumbs a { color: var(--ink-faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal); text-decoration: underline; }
.breadcrumbs li[aria-current="page"] { color: var(--ink-soft); }
.breadcrumbs .sep { opacity: .5; }

/* ---------- 14. Related / next ---------- */
.related { border-top: 1px solid var(--line); padding-top: 2.5rem; margin-top: 3rem; }
.related h2 { font-size: 1.35rem; margin-bottom: 1.5rem; }

/* ---------- 15. Newsletter (no backend: mailto fallback) ---------- */
.signup { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 30rem; }
.signup input[type="email"] { flex: 1 1 14rem; min-width: 0; padding: .78rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.signup input[type="email"]:focus-visible { outline-offset: 1px; }
.form-note { font-size: .82rem; color: var(--ink-faint); margin: .75rem 0 0; }

/* ---------- 16. Footer ---------- */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding: clamp(2.75rem, 6vw, 4rem) 0 1.75rem; margin-top: 0; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; } }
.footer-about p { color: var(--ink-soft); font-size: .93rem; max-width: 34ch; }
.footer-col h3 { font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: var(--ink-soft); text-decoration: none; }
.footer-col a:hover { color: var(--teal); text-decoration: underline; }
.footer-bottom { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--ink-faint); }

/* Crisis line — high-contrast, always visible */
.crisis-strip { background: var(--clay-wash); border: 1px solid color-mix(in srgb, var(--clay) 30%, transparent); border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .88rem; color: var(--ink); margin-top: 1.25rem; line-height: 1.55; }
.crisis-strip strong { color: var(--clay); }

/* YMYL disclaimer — site-wide footer band + interactive-page banner */
.disclaimer-notice {
  background: var(--clay-wash);
  border: 1px solid color-mix(in srgb, var(--clay) 26%, transparent);
  border-left: 3px solid var(--clay);
  border-radius: var(--radius-sm);
  padding: .95rem 1.2rem;
  font-size: .9rem;
  line-height: 1.62;
  color: var(--ink);
  margin-bottom: 2rem;
}
.disclaimer-notice p { margin: 0; }
.disclaimer-notice strong { color: var(--clay); }
.disclaimer-notice a { color: var(--clay); text-decoration: underline; text-underline-offset: 2px; }
.disclaimer-notice--banner { font-size: .94rem; padding: 1.1rem 1.35rem; margin: 0 0 1.75rem; }

/* ---------- 17. Utilities ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-soft { color: var(--ink-soft); }
.text-small { font-size: .9rem; }

/* ---------- 18. Print ---------- */
@media print {
  .site-header, .site-footer, .progress-track, .toc, .ad-slot, .quiz-shell, .cta-panel, .icon-btn { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .article-body a::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
  h2, h3 { break-after: avoid; }
}
