/* The one stylesheet for every journey page (generated pages: build-journeys.mjs). Grown from the approved hexagonal story; every other journey adds nothing of its own.
   Scroll story: sticky panel beside the text. Palette and type follow mm3lab.dev (ink navy, system stack).
   One accent (blue). Green and red appear only as pass and fail, always beside a word.
   Spacing scale: 4 / 8 / 16 / 24 / 40 / 64. Light is the base, dark redefines the same tokens.
   No web fonts, no libraries, no external assets.
   Without JavaScript the page is a plain scroll: every pane sits inline under its paragraph. */
:root {
  --bg: #f6f8fc; --surface: #ffffff; --card: #eaf0f8; --line: #d5deeb;
  --ink: #0f1b2d; --muted: #4a5d77; --accent: #0a6aa1; --accent-ink: #ffffff;
  --pass: #2f7a10; --fail: #b3261e;
  --glow1: rgba(10, 106, 161, .12); --glow2: rgba(10, 106, 161, .06);
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 16px 40px -20px rgba(15, 27, 45, .22);
  /* the panel is always a dark terminal */
  --t-bg: #0b1424; --t-bar: #101b2e; --t-line: #24344f; --t-ink: #e6edf7; --t-dim: #8ea3bd;
  --t-pass: #b7ff83; --t-fail: #ff8d85; --t-blue: #9bdcff; --t-amber: #ffcd57;
  --t-failbg: rgba(255, 141, 133, .16); --t-passbg: rgba(183, 255, 131, .12);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px;
  --headh: 56px; --maxw: 1320px; --gutter: clamp(20px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050914; --surface: #0d1729; --card: #101b2e; --line: #1f2f48;
    --ink: #f5f8ff; --muted: #9db0c6; --accent: #9bdcff; --accent-ink: #05202f;
    --pass: #b7ff83; --fail: #ff8d85;
    --glow1: rgba(155, 220, 255, .12); --glow2: rgba(155, 220, 255, .05);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -20px rgba(0, 0, 0, .8);
    --t-bg: #0b1424; --t-bar: #14223a; --t-line: #2a3d5c;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); overflow-wrap: break-word; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code, pre { font-family: var(--mono); }
code { font-size: .88em; background: var(--card); border-radius: 6px; padding: .1em .4em; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: var(--s3) 0; }
.wrap { padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2)); }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s3); }
.small { font-size: .9rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: .5rem 1rem; border-radius: 8px; z-index: 30; }
.skip:focus { left: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); height: var(--headh); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); height: 100%; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-weight: 900; font-size: 1.5rem; letter-spacing: -.04em; color: var(--ink); text-decoration: none; line-height: 1; }
.brand .m-make { color: var(--accent); } .brand .m-model { color: var(--pass); }
.brand .beta { display: inline-block; margin-left: .5em; padding: .2em .6em; background: var(--card); border-radius: 999px; color: var(--muted); font-size: .42em; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.top nav a:hover { color: var(--ink); }

/* hero: copy left, terminal and tiles right on a wide screen; one column on a phone */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding-block: var(--s4) var(--s5); background: radial-gradient(60rem 26rem at 8% -10%, var(--glow1), transparent 70%), radial-gradient(48rem 24rem at 100% 0%, var(--glow2), transparent 70%); }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(1.8rem, 8.4vw, 3.6rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.08; }
.h1a, .h1b { display: block; }
.h1b { text-wrap: wrap; }
.lede { font-size: clamp(1.05rem, 2.6vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 34rem; margin: var(--s3) 0 0; }
.hero-visual { display: grid; gap: var(--s3); min-width: 0; align-content: center; }
.term { background: var(--t-bg); color: var(--t-ink); border-radius: 16px; box-shadow: var(--shadow); font-family: var(--mono); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem var(--s3); background: var(--t-bar); font-size: .78rem; color: var(--t-dim); }
.term-bar i, .dots i { width: 10px; height: 10px; border-radius: 50%; background: #3b4d6b; display: inline-block; }
.term-bar i:nth-child(1), .dots i:nth-child(1) { background: #ff8d85; } .term-bar i:nth-child(2), .dots i:nth-child(2) { background: #ffcd57; } .term-bar i:nth-child(3), .dots i:nth-child(3) { background: #b7ff83; }
.term-bar span { margin-left: var(--s2); }
.term-body { padding: var(--s4) var(--s3); font-size: clamp(.95rem, 3.6vw, 1.4rem); line-height: 1.45; min-height: 4.6rem; overflow-wrap: anywhere; }
.prompt { color: var(--t-pass); font-weight: 700; }
.caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--t-pass); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.tile { background: var(--surface); border-radius: 16px; padding: var(--s3); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.tile .big { font-size: clamp(2.25rem, 9vw, 3.25rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile.sm .big { font-size: clamp(1.6rem, 6.6vw, 2.5rem); line-height: 1.17; }
.tile .cap { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.scrollhint { margin: 0; color: var(--muted); font-size: .9rem; }
.scrollhint span { display: inline-block; margin-right: .3rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .tile { opacity: 0; transform: translateY(14px); animation: rise .6s ease-out forwards; }
  .js .tile:nth-child(1) { animation-delay: .2s; } .js .tile:nth-child(2) { animation-delay: .35s; } .js .tile:nth-child(3) { animation-delay: .5s; } .js .tile:nth-child(4) { animation-delay: .65s; }
  .scrollhint span { animation: bob 1.6s ease-in-out infinite; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(5px); } }
@media (min-width: 640px) {
  .hero h1 { font-size: clamp(3rem, 1rem + 5vw, 4.2rem); }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile .big { font-size: clamp(2.25rem, 5vw, 3rem); }
  .tile.sm .big { font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.43; }
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); grid-template-areas: "copy visual" "hint hint"; column-gap: var(--s6); row-gap: var(--s4); align-items: center; min-height: min(calc(100svh - var(--headh) - 96px), 660px); padding-block: var(--s5) var(--s4); gap: var(--s4) var(--s6); grid-template-rows: 1fr auto; }
  .hero-copy { grid-area: copy; }
  .hero-visual { grid-area: visual; }
  .scrollhint { grid-area: hint; }
  .hero h1 { font-size: clamp(2.2rem, 3.6vw, 3.3rem); }
  .h1b { display: block; }
  .h1a, .h1c, .h1d { display: block; }
  .lede { font-size: clamp(1.15rem, .6rem + .6vw, 1.4rem); margin-top: var(--s4); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: var(--s4); }
  .tile .cap { font-size: .95rem; }
  .tile .big { font-size: clamp(2.25rem, .8rem + 2vw, 3rem); }
  .tile.sm .big { font-size: clamp(1.75rem, .5rem + 1.5vw, 2.25rem); line-height: 1.2; }
  .term-body { padding: var(--s4); font-size: clamp(1rem, .3rem + .8vw, 1.1rem); }
}

/* ---------- story: base (no JS) = plain scroll, panes inline ---------- */
.scrolly { padding-block: var(--s3) var(--s5); }
.step { padding-block: var(--s5); }
.num { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s2); }
.step h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.25rem); font-weight: 800; margin-bottom: var(--s3); }
.step p { font-size: 1.0625rem; max-width: 38rem; }
.aside-note { background: var(--card); border-radius: 12px; padding: var(--s3); color: var(--ink); font-size: .96rem !important; line-height: 1.55; }
.pane { background: var(--t-bg); color: var(--t-ink); border-radius: 16px; padding: var(--s3) var(--s4); font: .86rem/1.6 var(--mono); margin-top: var(--s4); overflow-x: auto; }
.pane .dim, .dim { color: var(--t-dim); }
.step .dim { color: var(--t-dim); }
.tl { margin: .15rem 0; overflow-wrap: anywhere; }
.pane b.ok, .ok-t, .pane .ok { color: var(--t-pass); }
.pane b.bad, .bad-t, .pane .bad { color: var(--t-fail); }
.pane b { font-weight: 700; }
.bad-t, .ok-t { padding: .3rem .6rem; border-radius: 8px; margin: .35rem 0; }
.bad-t { background: var(--t-failbg); } .ok-t { background: var(--t-passbg); }
.big-out { font-size: 1.15rem; font-weight: 700; }
.note { color: var(--t-amber); margin-top: .6rem; font-family: var(--sans); font-size: .9rem; }
.plain { font-family: var(--sans); color: var(--t-ink); font-size: .92rem !important; margin: .9rem 0 .3rem !important; max-width: none !important; }
.parts { list-style: none; padding: 0; margin: .3rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; font-family: var(--sans); font-size: .86rem; line-height: 1.4; }
.parts li { background: var(--t-bar); border-radius: 10px; padding: .6rem .75rem; }
.parts b { display: block; color: var(--t-blue); font-size: .9rem; margin-bottom: .15rem; }
.rule { margin-top: .7rem; background: var(--t-passbg); border-radius: 10px; padding: .6rem .8rem; font-family: var(--sans); font-size: .92rem; }
.rule b { color: var(--t-pass); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; display: block; }
.files { list-style: none; padding: 0; margin: .2rem 0 .6rem; }
.files li { margin: .15rem 0; }
.files code { background: transparent; border: 0; padding: 0; color: var(--t-blue); font-size: 1em; }
.files li::before { content: "+ "; color: var(--t-pass); }

.verdict { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; font-family: var(--sans); margin-bottom: .5rem; }
.badge { font: 800 .85rem/1 var(--sans); letter-spacing: .12em; padding: .5rem .8rem; border-radius: 8px; }
.badge.pass { background: var(--t-pass); color: #08140a; } .badge.fail { background: var(--t-fail); color: #2a0806; }
.vtxt { font-size: .95rem; font-weight: 600; }
.nw { white-space: nowrap; }
.group { font-family: var(--sans); color: var(--t-dim); font-size: .78rem !important; text-transform: uppercase; letter-spacing: .1em; margin: .9rem 0 .3rem !important; max-width: none !important; }
.q { display: grid; grid-template-columns: 3.1rem 1fr; gap: .1rem .6rem; align-items: center; margin: .55rem 0; font-family: var(--sans); }
.q p { grid-column: 1 / -1; margin: .1rem 0 0 !important; font-size: .88rem !important; line-height: 1.4; max-width: none !important; color: var(--t-ink); }
.q.key { background: rgba(155, 220, 255, .08); border-radius: 10px; padding: .4rem .5rem; margin-inline: -.5rem; }
.qs { font: 800 1.2rem/1 var(--mono); color: var(--t-pass); }
.qs.low { color: var(--t-fail); }
.bar { height: 9px; background: #1c2b44; border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--t-pass); border-radius: 6px; }
.bar i.low { background: var(--t-fail); }
.qs3 .q { grid-template-columns: 3rem 1fr; }
.qs3 .q p { grid-column: 1 / -1; font-size: .82rem !important; }

.lab .labfile { display: flex; justify-content: space-between; gap: .6rem; font-size: .78rem; color: var(--t-dim); margin-bottom: .4rem; flex-wrap: wrap; }
.labtag { color: var(--t-pass); font-weight: 700; } .labtag.broken { color: var(--t-fail); }
pre.code { max-height: 15em; margin: var(--s3) 0 0; padding: var(--s3) 0; background: rgba(255, 255, 255, .045); border-radius: 12px; overflow: auto; font-size: .8rem; line-height: 1.5; max-width: 100%; tab-size: 4; }
pre.code .l { display: block; padding: 0 .8rem 0 2.4rem; position: relative; white-space: pre; min-height: 1.5em; }
pre.code .l::before { content: attr(data-n); position: absolute; left: 0; width: 1.9rem; text-align: right; color: #55698a; }
pre.code .l.bad { background: var(--t-failbg); box-shadow: inset 3px 0 0 var(--t-fail); }
pre.code .l.bad::before { color: var(--t-fail); font-weight: 800; }
pre.code .c { color: #7f93b0; } pre.code .s { color: var(--t-amber); }
pre.code .l.bad .c { color: #c99a96; }


/* chips, switch */
.chip:disabled { opacity: .38; cursor: not-allowed; }
.chip:disabled:hover { background: var(--card); }
.chips.patterns { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--s3); }
.patinfo { background: var(--card); border-radius: 12px; padding: var(--s3); margin: 0 0 var(--s3); }
.patinfo p { margin: var(--s2) 0; font-size: .98rem; max-width: none; }
.patinfo .pat-line { font-size: 1.05rem; }
.patinfo ul { margin: var(--s2) 0 0; padding-left: 1.1rem; }
.patinfo li { margin: var(--s1) 0; }
.patinfo .dim2 { opacity: .8; }
.js .patinfo.jsonly { display: block; }
.pane .legend { font: .78rem/1.45 var(--sans); color: var(--t-dim); margin: var(--s3) 0 0; }
.q .hint { color: var(--t-dim); font-size: .85em; }
.badge.unsure { background: var(--t-amber); color: #2a1d00; }

.chips { display: grid; grid-template-columns: repeat(var(--cols-m, var(--cols, 3)), minmax(0, 1fr)); gap: var(--s2); margin: var(--s4) 0; }
@media (min-width: 600px) { .chips { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.chip { font: 700 .9rem/1 var(--sans); padding: 0 var(--s2); min-height: 48px; border-radius: 999px; border: 0; background: var(--card); color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.chip:hover { background: color-mix(in srgb, var(--accent) 18%, var(--card)); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.switchrow { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin: var(--s4) 0; }
.switch { display: inline-flex; align-items: center; gap: .8rem; min-height: 48px; padding: var(--s1) var(--s4) var(--s1) var(--s2); border-radius: 999px; border: 0; background: var(--card); color: var(--ink); font: 700 1rem/1 var(--sans); cursor: pointer; }
.switch .knob { width: 44px; height: 26px; border-radius: 999px; background: #8394ab; position: relative; transition: background .25s; flex: none; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .25s; }
.switch[aria-checked="true"] .knob { background: var(--fail); }
.switch[aria-checked="true"] .knob::after { transform: translateX(18px); }
.switchstate { color: var(--muted); font-size: .95rem; }
.nojs-only { margin-top: var(--s3); }
.js .nojs-only { display: none; }
.jsonly { display: none; }
.js-inline { display: none; }
.js .js-inline { display: inline; }
p.js-inline { display: none; }
.js p.js-inline { display: block; }
.js .jsonly { display: flex; }
.js .chips.jsonly { display: grid; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); }

/* ---------- story: with JS = sticky panel ---------- */
.js .scrolly { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 0 var(--s5); }
/* phone: the panel pins under the header and takes at most 42% of the screen */
.js .panel { color-scheme: dark; position: sticky; top: var(--headh); z-index: 5; align-self: start; background: var(--t-bg); border-radius: 0 0 16px 16px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; height: min(40svh, 340px); margin-inline: calc(var(--gutter) * -1); }
.panel-bar { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); background: var(--t-bar); color: var(--t-dim); font: .76rem var(--mono); flex: none; min-height: 36px; }
.dots { display: none; gap: 6px; }
.panel-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count { display: inline; font-variant-numeric: tabular-nums; color: var(--t-ink); }
.progress { list-style: none; margin: 0; padding: 0; display: none; gap: 0; }
.progress button { width: 24px; height: 32px; border: 0; background: transparent; cursor: pointer; padding: 0; display: grid; place-items: center; }
.progress button::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3b4d6b; transition: background .25s, transform .25s; }
.progress button[aria-current="step"]::after { background: var(--t-pass); transform: scale(1.5); }
.progress button:focus-visible { outline-color: var(--t-blue); }
.stage { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.js .stage .pane { grid-area: 1 / 1; margin: 0; border: 0; border-radius: 0; overflow: auto; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; padding: var(--s3) var(--s3) var(--s4); font-size: .8rem; }
.js .stage .pane.active { opacity: 1; visibility: visible; transition: opacity .35s; }
.js .story { padding-top: var(--s2); }
.js .step { min-height: 58svh; padding-block: var(--s5); display: flex; flex-direction: column; justify-content: center; opacity: .4; transition: opacity .4s; }
.js .step.active, .js .step:focus-within { opacity: 1; }
.js .step .pane { display: none; }

/* reveal items inside panes (JS only) */
.js .pane:not(.shown) .rv { opacity: 0; transform: translateY(6px); }
.js .pane .rv { transition: opacity .45s ease, transform .45s ease; }
.js .pane .rv.in { opacity: 1; transform: none; }
.js .pane.shown .rv { opacity: 1; transform: none; }
.js .ty.typing::after { content: ""; display: inline-block; width: .5em; height: 1em; background: var(--t-pass); vertical-align: -.12em; margin-left: 1px; animation: blink 1s steps(1) infinite; }

/* wide screen: story about 42%, panel about 58%, the panel centred in the window while you read */
@media (min-width: 900px) {
  .js .scrolly { --ph: min(calc(100svh - var(--headh) - 64px), 680px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s6); padding-top: 0; }
  .js .panel { grid-column: 2; grid-row: 1; top: calc(var(--headh) + (100svh - var(--headh) - var(--ph)) / 2); height: var(--ph); border-radius: 16px; margin: 0; }
  .js .story { grid-column: 1; grid-row: 1; padding-top: 0; }
  .js .step { min-height: 80svh; padding-block: var(--s6); }
  .dots { display: inline-flex; }
  .count { display: none; }
  .progress { display: flex; }
  .panel-bar { padding: var(--s2) var(--s4); min-height: 44px; font-size: .8rem; }
  .js .stage .pane { padding: var(--s4) var(--s4) var(--s5); font-size: .9rem; }
  .pane { font-size: .9rem; }
  pre.code { font-size: .9rem; }
  .step p { font-size: 1.0625rem; }
  .qs3 .q { margin: var(--s3) 0; }
  .qs3 .q p, .q p { font-size: .9rem !important; }
}
@media (min-width: 900px) and (max-height: 760px) { .js .stage .pane { font-size: .82rem; } pre.code { font-size: .82rem; } }

@media (max-width: 399px) { .chip { font-size: .85rem; letter-spacing: -.01em; padding: 0 var(--s1); } }

/* close */
.close { padding-block: var(--s6); }
.close > * { max-width: 46rem; }
.close h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; }
.big-line { font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); line-height: 1.45; font-weight: 600; margin: var(--s3) 0; }
.next { font-size: 1.1rem; font-weight: 700; margin: var(--s4) 0; padding: var(--s3) var(--s4); background: var(--card); border-radius: 14px; }
.next .eyebrow { display: inline; margin-right: var(--s2); color: var(--accent); }
.print { margin-top: var(--s5); font-size: .95rem; color: var(--muted); }
.print h3 { font-size: 1rem; color: var(--ink); margin: var(--s4) 0 var(--s2); }
.print ul { padding-left: 1.2rem; margin: var(--s2) 0; } .print li { margin: var(--s2) 0; }

/* motion off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .caret { opacity: 1; }
  .js .tile { opacity: 1; transform: none; }
}

/* the key score as a pill beside the verdict: on a phone the panel is short, so the flip must show without scrolling */
.pill { font: 800 .8rem/1 var(--mono); padding: .35rem .55rem; border-radius: 999px; background: var(--t-passbg); color: var(--t-pass); }
.pill.low { background: var(--t-failbg); color: var(--t-fail); }
@media (min-width: 900px) { .pill { display: none; } }
@media (max-width: 899px) {
  .lab .labfile { margin-bottom: var(--s1); }
  .lab .verdict { gap: var(--s2); margin-bottom: var(--s1); }
  .lab .badge { font-size: .75rem; padding: .35rem .55rem; }
  .lab .vtxt { font-size: .82rem; flex: 1 1 8rem; min-width: 0; }
  pre.code { font-size: .72rem; line-height: 1.4; margin-top: var(--s2); max-height: 9.5em; }
  .qs3 { margin-top: var(--s2); }
}
@media (min-width: 600px) and (max-width: 899px) {
  .chips.patterns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step p { max-width: 38rem; }
  .js .stage .pane { font-size: .86rem; }
  pre.code { font-size: .8rem; }
}

/* architecture pictures: ONE standard view drawn by diagram.mjs (inbound | core with ports on its border | outbound), pre-rendered into the pages.
   The block between the DG-CSS markers is generated by site-diagrams.mjs; below it the page only maps its own colours onto the diagram's variables.
   The one edge a broken rule adds is red and dashed and only shown while "Break one line" is on (svg.broken). */
/*DG-CSS*/
.dg{--dg-accent:#0a6aa1;--dg-fail:#b3261e;--dg-bg:#fff;display:block;max-width:100%;height:auto}
@media (prefers-color-scheme:dark){.dg{--dg-accent:#9bdcff;--dg-fail:#ff8d85;--dg-bg:#0b1424;color:#f5f8ff}}
.dg-set{display:block;container-type:inline-size}
.dg-set>.dg-wide{display:none;max-width:1160px;margin-inline:auto}
.dg-set>.dg-tall{display:block;max-width:440px;margin-inline:auto}
@container (min-width:900px){.dg-set>.dg-wide{display:block}.dg-set>.dg-tall{display:none}}
.dg text{fill:currentColor;stroke:none}
.dg .dg-n rect{fill:currentColor;fill-opacity:.05;stroke:currentColor;stroke-width:1.5}
.dg .dg-grp{fill:none;stroke:currentColor;stroke-width:1;opacity:.4}
.dg .dg-core{fill:var(--dg-accent);fill-opacity:.1;stroke:var(--dg-accent);stroke-width:2}
.dg .dg-pbg{fill:var(--dg-bg);stroke:none}
.dg .dg-port{fill:var(--dg-accent);fill-opacity:.3;stroke:var(--dg-accent);stroke-width:1.5}
.dg .dg-e{fill:none;stroke:currentColor;stroke-width:1.5}
.dg .dg-mk{fill:currentColor;stroke:none}.dg .dg-mk-o{fill:none;stroke:currentColor;stroke-width:1.5}
.dg .dg-lbl{paint-order:stroke;stroke:var(--dg-bg);stroke-width:4px;stroke-linejoin:round}
.dg .dg-hd{font-weight:700;letter-spacing:.06em;opacity:.8}.dg .dg-hs{opacity:.7}
.dg .dg-mode{font-weight:600;opacity:.85}
.dg .dg-m-live,.dg .dg-m-tests{display:none}.dg[data-mode=live] .dg-m-live,.dg[data-mode=tests] .dg-m-tests{display:inline}
.dg-two[data-mode=live] .dg-fake,.dg-two[data-mode=tests] .dg-live{opacity:.5}
.dg-two[data-mode=live] .dg-fake rect,.dg-two[data-mode=tests] .dg-live rect{stroke-dasharray:4 3;stroke-width:1.1}
.dg-two[data-mode=live] .dg-live rect,.dg-two[data-mode=tests] .dg-fake rect{stroke-width:2.6;fill-opacity:.16}
.dg .dg-brk{display:none;color:var(--dg-fail)}.dg.broken .dg-brk{display:inline}
.dg .dg-bp{fill:none;stroke:currentColor;stroke-width:2.5;stroke-dasharray:7 4}
.dg .dg-brk .dg-mk{fill:var(--dg-fail)}
.dg .dg-brk text{font-weight:700}
.dg .dg-zone{fill:var(--dg-accent);fill-opacity:.1;stroke:var(--dg-accent);stroke-width:2}
.dg .dg-line{stroke:var(--dg-accent);stroke-width:3.5;fill:none}
.dg .dg-wall{fill:var(--dg-accent);fill-opacity:.22;stroke:var(--dg-accent);stroke-width:1.5}
.dg .dg-life{stroke:currentColor;stroke-width:1.2;opacity:.35;fill:none}
.dg .dg-chip-n rect{fill:var(--dg-accent);fill-opacity:.28;stroke:var(--dg-accent);stroke-width:1.2}
.dg .dg-chip-o rect{fill:currentColor;fill-opacity:.06;stroke:currentColor;stroke-width:1.2}
.dg .dg-off-frame{fill:none;stroke:currentColor;stroke-width:1.2;stroke-dasharray:5 4;opacity:.45}
.dg .dg-sub{opacity:.8}
.dg.broken .dg-off{display:none}
.dg .dg-brk[data-k]{display:none}
.dg.broken[data-k="1"] .dg-brk[data-k="1"],.dg.broken[data-k="2"] .dg-brk[data-k="2"],.dg.broken[data-k="3"] .dg-brk[data-k="3"],.dg.broken[data-k="4"] .dg-brk[data-k="4"],.dg.broken[data-k="5"] .dg-brk[data-k="5"],.dg.broken[data-k="6"] .dg-brk[data-k="6"]{display:inline}
/*END DG-CSS*/
.fig { margin: var(--s4) 0; color: var(--ink); }
.fig .dg { width: 100%; margin-inline: auto; color: var(--ink); font-family: var(--sans); --dg-accent: var(--accent); --dg-fail: var(--fail); --dg-bg: var(--bg); }
.fig figcaption { margin-top: var(--s2); font-size: .9rem; line-height: 1.45; color: var(--muted); text-align: center; text-wrap: balance; }
.fig .cap-bad { display: none; color: var(--fail); font-weight: 600; }
.fig.broken .cap-ok { display: none; }
.fig.broken .cap-bad { display: inline; }

/* ---------- a real integration: swap anything, test everything ---------- */
.integ { padding-block: var(--s6) var(--s5); }
.integ h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); font-weight: 800; max-width: 40rem; }
.integ-lede { font-size: 1.1rem; max-width: 46rem; margin-top: var(--s3); }
.integ > .small { max-width: 46rem; }
.integ-wide { margin-top: var(--s4); }
.integ-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); margin-top: var(--s4); align-items: start; }
.integ-right { min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--s3); align-items: start; }
.integ .fig { margin: 0; }
.integ .switchrow { margin: var(--s3) 0 0; justify-content: center; }
.integ .switch[aria-checked="true"] .knob { background: var(--accent); }
/* plugs: the one in use is solid and heavy, the other dashed and dim (drawn by the diagram itself, switched by data-mode on the svg) */
.integ .cap-tests { display: none; }
.integ[data-mode="tests"] .cap-tests { display: inline; }
.integ[data-mode="tests"] .cap-prod { display: none; }
.integ .fig figcaption { min-height: 3em; }
.integ .cap-note { display: block; font-size: .82rem; margin-top: var(--s1); }
/* dark code cards (same terminal look as the story panel) */
.icard { background: var(--t-bg); color: var(--t-ink); border-radius: 14px; padding: var(--s3); box-shadow: var(--shadow); min-width: 0; font-family: var(--sans); color-scheme: dark; }
.icard h3 { font: 700 .76rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--t-dim); margin: 0 0 var(--s2); }
.icard h3 .dim2 { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: .5em; font-family: var(--mono); }
.icard .dim2 { color: var(--t-dim); }
.icard .ok { color: var(--t-pass); }
pre.icode { margin: 0; overflow-x: auto; font: .76rem/1.5 var(--mono); color: var(--t-ink); tab-size: 2; max-width: none; }
pre.icode.wrap-out { white-space: pre-wrap; overflow-wrap: anywhere; }
.js .integ[data-mode="prod"] .out-tests, .js .integ[data-mode="tests"] .out-prod { display: none; }
.out + .out { margin-top: var(--s3); }
.js .out + .out { margin-top: 0; }
.integ-h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); font-weight: 800; margin-top: var(--s5); }
.integ-note { max-width: 46rem; }
.integ-verdicts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.integ-verdicts .q p { font-size: .86rem; }
.integ-verdicts .plain { font-size: .86rem; color: var(--t-dim); margin: var(--s2) 0 0; }
.integ-print { max-width: 46rem; margin-top: var(--s3); }
@media (min-width: 900px) {
  .integ-verdicts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
  pre.icode { font-size: .82rem; }
}
@media (max-width: 480px) { pre.icode { font-size: .72rem; } }

/* ---------- patterns page: five patterns, one standard picture each ---------- */
.phero { padding-block: var(--s5) var(--s3); }
.phero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); font-weight: 800; }
.phero .lede { max-width: 46rem; font-size: 1.1rem; margin-top: var(--s3); }
.top-in nav a + a { margin-left: var(--s3); }
.plab { padding-block: var(--s3) var(--s5); }
.patgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); align-items: start; }
.patleft, .patright { min-width: 0; }
.pat { margin-bottom: var(--s5); }
.pat h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem); font-weight: 800; }
.pat-line { font-size: 1.08rem; max-width: 38rem; }
.pat .small { max-width: 38rem; }
.pat-print { padding-left: 1.1rem; max-width: 38rem; }
.pat-print li { margin: var(--s1) 0; }
.pat .dim2 { opacity: .8; }
.js .pat { margin-bottom: 0; }
.js .patright.jsonly { display: block; }
.js .patright .chips { margin-top: 0; }
.patright .pane { margin-top: var(--s3); }

