/* Layout: a long-form essay column (~68ch) with interactive ledgers that break out to full width. */
:root {
  --bg: #f3f5f4;
  --surface: #ffffff;
  --ink: #17201d;
  --muted: #495450;
  --rule: #d6ddd9;
  --track: #e3e8e5;
  --accent: #9e0d69;
  --accent-fill: #f910a4;
  --essential: #255292;
  --everyday: #3f8a6e;
  --emerging: #7a6aa8;
  --contested: #6b6f76;
  --defence: #b07a12;
  --attention: #8f3425;
  --reserve: #4f8fa0;
  --spark: #1f7fc4;
  --good: #175b3a;
  --warn: #764808;
  --bad: #933023;
  --display: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1513; --surface: #161e1b; --ink: #e4ebe7; --muted: #9eaca6; --rule: #2a3531; --track: #24302c;
    --accent: #f580ca; --accent-fill: #f910a4; --essential: #84aae5; --everyday: #6cc29f; --emerging: #a99ae0; --contested: #a3a8b0; --defence: #e0a83f; --attention: #ef8f7c; --reserve: #79c0d2; --spark: #6cc8f2;
    --good: #5fcf92; --warn: #e5a443; --bad: #f28c7d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1513; --surface: #161e1b; --ink: #e4ebe7; --muted: #9eaca6; --rule: #2a3531; --track: #24302c;
  --accent: #f580ca; --accent-fill: #f910a4; --essential: #84aae5; --everyday: #6cc29f; --emerging: #a99ae0; --contested: #a3a8b0; --defence: #e0a83f; --attention: #ef8f7c; --reserve: #79c0d2; --spark: #6cc8f2;
  --good: #5fcf92; --warn: #e5a443; --bad: #f28c7d; color-scheme: dark;
}
* { box-sizing: border-box; }
/* The hidden attribute always wins, whatever display a component sets. */
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; }
.page { max-width: 1120px; margin: 0 auto; padding-block: 40px 72px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 56px; }
.prose { max-width: 68ch; display: grid; gap: 18px; }
.prose p, .prose li { margin: 0; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -0.01em; line-height: 1.12; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
a { color: var(--accent); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.note, .ledger, .panel, .meta, .cards, .evidence, .map-wrap, .brief, .pitch, footer { font-family: var(--ui); }
.note { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dek { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.meta b { color: var(--ink); font-weight: 600; }
header.hero { display: grid; gap: 16px; }

/* Opening pull quote: the provocation the essay answers. */
.pull { margin: 0; max-width: 68ch; display: grid; gap: 10px; }
.pull blockquote { margin: 0; }
.pull blockquote p { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.pull blockquote .qm { color: var(--accent); }
.pull figcaption { font-family: var(--ui); font-size: 14px; color: var(--muted); }
.pull-note p { margin: 0; }

/* The argument in brief: the pyramid's top. */
.brief { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 10px; padding: 22px 24px; display: grid; gap: 14px; max-width: 80ch; }
.brief .thesis { font-family: var(--display); font-size: 1.35rem; font-weight: 600; line-height: 1.3; }
.brief ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: 15.5px; }
.brief .sowhat { font-size: 15.5px; border-top: 1px solid var(--rule); padding-top: 12px; }

section.part { display: grid; gap: 24px; }
.part-head { display: grid; gap: 8px; max-width: 68ch; }
.part-head .num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; font-family: var(--ui); }
.stat { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; display: grid; gap: 4px; }
.stat b { font-family: var(--display); font-size: 1.8rem; font-weight: 600; line-height: 1.05; }
.stat span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* The 1.2 GW stat is a button for the easter egg. It looks like the other stats until you hover it. */
.stat-egg { font: inherit; text-align: left; color: inherit; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.stat-egg:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--rule)); transform: translateY(-1px); }

.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 20px; display: grid; gap: 18px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 780px) { .two { grid-template-columns: minmax(0, 1fr); } }
.ctl { display: grid; gap: 6px; min-width: 0; }
.ctl select { width: 100%; max-width: 100%; min-height: 44px; }
.ctl label { font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.ctl input[type=range] { width: 100%; accent-color: var(--accent); }
.ctl.off label { color: var(--muted); }
.ctl input[type=range]:disabled { cursor: not-allowed; }
caption { text-align: left; font-weight: 600; padding-bottom: 6px; }
.impact { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.impact div { display: grid; gap: 2px; }
.impact b { font-family: var(--mono); font-size: 1.5rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.impact small { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.readout { font-size: 15px; }

/* Scenario cards for sections 2 and 3: every quick-select scenario with its impact. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.card { text-align: left; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; color: var(--ink); }
.card[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.card .t { font-weight: 600; font-size: 14px; }
.card .n { font-family: var(--mono); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.card .d { font-size: 12.5px; color: var(--muted); line-height: 1.35; }

/* Allocation ledger. */
.ledger { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .ledger { grid-template-columns: minmax(0, 1fr); } }
.rows { display: grid; }
.group-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 16px; }
.row { display: grid; grid-template-columns: 8px minmax(0, 1fr) 128px 40px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.row .sw { width: 8px; height: 32px; border-radius: 3px; }
.row .name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.row .desc { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.row .val { font-family: var(--mono); font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; }
.row .val.zero { color: var(--muted); cursor: help; }
.stepper { display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; gap: 4px; }
.stepper button { width: 30px; height: 30px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 6px; font-size: 17px; line-height: 1; padding: 0; }
.stepper input[type=range] { width: 100%; accent-color: var(--accent); }
@media (max-width: 520px) {
  .row { grid-template-columns: 8px minmax(0, 1fr) 40px; }
  .row .sw { grid-row: 1; }
  .row .val { grid-column: 3; grid-row: 1; }
  .row .stepper { grid-column: 2 / 4; grid-row: 2; }
}
.ledger-main { min-width: 0; }
/* Running total that stays in view while the rows scroll, on screens where the account panel sits below them. */
.mini-total { display: none; }
@media (max-width: 900px) {
  .mini-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 2; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 8px 12px; box-shadow: 0 4px 12px color-mix(in srgb, var(--ink) 10%, transparent); }
  .mini-total .mt-n { font-family: var(--mono); font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .mini-total .mt-n b { font-size: 1.25rem; font-weight: 500; color: var(--ink); }
  .mini-total .mt-mix { font-size: 12.5px; color: var(--muted); }
}
.account { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 20px; display: grid; gap: 14px; }
@media (max-width: 900px) { .account { position: static; } }
.balance { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.balance .big { font-family: var(--mono); font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.pill { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; }
.pill.ok { color: var(--good); } .pill.over { color: var(--bad); } .pill.under { color: var(--warn); }
.stack { display: flex; height: 20px; border-radius: 5px; overflow: hidden; background: var(--track); }
.stack span { display: block; height: 100%; transition: width .25s ease; }
.stack span.ghost { background-image: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--attention) 55%, transparent) 4px 7px); }
.verdict { font-size: 14px; border-top: 1px solid var(--rule); padding-top: 12px; display: grid; gap: 8px; }
.verdict p { margin: 0; }

/* Scenario map and per-share readings. */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .map-wrap { grid-template-columns: minmax(0, 1fr); } }
.map { min-width: 0; }
.map svg { width: 100%; height: auto; display: block; }
.map text { font-family: var(--ui); }
.readings { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
/* Name and value on top, reading in the middle, band tag pinned bottom right so tags line up across a row. */
.reading { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; font-family: var(--ui); }
.reading .tag { justify-self: end; align-self: end; }
.reading .top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.reading .nm { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.reading .v { font-family: var(--mono); font-size: 15px; }
.reading p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.tag { justify-self: start; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; border: 1px solid currentColor; }
.tag.t-warn { color: var(--warn); } .tag.t-good { color: var(--good); } .tag.t-plus { color: var(--essential); } .tag.t-neutral { color: var(--muted); }
.tag.measured { color: var(--good); } .tag.modelled { color: var(--warn); } .tag.vendor { color: var(--muted); }

/* Blind first: the eight philosophies stay hidden until the reader has made and revealed their own split. */
:root[data-phase="blind"] .reveal-only, :root[data-phase="revealed"] .blind-only { display: none !important; }
.blind-intro { margin: 0; font-family: var(--ui); font-size: 15px; padding: 12px 14px; border: 1px dashed var(--muted); border-radius: 10px; }
.caveat { font-size: 14.5px; border-left: 3px solid var(--accent-fill); padding-left: 12px; }
.reveal-box { display: grid; gap: 8px; border-top: 1px solid var(--rule); padding-top: 14px; font-family: var(--ui); }
.reveal-box[hidden] { display: none; }
.reveal-box p { margin: 0; }
.reveal-box .phil { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; line-height: 1.15; }
.reveal-box .phil small { display: block; font-family: var(--ui); font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 4px; }

/* Submit your split: three optional questions, consent, and the crowd comparison after submitting. */
.submit-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.submit-fields label { display: grid; gap: 6px; font-family: var(--ui); font-size: 14px; font-weight: 600; }
.submit-fields .opt { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.submit-fields select { font: inherit; font-weight: 400; width: 100%; min-height: 44px; padding: 8px; border-radius: 8px; border: 1px solid var(--muted); background: var(--surface); color: var(--ink); }
#submit-form { display: grid; gap: 14px; }
#submit-form .btn { min-height: 44px; }
#submit-form .btn:disabled { opacity: 1; cursor: progress; }
.crowd { display: grid; gap: 10px; border-top: 1px solid var(--rule); padding-top: 14px; font-family: var(--ui); }
.crowd[hidden] { display: none; }
.crowd p, .crowd ul { margin: 0; }
.crowd .stances { padding-left: 1.2em; display: grid; gap: 4px; font-size: 14px; }
.privacy .prose { font-family: var(--ui); font-size: 15px; }

/* What we knew, and when: a dated chronology from Arrhenius to the IEA projection. */
.timeline { margin: 0; display: grid; gap: 12px; font-family: var(--ui); }
.timeline ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.timeline li { border-top: 3px solid var(--accent); background: var(--surface); border-radius: 0 0 10px 10px; padding: 10px 12px; display: grid; gap: 4px; align-content: start; }
.timeline li b { font-family: var(--display); font-size: 1.35rem; line-height: 1; }
.timeline li span { font-size: 14px; line-height: 1.45; }
.timeline li.ahead { border-top-style: dashed; }
.evidence { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.fact { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.fact .num { font-family: var(--display); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.fact p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.fact .src { font-size: 12.5px; color: var(--muted); }
.table-wrap { overflow-x: auto; font-family: var(--ui); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }

.pitch { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 28px; display: grid; gap: 20px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .pillars { grid-template-columns: minmax(0, 1fr); } }
.pillar { border-top: 3px solid var(--accent); padding-top: 12px; display: grid; gap: 6px; align-content: start; }
.pillar p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { display: inline-block; background: var(--accent); color: var(--bg); text-decoration: none; padding: 10px 18px; border-radius: 8px; font-weight: 600; border: 0; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.copy-out { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.refs { font-family: var(--ui); font-size: 13.5px; display: grid; gap: 6px; padding-left: 1.4em; margin: 0; }
footer { border-top: 1px solid var(--rule); padding-top: 20px; display: grid; gap: 8px; }

/* Reading aids. */
@media (prefers-reduced-motion: no-preference) { html:not([data-calm="true"]):not([data-assist="true"]) { scroll-behavior: smooth; } }
#knock-panel, #div-panel, #allocate, #map-panel, #essay, section.part { scroll-margin-top: 24px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-family: var(--ui); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; background: transparent; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent-fill); transform: scaleX(0); transform-origin: 0 50%; }

/* Settings bar at the top of the page. */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.settings { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--ui); }
.set-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--muted); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; }
.set-btn .ico { font-family: var(--mono); font-size: 13px; min-width: 1.4em; text-align: center; }
.set-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Explainers at the top of each interactive, for readers who jump straight there. */
.explainer { display: grid; gap: 6px; max-width: 72ch; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.explainer h3 { font-size: 1.2rem; }
.explainer p { margin: 0; font-size: 15px; line-height: 1.55; }
h4.sub { margin: 0; font-family: var(--display); font-size: 1rem; font-weight: 600; }

/* Floating dock. Hidden while the allocation rows are on screen so it never covers a slider. */
.dock { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; gap: 8px; align-items: flex-end; font-family: var(--ui); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.dock.away { opacity: 0; visibility: hidden; transform: translateY(10px); }
.dock-btn { min-height: 44px; background: var(--surface); color: var(--ink); border: 1px solid var(--muted); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; box-shadow: 0 4px 14px color-mix(in srgb, var(--ink) 14%, transparent); }
.dock-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
/* Reading-time ring: minutes left in the middle, the rim fills with magenta as you read. Also back to top. */
.dock-btn.ring { position: relative; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--rule); stroke-width: 3.5; }
.ring-fill { fill: none; stroke: var(--accent-fill); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 131.95; stroke-dashoffset: 131.95; transition: stroke-dashoffset .2s linear; }
.ring-n { position: relative; font-family: var(--mono); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ring-u { position: relative; font-size: 10px; color: var(--muted); margin-top: 2px; }
.dock-btn[hidden] { display: none; }
.jump { position: relative; }
.jump-menu { position: absolute; right: 0; bottom: calc(100% + 8px); width: min(250px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--muted); border-radius: 12px; padding: 6px; display: grid; box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 18%, transparent); }
.jump-menu[hidden] { display: none; }
.jump-menu a { display: grid; gap: 1px; min-height: 44px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.jump-menu a:hover, .jump-menu a:focus-visible { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.jump-menu b { font-size: 14px; } .jump-menu span { font-size: 12.5px; color: var(--muted); }
.cite-btn { position: absolute; left: 0; top: 0; z-index: 30; min-height: 36px; font-family: var(--ui); font-size: 13px; font-weight: 600; background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; padding: 8px 14px; box-shadow: 0 6px 16px color-mix(in srgb, var(--ink) 25%, transparent); }
.cite-btn[hidden] { display: none; }
@media (max-width: 900px) { .mini-total { top: calc(env(safe-area-inset-top, 0px) + 3px); } }

/* Touch screens get 44px targets on the steppers (WCAG 2.5.5). */
@media (pointer: coarse) {
  .stepper { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .stepper button { width: 44px; height: 44px; }
}
@media (pointer: coarse) and (min-width: 521px) { .row { grid-template-columns: 8px minmax(0, 1fr) 164px 44px; } }

/* Calm: no animation or transition anywhere. Assistive view implies calm. */
:root[data-calm="true"] *, :root[data-calm="true"] *::before, :root[data-calm="true"] *::after,
:root[data-assist="true"] *, :root[data-assist="true"] *::before, :root[data-assist="true"] *::after {
  animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
  transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
}

/* Assistive view: bigger type, looser spacing, one column, underlined links, 44px targets,
   and text in place of the decorative charts. */
:root[data-assist="true"] body { font-size: 19px; line-height: 1.75; letter-spacing: .01em; word-spacing: .04em; }
:root[data-assist="true"] .note, :root[data-assist="true"] .desc, :root[data-assist="true"] .card .d, :root[data-assist="true"] .stat span, :root[data-assist="true"] .reading p, :root[data-assist="true"] .fact p, :root[data-assist="true"] .impact small { font-size: 15.5px; line-height: 1.6; }
:root[data-assist="true"] .row .name, :root[data-assist="true"] .card .t, :root[data-assist="true"] .reading .nm { font-size: 16px; }
:root[data-assist="true"] .tag, :root[data-assist="true"] .pill { font-size: 13px; }
:root[data-assist="true"] a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
:root[data-assist="true"] .ledger, :root[data-assist="true"] .two, :root[data-assist="true"] .map-wrap, :root[data-assist="true"] .pillars { grid-template-columns: minmax(0, 1fr); }
:root[data-assist="true"] .account { position: static; }
:root[data-assist="true"] .cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
:root[data-assist="true"] .stepper { grid-template-columns: 44px minmax(0, 1fr) 44px; }
:root[data-assist="true"] .stepper button { width: 44px; height: 44px; }
:root[data-assist="true"] .row { grid-template-columns: 8px minmax(0, 1fr) 44px; }
:root[data-assist="true"] .row .sw { grid-row: 1; }
:root[data-assist="true"] .row .val { grid-column: 3; grid-row: 1; }
:root[data-assist="true"] .row .stepper { grid-column: 2 / 4; grid-row: 2; }
:root[data-assist="true"] .stack, :root[data-assist="true"] .map { display: none; }
:root[data-assist="true"] .assist-only { display: block; }
.assist-only { display: none; }
:root[data-assist="true"] .stat-egg:hover { transform: none; }

/* 1.21 GW easter egg. The car's suspension, spark and speed-line keyframes are adapted from
   "DeloreanLoader" by Sam Zabala (https://codepen.io/samzabala/pen/MxGWqP), Copyright (c) 2026,
   MIT licence. Full notice in src/extras.js and third-party/delorean-loader-LICENSE.txt.
   Fixed layer with overflow hidden, so it never widens the page. */
.dl-layer { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 40; }
.dl-car { position: absolute; left: 0; top: 0; will-change: transform; }
.dl-car svg { display: block; overflow: visible; }
.dl-car svg * { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; stroke-miterlimit: 10; }
.dl-car svg .sf { fill: var(--surface); }
.dl-car svg .ac { stroke: var(--spark); }
.dl-car svg .sb { stroke-width: 7; } .dl-car svg .sn { stroke-width: 5; } .dl-car svg .sl { stroke-width: 4; } .dl-car svg .sll { stroke-width: 3; }
.dl-car .dl-body, .dl-car .dl-wheels, .dl-car .dl-pole { animation-duration: 1s; animation-timing-function: linear; animation-iteration-count: infinite; }
.dl-car .dl-body { animation-name: dl-body; transform-origin: 35% 65%; }
.dl-car .dl-wheels { animation-name: dl-wheels; transform-origin: 34% 50%; }
.dl-car .dl-pole { animation-name: dl-pole; transform-origin: 51% 37%; }
.dl-car .dl-wheel { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .3s cubic-bezier(.5, 0, .2, 1); }
.dl-car .dl-stripe, .dl-car .dl-glow { stroke-width: 0; animation-timing-function: linear; animation-iteration-count: infinite; }
.dl-car .dl-stripe { stroke-dasharray: 0 100 0 100; animation-name: dl-stripes; animation-duration: 1s; }
.dl-car .dl-stripe:nth-child(3n) { animation-delay: .5s; }
.dl-car .dl-stripe:nth-child(3n + 1) { animation-delay: .875s; }
.dl-car .dl-glow { animation-name: dl-glow; animation-duration: .5s; animation-delay: .75s; }
.dl-car .dl-glow:nth-child(4n + 1) { animation-delay: 1.06s; }
.dl-car .dl-glow:nth-child(4n + 2) { animation-delay: 1.5s; }
.dl-car .dl-glow:nth-child(4n + 3) { animation-delay: 1.875s; }
/* Charged: everything speeds up, the sparks go wild and the wheels lean like a cartoon about to launch. */
.dl-car.ready .dl-body, .dl-car.ready .dl-wheels, .dl-car.ready .dl-pole { animation-duration: .5s; }
.dl-car.ready .dl-wheel { transform: skewX(10deg); }
.dl-car.ready .dl-glow { animation-name: dl-glow-ready; animation-duration: .25s; animation-delay: 0s; }
.dl-car.ready .dl-glow:nth-child(4n + 1) { animation-delay: .08s; }
.dl-car.ready .dl-glow:nth-child(4n + 2) { animation-delay: .19s; }
.dl-car.ready .dl-glow:nth-child(4n + 3) { animation-delay: .28s; }
.dl-calm .dl-car .dl-glow, .dl-calm .dl-car .dl-stripe { animation: none; stroke-width: 0; }
.dl-meter { position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--ink); background: var(--surface); border: 1px solid var(--muted); border-radius: 8px; padding: 2px 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl-meter small { font-size: 12px; color: var(--muted); margin-left: 4px; }
.dl-portal { position: absolute; left: 0; top: 0; border-radius: 50%; background: color-mix(in srgb, var(--spark) 80%, transparent); box-shadow: 0 0 24px 8px color-mix(in srgb, var(--spark) 55%, transparent); opacity: 0; transform-origin: 50% 50%; }
.dl-trail { position: absolute; width: 0; height: 5px; border-radius: 3px; background: linear-gradient(270deg, #fff6c9, #ffe27a 6%, #ffb03a 45%, #ff6a1a 90%, rgba(255, 90, 20, 0)); box-shadow: 0 0 8px 2px rgba(255, 120, 30, .6), 0 -3px 12px rgba(255, 80, 0, .35); animation: dl-flicker .12s steps(2) infinite alternate; }
.dl-trail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 9px; background: repeating-linear-gradient(90deg, rgba(255, 205, 90, .85) 0 3px, rgba(255, 120, 30, 0) 3px 9px); -webkit-mask: linear-gradient(to top, #000, transparent); mask: linear-gradient(to top, #000, transparent); animation: dl-tongues .25s linear infinite; }
.dl-trail.far { height: 3px; opacity: .7; animation-duration: .15s; }
.dl-trail.far::after { height: 6px; }
.dl-flash { position: absolute; left: 0; top: 0; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, #fff 0 12%, rgba(190, 230, 255, .9) 25%, rgba(90, 170, 255, .35) 45%, rgba(90, 170, 255, 0) 70%); }
.dl-plate { position: absolute; left: 0; top: 0; width: 66px; height: 20px; opacity: 0; background: linear-gradient(#fdfdf8, #e7e5da); border: 1.5px solid #1d2124; border-radius: 3px; color: #1d2124; font: 700 10px/17px var(--mono); letter-spacing: .08em; text-align: center; transform-origin: 50% 100%; box-shadow: 0 2px 3px rgba(0, 0, 0, .25); }
.dl-calm .dl-plate { opacity: 1; }
.dl-caption { position: fixed; left: 0; top: 0; z-index: 41; opacity: 0; pointer-events: none; font-family: var(--ui); font-size: 14px; line-height: 1.35; background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 8px; max-width: min(320px, calc(100vw - 32px)); }
.dl-caption.shown { opacity: 1; }
@keyframes dl-body { 0% { transform: translate(0, 0) rotate(0); } 30% { transform: translate(0, 2px) rotate(0); } 50% { transform: translate(0, 0) rotate(1deg); } 70% { transform: translate(0, -1px) rotate(0); } 90% { transform: translate(0, 0) rotate(-1deg); } 100% { transform: translate(0, 0) rotate(0); } }
@keyframes dl-wheels { 0%, 30%, 60%, 90%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(.5deg); } 70% { transform: translateY(-2px) rotate(-.5deg); } }
@keyframes dl-pole { 0%, 30%, 50%, 100% { transform: rotate(0); } 70% { transform: rotate(1deg); } 90% { transform: rotate(-2deg); } }
@keyframes dl-glow { 0% { stroke-dasharray: 0 50 0 100; stroke-dashoffset: -30; stroke-width: 0; } 25% { stroke-dasharray: 100 50 0 100; stroke-dashoffset: -180; stroke-width: 8; } 50% { stroke-dasharray: 50 50 0 100; stroke-dashoffset: -330; stroke-width: 1; } 75%, 100% { stroke-dasharray: 0 50 0 100; stroke-dashoffset: -330; stroke-width: 0; } }
@keyframes dl-glow-ready { 0% { stroke-dasharray: 25 100 5 25; stroke-dashoffset: 300; stroke-width: 0; } 50% { stroke-dasharray: 75 150 5 50; stroke-dashoffset: 150; stroke-width: 9; } 100% { stroke-dasharray: 25 100 5 25; stroke-dashoffset: -300; stroke-width: 0; } }
@keyframes dl-stripes { 0% { stroke-dasharray: 0 100 0 100; stroke-dashoffset: -300; stroke-width: 1; } 25% { stroke-dasharray: 100 80 10 50; stroke-dashoffset: -150; stroke-width: 1; } 50% { stroke-dasharray: 100 20 20 50; stroke-dashoffset: 0; stroke-width: 3; } 75% { stroke-dasharray: 100 80 40 50; stroke-dashoffset: 150; stroke-width: 1; } 100% { stroke-dasharray: 0 100 0 100; stroke-dashoffset: 300; stroke-width: 1; } }
@keyframes dl-flicker { from { opacity: .82; } to { opacity: 1; } }
@keyframes dl-tongues { from { background-position: 0 0; } to { background-position: 9px 0; } }

@media (prefers-reduced-motion: reduce) { .stack span { transition: none; } .stat-egg { transition: none; } }
