/* Generated by src/render.py from sites/_campaign and src/. Do not edit. */
/* Looking Forward: one visual system for the three family guides.
   Every page runs from night to sunrise: a lamplit room at dusk, the reading
   on warm paper, and a sunrise at the end. Each guide sets its own accent
   colours in src/site.css; everything else is shared here. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-opsz-7234ed860a9c.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("/fonts/atkinson-next-18b2a1a39a2f.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --night: #0b1026;
  --night-2: #131a3c;
  --night-3: #1f2857;
  --night-line: rgb(214 222 255 / .16);
  --star: #fff6dc;
  --gold: #f6b94a;
  --gold-soft: #ffe2a3;
  --cream: #fbf3e2;
  --lilac: #c3c9ee;

  --paper: #fbf7ee;
  --paper-2: #f4ecdc;
  --surface: #fffdf8;
  --ink: #141a33;
  --muted: #4d5674;
  --line: #e4dac6;
  --line-strong: #cdbf9f;
  --link: #0c5a64;
  --focus: #b4530f;
  --check-bg: #fff1c9;
  --check-ink: #3d2a00;
  --check-line: #e9c66b;
  --shadow: 0 1px 2px rgb(34 26 10 / .05), 0 8px 22px -14px rgb(34 26 10 / .14);
  --shadow-lift: 0 2px 4px rgb(34 26 10 / .07), 0 16px 34px -16px rgb(34 26 10 / .22);
  --panel-filter: none;

  /* Each guide overrides these four in src/site.css. */
  --accent: #d95f33;
  --accent-ink: #a8421c;
  --accent-soft: #fbe3d6;
  --accent-2: #3f9d86;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Atkinson Next", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.1rem, 4.5vw, 3.5rem);
  /* One outer width. Text inside fills it: never cap a paragraph or heading narrower than its column
     (Victor, 2026-11-22: text that wraps early beside empty space reads as broken). */
  --wrap: 96rem;
  --bar-h: 3.4rem;
  --arc: clamp(1.5rem, 5vw, 4.5rem);
  --hill: clamp(.9rem, 2.6vw, 2.2rem);
  /* The height of a standing clay figure (the Researcher; the others are in proportion). */
  --fig: clamp(6.6rem, 4.8rem + 5.6vw, 10.4rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1532; --paper-2: #141b3e; --surface: #1a2249; --ink: #f1f0ea; --muted: #b3badb;
    --line: #2a3363; --line-strong: #3d4880; --link: #8fdbe0; --focus: #ffc46b;
    --check-bg: #2c2a22; --check-ink: #ffe9b8; --check-line: #77602a;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 34px -14px rgb(0 0 0 / .6);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / .3), 0 24px 46px -16px rgb(0 0 0 / .7);
    --panel-filter: brightness(.95);
    --accent-soft: rgb(255 255 255 / .08); --accent-ink: var(--accent);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1532; --paper-2: #141b3e; --surface: #1a2249; --ink: #f1f0ea; --muted: #b3badb;
  --line: #2a3363; --line-strong: #3d4880; --link: #8fdbe0; --focus: #ffc46b;
  --check-bg: #2c2a22; --check-ink: #ffe9b8; --check-line: #77602a;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 34px -14px rgb(0 0 0 / .6);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / .3), 0 24px 46px -16px rgb(0 0 0 / .7);
  --panel-filter: brightness(.95);
  --accent-soft: rgb(255 255 255 / .08); --accent-ink: var(--accent);
  color-scheme: dark;
}
/* On the dark surfaces a guide's accent is too dim for small text, so the ink version is lightened. */
@supports (color: color-mix(in srgb, red, white)) {
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent-ink: color-mix(in srgb, var(--accent) 65%, white); } }
  :root[data-theme="dark"] { --accent-ink: color-mix(in srgb, var(--accent) 65%, white); }
}

*, *::before, *::after { box-sizing: border-box; }
/* Above a laptop's width the whole page grows with the screen, type and pictures together, so a big
   display is filled instead of showing a narrow strip. The percentages keep the reader's own text size. */
html { font-size: clamp(100%, calc(25% + .75vw), 200%); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 1rem); scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--font-body); font-size: clamp(1.04rem, .94rem + .4vw, 1.3rem); line-height: 1.62; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
/* Left-aligned headings fill the line before they wrap; only centered ones are balanced. */
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-optical-sizing: auto; font-weight: 560; text-wrap: pretty; }
.hero h1 { text-wrap: balance; }
p, li, dd { overflow-wrap: break-word; }
p { margin: 1rem 0 0; }
a { color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .16em; }
a:focus-visible, button:focus-visible, .prompt:focus-visible, .viz-scrubber:focus-visible, .strip:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: .4rem; }
[id] { scroll-margin-top: calc(var(--bar-h) + 1rem); }
b, strong { font-weight: 700; }
a.term { color: inherit; text-decoration: underline dotted var(--link) 2px; text-underline-offset: .22em; font-weight: 650; }
a.term:hover { color: var(--link); text-decoration-style: solid; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.eyebrow { margin: 0; font-size: .92rem; font-weight: 650; letter-spacing: .02em; }

.skip-link { position: fixed; top: .6rem; left: .6rem; z-index: 60; padding: .8rem 1rem; background: var(--cream); color: var(--night); border-radius: .6rem; font-weight: 700; transform: translateY(-250%); }
.skip-link:focus { transform: none; }

/* Series bar: the same three stops on every guide, with reading progress underneath. */
.series-bar { position: sticky; top: 0; z-index: 50; background: rgb(11 16 38 / .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--cream); border-bottom: 1px solid var(--night-line); }
.series-inner { max-width: calc(var(--wrap) + 6rem); margin-inline: auto; min-height: var(--bar-h); padding: .35rem max(var(--gutter), env(safe-area-inset-left, 0px)); display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; }
.series-mark { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; color: var(--cream); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; white-space: nowrap; }
.mark { width: 1.7rem; height: 1.7rem; flex: none; }
.mark-sun { fill: var(--gold); }
.mark-ray { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; }
.mark-land { fill: var(--cream); }
/* On a guide the mark leads to the page that lists them all, and says so. */
.series-all { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.3rem; margin-left: .35rem; padding: .25rem .85rem .25rem .6rem; border: 1.5px solid rgb(214 222 255 / .42); border-radius: 999px; color: var(--lilac); font-family: var(--font-body); font-size: .86rem; font-weight: 700; letter-spacing: 0; transition: color .2s, background-color .2s, border-color .2s; }
.series-all .back { width: .8rem; height: .8rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.all-short { display: none; }
a.series-mark:hover .series-all { color: #fff; background: rgb(255 255 255 / .09); border-color: rgb(255 255 255 / .7); }
a.series-mark:hover .back { transform: translateX(-2px); }
.series-stops { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.stop { display: flex; align-items: center; }
.stop + .stop::before { content: ""; width: clamp(.7rem, 2vw, 1.8rem); height: 2px; margin-inline: .2rem; background: linear-gradient(90deg, var(--night-line), rgb(214 222 255 / .4), var(--night-line)); }
.stop-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: .25rem .8rem .25rem .3rem; border-radius: 999px; color: var(--lilac); text-decoration: none; font-weight: 600; transition: color .2s, background-color .2s; }
a.stop-link:hover { color: #fff; background: rgb(255 255 255 / .09); }
.stop-n { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1.5px solid currentColor; font-size: .82rem; font-weight: 700; }
.stop-short { display: none; }
.is-here .stop-link { color: var(--night); background: var(--gold); }
.is-here .stop-n { border-color: var(--night); }
/* With more than three guides the bar shows numbers, and a name only for the guide being read. */
.series-bar--compact .stop-name { display: none; }
.series-bar--compact .is-here .stop-name { display: inline; }
.series-bar--compact .stop-link { padding-right: .3rem; }
.series-bar--compact .is-here .stop-link { padding-right: .85rem; }
.series-mark[aria-current] { cursor: default; }
.series-progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; overflow: hidden; }
.series-progress-fill { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--gold) 70%, var(--star)); }

.series-bar, .hero, .intro, .dawn, .viz-box, .lost { --focus: var(--gold); }

/* Hero: the room at dusk. */
.hero { position: relative; isolation: isolate; overflow: hidden; overflow: clip; min-height: min(calc(100svh - var(--bar-h)), 58rem); display: grid; grid-template-rows: auto 1fr; justify-items: center; background: var(--night); color: #fff; text-align: center; }
.hero-room { position: absolute; z-index: -3; left: -1.5%; top: -4%; width: 103%; height: 108%; max-width: none; object-fit: cover; object-position: 50% 100%; transform: translate3d(calc(var(--mx, 0) * 9px), calc(var(--sy, 0) * .16px + var(--my, 0) * 5px), 0); will-change: transform; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(180deg, rgb(11 16 38 / .9) 0%, rgb(11 16 38 / .55) 30%, rgb(11 16 38 / 0) 58%),
  linear-gradient(0deg, var(--night) 0%, rgb(11 16 38 / 0) 16%); }
.hero-glow { position: absolute; z-index: -2; left: 50%; bottom: -14%; width: min(70rem, 150vw); aspect-ratio: 2 / 1; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(255 196 107 / .32), rgb(255 196 107 / 0)); mix-blend-mode: screen; pointer-events: none; }
.motes { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-copy { padding: clamp(2.2rem, 7vh, 5.5rem) max(var(--gutter), env(safe-area-inset-left, 0px)) 0; max-width: var(--wrap); transform: translate3d(calc(var(--mx, 0) * -6px), calc(var(--sy, 0) * -.08px + var(--my, 0) * -4px), 0); opacity: calc(1 - var(--sy, 0) / 520); }
.hero .eyebrow { color: var(--gold-soft); text-shadow: 0 1px 12px rgb(8 12 30 / .8); }
h1 { margin-top: .75rem; font-size: clamp(2.7rem, 1.3rem + 6.2vw, 6.4rem); font-weight: 540; line-height: .98; letter-spacing: -.028em; text-shadow: 0 2px 30px rgb(8 12 30 / .65), 0 1px 2px rgb(8 12 30 / .5); }
h1 .w { display: inline-block; }
.hero-stage { align-self: end; width: min(41rem, 92vw); margin-bottom: clamp(.5rem, 2.4vh, 2rem); transform: translate3d(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -8px), 0); transition: transform .5s var(--ease); }
.hero-art { display: block; width: 100%; filter: drop-shadow(0 18px 20px rgb(20 10 4 / .42)); }
.scroll-cue { position: absolute; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: 1.4rem; display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .4rem .5rem .4rem 1.05rem; border-radius: 999px; background: rgb(11 16 38 / .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--night-line); color: var(--cream); font-weight: 650; font-size: .95rem; text-decoration: none; transition: background-color .2s; }
.scroll-cue::after { content: "↓"; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--gold); color: var(--night); font-weight: 700; }
.scroll-cue:hover { background: rgb(11 16 38 / .82); }