/* reality check card (closing): one accent band, full content width; --accent / --accent-ink give AA contrast in light and dark */
.close-wide > * { max-width: none; }
.close-wide .big-line { max-width: 62rem; }
.reality { margin-top: var(--s4); background: var(--accent); color: var(--accent-ink); border-radius: 16px; padding: var(--s4); box-shadow: var(--shadow); }
.reality h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: var(--s3); color: inherit; }
.reality dl { margin: 0; display: grid; gap: var(--s3); }
.reality dl > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
.reality dt { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: inherit; }
.reality dd { margin: 0; font-size: 1.05rem; line-height: 1.55; color: inherit; }
.reality ul { margin: 0; padding-left: 1.1rem; }
.reality li { margin: var(--s1) 0; }
.reality details { margin-top: var(--s3); border-top: 1px solid currentColor; padding-top: var(--s3); }
.reality summary { cursor: pointer; font-weight: 800; min-height: 32px; color: inherit; }
.reality details ul { margin-top: var(--s2); font-size: .95rem; }
.reality a { color: inherit; }
.reality :focus-visible { outline-color: currentColor; }
@media (min-width: 700px) { .reality { padding: var(--s5); } .reality dl > div { grid-template-columns: 14rem minmax(0, 1fr); gap: var(--s4); } }

