/* uk-cbdc.co.uk — "banknote, bold" design system
   Dark engraving-ink masthead and hero, polymer-paper reading surface,
   mint for anything live, violet for actions, coloured tiles for tools. */

@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

:root {
  --night: #0D2629;  --night-2: #081A1C;  --night-3: #13363A;
  --paper: #F3F5F1;  --surface: #FFFFFF;  --tint: #E6EDE9;
  --ink: #0F2A2C;    --text: #24383A;     --muted: #5A6C6D;
  --on-night: #DCE6E3; --on-night-muted: #A9BCB8;
  --rule: #D2DBD7;   --rule-strong: #A9B8B3; --rule-night: rgba(255,255,255,.14);
  --violet: #5B3F9E; --violet-deep: #432C7A; --violet-bright: #8B6CF0; --lilac: #C9B8F0; --violet-wash: #EEE9F8;
  --mint: #7FE0C4;   --mint-deep: #1FA37F; --mint-ink: #08201D; --mint-wash: #DDF5EC;
  --sand: #F2D58A;   --peach: #F4B9A6;   --sky: #B6D7F2;
  --amber: #8A5A00;  --amber-wash: #F7EDD6;
  --green: #2D6A4F;  --red: #A3352B;
  --series0: #00876F; --series1: #6A4BB5;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --measure: 66ch; --wrap: 1240px; --r-sm: 4px; --r-md: 8px; --r-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--violet-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--violet-bright); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
sup { line-height: 0; vertical-align: super; }

/* ---------- ticker ---------- */
.ticker { background: var(--night-2); color: var(--on-night-muted); font-size: .82rem; overflow: hidden; white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,.07); }
.ticker-track { display: inline-flex; gap: 3rem; padding: .55rem 0 .55rem 1.5rem; }
.tk { display: inline-flex; gap: .5rem; } .tk-dup { display: inline-flex; gap: 3rem; }
.tk-k { color: #8FA3A0; } .tk-v { color: #fff; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .ticker-track { animation: tick 55s linear infinite; } .ticker:hover .ticker-track { animation-play-state: paused; } }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- masthead ---------- */
.masthead { background: var(--night); border-bottom: 1px solid rgba(255,255,255,.08); position: relative; z-index: 4; }
.mast-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.mark { width: 34px; height: 34px; fill: none; stroke: var(--mint); stroke-width: 1.15; }
.mark circle { stroke: #fff; stroke-width: 1.2; }
.brand-name { font: 800 1.25rem/1 var(--sans); letter-spacing: -.02em; white-space: nowrap; }
.site-nav { display: flex; gap: .2rem; margin-left: 1rem; }
.site-nav a { color: var(--on-night); text-decoration: none; font-weight: 500; padding: .6rem .8rem; border-radius: var(--r-sm); }
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--mint); border-radius: 0; }
.mast-cta { margin-left: auto; }
.nav-toggle { display: none; margin-left: auto; font: 600 .95rem var(--sans); color: #fff; background: none; border: 1px solid var(--rule-night); border-radius: var(--r-sm); padding: .5rem .85rem; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .masthead .mast-cta { display: none; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 70px; background: var(--night); flex-direction: column; padding: .5rem 1rem 1rem; margin: 0; border-bottom: 1px solid var(--rule-night); }
  .site-nav.open { display: flex; }
}