/* The page for an address that doesn't exist. */
.lost { min-height: 100svh; display: grid; place-items: center; padding: 2rem var(--gutter); background: var(--night); color: var(--cream); text-align: center; }
.lost h1 { font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem); }
.lost p { color: var(--lilac); font-size: 1.15em; }
.lost a { color: var(--gold-soft); font-weight: 700; }

/* The short answer, still in the dark, with the contents. */
.intro { position: relative; background: var(--night); color: var(--cream); padding-block: clamp(2.2rem, 6vw, 4.5rem) calc(var(--fig) * .95 + var(--arc)); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 4rem); align-items: start; }
.lead { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.55rem); font-weight: 440; line-height: 1.2; letter-spacing: -.012em; color: #fff; }
.lead-more { margin: .35rem 0 0; padding-left: clamp(1rem, 2.4vw, 1.6rem); border-left: 2px solid var(--gold); color: var(--lilac); font-size: 1.04em; }
.lead-more strong { color: #fff; }
.jump { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .15rem clamp(1.2rem, 3vw, 2.5rem); margin-top: clamp(2rem, 4.2vw, 3.2rem); padding-top: 1.2rem; border-top: 1px solid var(--night-line); counter-reset: jump; }
.jump a { counter-increment: jump; display: flex; align-items: baseline; gap: .75rem; min-height: 3.2rem; padding: .55rem .15rem .65rem; border-bottom: 1px solid rgb(214 222 255 / .13); color: var(--cream); text-decoration: none; font-family: var(--font-display); font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); font-weight: 480; line-height: 1.25; letter-spacing: -.005em; transition: color .2s, border-color .2s; }
.jump a::before { content: counter(jump); min-width: 1.1ch; font-size: 1.5em; font-weight: 400; line-height: 1; color: var(--gold); flex: none; }
.jump a:hover { color: var(--gold-soft); border-color: rgb(246 185 74 / .5); }

/* The reading: warm paper that rises over the night like a horizon. */
.reading { position: relative; z-index: 1; margin-top: calc(-1 * var(--arc)); background: var(--paper); border-radius: 50% 50% 0 0 / var(--arc) var(--arc) 0 0; box-shadow: 0 -2px 0 rgb(246 185 74 / .65), 0 -24px 60px -18px rgb(246 185 74 / .36); }
.reading > :first-child, .reading > div:first-child > :first-child { border-radius: inherit; }
/* Each section rises over the one before it as a low hill with a thin rule delineating the boundary. */
.chapter { position: relative; margin-top: calc(-1 * var(--hill)); padding-block: clamp(3.2rem, 7.5vw, 6rem) calc(clamp(3.2rem, 7.5vw, 6rem) + var(--hill)); background: var(--paper); border-top: 1px solid var(--line-strong); border-radius: 50% 50% 0 0 / var(--hill) var(--hill) 0 0; }
.reading > .chapter:first-child, .reading > div:first-child > .chapter:first-child { margin-top: 0; padding-top: calc(clamp(3.2rem, 7.5vw, 6rem) + var(--arc) * .35); border-top: 0; }
.chapter.alt, .chapter.warm, .chapter.calm { background: var(--paper-2); }
.chapter-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: .25rem clamp(.75rem, 2vw, 1.6rem); }
.chapter-num { font-family: var(--font-display); font-size: clamp(3.3rem, 2rem + 5.2vw, 6.6rem); font-weight: 340; line-height: .76; letter-spacing: -.04em; color: var(--accent); font-variant-numeric: lining-nums; }
.chapter h2 { font-size: clamp(2rem, 1.15rem + 3.2vw, 3.7rem); font-weight: 660; line-height: 1.04; letter-spacing: -.022em; }
.section-lead { font-size: clamp(1.12rem, 1.02rem + .45vw, 1.36rem); line-height: 1.48; font-weight: 500; }
.chapter .section-lead { margin-top: clamp(1rem, 2.2vw, 1.5rem); }
.chapter h3 { font-size: clamp(1.22rem, 1.1rem + .5vw, 1.5rem); font-weight: 600; line-height: 1.18; letter-spacing: -.01em; }

/* Optional portrait intro wrapper kept for backwards compatibility. */
.char-intro, .spiky-intro { display: flex; align-items: center; gap: 1rem 1.3rem; margin-top: clamp(1rem, 2.2vw, 1.5rem); }
.char-intro .section-lead, .spiky-intro .section-lead { margin-top: 0; }
.char-cameo, .spiky-cameo { width: 4.6rem; height: 4.6rem; flex: none; padding: .25rem; border-radius: 50%; background: #fdf8ec; box-shadow: 0 0 0 1px var(--line), var(--shadow); }

.feature-top, .habit-top, .worth-top, .help-top, .resources-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 36%); gap: clamp(1.25rem, 3.5vw, 3.5rem); align-items: center; margin-top: clamp(1rem, 2.4vw, 1.75rem); }
.habit-top p, .help-top p { font-size: clamp(1.12rem, 1.03rem + .42vw, 1.32rem); line-height: 1.5; }
.habit-top p:first-child, .help-top p:first-child, .resources-top p:first-child, .worth-top p:first-child { margin-top: 0; }
.worth-top .spiky-intro, .worth-top .char-intro { margin-top: 0; }
.habit-art, .help-art { width: 100%; filter: drop-shadow(0 16px 18px rgb(60 40 10 / .2)); }