/* =====================================================================
   Shared building blocks of the fixed step kinds. Everything below is used by more than one journey
   (they used to live in one stylesheet per page). A page never adds CSS of its own.
   ===================================================================== */

/* amber: doubt and "unsure", always beside a word */
:root { --warn: #8a5a00; --t-warn: #ffcd57; }
@media (prefers-color-scheme: dark) { :root { --warn: #ffcd57; } }
.pane b.warn, .warn, .icard b.warn, .pane b.amber { color: var(--t-warn); }
.qs.doubt { color: var(--t-amber); }
.bar i.doubt { background: var(--t-amber); }

/* the key line in good code (blue, not the red of a broken line) */
pre.code .l.hl { background: rgba(155, 220, 255, .13); box-shadow: inset 3px 0 0 var(--t-blue); }
pre.code .l.hl::before { color: var(--t-blue); font-weight: 800; }
.pane pre.code.rv { max-height: 22em; margin-top: var(--s2); }
.js .stage .pane pre.code.rv { max-height: none; }

/* a quote inside a step (build, kind recipe) */
.quote { margin: var(--s3) 0; padding: var(--s2) var(--s3); border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 12px 12px 0; font-size: 1rem; line-height: 1.5; max-width: 38rem; }
.quote cite { display: block; margin-top: var(--s1); font-style: normal; font-size: .85rem; color: var(--muted); }

/* lab pane: test lines under the checks, owners row, tally */
.trows { margin-top: var(--s3); display: grid; gap: var(--s2); font-family: var(--sans); }
.trow { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: baseline; background: rgba(255,255,255,.05); border-radius: 10px; padding: .5rem .7rem; font-size: .84rem; line-height: 1.4; }
.trow .tmark { font: 800 .78rem/1 var(--mono); padding: .3rem .5rem; border-radius: 6px; white-space: nowrap; }
.trow .tmark.ok { background: var(--t-passbg); color: var(--t-pass); }
.trow .tmark.bad { background: var(--t-failbg); color: var(--t-fail); }
.trow code { background: transparent; color: var(--t-ink); padding: 0; }
.trow .tx { color: var(--t-ink); min-width: 0; overflow-wrap: anywhere; }
.trow .tx small { display: block; color: var(--t-dim); font-size: .78rem; }
.own-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s2) 0 var(--s3); font-family: var(--sans); }
.own-row span { display: inline-flex; gap: 6px; align-items: baseline; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.07); font: .78rem/1.2 var(--mono); }
.own-row span b { font: 700 .72rem/1.2 var(--sans); }
.own-row .l b { color: var(--t-dim); }
.own-row .n b { color: var(--t-blue); }
.own-row .x { box-shadow: inset 0 0 0 1.5px var(--t-fail); }
.own-row .x b { color: var(--t-fail); }
.qs.cnt-n { width: 3.1ch; text-align: center; }
.q .sure { color: var(--t-dim); font-size: .85em; }
.lab .tally, .pane .tally { margin: var(--s3) 0 0; font: .8rem/1.45 var(--sans); color: var(--t-dim); }
.pane .tally b { color: var(--t-ink); }
.pane[data-lab] { display: block; }