/* ---------- buttons, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 1rem/1 var(--sans); padding: .9rem 1.25rem; border-radius: var(--r-md); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn--primary { background: var(--violet); color: #fff; } .btn--primary:hover { background: var(--violet-deep); color: #fff; }
.btn--bright { background: var(--violet-bright); color: #fff; } .btn--bright:hover { background: var(--violet); color: #fff; }
.btn--mint { background: var(--mint); color: var(--mint-ink); padding: .7rem 1.1rem; font-size: .95rem; } .btn--mint:hover { background: #A5EBD6; color: var(--mint-ink); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); } .btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--ink); } .btn--outline:hover { background: var(--ink); color: #fff; }
.tag { display: inline-block; font: 700 .78rem/1 var(--sans); padding: .32rem .5rem; border-radius: var(--r-sm); }
.tag--violet { background: var(--violet-wash); color: var(--violet-deep); } .tag--mint { background: var(--mint-wash); color: #145C47; }
.tag--sky { background: #DCEBF8; color: #1D4E77; } .tag--sand { background: var(--amber-wash); color: #6B4500; } .tag--peach { background: #FBE3DA; color: #7A2E17; }
.livedot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); display: inline-block; flex: none; }
@media (prefers-reduced-motion: no-preference) { .livedot { animation: pulse 1.8s infinite; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127,224,196,.7); } 70% { box-shadow: 0 0 0 9px rgba(127,224,196,0); } 100% { box-shadow: 0 0 0 0 rgba(127,224,196,0); } }

/* ---------- rosette ---------- */
.rosette { fill: none; pointer-events: none; }
.rosette .g1 { stroke: var(--violet-bright); stroke-width: .6; opacity: .55; }
.rosette .g2 { stroke: var(--mint); stroke-width: .45; opacity: .28; }
.rosette .g3 { stroke: var(--lilac); stroke-width: .5; opacity: .4; }
@media (prefers-reduced-motion: no-preference) { .hero .rosette { animation: spin 240s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- home: hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; }
.hero .rosette { position: absolute; width: 920px; height: 920px; right: -190px; top: 50%; margin-top: -460px; }
.hero-inner { position: relative; display: flex; flex-wrap: wrap; gap: 3rem; align-items: flex-end; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-main { flex: 999 1 540px; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.4rem; background: rgba(127,224,196,.12); color: var(--mint); font-weight: 600; font-size: .9rem; padding: .45rem .8rem; border-radius: 999px; }
.hero h1 { margin: 0; font: 800 clamp(2.5rem, 6vw, 4.75rem)/1 var(--sans); letter-spacing: -.035em; max-width: 14ch; color: #fff; }
.countdown { display: flex; gap: .75rem; margin: 2.2rem 0 0; flex-wrap: wrap; }
.cd { background: rgba(255,255,255,.06); border: 1px solid var(--rule-night); border-radius: var(--r-md); padding: .9rem 1.1rem .75rem; min-width: 92px; }
.cd b { display: block; font: 800 clamp(2.2rem, 4vw, 3.25rem)/1 var(--sans); letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.cd span { display: block; font-size: .82rem; color: var(--on-night-muted); margin-top: .35rem; }
@media (max-width: 520px) { .countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; } .cd { min-width: 0; padding: .7rem .6rem .6rem; } .cd b { font-size: 1.9rem; } }
.hero-lede { font: 400 clamp(1.15rem, 2vw, 1.4rem)/1.45 var(--serif); color: var(--on-night); max-width: 36ch; margin: 1.75rem 0 0; }
.alert-form { display: flex; gap: .6rem; margin-top: 1.75rem; flex-wrap: wrap; max-width: 540px; }
.alert-form input { flex: 1 1 240px; min-width: 0; font: 500 1rem var(--sans); padding: .9rem 1rem; border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; }
.alert-form input::placeholder { color: #94A9A5; }
.form-note { font-size: .82rem; color: #8FA3A0; margin: .6rem 0 0; }
.form-status { font-size: .95rem; color: var(--mint); margin: .6rem 0 0; min-height: 1.4em; }
.road-card { flex: 1 1 340px; min-width: 0; background: rgba(8,26,28,.75); border: 1px solid var(--rule-night); border-radius: var(--r-lg); padding: 1.5rem; backdrop-filter: blur(2px); }
.road-card h2 { margin: 0 0 .2rem; font-size: 1.15rem; color: #fff; }
.road-card .sub { margin: 0 0 1.1rem; font-size: .82rem; color: #8FA3A0; }
.road { list-style: none; margin: 0; padding: 0; }
.road li { display: grid; grid-template-columns: 26px 1fr auto; gap: .75rem; align-items: center; padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.1); color: #fff; font-weight: 500; }
.road i { width: 14px; height: 14px; border-radius: 50%; display: block; }
.road .done i { background: var(--mint); } .road .now i { background: var(--violet-bright); box-shadow: 0 0 0 5px rgba(139,108,240,.3); } .road .next i { width: 12px; height: 12px; border: 2px dashed #6E8784; }
.road em { font-style: normal; font-size: .75rem; font-weight: 700; padding: .25rem .55rem; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--on-night-muted); }
.road .done em { background: rgba(127,224,196,.15); color: var(--mint); } .road .now em { background: var(--violet-bright); color: #fff; }

/* ---------- home: sections ---------- */
.section { padding: clamp(3rem, 7vw, 4.5rem) 0 0; }
.section:last-of-type { padding-bottom: 4.5rem; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.sec-head h2 { margin: 0; font: 800 clamp(2rem, 4vw, 2.75rem)/1.05 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.sec-head p { margin: 0; color: var(--muted); }
.kicker { margin: 0 0 .4rem; color: var(--violet); font-weight: 700; font-size: .95rem; }
.newsroom { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.news-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 1.75rem; }
.lead-story { display: block; background: var(--ink); color: #fff; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; }
.lead-art { display: block; height: 220px; background: var(--night-3); position: relative; overflow: hidden; }
.lead-art .rosette { position: absolute; width: 520px; height: 520px; left: 50%; top: 50%; margin: -260px 0 0 -260px; }
.lead-body { display: block; padding: 1.5rem 1.75rem 1.75rem; }
.lead-h { display: block; font: 700 clamp(1.5rem, 3vw, 2rem)/1.12 var(--sans); letter-spacing: -.02em; margin-top: .6rem; }
.lead-p { display: block; font: 400 1.15rem/1.5 var(--serif); color: var(--on-night); margin-top: .7rem; max-width: 60ch; }
.lead-story .story-meta time { color: var(--on-night-muted); }
.lead-story:hover .lead-h { text-decoration: underline; text-decoration-thickness: 2px; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
@media (max-width: 640px) { .story-grid { grid-template-columns: 1fr; } }
.story { display: flex; flex-direction: column; gap: .55rem; border-top: 3px solid var(--ink); padding-top: 1rem; text-decoration: none; color: var(--ink); }
.story-meta { display: flex; gap: .6rem; align-items: center; font-size: .82rem; color: var(--muted); margin: 0; flex-wrap: wrap; }
.story-h { font: 700 1.3rem/1.2 var(--sans); letter-spacing: -.015em; }
.story-p { font: 400 1.05rem/1.5 var(--serif); color: var(--text); }
.story:hover .story-h { color: var(--violet); text-decoration: underline; }
.feed { flex: 1 1 320px; min-width: 0; }
.feed-head { display: flex; align-items: center; gap: .6rem; padding-bottom: .75rem; border-bottom: 2px solid var(--ink); }
.feed-head .livedot { background: var(--mint-deep); }
.feed-head h2 { margin: 0; font-size: 1.25rem; color: var(--ink); }
.feed-head span:last-child { margin-left: auto; font-size: .8rem; color: var(--muted); }
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-row { display: grid; grid-template-columns: 58px 1fr; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--text); }
.feed-src { align-self: start; text-align: center; font-size: .72rem; font-weight: 700; padding: .3rem 0; border-radius: var(--r-sm); background: var(--tint); color: var(--ink); }
.feed-row time { display: block; font-size: .75rem; color: var(--muted); }
.feed-row b { display: block; font-weight: 600; font-size: .95rem; line-height: 1.35; color: var(--ink); }
.feed-row:hover b { color: var(--violet); text-decoration: underline; }
.feed-more { display: inline-block; margin-top: .8rem; font-weight: 600; }

.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.5rem); }
.lede-serif { font: 400 1.2rem/1.5 var(--serif); margin: .6rem 0 0; max-width: 52ch; }

/* who sees */
.ws-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem; align-items: flex-end; }
.ws-top h2 { margin: 0; font: 800 clamp(1.9rem, 4vw, 2.5rem)/1.05 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { border-radius: 999px; padding: .7rem 1.1rem; font: 700 .95rem var(--sans); cursor: pointer; border: 2px solid var(--ink); background: #fff; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ws-nodes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; margin-top: 2rem; }
@media (max-width: 960px) { .ws-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ws-nodes { grid-template-columns: 1fr; } }
.ws-node { border-radius: var(--r-md); padding: 1rem; min-height: 160px; border: 2px dashed #C3CFCB; background: #F8FAF8; transition: background .25s, border-color .25s; }
.ws-node h3 { margin: .75rem 0 .35rem; font-size: 1.05rem; color: var(--ink); }
.ws-node p { margin: 0; font-size: .9rem; line-height: 1.45; }
.ws-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .28rem .55rem; border-radius: 999px; background: var(--tint); color: #3A4D4F; }
.ws-node[data-level="full"] { border: 2px solid var(--violet); background: #F4F0FD; } .ws-node[data-level="full"] .ws-badge { background: var(--violet); color: #fff; }
.ws-node[data-level="partial"] { border: 2px solid var(--lilac); background: #fff; } .ws-node[data-level="partial"] .ws-badge { background: var(--lilac); color: #2E1C5C; }
.ws-summary { margin: 1.5rem 0 0; padding: 1rem 1.25rem; background: var(--violet-wash); border-radius: var(--r-md); font-size: 1rem; line-height: 1.5; color: var(--ink); }

/* quiz + slider */
.duo { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.duo > * { flex: 1 1 460px; min-width: 0; }
.quiz { background: var(--violet); color: #fff; border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.25rem); }
.quiz-top { display: flex; justify-content: space-between; font-size: .9rem; color: #DCD3F5; margin: 0; }
.quiz-q { margin: 1.3rem 0 0; font: 700 clamp(1.4rem, 2.6vw, 1.9rem)/1.2 var(--sans); letter-spacing: -.02em; min-height: 3.6em; }
.quiz-btns { display: flex; gap: .75rem; margin-top: 1.25rem; }
.quiz-btns button { flex: 1; border-radius: var(--r-md); padding: 1rem; font: 700 1.1rem var(--sans); cursor: pointer; }
.qb-myth { background: #fff; color: var(--violet-deep); border: 2px solid #fff; } .qb-fact { background: transparent; color: #fff; border: 2px solid #fff; }
.qb-myth:hover { background: var(--violet-wash); } .qb-fact:hover { background: rgba(255,255,255,.12); }
.quiz-result { margin-top: 1.25rem; background: rgba(255,255,255,.12); border-radius: var(--r-md); padding: 1.1rem; }
.quiz-result b { display: block; font-size: 1.2rem; }
.quiz-result p { margin: .5rem 0 .9rem; color: #EEE9F8; line-height: 1.5; }
.quiz-result button { background: #fff; color: var(--violet-deep); border: 0; border-radius: var(--r-sm); padding: .7rem 1rem; font: 700 .95rem var(--sans); cursor: pointer; }
.quiz-score { margin: 1.1rem 0 0; font-size: .9rem; color: #DCD3F5; }
.slider-card h2 { margin: .5rem 0 0; font: 700 1.85rem/1.15 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.slider-card h2 span { color: var(--violet); }
.big-num { margin: .3rem 0 0; font: 800 clamp(2.8rem, 6vw, 4rem)/1.05 var(--sans); letter-spacing: -.035em; color: var(--ink); }
input[type=range] { accent-color: var(--violet); width: 100%; }
.range-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: .2rem; }

/* tool tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.tile { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; border-radius: var(--r-md); text-decoration: none; color: var(--ink); min-height: 210px; }
.tile:hover { color: var(--ink); outline: 3px solid var(--ink); outline-offset: -3px; }
.tile svg { width: 36px; height: 36px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile b { font-size: 1.3rem; font-weight: 800; letter-spacing: -.015em; }
.tile span { font-size: .95rem; line-height: 1.45; }
.tile i { margin-top: auto; font: italic 400 1rem var(--serif); }
.t-lilac { background: var(--lilac); } .t-mint { background: var(--mint); } .t-sand { background: var(--sand); } .t-peach { background: var(--peach); } .t-sky { background: var(--sky); } .t-white { background: #fff; border: 1px solid var(--rule); }

/* poll band */
.band-night { background: var(--night); color: #fff; margin-top: clamp(3rem, 7vw, 4.5rem); }
.band-night .wrap { display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; padding-top: 4rem; padding-bottom: 4rem; }
.band-night h2 { margin: 0; font: 800 clamp(2rem, 4vw, 2.6rem)/1.05 var(--sans); letter-spacing: -.03em; color: #fff; }
.band-night .kicker { color: var(--mint); }
.band-night p { color: var(--on-night); }
.poll { flex: 1 1 420px; display: flex; flex-direction: column; gap: .6rem; }
.poll button { text-align: left; background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-md); padding: 1rem 1.1rem; font: 600 1.05rem var(--sans); cursor: pointer; }
.poll button:hover { border-color: var(--mint); background: rgba(127,224,196,.08); }
.poll-done { background: rgba(127,224,196,.12); border: 1px solid var(--mint); border-radius: var(--r-md); padding: 1.3rem; }
.poll-done b { font-size: 1.2rem; }
.poll-bar { margin-top: .7rem; } .poll-bar span { display: flex; justify-content: space-between; font-size: .9rem; }
.poll-bar i { display: block; height: 8px; border-radius: 4px; background: var(--mint); margin-top: .3rem; }

/* trust strip */
.trust { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.trust p { font: 400 1.12rem/1.6 var(--serif); max-width: 52ch; margin: 0 0 1rem; }
.trust ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.trust li a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--rule); font-weight: 600; color: var(--ink); text-decoration: none; }
.trust li a span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
.trust li a:hover { color: var(--violet); }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.page { padding-bottom: 4rem; }
.page-band { background: var(--night); color: #fff; position: relative; overflow: hidden; margin-bottom: 2.25rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 1.4rem 0 0; font-size: .875rem; color: var(--on-night-muted); }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: #5E7774; }
.crumbs a { color: var(--on-night-muted); }
.crumbs a:hover { color: #fff; }
.page-head { padding: 1.6rem 0 2.4rem; }
.page-head h1 { margin: 0; font: 800 clamp(2.1rem, 4.6vw, 3.5rem)/1.04 var(--sans); letter-spacing: -.03em; max-width: 22ch; color: #fff; }
.page-head .story-meta { margin-bottom: 1rem; }
.lede { font: 400 clamp(1.15rem, 2vw, 1.35rem)/1.45 var(--serif); color: var(--on-night); max-width: 60ch; margin: 1rem 0 0; }
.byline { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: 1.25rem 0 0; font-size: .9rem; color: var(--on-night-muted); }
.byline span + span { padding-left: 1.1rem; border-left: 1px solid rgba(255,255,255,.2); }
.byline a { color: #fff; font-weight: 600; text-decoration: none; } .byline a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--sans); color: var(--ink); line-height: 1.15; letter-spacing: -.015em; }
.prose { font: 400 1.1875rem/1.65 var(--serif); color: var(--text); min-width: 0; }
.prose > * { max-width: var(--measure); }
.prose h2 { font-size: 1.75rem; font-weight: 700; margin: 2.6rem 0 .8rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.prose > h2:first-child, .prose > .at-a-glance + h2 { margin-top: 1.5rem; }
.prose > h2:first-child { border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 1.8rem 0 .4rem; }
.prose p { margin: 0 0 1.05em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; } .prose li::marker { color: var(--muted); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose blockquote { margin: 1.5rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--violet); font-style: italic; }
.prose .fn a { font: 600 .68em/1 var(--sans); text-decoration: none; padding: 0 .15em; }
.prose .fn + .fn::before { content: ","; font: 600 .68em/1 var(--sans); color: var(--violet); }
.table-wrap { overflow-x: auto; max-width: none !important; margin: 1.2rem 0 1.6rem; border: 1px solid var(--rule); background: var(--surface); border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font: 400 .95rem/1.45 var(--sans); margin: 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .7rem .85rem; border-bottom: 1px solid var(--rule); }
.prose thead th { font-weight: 600; color: var(--ink); background: var(--tint); border-bottom: 1px solid var(--rule-strong); }
.prose tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.prose tr:last-child td, .prose tr:last-child th { border-bottom: 0; }
.prose caption { caption-side: bottom; text-align: left; font-size: .85rem; color: var(--muted); padding: .6rem .85rem; }

.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.side { position: sticky; top: 1.2rem; }
.toc { font-size: .9rem; border-left: 3px solid var(--mint-deep); padding-left: 1rem; }
.toc h2 { font-size: .95rem; margin: 0 0 .5rem; letter-spacing: 0; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0 0 .45rem; }
.toc a { color: var(--text); text-decoration: none; line-height: 1.35; display: block; }
.toc a:hover { color: var(--violet); text-decoration: underline; }
@media (max-width: 960px) { .with-side { grid-template-columns: 1fr; } .side { position: static; order: -1; } .toc { margin-bottom: 1rem; } }

.at-a-glance { max-width: var(--measure); background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--mint-deep); border-radius: 0 0 var(--r-md) var(--r-md); padding: 1.2rem 1.4rem 1rem; margin: 0 0 2rem; font: 400 1rem/1.5 var(--sans); }
.at-a-glance h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .7rem !important; padding: 0; border: 0; }
.at-a-glance ul { margin: 0; padding-left: 1.1em; } .at-a-glance li { margin-bottom: .45rem; }
.note { max-width: var(--measure); font: 400 .98rem/1.5 var(--sans); background: var(--tint); padding: 1rem 1.2rem; border-radius: var(--r-md); margin: 1.4rem 0; }
.note strong { color: var(--ink); } .note--warn { background: var(--amber-wash); }
.status { display: inline-block; font: 700 .8rem/1 var(--sans); padding: .35rem .55rem; border-radius: var(--r-sm); background: var(--amber-wash); color: var(--amber); }

.timeline { list-style: none; padding: 0; margin: 1.4rem 0 2rem; max-width: var(--measure); font: 400 1rem/1.5 var(--sans); }
.timeline li { position: relative; padding: 0 0 1.3rem 1.8rem; border-left: 2px solid var(--rule-strong); margin-left: .4rem; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: .3rem; width: 14px; height: 14px; border-radius: 50%; background: var(--mint-deep); }
.timeline li.is-now::before { background: var(--violet); box-shadow: 0 0 0 5px var(--violet-wash); }
.timeline li.is-future::before { background: var(--paper); border: 2px dashed var(--muted); width: 12px; height: 12px; }
.timeline time { display: block; font-weight: 700; color: var(--ink); }
.timeline p { margin: .15rem 0 0; }

.sources { margin-top: 3rem; font: 400 .9rem/1.5 var(--sans); }
.sources h2, .changelog h2 { font-size: 1.15rem; margin: 0 0 .8rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.sources ol { padding-left: 1.6em; max-width: var(--measure); } .sources li { margin-bottom: .45rem; }
.sources li:target { background: var(--violet-wash); outline: 4px solid var(--violet-wash); }
.sources-note { color: var(--muted); }
.changelog { font: 400 .9rem/1.5 var(--sans); margin-top: 1.5rem; }
.changelog ul { list-style: none; padding: 0; } .changelog time { font-weight: 600; color: var(--ink); margin-right: .5rem; }

.related { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 3px solid var(--ink); }
.related h2 { font-size: 1.5rem; margin: 0 0 1rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 2rem; }
.related a { display: block; text-decoration: none; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.rel-title { display: block; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.rel-desc { display: block; color: var(--muted); font-size: .92rem; margin-top: .2rem; }
.related a:hover .rel-title { color: var(--violet); text-decoration: underline; }

.ad { margin: 2rem auto; max-width: var(--measure); min-height: 120px; display: flex; align-items: center; justify-content: center; background: var(--surface, #fafafa); border: 1px dashed var(--rule); border-radius: 6px; padding: .75rem; }
.ad-label { display: block; font: 500 .72rem/1 var(--sans); color: var(--muted); text-align: center; }
.ad--side { margin-top: 2rem; min-height: 250px; }

/* hub lists */
.hub-list { list-style: none; padding: 0; margin: 0; max-width: none !important; border-top: 3px solid var(--ink); font-family: var(--sans); }
.hub-list li { padding: 1.4rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.hub-list h2 { font-size: 1.4rem; margin: 0 0 .4rem; padding: 0; border: 0; }
.hub-list h2 a { color: var(--ink); text-decoration: none; } .hub-list h2 a:hover { color: var(--violet); text-decoration: underline; }
.hub-list p { font: 400 1.08rem/1.55 var(--serif); margin: 0 0 .4rem; max-width: 66ch; }
.hub-list .meta { font: 400 .875rem var(--sans); color: var(--muted); }
.news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; max-width: none !important; font-family: var(--sans); }
@media (max-width: 760px) { .news-list { grid-template-columns: 1fr; } }
.single .prose > .news-list, .single .prose > .tiles, .single .prose > .feed-full { max-width: none; }

/* live feed page */
.feed-full { max-width: none !important; font-family: var(--sans); }
.feed-full .feed-row { grid-template-columns: 70px 1fr; padding: 1rem 0; }
.feed-full .feed-row b { font-size: 1.05rem; }
.feed-filter { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1.25rem; }

/* ---------- calculators ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r-lg); margin: 0 0 2.5rem; font-family: var(--sans); overflow: hidden; }
.calc-in { padding: 1.5rem 1.6rem 1.6rem; border-right: 1px solid var(--rule); }
.calc-out { padding: 1.5rem 1.6rem 1.6rem; }
.calc h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 1rem; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc-in { border-right: 0; border-bottom: 1px solid var(--rule); } }
.field { margin-bottom: 1rem; }
.field label, .field legend { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: .35rem; }
.field .hint { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; margin-top: .25rem; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1rem; } .row2 > * { min-width: 0; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }
.input { display: flex; align-items: stretch; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--surface); }
.input:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-wash); }
.input .affix { display: flex; align-items: center; padding: 0 .7rem; color: var(--muted); background: var(--paper); font-weight: 500; }
.input .affix:first-child { border-right: 1px solid var(--rule); border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input .affix:last-child { border-left: 1px solid var(--rule); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.input input, .input select { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font: 500 1.05rem var(--sans); color: var(--ink); padding: .65rem .75rem; }
.input input:focus, .input select:focus { outline: none; }
select.plain, textarea.plain { width: 100%; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--surface); font: 500 1rem var(--sans); color: var(--ink); padding: .65rem .6rem; }
select.plain:focus, textarea.plain:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-wash); }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; margin-bottom: 1.2rem; }
.seg button { font: 700 .92rem var(--sans); border: 0; background: var(--surface); color: var(--ink); padding: .55rem 1rem; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.err { color: var(--red); font-size: .88rem; margin: .3rem 0 0; }
.live { font-size: .85rem; color: var(--muted); margin: .3rem 0 0; }
.live button { font: inherit; color: var(--violet); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.result-main { padding-bottom: 1rem; border-bottom: 1px solid var(--rule); margin-bottom: .6rem; }
.result-main .label { font-size: .92rem; color: var(--muted); }
.result-main .big { font: 800 clamp(2rem, 4.4vw, 2.85rem)/1.05 var(--sans); color: var(--ink); letter-spacing: -.03em; margin: .25rem 0; }
.result-main .sub { font-size: .95rem; color: var(--text); }
.pos { color: var(--green) !important; } .neg { color: var(--red) !important; }
.results { display: grid; grid-template-columns: 1fr auto; margin: 0; }
.results dt, .results dd { margin: 0; padding: .55rem 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.results dd { text-align: right; font-weight: 600; color: var(--ink); padding-left: 1rem; }
.results dt:last-of-type, .results dd:last-of-type { border-bottom: 0; }
.calc-note { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; line-height: 1.45; }
.chart { margin-top: 1.2rem; position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.chart .axis text { font-size: 11px; fill: var(--muted); }
.chart .grid line { stroke: var(--rule); stroke-width: 1; }
.chart .baseline { stroke: var(--rule-strong); }
.chart .s0 { stroke: var(--series0); } .chart .s1 { stroke: var(--series1); }
.chart .dot0 { fill: var(--series0); } .chart .dot1 { fill: var(--series1); }
.chart .xh { stroke: var(--muted); stroke-dasharray: 3 3; }
.chart-legend { display: flex; gap: 1.2rem; font-size: .85rem; color: var(--text); margin: .2rem 0 .4rem; flex-wrap: wrap; }
.chart-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: .4rem; }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font: 500 .8rem/1.4 var(--sans); padding: .45rem .6rem; border-radius: var(--r-sm); white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .1s; }
.chart-tip.on { opacity: 1; }
details.table-view { margin-top: .8rem; font-size: .9rem; }
details.table-view summary { cursor: pointer; color: var(--violet); font-weight: 600; }
details.table-view table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
details.table-view th, details.table-view td { padding: .35rem .4rem; border-bottom: 1px solid var(--rule); text-align: right; }
details.table-view th:first-child, details.table-view td:first-child { text-align: left; }

.tool-wrap { margin: 0 0 2.5rem; }
.contact-card { max-width: var(--measure); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 1.4rem 1.6rem; font: 400 1rem/1.55 var(--sans); }
.contact-card dt { font-weight: 600; color: var(--ink); margin-top: .8rem; } .contact-card dd { margin: .2rem 0 0; }
.todo { background: var(--amber-wash); color: var(--amber); padding: 0 .25em; border-radius: 2px; font-family: var(--sans); font-size: .9em; }

/* ---------- footer ---------- */
.site-foot { background: var(--night-2); color: #A9BCB8; font-size: .95rem; }
.site-foot a { color: #fff; text-decoration: none; } .site-foot a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 2.5rem; }
.foot-about p { max-width: 38ch; margin: 1rem 0 0; line-height: 1.55; }
.foot-col { display: flex; flex-direction: column; gap: .55rem; }
.foot-col h2 { font-size: .95rem; color: #fff; margin: 0 0 .4rem; letter-spacing: 0; }
.foot-col a { color: #C8D3D1; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; padding-bottom: 2.5rem; font-size: .85rem; line-height: 1.55; }
.foot-legal p { max-width: 90ch; margin: 0 0 .7rem; } .foot-legal strong { color: #fff; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 860px) { .hero .rosette { width: 620px; height: 620px; margin-top: -310px; right: -300px; opacity: .6; } }

@media print { .ticker, .masthead, .site-foot, .side, .related, .ad, .alert-form { display: none !important; } body { background: #fff; } .page-band { background: #fff; color: #000; } .page-head h1, .lede { color: #000; } .with-side { display: block; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 520px) { .ws-node { min-height: 0; } .byline span + span { border-left: 0; padding-left: 0; } }