/* Three-panel picture stories. */
.strip { list-style: none; margin: clamp(1.75rem, 4vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 2.4vw, 2rem); counter-reset: panel; }
.strip li { counter-increment: panel; position: relative; min-width: 0; max-width: none; }
.strip li::before { content: counter(panel); position: absolute; z-index: 2; top: -.65rem; left: -.45rem; display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; box-shadow: 0 0 0 .25rem var(--paper); }
.chapter.alt .strip li::before, .chapter.warm .strip li::before, .chapter.calm .strip li::before { box-shadow: 0 0 0 .25rem var(--paper-2); }
.strip li:not(:last-child)::after { content: ""; position: absolute; z-index: 1; top: 34%; right: calc(-1 * clamp(.9rem, 2.4vw, 2rem) - .1rem); width: calc(clamp(.9rem, 2.4vw, 2rem) + .2rem); height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 5px, transparent 5px 9px); }
/* Each scene is a print laid on the page: a white border, and no two set down quite straight. */
.instruction-panel { display: block; position: relative; overflow: hidden; aspect-ratio: 1; background: #faf7ef; border: clamp(.35rem, .9vw, .6rem) solid #fffdf8; border-radius: .45rem; box-shadow: 0 0 0 1px var(--line), var(--shadow-lift); filter: var(--panel-filter); transform: rotate(-.7deg); }
.strip li:nth-child(2) .instruction-panel { transform: rotate(.55deg); }
.strip li:nth-child(3) .instruction-panel { transform: rotate(-.3deg); }
.instruction-panel img { display: block; width: 300%; max-width: none; height: auto; }
.panel-2 img { transform: translateX(-33.333333%); }
.panel-3 img { transform: translateX(-66.666667%); }
.chapter .strip p { margin: .85rem .15rem 0; font-size: .98em; line-height: 1.42; font-weight: 600; }

/* Cards and lists. */
.managers, .two-col, .worth-cards, .resource-grid, .share-grid { display: grid; gap: clamp(.9rem, 2vw, 1.4rem); margin-top: clamp(1.75rem, 3.6vw, 2.75rem); align-items: stretch; }
.managers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-col, .worth-cards, .resource-grid, .share-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.manager, .col-block, .study-card, .resource-card, .note { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.15rem, 2.3vw, 1.55rem); background: var(--surface); border: 1px solid var(--line); border-radius: .95rem; box-shadow: var(--shadow); }
.chapter .manager p, .chapter .col-block p, .chapter .study-card p, .chapter .resource-card p { margin: .5rem 0 0; font-size: .97em; line-height: 1.55; }
/* A pair of explanations reads as two columns of text under a rule, so not everything on the page is a box. */
.col-block { padding: 1rem 0 0; background: none; border: 0; border-top: 2px solid var(--ink); border-radius: 0; box-shadow: none; }
.col-block:nth-child(even) { border-top-color: var(--accent); }
.chapter .resource-card p { color: var(--muted); }
.kicker, .note-kicker { display: inline-block; margin-bottom: .35rem; font-size: .84rem; font-weight: 650; letter-spacing: 0; color: var(--accent-ink); }
/* Only the link that closes a card is a tap-sized row; links inside its sentences stay in the line. */
.manager > a, .resource-card > a { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.6rem; margin-top: auto; padding-top: .65rem; font-weight: 700; }
.manager a + a { margin-top: 0; padding-top: 0; }
.manager p + a { margin-top: auto; }

.links { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 0; padding: 0; }
.links li { max-width: none; }
.links a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.9rem; padding: .45rem 1.05rem; border-radius: .65rem; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); font-weight: 700; text-decoration: none; box-shadow: var(--shadow); transition: background-color .2s, color .2s, border-color .2s; }
.links a::after { content: "↗"; color: var(--accent-ink); font-weight: 400; transition: color .2s; }
.links a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.links a:hover::after { color: var(--gold); }

.checks { margin: clamp(1.6rem, 3.4vw, 2.5rem) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.4rem); }
.checks div { position: relative; min-width: 0; padding: 1.15rem 1.3rem 1.25rem 3.7rem; background: var(--surface); border: 1px solid var(--line); border-radius: .95rem; box-shadow: var(--shadow); }
.checks div::before { content: ""; position: absolute; left: 1.15rem; top: 1.2rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent-2); }
.checks div::after { content: ""; position: absolute; left: 1.78rem; top: 1.56rem; width: .46rem; height: .84rem; border: solid #fff; border-width: 0 .19rem .19rem 0; transform: rotate(42deg); }
.checks dt { font-family: var(--font-display); font-weight: 600; font-size: 1.2em; line-height: 1.22; letter-spacing: -.01em; }
.checks dd { margin: .4rem 0 0; font-size: .97em; }

/* The line to remember from each section, pointed out by one of the guide's characters (render.py adds the figure). */
.finish { position: relative; margin: clamp(1.65rem, 3.4vw, 2.4rem) 0 0; padding: 1rem 1.3rem 1.05rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 1.1rem; box-shadow: var(--shadow); font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + .5vw, 1.34rem); font-weight: 430; line-height: 1.38; }
.finish b { font-weight: 640; }
.tip { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: clamp(.9rem, 2vw, 1.5rem); margin-top: clamp(1.9rem, 3.8vw, 2.8rem); }
/* The note sits at the height of the pointing hand, whoever is pointing. */
.tip .finish { margin: 0 0 calc(var(--fig) * var(--stature, 1) * .3); }
.tip .finish::before { content: ""; position: absolute; left: -.48rem; bottom: 1.05rem; width: .9rem; height: .9rem; background: inherit; border: solid var(--line-strong); border-width: 0 0 1px 1px; border-radius: 0 0 0 .2rem; transform: rotate(45deg); }

/* Clay figures cut from the character sheets (art/README.md). One height for all of them, feet on the bottom edge. */
.pose { display: block; flex: none; width: auto; height: calc(var(--fig) * var(--stature, 1)); max-width: none; pointer-events: none; -webkit-user-select: none; user-select: none; filter: drop-shadow(0 .45rem .4rem rgb(52 38 10 / .22)); }
.stature-50 { --stature: .5; } .stature-55 { --stature: .55; } .stature-60 { --stature: .6; } .stature-65 { --stature: .65; } .stature-70 { --stature: .7; }
.stature-75 { --stature: .75; } .stature-80 { --stature: .8; } .stature-85 { --stature: .85; } .stature-90 { --stature: .9; } .stature-95 { --stature: .95; }
/* The greeter stands where the paper's horizon meets the night, a little to the right of its crest. */
.greeter { position: absolute; z-index: 2; right: 15%; bottom: calc(var(--arc) * .8 - .3rem); filter: drop-shadow(0 .4rem .5rem rgb(4 6 20 / .5)); }
.intro-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro > .wrap { position: relative; }
/* One sits on top of the card with the prompt. */
.coach-card > .perch { position: absolute; right: clamp(1.2rem, 7%, 6rem); bottom: calc(100% - var(--fig) * .06); }
.coach { position: relative; margin-top: calc(-1 * var(--hill)); padding-top: calc(clamp(1.5rem, 4vw, 3rem) + var(--hill) + var(--fig) * .4); border-top: 1px solid var(--line-strong); border-radius: 50% 50% 0 0 / var(--hill) var(--hill) 0 0; }
/* One waves beside "Pass it on". */
.farewell { float: right; margin: calc(var(--fig) * -.2) 0 .5rem clamp(.8rem, 2vw, 1.5rem); }
.share-grid { clear: both; }
/* The last picture: the guide's characters on the final horizon, backs to us, watching the sun come up. */
.extras { font-size: .96em; color: var(--muted); }