/* before and after (kind break, optional): the broken line side by side with the good one */
.dcard { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); margin: var(--s4) 0 var(--s2); max-width: 46rem; }
.dside { background: var(--t-bg); color: var(--t-ink); border-radius: 14px; padding: var(--s3); box-shadow: var(--shadow); min-width: 0; color-scheme: dark; border: 2px solid transparent; transition: border-color .25s, opacity .25s; }
.dside h3 { font: 700 .76rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--t-dim); margin: 0 0 var(--s2); }
.dside h3 span { display: inline-block; margin-left: .5em; letter-spacing: 0; text-transform: none; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; }
.dside .tagok { background: var(--t-passbg); color: var(--t-pass); }
.dside .tagbad { background: var(--t-failbg); color: var(--t-fail); }
.dside pre.icode { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .78rem; }
.drecv { margin: var(--s3) 0 0; font-size: .8rem; line-height: 1.45; }
.drecv .dim2 { display: block; color: var(--t-dim); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .2rem; }
.drecv code { display: block; background: rgba(255,255,255,.06); color: var(--t-ink); padding: .35rem .5rem; border-radius: 8px; margin-top: .25rem; overflow-wrap: anywhere; font-size: .78rem; }
.dbad .drecv code { background: var(--t-failbg); color: var(--t-fail); }
.dok .drecv code { background: var(--t-passbg); color: var(--t-pass); }
.dcard[data-state="ok"] .dok { border-color: var(--t-pass); }
.dcard[data-state="bad"] .dbad { border-color: var(--t-fail); }
.js .dcard[data-state="ok"] .dbad, .js .dcard[data-state="bad"] .dok { opacity: .55; }
@media (min-width: 700px) and (max-width: 899px) { .dcard { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } }

/* history strip (kind history, and the break step of an over-time story): one card per commit, who answers each path */
.strip { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.strip .sc { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: var(--s2) var(--s3) var(--s3); display: flex; flex-direction: column; gap: var(--s1); min-width: 0; box-shadow: var(--shadow); }
.strip .sh { font: 800 .72rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.strip .st { font: 600 .85rem/1.3 var(--sans); color: var(--ink); }
.strip .own { list-style: none; margin: var(--s1) 0 0; padding: 0; display: grid; gap: 3px; font: .8rem/1.3 var(--mono); }
.strip .own li { display: flex; justify-content: space-between; gap: var(--s2); align-items: baseline; }
.strip .own b { font: 700 .72rem/1.2 var(--sans); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.strip .o-l { background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted); }
.strip .o-n { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.strip .o-x { background: color-mix(in srgb, var(--fail) 18%, transparent); color: var(--fail); box-shadow: inset 0 0 0 1.5px var(--fail); }
.strip .cnt { margin-top: auto; padding-top: var(--s1); font: 600 .78rem/1.3 var(--sans); color: var(--muted); }
.strip .cnt b { color: var(--ink); font-size: .95rem; }
.strip .later { border-style: dashed; box-shadow: none; opacity: .55; }
.strip .later .own b.o-x { background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted); box-shadow: none; }
.strip.broken .later { border: 1.5px solid var(--fail); border-style: solid; box-shadow: var(--shadow); opacity: 1; }
.strip.broken .later .sh { color: var(--fail); }
.strip.broken .later .own b.o-x { background: color-mix(in srgb, var(--fail) 18%, transparent); color: var(--fail); box-shadow: inset 0 0 0 1.5px var(--fail); }
.strip.broken .later .cnt b { color: var(--fail); }
.strip.broken .later .off { display: none; }
.strip[data-later="hidden"] .later { display: none; }
.strip-cap { margin: var(--s2) 0 0; font-size: .88rem; line-height: 1.45; color: var(--muted); }

/* alarm bars (kind twist, optional): how sure the checker was that something was wrong, inside the dark panel */
.alarms { display: grid; gap: var(--s3); font-family: var(--sans); }
.arow { display: grid; gap: var(--s1); }
.arow .alabel { font-weight: 700; font-size: .9rem; color: var(--t-ink); }
.abars { display: grid; gap: 4px; }
.abar { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr) 2.6rem; align-items: center; gap: var(--s2); font-size: .8rem; color: var(--t-dim); }
.abar .track { position: relative; height: 12px; border-radius: 6px; background: rgba(255,255,255,.1); }
.abar .track i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; background: var(--t-fail); }
.abar .track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--t-ink); opacity: .55; }
.abar.soft .track i { background: var(--t-amber); }
.abar .v { font-family: var(--mono); font-weight: 700; color: var(--t-ink); text-align: right; }
.arow .anote { font-size: .8rem; color: var(--t-dim); }