/* Animated explainers. */
.viz-box { margin-top: clamp(1.75rem, 3.6vw, 2.75rem); padding: clamp(1rem, 2.6vw, 1.9rem); border-radius: 1.25rem; background: var(--night-2); color: var(--cream); border: 1px solid var(--night-line); box-shadow: var(--shadow-lift); }
.viz-top { display: grid; gap: .7rem; padding-bottom: 1rem; margin-bottom: 1.15rem; border-bottom: 1px solid var(--night-line); }
.viz-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.viz-box .viz-eyebrow { margin: 0; font-family: var(--font-display); font-size: clamp(1.12rem, 1rem + .45vw, 1.38rem); font-weight: 620; line-height: 1.15; letter-spacing: -.01em; color: var(--gold-soft); }
.viz-nav { display: grid; gap: .5rem; }
.viz-scrubber { display: flex; align-items: center; padding-block: .55rem; cursor: ew-resize; touch-action: none; }
.viz-progress { width: 100%; height: .45rem; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; overflow: hidden; background: rgb(255 255 255 / .14); pointer-events: none; }
.viz-progress::-webkit-progress-bar { background: rgb(255 255 255 / .14); }
.viz-progress::-webkit-progress-value { background: linear-gradient(90deg, var(--accent-2), var(--gold)); border-radius: 999px; }
.viz-progress::-moz-progress-bar { background: linear-gradient(90deg, var(--accent-2), var(--gold)); border-radius: 999px; }
.viz-chapters { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .35rem; }
.viz-stage { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, .86fr); gap: clamp(1rem, 2.8vw, 2.2rem); align-items: center; }
.viz-chart-wrap { background: #faf7ef; border-radius: .9rem; padding: .5rem; box-shadow: 0 0 0 1px rgb(255 255 255 / .16), 0 16px 40px -20px rgb(0 0 0 / .6); }
.viz-canvas { display: block; width: 100%; height: auto; border-radius: .6rem; }
.viz-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .9rem; margin-top: .45rem; padding-inline: .2rem; font-size: .78rem; color: #4b5d70; }
.legend-swatch { display: inline-block; width: .72rem; height: .72rem; border-radius: 3px; vertical-align: -1px; margin-right: .3rem; }
.viz-copy { min-width: 0; min-height: 13.5rem; display: flex; flex-direction: column; justify-content: center; }
.viz-badge { display: inline-block; width: fit-content; margin-bottom: .4rem; color: var(--gold-soft); font-size: .86rem; font-weight: 650; letter-spacing: 0; }
.viz-copy h4 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.9rem); font-weight: 540; line-height: 1.12; letter-spacing: -.015em; color: #fff; }
.viz-box .viz-copy p { margin-top: .6rem; font-size: .98em; line-height: 1.52; color: var(--lilac); }
.viz-box .viz-takeaway { margin-top: .9rem; padding: .7rem .95rem; border-left: 3px solid var(--gold); border-radius: 0 .5rem .5rem 0; background: rgb(255 255 255 / .06); color: var(--cream); font-size: .94em; font-weight: 600; }
/* Progressive enhancement: when scripts are blocked (or on print), canvas players show all acts as plain text. */
.viz-canvas-box:not(.is-live) .viz-play-btn, .viz-canvas-box:not(.is-live) .viz-nav, .viz-canvas-box:not(.is-live) .viz-stage { display: none; }
.viz-canvas-box:not(.is-live) .viz-top { padding-bottom: .35rem; }
.viz-canvas-box.is-live .viz-static { display: none; }
.viz-static { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.viz-static li { padding: .85rem 1.05rem; border-radius: .75rem; background: rgb(255 255 255 / .05); border: 1px solid var(--night-line); }
.viz-static h4 { font-size: clamp(1.12rem, 1.02rem + .4vw, 1.35rem); font-weight: 560; line-height: 1.18; color: #fff; }
.viz-static p { margin: .35rem 0 0; font-size: .96em; line-height: 1.5; color: var(--lilac); }
.viz-static .viz-static-take { margin-top: .45rem; color: var(--gold-soft); font-weight: 650; }

/* Buttons. */
button { font: 700 1rem/1.25 var(--font-body); cursor: pointer; border-radius: .65rem; border: 1px solid transparent; padding: .72rem 1.35rem; min-height: 2.9rem; background: var(--gold); color: #1b1400; transition: background-color .2s, border-color .2s, color .2s; }
button:hover { background: var(--gold-soft); }
button:disabled { cursor: wait; }
.viz-play-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 5rem; min-height: 2.45rem; padding: .4rem 1.05rem; font-size: .9rem; }
.viz-chap { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.5rem; padding: .4rem .4rem; border-radius: .55rem; border: 1px solid transparent; background: rgb(255 255 255 / .07); color: var(--lilac); font-size: .86rem; font-weight: 650; text-align: center; }
.viz-chap:hover { background: rgb(255 255 255 / .14); color: #fff; }
.viz-chap[aria-pressed="true"] { background: var(--cream); color: var(--night); }
.chap-num { font-size: .8em; opacity: .7; }

/* The prompt to hand to your own AI: a clean cardstock worksheet on the reading paper. */
.coach { background: var(--paper); padding-block: clamp(1.5rem, 4vw, 3rem); }
.coach > .wrap { max-width: calc(var(--wrap) + 2rem); }
.coach-card { position: relative; padding: clamp(1.5rem, 4vw, 3.1rem); border-radius: 1.1rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.coach-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; }
.coach h2 { font-size: clamp(1.9rem, 1.2rem + 2.7vw, 3.2rem); font-weight: 660; line-height: 1.04; letter-spacing: -.022em; color: var(--ink); }
.coach-top .copy-btn { background: var(--ink); color: var(--paper); }
.coach-top .copy-btn:hover { background: var(--gold); color: #1b1400; }
.coach-lead { color: var(--muted); font-size: clamp(1.06rem, .98rem + .35vw, 1.22rem); }
.prompt { white-space: pre-line; margin: 1.4rem 0 0; padding: clamp(1.1rem, 2.8vw, 1.8rem); border-radius: 0 .75rem .75rem 0; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--paper-2); color: var(--ink); line-height: 1.68; user-select: all; -webkit-user-select: all; }
#status { display: block; min-height: 1.6em; margin-top: .7rem; font-size: .95em; color: var(--link); font-weight: 650; }
.hint { margin-top: .2rem; font-size: .93em; color: var(--muted); }

/* Pass it on. */
.share { background: var(--paper); border-top: 1px solid var(--line-strong); padding-block: clamp(2.5rem, 6vw, 5rem) calc(clamp(3rem, 7vw, 6rem) + var(--arc)); }
.share h2 { font-size: clamp(2rem, 1.15rem + 3.3vw, 3.9rem); font-weight: 660; line-height: 1.02; letter-spacing: -.024em; }
.share > .wrap > p { font-size: clamp(1.1rem, 1.02rem + .4vw, 1.3rem); }
.share .note { margin-top: clamp(1.5rem, 3vw, 2.25rem); gap: .8rem; }
.share-grid .note { margin-top: 0; }
.note-text { margin: 0; white-space: pre-line; font-family: var(--font-display); font-size: 1.16em; font-weight: 420; line-height: 1.4; user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
.note-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: auto; padding-top: .4rem; }
.note-actions .copy-btn { background: var(--ink); color: var(--paper); }
.note-actions .copy-btn:hover { background: var(--gold); color: #1b1400; }
.share-status { display: block; min-height: 1.6em; margin-top: .8rem; font-size: .95em; color: var(--link); font-weight: 650; }

/* Sunrise: why the series exists, and the other two guides. */
.dawn { position: relative; z-index: 2; isolation: isolate; overflow: hidden; overflow: clip; margin-top: calc(-1 * var(--arc)); padding-block: calc(clamp(3.5rem, 9vw, 7rem) + var(--arc) * .4) calc(clamp(9rem, 24vw, 19rem) + var(--arc)); border-radius: 50% 50% 0 0 / var(--arc) var(--arc) 0 0; color: var(--cream); background: linear-gradient(180deg, #0b1026 0%, #171a48 24%, #3d2c6c 44%, #8d3f72 60%, #d9634f 74%, #f6a352 86%, #fde0a2 100%); }
.dawn-sky { position: absolute; inset: 0; z-index: -1; }
.dawn-stars { position: absolute; left: 0; top: 0; width: 100%; height: 62%; opacity: calc(1 - var(--rise, 0) * .75); }
.sun { position: absolute; left: 50%; bottom: 0; width: min(46rem, 120vw); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, calc(74% - var(--rise, 0) * 30%)); background: radial-gradient(circle, #fffdf0 0 17%, #fff0b8 22%, rgb(255 214 120 / .72) 31%, rgb(255 170 84 / .34) 46%, rgb(255 150 90 / 0) 68%); will-change: transform; }
/* The sun's rays turn very slowly and fade in as it rises (Victor asked for them back, 2026-11-23). */
.sun::before { content: ""; position: absolute; inset: -55%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgb(255 236 170 / .2) 0 4deg, rgb(255 236 170 / 0) 4deg 15deg); -webkit-mask-image: radial-gradient(circle, transparent 0 22%, #000 30%, transparent 68%); mask-image: radial-gradient(circle, transparent 0 22%, #000 30%, transparent 68%); opacity: var(--rise, 0); animation: turn 160s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.dawn .eyebrow { color: var(--gold-soft); }
.dawn h2 { margin-top: .9rem; font-size: clamp(2.4rem, 1.2rem + 5vw, 5.4rem); font-weight: 620; line-height: .98; letter-spacing: -.028em; color: #fff; }
.dawn-text { margin-top: clamp(1.1rem, 2.5vw, 1.75rem); font-size: clamp(1.14rem, 1.04rem + .5vw, 1.4rem); line-height: 1.5; color: #eceafa; }
/* The closing words end on the step to take, set in the display face (Victor, 2026-11-23: a rallying close, not a hopeful one). */
.dawn-text .dawn-rally { margin-top: clamp(1.1rem, 2.6vw, 1.9rem); font-family: var(--font-display); font-size: clamp(1.5rem, 1.05rem + 1.7vw, 2.6rem); font-weight: 520; line-height: 1.18; letter-spacing: -.012em; color: #fff; text-shadow: 0 1px 2px rgb(26 18 60 / .55), 0 2px 22px rgb(26 18 60 / .7); }
.guide-cards { list-style: none; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.4rem); }
.guide-card { min-width: 0; display: flex; }
.dawn-home { margin: clamp(1.1rem, 2.6vw, 1.75rem) 0 0; }
.dawn-home a { display: flex; align-items: center; gap: .9rem; min-height: 3.6rem; padding: .8rem clamp(1.2rem, 2.4vw, 1.75rem); border-radius: 1.6rem; background: rgb(20 26 51 / .62); box-shadow: inset 0 0 0 1.5px rgb(255 252 244 / .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fbf3e2; text-decoration: none; transition: transform .35s var(--ease), background-color .3s, box-shadow .3s; }
.dawn-home a:hover { transform: translateY(-.2rem); background: rgb(20 26 51 / .72); box-shadow: inset 0 0 0 1.5px var(--gold); }
.dawn-home .mark { width: 2.1rem; height: 2.1rem; }
.home-words { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .9rem; }
.home-words b { font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); font-weight: 560; letter-spacing: -.012em; }
.home-host { color: #d9dcf3; font-size: .93em; }
.home-go { font-size: 1.3em; color: var(--gold-soft); transition: transform .3s var(--ease); }
.dawn-home a:hover .home-go { transform: translateX(.3rem); }
.guide-body { position: relative; flex: 1; display: flex; flex-direction: column; gap: .3rem; padding: clamp(1.2rem, 2.4vw, 1.75rem); border-radius: 1.6rem; background: rgb(255 252 244 / .94); color: #141a33; text-decoration: none; box-shadow: 0 24px 50px -22px rgb(20 8 40 / .7); transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s; }
a.guide-body:hover { transform: translateY(-.4rem); background: #fff; box-shadow: 0 34px 60px -22px rgb(20 8 40 / .8); }
.guide-n { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: .5rem; border-radius: 50%; background: #141a33; color: #fbf3e2; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.guide-title { font-family: var(--font-display); font-size: clamp(1.36rem, 1.08rem + .95vw, 1.8rem); font-weight: 660; line-height: 1.08; letter-spacing: -.016em; }
.guide-aim { margin-top: .35rem; font-size: .88rem; font-weight: 700; letter-spacing: .01em; color: #8a4b08; }
.guide-blurb { margin-top: .25rem; color: #4d5674; font-size: .93em; line-height: 1.45; }
.guide-state { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .9rem; font-weight: 700; color: #0c5a64; }
.is-here .guide-body { background: rgb(20 26 51 / .5); color: #fbf3e2; box-shadow: inset 0 0 0 1.5px rgb(246 185 74 / .85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.is-here .guide-n { background: var(--gold); color: #141a33; }
.is-here .guide-aim { color: var(--gold-soft); }
.is-here .guide-blurb { color: #d9dcf3; }
.is-here .guide-state { color: var(--gold-soft); }

.about { position: relative; z-index: 3; margin-top: calc(-1 * var(--arc)); padding-block: calc(var(--arc) + 1.5rem) clamp(2rem, 5vw, 3.5rem); background: var(--paper); border-radius: 50% 50% 0 0 / var(--arc) var(--arc) 0 0; }
.about h2 { font-size: 1.3rem; }
.about p { color: var(--muted); font-size: .93em; }
.back-top { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .6rem; font-weight: 700; }

/* Section dots down the left edge on wide screens. Built by app.js.
   Only the narrow dot column accepts pointer events; hover labels float beside it without blocking page text. */
.rail { position: fixed; z-index: 40; left: max(.7rem, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); display: none; opacity: 0; pointer-events: none; transition: opacity .4s; }
.rail ol { display: flex; flex-direction: column; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.rail.is-on { opacity: 1; }
.rail a { position: relative; display: flex; align-items: center; justify-content: center; width: 1.75rem; min-height: 1.75rem; color: var(--muted); font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; pointer-events: none; }
.rail.is-on a { pointer-events: auto; }
.rail a::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--paper); transition: transform .3s var(--ease), background-color .3s, border-color .3s; }
.rail span { position: absolute; left: 100%; margin-left: .4rem; opacity: 0; transform: translateX(-.3rem); padding: .15rem .6rem; border-radius: 999px; background: var(--ink); color: var(--paper); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
.rail .is-now::before { transform: scale(1.5); background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 .25rem rgb(246 185 74 / .25); }
@media (min-width: 86rem) { .rail { display: block; } }

@media (max-width: 62rem) {
  body:not(.hub) .series-name { display: none; }
  .stop-name { display: none; }
  .is-here .stop-name { display: inline; }
  .stop-link { padding-right: .3rem; }
  .is-here .stop-link { padding-right: .85rem; }
  /* On the landing page at tablet sizes, show the short stop names so the bar isn't three bare numbers. */
  .hub .stop-short { display: inline; }
  .hub .stop-link { padding-right: .75rem; }
  .intro-grid, .viz-stage, .managers, .worth-top, .resources-top { grid-template-columns: minmax(0, 1fr); }
  .jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worth-top .help-art, .resources-top .help-art { width: min(20rem, 80%); justify-self: center; order: -1; }
  .guide-cards { grid-template-columns: minmax(0, 1fr); }
  .guide-body { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-items: start; }
  .guide-n { grid-row: span 4; margin: 0; }
  .guide-state { padding-top: .5rem; }
}
@media (max-width: 46rem) {
  .checks, .resource-grid, .worth-cards, .share-grid, .two-col { grid-template-columns: minmax(0, 1fr); }
  .feature-top, .habit-top, .help-top { grid-template-columns: minmax(0, 1fr); }
  .habit-art, .help-top .help-art { width: min(19rem, 84%); justify-self: center; order: -1; }
  .char-intro, .spiky-intro { align-items: flex-start; }
  .char-cameo, .spiky-cameo { width: 3.6rem; height: 3.6rem; }
  .chapter-head { grid-template-columns: auto minmax(0, 1fr); }
  .strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))); padding: 1rem max(var(--gutter), env(safe-area-inset-left, 0px)) 1rem; scrollbar-width: thin; }
  .strip li { scroll-snap-align: start; }
  .strip li::before { left: -.3rem; }
  .strip li:not(:last-child)::after { display: none; }
  .viz-chapters { gap: .25rem; }
  .viz-chap { flex-direction: column; gap: .05rem; min-height: 2.6rem; padding: .3rem .1rem; font-size: .74rem; }
  .viz-copy { min-height: 12.5rem; justify-content: flex-start; }
  .coach-top button, .note-actions button { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .hero { min-height: min(calc(100svh - var(--bar-h)), 37rem); }
  .checks div { padding-left: 3.5rem; }
  .jump a { min-height: 2.8rem; }
  .series-inner { gap: .4rem; }
  .stop + .stop::before { width: .45rem; margin-inline: .1rem; }
  .stop-link { gap: .35rem; white-space: nowrap; }
  .is-here .stop-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .is-here .stop-short { display: inline; }
  .is-here .stop-link { padding-right: .8rem; }
  /* On a phone the button stands in for the mark, so the three stops still fit beside it. */
  .series-mark--back .mark { display: none; }
  .series-all { margin-left: 0; }
  .hub .stop-short { display: none; }
  .hub .stop-link { padding-right: .3rem; }
}
/* On a phone the note takes the full width and the character stands on its top edge. */
@media (max-width: 36rem) {
  .tip { display: block; }
  .tip-fig { --fig: 5.6rem; margin-left: 1.1rem; margin-bottom: -.5rem; position: relative; z-index: 1; }
  .tip .finish { margin: 0; }
  .tip .finish::before { display: none; }
}
@media (max-width: 22rem) {
  .hub .series-name { display: none; }
  .all-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .all-short { display: inline; }
  .series-all { padding: .25rem .65rem .25rem .45rem; }
}
@media (max-width: 24rem) {
  .jump { grid-template-columns: minmax(0, 1fr); }
  .series-mark .mark { width: 1.5rem; height: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero-room, .hero-copy, .hero-stage { transform: none; }
  .hero-copy { opacity: 1; }
}
@media (forced-colors: active) {
  .finish, .viz-box, .manager, .col-block, .study-card, .resource-card, .note, .checks div, .guide-body, button { border: 1px solid CanvasText; }
  .hero::before, .hero-glow, .motes, .dawn-sky { display: none; }
  .chapter-num { color: CanvasText; }
  .tip .finish::before { display: none; }
  .intro-stars { display: none; }
}
@media print {
  :root { color-scheme: light; --paper: #fff; --paper-2: #fff; --ink: #141a33; }
  body { background: #fff; color: #141a33; font-size: 9.5pt; }
  .series-bar, .hero-room, .hero::before, .hero-glow, .motes, .scroll-cue, .skip-link, .jump, .strip, .share, .habit-art, .help-art, .char-cameo, .spiky-cameo, .viz-box:not(.viz-canvas-box), .dawn-sky, .rail, button, #status, .back-top, .pose, .intro-stars { display: none !important; }
  .viz-canvas-box { background: none; color: #141a33; border: 0; box-shadow: none; padding: 0; }
  .viz-canvas-box .viz-play-btn, .viz-canvas-box .viz-nav, .viz-canvas-box .viz-stage { display: none !important; }
  .viz-canvas-box .viz-static { display: grid !important; gap: 6pt; }
  .viz-static li { background: none; border: 1px solid #cdbf9f; padding: 6pt 8pt; }
  .viz-canvas-box .viz-eyebrow, .viz-static h4, .viz-static p, .viz-static .viz-static-take { color: #141a33; }
  .hero { min-height: 0; display: block; background: none; color: #141a33; text-align: left; }
  .hero .eyebrow { color: #4d5674; text-shadow: none; }
  h1 { font-size: 24pt; text-shadow: none; } .hero-stage { width: 120px; } .hero-art { filter: none; animation: none; }
  .intro, .dawn, .coach-card { background: none; color: #141a33; padding: 8px 0; }
  .lead, .dawn h2, .coach h2, .lead-more, .lead-more strong, .dawn-text, .dawn-text .dawn-rally, .coach-lead, .hint { color: #141a33; text-shadow: none; }
  .reading, .about, .dawn { margin-top: 0; border-radius: 0; box-shadow: none; }
  .chapter { margin-top: 0; padding: 10px 0; border-radius: 0; break-inside: avoid; } .wrap { padding: 0; }
  .tip { display: block; } .tip .finish::before { display: none; } .instruction-panel { transform: none; }
  .rv { opacity: 1; transform: none; }
  .guide-body, .is-here .guide-body { background: none; color: #141a33; box-shadow: none; }
}

/* Listen: the narrated version of a guide. A card in the intro, a transcript that follows the voice, and a
   player docked at the bottom of the screen while it plays (campaign.js builds the dock). */
.listen { margin-top: clamp(1.8rem, 4vw, 3rem); }
.listen-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(1rem, 2.6vw, 2.25rem); padding: clamp(1rem, 2.4vw, 1.75rem); border: 1px solid rgb(246 185 74 / .4); border-radius: 1.4rem; background: linear-gradient(120deg, rgb(246 185 74 / .13), rgb(255 255 255 / .045) 55%); }
.listen-card--plain { grid-template-columns: minmax(0, 1fr); }
.listen-cover { width: clamp(5rem, 13vw, 10rem); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 1rem; box-shadow: 0 14px 34px -14px rgb(0 0 0 / .8); }
.listen-title { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem); font-weight: 500; line-height: 1.1; letter-spacing: -.012em; color: #fff; }
.listen-meta { margin: .3rem 0 0; color: var(--lilac); }
.listen-audio { display: block; width: 100%; margin-top: .9rem; }
.has-player .listen-audio { display: none; }
.listen-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.4rem; margin-top: .9rem; }
.listen-play { min-width: 9.5rem; }
.listen-download { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--gold-soft); font-weight: 700; }
.listen-hint { margin: .6rem 0 0; color: var(--lilac); font-size: .94em; }

.transcript { margin-top: .9rem; border: 1px solid var(--night-line); border-radius: 1.4rem; background: rgb(255 255 255 / .035); }
.transcript > summary { display: flex; align-items: center; gap: .7rem; min-height: 3.25rem; padding: .5rem 1.2rem; cursor: pointer; color: var(--cream); font-weight: 700; list-style: none; border-radius: 1.4rem; }
.transcript > summary::-webkit-details-marker { display: none; }
.transcript > summary::before { content: "+"; display: grid; place-items: center; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--night-line); color: var(--gold); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.transcript[open] > summary::before { content: "−"; }
.transcript > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.transcript-body { padding: .4rem clamp(1.2rem, 3vw, 2.75rem) clamp(1.2rem, 3vw, 2.5rem); font-family: var(--font-display); font-size: clamp(1.22rem, 1.02rem + .85vw, 1.8rem); font-weight: 400; line-height: 1.5; color: var(--lilac); }
.tr-chapter { scroll-margin-top: calc(var(--bar-h) + 1rem); }
.tr-chapter + .tr-chapter { margin-top: 1.4em; padding-top: 1.2em; border-top: 1px solid var(--night-line); }
.tr-title { margin: 0 0 .7em; font-family: var(--font-body); font-size: .9rem; font-weight: 700; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.tr-time { display: inline-block; margin-right: .6em; padding: .1em .55em; border-radius: 999px; border: 1px solid rgb(246 185 74 / .45); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.tr-jump { display: inline; min-height: 0; padding: .35rem .2rem; border: 0; border-radius: .5rem; background: none; box-shadow: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; }
.tr-jump:hover { transform: none; background: rgb(255 255 255 / .08); }
.tr-chapter p { margin: 0 0 .85em; }
.tr-chapter p:last-child { margin-bottom: 0; }
.cue { padding: .06em .12em; margin: 0 -.12em; border-radius: .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: color .25s, background-color .25s; }
.has-player .cue { cursor: pointer; }
.has-player .cue:hover { color: var(--cream); }
.cue.is-now { color: #fff; background: rgb(246 185 74 / .24); }

/* Where the voice is on the page itself. */
.chapter.is-narrating { box-shadow: inset .4rem 0 0 var(--gold); }
.is-pointed { outline: 3px solid rgb(246 185 74 / .85); outline-offset: .6rem; border-radius: 1rem; }

.dock { --focus: var(--gold); position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); background: rgb(11 16 38 / .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--cream); border-top: 1px solid rgb(246 185 74 / .45); box-shadow: 0 -14px 34px -14px rgb(0 0 0 / .55); }
.dock[hidden] { display: none; }
.has-dock body { padding-bottom: var(--dock-h, 0px); }
.has-dock { scroll-padding-bottom: var(--dock-h, 0px); }
.dock-inner { max-width: calc(var(--wrap) + 6rem); margin-inline: auto; padding: .55rem max(var(--gutter), env(safe-area-inset-right, 0px)) .55rem max(var(--gutter), env(safe-area-inset-left, 0px)); display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; }
.dock button { display: inline-grid; place-items: center; flex: none; min-width: 2.75rem; min-height: 2.75rem; padding: .3rem .85rem; border: 1px solid var(--night-line); background: rgb(255 255 255 / .07); color: var(--cream); box-shadow: none; font-size: .88rem; line-height: 1.1; }
.dock button:hover { transform: none; background: rgb(255 255 255 / .16); }
.dock button svg { width: 1.45rem; height: 1.45rem; fill: currentColor; }
.dock .dock-play { width: 3.1rem; height: 3.1rem; padding: 0; border-color: transparent; background: var(--gold); color: var(--night); }
.dock .dock-play:hover { background: var(--gold-soft); }
.dock .dock-play svg { width: 1.8rem; height: 1.8rem; }
.dock .dock-skip, .dock .dock-close { padding: 0; }
.dock button[aria-pressed="true"] { border-color: transparent; background: var(--gold); color: var(--night); }
.dock button:disabled { opacity: .38; cursor: default; }
.dock button:disabled:hover { background: rgb(255 255 255 / .07); }
/* Speed is a menu, drawn like the buttons beside it; the list it opens is the system's own, in the dark scheme. */
.dock-rate { flex: none; min-height: 2.75rem; margin: 0; padding: .3rem .55rem; border: 1px solid var(--night-line); border-radius: .65rem; background-color: rgb(255 255 255 / .07); color: var(--cream); color-scheme: dark; font: 700 .88rem/1.1 var(--font-body); cursor: pointer; }
.dock-rate:hover { background-color: rgb(255 255 255 / .16); }
.dock-rate:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.dock-rate option { background: var(--night); color: var(--cream); }
.dock-now { display: flex; flex-direction: column; flex: 1 1 9rem; min-width: 0; line-height: 1.25; }
.dock-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; }
.dock-time { color: var(--lilac); font-size: .88rem; font-variant-numeric: tabular-nums; }
.dock.is-waiting .dock-time { opacity: .55; }
.dock-seek { flex: 3 1 14rem; order: 3; min-width: 0; height: 2.75rem; margin: 0; accent-color: var(--gold); cursor: pointer; }
.dock-seek:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: .4rem; }
.dock-tools { display: flex; order: 4; gap: .45rem; }
.dock .dock-close { order: 5; }
.dock .dock-tool { white-space: nowrap; }

@media (max-width: 62rem) {
  .dock-now { flex-basis: 6rem; }
  .dock .dock-close { order: 2; }
  .dock-seek { flex-basis: 100%; height: 2.25rem; }
  .dock-tools { flex: 1 1 100%; flex-wrap: wrap; min-width: 0; }
  .dock .dock-tool, .dock-rate { flex: 1 1 auto; padding-inline: .5rem; }
}
@media (max-width: 30rem) {
  .dock-tools { gap: .35rem; }
  .dock .dock-tool, .dock-rate { font-size: .82rem; padding-inline: .4rem; }
}
@media (max-width: 24rem) {
  .dock-inner { gap: .35rem .4rem; }
  .dock-now { flex-basis: 3rem; }
  .dock-title { font-size: .92rem; }
  .dock .dock-tool, .dock-rate { font-size: .8rem; padding-inline: .3rem; }
  .listen-card { grid-template-columns: minmax(0, 1fr); }
  .listen-cover { width: 5rem; }
}
@media (forced-colors: active) {
  .cue.is-now { outline: 2px solid Highlight; }
  .dock button[aria-pressed="true"] { outline: 2px solid Highlight; }
  .dock-rate { border: 1px solid CanvasText; }
  .chapter.is-narrating { border-left: .4rem solid Highlight; }
}
@media print {
  .dock, .listen-card, .about-actions { display: none !important; }
  .transcript { border: 0; background: none; }
  .transcript-body, .tr-title { color: #141a33; }
  .about-refs { border: 0; background: none; padding: 0; }
}

/* ---------------------------------------------------------------------------
   Shared primitives promoted from across the series (Phase 1 platform v2):
   2-frame clay stop-motion, 2-column feature spreads, proportional ratio bars,
   zero-JS FAQ accordions, local-context notes, and Print + References footer.
   --------------------------------------------------------------------------- */

/* Shared 2-frame clay stop-motion layers (reduced-motion shows static Frame A). */
.stop-motion { position: relative; overflow: hidden; }
.stop-motion .stop-a { display: block; width: 100%; height: auto; }
.stop-motion .stop-b { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .stop-motion.is-animating .stop-b { animation: lf-stop-step var(--stop-rate, 1.35s) steps(1, end) infinite; }
}
@keyframes lf-stop-step { 0%, 49.9% { opacity: 0; } 50%, 100% { opacity: 1; } }

/* Balanced 2-column editorial feature spread (left intro + art, right stacked cards). */
.feature-spread {
  margin-top: clamp(1.5rem, 3vw, 2.3rem);
  padding: clamp(1.15rem, 2.4vw, 1.75rem);
  border-radius: 1.15rem;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface) 58%);
  border: 1.5px solid var(--line-strong);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(1.2rem, 2.6vw, 2.2rem);
  align-items: stretch;
}
.feature-spread-lead { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(.9rem, 1.8vw, 1.35rem); }
.feature-spread-art { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 16px rgb(20 26 51 / .15)); }
@media (max-width: 58rem) {
  .feature-spread { grid-template-columns: 1fr; gap: clamp(1rem, 2.2vw, 1.4rem); }
  .feature-spread-lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); align-items: center; gap: 1.25rem; }
}
@media (max-width: 42rem) {
  .feature-spread-lead { grid-template-columns: 1fr; gap: .95rem; }
}

/* Proportional horizontal ratio meter (e.g. 70/30 wild bees or 4c vs 14c solar). */
.ratio-meter {
  display: grid;
  border-radius: .95rem;
  overflow: hidden;
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.ratio-seg {
  padding: .85rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem .75rem;
}

/* Accessible zero-JS 2-column FAQ accordion grid (<details class="faq-item">). */
.faq-grid {
  margin-top: clamp(1.4rem, 2.8vw, 2.1rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.75rem, 1.5vw, 1rem);
  align-items: start;
}
.faq-col { display: flex; flex-direction: column; gap: clamp(.75rem, 1.5vw, 1rem); }
@media (max-width: 54rem) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item {
  border-radius: .95rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
  transition: border-color .2s var(--ease);
}
.faq-item[open] { border-color: var(--line-strong); }
.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding: clamp(.95rem, 1.8vw, 1.2rem) clamp(1rem, 2vw, 1.35rem);
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: clamp(1rem, .95rem + .24vw, 1.14rem);
  line-height: 1.3;
  color: var(--ink);
  border-radius: .9rem;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: .5rem;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1;
}
.faq-item[open] > summary::after { content: "−"; color: var(--accent-ink); border-color: var(--accent); }
.faq-item > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.faq-body {
  padding: 0 clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2vw, 1.35rem);
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.58;
}
.faq-body p { margin: 0; }
.faq-kicker {
  display: block;
  margin-bottom: .4rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.faq-links { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; margin-top: .65rem; font-size: .92rem; font-weight: 700; }

/* Inline local-context callout ("Live in another state?"). */
.local-note {
  margin-top: 1.15rem;
  padding-top: .95rem;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.2rem;
  font-size: .93rem;
  color: var(--muted);
}
.local-note strong { color: var(--ink); }

/* Footer action bar (Print / PDF + Back to top) and optional collapsible References drawer. */
.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem .9rem;
  margin-top: 1.1rem;
}
.about-actions .back-top { margin-top: 0; }
.about-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.55rem;
  padding: .42rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.about-btn:hover { background: var(--paper-2); border-color: var(--accent); transform: none; }
.about-refs {
  margin-top: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: .95rem;
  background: var(--surface);
}
.about-refs > summary {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.85rem;
  padding: .5rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: .94rem;
  color: var(--ink);
  border-radius: .9rem;
}
.about-refs > summary::-webkit-details-marker { display: none; }
.about-refs > summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--accent-ink);
  font-weight: 500;
  line-height: 1;
}
.about-refs[open] > summary::before { content: "−"; }
.about-refs-body { padding: .2rem 1.25rem 1.2rem; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.about-refs-body p { margin: 0 0 .85rem; }
.about-refs-list { margin: 0; padding-left: 1.3rem; display: grid; gap: .45rem; }
.about-refs-list li strong { color: var(--ink); }

/* Living in a smarter home: warm slate-blue, brushed brass, and calm evening lamplight. */
:root {
  --accent: #3d638c;
  --accent-ink: #274463;
  --accent-soft: #e6eef7;
  --accent-2: #b87b2a;
  --brass: #b87b2a;
  --brass-soft: #f9eedc;
  --slate-deep: #101c2e;
  --slate-mid: #1a2d47;
  --ok: #266b4e;
  --ok-soft: #e6f4ec;
  --warn: #a6492a;
  --warn-soft: #fbece6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #7da6d4;
    --accent-ink: #b9d4f2;
    --accent-soft: #1b2a3d;
    --accent-2: #e6ae58;
    --brass: #e6ae58;
    --brass-soft: #2e2415;
    --ok: #6cc99e;
    --ok-soft: #162c22;
    --warn: #e58565;
    --warn-soft: #311c16;
  }
}

.hero {
  background: radial-gradient(120% 90% at 50% -10%, #243b5c 0%, var(--slate-mid) 38%, var(--slate-deep) 74%);
}
.hero-glow {
  background: radial-gradient(closest-side, rgb(246 185 74 / .28), rgb(246 185 74 / 0) 72%);
}

/* Interactive device counter (Chapter 1) */
.counter-box {
  margin-top: clamp(1.6rem, 3.5vw, 2.5rem);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border-radius: 1.5rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 18px 42px -28px rgb(16 28 46 / .25);
}
.counter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.8rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.counter-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.65rem);
  color: var(--ink);
}
.counter-sub {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .96rem;
}
.counter-readout {
  flex: none;
  min-width: 7.5rem;
  padding: .65rem 1rem;
  border-radius: 1rem;
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  text-align: center;
}
.counter-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.counter-label {
  margin-top: .25rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
}
.counter-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.8rem;
  margin-top: 1.2rem;
}
.counter-group h4 {
  margin: 0 0 .7rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
}
.dev-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.dev-chip {
  min-height: 2.6rem;
  padding: .45rem .9rem;
  border-radius: .75rem;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.dev-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: none;
}
.dev-chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .dev-chip[aria-pressed="true"] {
    color: #0e1826;
  }
}
.counter-summary {
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.2rem;
}
.counter-summary p {
  margin: 0;
  flex: 1 1 14rem;
  min-width: 0;
  color: var(--ink);
  font-size: .96rem;
  line-height: 1.52;
}
.counter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.counter-reset {
  min-height: 2.35rem;
  padding: .35rem .8rem;
  border-radius: .65rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}
.counter-reset:hover {
  background: var(--accent-soft);
  transform: none;
}

/* Interactive offline diorama (Chapter 2) */
.offline-box {
  margin-top: clamp(1.6rem, 3.5vw, 2.4rem);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border-radius: 1.6rem;
  background: linear-gradient(155deg, var(--slate-deep) 0%, var(--slate-mid) 100%);
  color: var(--cream);
  border: 1px solid rgb(214 226 255 / .18);
  box-shadow: 0 24px 50px -28px rgb(8 14 28 / .65);
  --focus: var(--gold);
}
.offline-top {
  display: flex;
  flex-direction: column;
  gap: .95rem;
}
.offline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
}
.offline-eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem);
  font-weight: 600;
  color: #fff;
}
.offline-play {
  min-height: 2.6rem;
  padding: .42rem 1.05rem;
  border-radius: .75rem;
  border: 1px solid rgb(246 185 74 / .6);
  background: rgb(246 185 74 / .14);
  color: var(--gold-soft);
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  box-shadow: none;
}
.offline-play:hover {
  background: rgb(246 185 74 / .24);
  transform: none;
}
.offline-nav {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.offline-progress {
  display: block;
  width: 100%;
  height: .28rem;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: rgb(255 255 255 / .12);
  accent-color: var(--gold);
}
.offline-progress::-webkit-progress-bar { background: rgb(255 255 255 / .12); border-radius: 999px; }
.offline-progress::-webkit-progress-value { background: var(--gold); border-radius: 999px; }
.offline-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.offline-tab {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.85rem;
  padding: .55rem .95rem;
  border-radius: .85rem;
  border: 1px solid rgb(214 226 255 / .22);
  background: rgb(255 255 255 / .05);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}
.offline-tab:hover {
  background: rgb(255 255 255 / .12);
  transform: none;
}
.offline-tab[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #161204;
}
.tab-n {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: rgb(0 0 0 / .16);
  font-size: .85rem;
  font-weight: 800;
}
.offline-says {
  position: relative;
  margin-top: 1.1rem;
  min-height: var(--says-h, 0px);
}
.offline-says .say {
  display: none;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
  gap: .75rem 1.6rem;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: rgb(255 255 255 / .06);
  border: 1px solid rgb(214 226 255 / .14);
}
.offline-box[data-view="1"] .say-1,
.offline-box[data-view="2"] .say-2,
.offline-says .say.is-on {
  display: grid;
}
.say-badge {
  display: inline-block;
  margin-bottom: .35rem;
  padding: .18rem .55rem;
  border-radius: .45rem;
  background: rgb(108 201 158 / .2);
  color: #a6efd0;
  font-size: .82rem;
  font-weight: 700;
}
.say-badge.is-warn {
  background: rgb(229 133 101 / .22);
  color: #ffc3ae;
}
.offline-says h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem);
  line-height: 1.2;
  color: #fff;
}
.offline-says p {
  margin: 0;
  color: #dbe3f5;
  font-size: .95rem;
  line-height: 1.55;
}
.say-take {
  margin-top: .5rem !important;
  color: var(--gold-soft) !important;
  font-weight: 700;
}
.offline-stage {
  margin-top: 1.05rem;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgb(214 226 255 / .18);
  background: #0c1422;
}
.offline-stage .scene {
  display: none;
  margin: 0;
  aspect-ratio: 16 / 9;
}
.offline-box[data-view="1"] .scene-1,
.offline-box[data-view="2"] .scene-2,
.offline-stage .scene.is-on {
  display: block;
}

/* Evidence cards (Chapter 2) */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
}
.home-card {
  padding: 1.2rem 1.3rem;
  border-radius: 1.15rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.home-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.22;
  color: var(--ink);
}
.home-card p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.56;
}
.card-kicker {
  display: inline-block;
  align-self: flex-start;
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent-ink);
}
.card-kicker.is-brass { color: var(--brass); }
.card-kicker.is-amber { color: var(--warn); }
.card-kicker.is-slate { color: var(--accent-ink); }

/* 4-Rung Ladder (Chapter 4) */
.ladder-box {
  margin-top: clamp(1.5rem, 3vw, 2.3rem);
  padding: clamp(1.2rem, 3vw, 2.1rem);
  border-radius: 1.5rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.ladder-top h3 {
  margin: 0 0 .9rem;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.05rem + .7vw, 1.55rem);
  color: var(--ink);
}
.ladder-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
}
.ladder-tab {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.9rem;
  padding: .55rem .85rem;
  border-radius: .85rem;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}
.ladder-tab:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: none;
}
.ladder-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .ladder-tab[aria-selected="true"] { color: #0e1826; }
}
.ladder-panel {
  margin-top: 1.2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr);
  gap: 1.1rem 1.8rem;
  align-items: start;
}
.ladder-panel[hidden] { display: none; }
.ladder-meta h4 {
  margin: .3rem 0 .45rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.2;
  color: var(--ink);
}
.ladder-meta p {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.58;
}
.ladder-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: .65rem;
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.55;
}

/* Humble "How we learned this" callout (Chapter 4) */
.house-note {
  margin-top: clamp(1.5rem, 3vw, 2.3rem);
  padding: clamp(1.25rem, 3vw, 2.1rem);
  border-radius: 1.5rem;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--brass-soft) 0%, var(--surface) 48%);
}
.house-note-head h3 {
  margin: .25rem 0 .45rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
  color: var(--ink);
}
.house-note-head p {
  margin: 0;
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.6;
}
.house-pillars {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: pillar;
}
.house-pillars li {
  counter-increment: pillar;
  padding: 1.05rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.house-pillars h4 {
  margin: 0 0 .4rem;
  font-size: 1.02rem;
  color: var(--ink);
}
.house-pillars h4::before {
  content: counter(pillar);
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: .5rem;
  border-radius: 50%;
  background: var(--brass-soft);
  color: var(--brass);
  font-size: .85rem;
  font-weight: 800;
}
.house-pillars p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.55;
}

/* Five questions (Chapter 5) */
.five-questions {
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 1.35rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.five-questions h3 {
  margin: 0 0 .9rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem);
  color: var(--ink);
}
.q-list {
  margin: 0;
  padding-left: 1.35rem;
  display: grid;
  gap: .75rem;
  color: var(--ink);
  font-size: .97rem;
  line-height: 1.58;
}
.faq-heading {
  margin: clamp(1.8rem, 3.5vw, 2.5rem) 0 .4rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
  color: var(--ink);
}

@media (max-width: 56rem) {
  .evidence-grid,
  .house-pillars { grid-template-columns: minmax(0, 1fr); }
  .ladder-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder-panel { grid-template-columns: minmax(0, 1fr); }
  .counter-groups { grid-template-columns: minmax(0, 1fr); }
  .offline-says .say { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 36rem) {
  .offline-tabs,
  .ladder-tabs { grid-template-columns: minmax(0, 1fr); }
}