/* the Passed? table: one block on every page, right after the story */
.proof { padding-block: var(--s5) var(--s5); }
.proof h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); font-weight: 800; max-width: 46rem; }
.proof-lede { max-width: 46rem; font-size: 1.1rem; margin: var(--s3) 0; }
.proof .tablewrap { box-shadow: var(--shadow); border-radius: 12px; background: var(--surface); margin-top: var(--s3); }
.ptable { min-width: 0; }
.ptable th, .ptable td { vertical-align: top; }
.ptable th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ptable th:first-child, .ptable td:first-child { width: 48%; }
.ptable .rid { display: block; font: .75rem/1.4 var(--mono); color: var(--muted); }
.ptable tr.weak td { background: color-mix(in srgb, var(--t-amber) 22%, transparent); font-weight: 600; }
.ptable tr.total td { border-top: 2px solid var(--line); font-weight: 700; }
.ptable tfoot td { font-weight: 700; border-bottom: 0; }
.ptable td.nw { white-space: nowrap; }
.proof .small { max-width: 46rem; margin-top: var(--s3); }
@media (max-width: 640px) {
  .ptable thead { position: absolute; left: -9999px; }
  .ptable, .ptable tbody, .ptable tfoot, .ptable tr, .ptable td { display: block; width: 100% !important; }
  .ptable tr { padding: var(--s3); border-bottom: 1px solid var(--line); }
  .ptable td { border: 0; padding: 2px 0; }
  .ptable td:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); }
  .ptable td.nw { white-space: normal; }
}

/* real app, results table inside a dark card (the matrix of tests and copies) */
.out-card .tablewrap { margin-top: var(--s2); }
table.mx { color: var(--t-ink); font-size: .9rem; min-width: 30rem; }
table.mx th, table.mx td { border-bottom: 1px solid var(--t-line); vertical-align: top; padding: var(--s2) var(--s2); }
table.mx thead th { color: var(--t-dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
table.mx tbody th { font-weight: 600; text-align: left; }
table.mx b.ok { color: var(--t-pass); } table.mx b.bad { color: var(--t-fail); }
table.mx code { background: transparent; color: var(--t-ink); padding: 0; }
.out-card .plain { margin: var(--s3) 0 var(--s2); font-size: .85rem; color: var(--t-dim); }
.out-card .icode b.bad, .icard b.bad { color: var(--t-fail); }
.icard .icode b.ok { color: var(--t-pass); }
.integ-right pre.icode:not(.wrap-out) { white-space: pre; }
.icard h3 + pre.icode + h3 { margin-top: var(--s3); }
.integ-fig .dg-set { max-width: 100%; }
.card-sep { margin-top: var(--s3) !important; }

/* phone: the short sticky panel keeps room for the code and the verdict */
@media (max-width: 899px) {
  .own-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 4px 0 6px; }
  .own-row span { flex-direction: column; gap: 0; padding: 3px 6px; border-radius: 10px; font-size: .64rem; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
  .own-row span b { font-size: .64rem; }
  .pane .legend { display: none; }
  .pane .tally { font-size: .72rem; margin-top: var(--s2); }
  .trows { margin-top: var(--s2); gap: var(--s1); }
  .trow { font-size: .76rem; padding: .35rem .5rem; }
}
.pane .legend { margin-top: var(--s3); }

/* the story column is narrow even on a wide screen: strips inside a story step always use two columns */
@media (min-width: 700px) { .strip { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); } }
.step .strip { --cols: 2; }

/* no JavaScript: the pane that the script fills stays pre-filled; controls that need the script are hidden by .jsonly */

/* the Receipts list inside the Reality check card */
.reality .src-h { margin: var(--s3) 0 0; font-weight: 800; }

/* index: five identical cards (hook line, need tag, one big number) */
.hero-lite { padding-block: var(--s5) var(--s3); }
.hookline { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); font-weight: 800; max-width: 46rem; }
.lede.lite { max-width: 46rem; font-size: 1.1rem; margin-top: var(--s3); }
.jcards { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
@media (min-width: 700px) { .jcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .jcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.jcard { background: var(--surface); border-radius: 16px; padding: var(--s4); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.jcard .eyebrow { margin: 0; color: var(--accent); }
.jcard h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.jcard h3 a { color: var(--ink); text-decoration: none; }
.jcard h3 a:hover { text-decoration: underline; }
.jbig { margin: auto 0 0; padding-top: var(--s3); display: flex; flex-direction: column; gap: var(--s1); }
.jbig .big { font-size: clamp(2.25rem, 1.5rem + 2vw, 3rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.jbig .cap { color: var(--muted); font-size: .9rem; line-height: 1.35; }
