/* =====================================================================
   Budget 2026 Explorer — warre & vavasour
   Brand: "prairie at dusk" (dark first). Fraunces · Inter Tight · JetBrains Mono.
   Data colours: money types, validated for dark (#0a0807) and light (#f7f2e8) surfaces.
   ===================================================================== */
:root {
  --bg: #0a0807; --bg-2: #110d0a; --panel: #15100c; --panel-2: #1b1510;
  --ink: #f3ede1; --ink-2: rgba(243, 237, 225, .74); --ink-3: rgba(243, 237, 225, .56); --ink-4: rgba(243, 237, 225, .18);
  --line: rgba(243, 237, 225, .12); --line-strong: rgba(243, 237, 225, .24);
  --gold: #d9a441; --gold-2: #e8c277; --gold-soft: rgba(217, 164, 65, .14); --ember: #c2542a; --on-gold: #0a0807;
  --m-spending: #c98500; --m-tax: #3987e5; --m-savings: #199e70; --m-loans: #9085e9; --m-none: #8c8579;
  --pos: #c98500; --neg: #199e70;
  --serif: "Fraunces", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 76rem; --gut: clamp(1rem, 4vw, 3rem);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg: #f7f2e8; --bg-2: #efe8da; --panel: #fffdf8; --panel-2: #f3ecdf;
  --ink: #1b1611; --ink-2: rgba(27, 22, 17, .78); --ink-3: rgba(27, 22, 17, .6); --ink-4: rgba(27, 22, 17, .16);
  --line: rgba(27, 22, 17, .14); --line-strong: rgba(27, 22, 17, .28);
  --gold: #8a5d0c; --gold-2: #7a520a; --gold-soft: rgba(154, 106, 18, .12); --ember: #a8431f; --on-gold: #fffdf8;
  --m-spending: #c98500; --m-tax: #2a78d6; --m-savings: #1baf7a; --m-loans: #6250d6; --m-none: #6f685d;
  --pos: #c98500; --neg: #1baf7a;
  color-scheme: light; } }
:root[data-theme="light"] {
  --bg: #f7f2e8; --bg-2: #efe8da; --panel: #fffdf8; --panel-2: #f3ecdf;
  --ink: #1b1611; --ink-2: rgba(27, 22, 17, .78); --ink-3: rgba(27, 22, 17, .6); --ink-4: rgba(27, 22, 17, .16);
  --line: rgba(27, 22, 17, .14); --line-strong: rgba(27, 22, 17, .28);
  --gold: #8a5d0c; --gold-2: #7a520a; --gold-soft: rgba(154, 106, 18, .12); --ember: #a8431f; --on-gold: #fffdf8;
  --m-spending: #c98500; --m-tax: #2a78d6; --m-savings: #1baf7a; --m-loans: #6250d6; --m-none: #6f685d;
  --pos: #c98500; --neg: #1baf7a;
  color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.62 var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--gold-2); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.08; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--gold-2); }
p { margin: 0 0 1em; }
.wrap { width: min(100%, var(--maxw)); margin: 0 auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--on-gold); padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; }
.mono { font-family: var(--mono); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header / footer ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 1rem; min-height: 3.6rem; }
.brand { display: inline-flex; align-items: baseline; gap: .55rem; color: var(--ink); text-decoration: none; font: 400 1.15rem/1 var(--serif); white-space: nowrap; }
.brand b { font-weight: 400; color: var(--gold); }
.brand small { font: 500 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.site-nav { margin-left: auto; display: flex; gap: clamp(.8rem, 2vw, 1.6rem); align-items: center; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav .nav-cta { color: var(--gold-2); }
@media (max-width: 760px) { .brand small { display: none; } .site-nav .hide-sm { display: none; } }
.site-foot { border-top: 1px solid var(--line); margin-top: 5rem; padding: 2.5rem 0 3rem; color: var(--ink-3); font-size: .875rem; }
.site-foot .wrap { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.site-foot a { color: var(--ink-2); }
.site-foot h2 { font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }

/* ---------- type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .8em; font: 500 .72rem/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.1rem; }
.eyebrow::before { content: ""; width: clamp(1.4rem, 4vw, 2.6rem); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--ink-2); max-width: 44rem; }
.kicker { font: 500 .72rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; }
.kicker span { color: var(--gold); margin-right: .7em; }
section.block { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
section.block:first-of-type { border-top: 0; }
.section-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: end; justify-content: space-between; margin-bottom: 2rem; }
.section-head > div { max-width: 46rem; }
.section-head p { color: var(--ink-2); margin: 0; }

/* ---------- buttons, badges, chips ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.25rem; border-radius: 999px; border: 1px solid var(--gold); background: var(--gold); color: var(--on-gold); font: 500 .95rem/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--on-gold); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.6rem; }
.badge { display: inline-flex; align-items: center; gap: .45em; padding: .22rem .6rem; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 .72rem/1.2 var(--mono); letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c, var(--ink-3)); flex: none; }
.badge.plain::before { display: none; }
.t-spending { --c: var(--m-spending); } .t-tax { --c: var(--m-tax); } .t-savings_or_revenue { --c: var(--m-savings); } .t-no_line_item { --c: var(--m-none); } .t-loans { --c: var(--m-loans); }
.badge.t-loans::before { border-radius: 2px; transform: rotate(45deg); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-block; padding: .28rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .82rem; background: transparent; cursor: pointer; font-family: var(--sans); }
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip[aria-pressed="true"], .chip.on { background: var(--gold-soft); border-color: var(--gold); color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.sheet { border: 1px solid var(--line-strong); background: var(--panel); padding: 1.3rem; display: grid; gap: 1rem; }
.sheet h2 { font: 500 .72rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--panel); padding: .9rem 1rem; min-width: 0; }
.stat strong { display: block; font: 400 clamp(1.5rem, 3vw, 2.1rem)/1.05 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { display: block; color: var(--ink-3); font-size: .8rem; line-height: 1.35; margin-top: .3rem; }
.stat a { font-size: .75rem; }
.stat span.badge { display: inline-flex; margin: .45rem .3rem 0 0; color: var(--ink-2); font-size: .7rem; }
.source-line { font: 400 .75rem/1.4 var(--mono); color: var(--ink-3); }
.source-line a { color: var(--ink-2); }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.card { background: var(--bg); padding: 1.3rem 1.25rem; display: grid; gap: .55rem; align-content: start; min-width: 0; color: var(--ink); text-decoration: none; position: relative; }
a.card:hover { background: var(--panel); }
a.card:hover h3 { color: var(--gold-2); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: .93rem; overflow-wrap: anywhere; }
.card .meta { font: 400 .75rem/1.4 var(--mono); color: var(--ink-3); }
.card .arrow { position: absolute; top: 1.1rem; right: 1.1rem; color: var(--ink-3); }

/* ---------- money explainer ---------- */
.money-card { background: var(--bg); padding: 1.25rem; display: grid; gap: .5rem; align-content: start; border-top: 3px solid var(--c); }
.money-card h3 { margin: 0; font-size: 1.15rem; }
.money-card p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.money-card .eg { font: 400 .78rem/1.45 var(--mono); color: var(--ink-3); }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--ink-3); font: 400 11px var(--mono); }
.chart .lbl { fill: var(--ink-2); }
.chart .val { fill: var(--ink); font-weight: 500; }
.chart .axis { stroke: var(--line-strong); stroke-width: 1; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .bar { fill: var(--c, var(--m-spending)); }
.chart .bar:hover, .chart .hit:hover + .bar { opacity: .82; }
.chart .line { fill: none; stroke-width: 2; stroke: var(--c); }
.chart .dot { fill: var(--c); stroke: var(--bg); stroke-width: 2; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font: 400 .78rem var(--mono); color: var(--ink-2); margin: .5rem 0; }
.legend span::before { content: ""; display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; background: var(--c); margin-right: .4rem; vertical-align: -1px; }
.tip { position: fixed; z-index: 300; pointer-events: none; background: var(--panel-2); color: var(--ink); border: 1px solid var(--line-strong); padding: .4rem .6rem; font: 400 .78rem/1.35 var(--mono); max-width: 18rem; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.chart-wrap { border: 1px solid var(--line); background: var(--panel); padding: 1rem 1rem .6rem; }
.chart-wrap figcaption { font-size: .85rem; color: var(--ink-2); margin-bottom: .6rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data caption { text-align: left; padding: .7rem .9rem; color: var(--ink-2); font-size: .85rem; border-bottom: 1px solid var(--line); caption-side: top; }
table.data th, table.data td { padding: .55rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data thead th { font: 500 .7rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--panel); white-space: nowrap; }
table.data td.n, table.data th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tbody tr:hover { background: var(--panel); }
table.data tr.sub td, table.data tr.sub th { color: var(--ink-3); font-size: .85rem; }
table.data tr.total th, table.data tr.total td { font-weight: 600; border-top: 1px solid var(--line-strong); }
table.data a { color: var(--ink); text-decoration-color: var(--line-strong); }
table.data a:hover { color: var(--gold-2); }

/* ---------- document pages ---------- */
.crumbs { font: 400 .78rem/1.4 var(--mono); color: var(--ink-3); padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); }
.page-head { padding-block: 1.2rem 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.page-head h1 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); max-width: 56rem; }
.page-head .badges { display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 1rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.layout aside { position: sticky; top: 4.6rem; display: grid; gap: 1rem; }
@media (max-width: 960px) { .layout aside { position: static; } }
.panel { border: 1px solid var(--line); background: var(--panel); padding: 1.1rem 1.2rem; }
.panel h2 { font: 500 .72rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 .8rem; }
.panel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: .88rem; }
.panel dt { color: var(--ink-3); }
.panel dd { margin: 0; text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
blockquote.q { margin: 0 0 1.2rem; padding: .2rem 0 .2rem 1.1rem; border-left: 2px solid var(--line-strong); }
blockquote.q p { margin: 0 0 .35rem; color: var(--ink); font-family: var(--serif); font-size: 1.06rem; line-height: 1.5; }
blockquote.q cite { font: normal 400 .75rem/1.4 var(--mono); color: var(--ink-3); }
blockquote.q cite a { color: var(--ink-2); }
ul.facts { padding: 0; margin: 0 0 1rem; list-style: none; display: grid; gap: .7rem; }
ul.facts li { padding-left: 1.1rem; position: relative; }
ul.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: .45rem; height: 1px; background: var(--gold); }
ul.facts .cite { font: 400 .74rem/1.4 var(--mono); color: var(--ink-3); white-space: nowrap; }
.wv { border: 1px solid color-mix(in srgb, var(--ember) 55%, var(--line)); background: color-mix(in srgb, var(--ember) 8%, var(--bg)); padding: 1.15rem 1.25rem; margin: 2rem 0; }
.wv .tag { font: 500 .7rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ember); margin-bottom: .6rem; display: block; }
.wv p { margin: 0 0 .7rem; }
.wv p:last-child { margin-bottom: 0; }
.callout { border: 1px dashed var(--line-strong); padding: .9rem 1.1rem; color: var(--ink-2); font-size: .9rem; margin: 1.2rem 0; }
.callout strong { color: var(--ink); }
.measure-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.measure-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.measure-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.measure-list a:hover { color: var(--gold-2); text-decoration: underline; }
.measure-list .amt { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; font-size: .9rem; }
.measure-list .sub { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: center; font-size: .8rem; color: var(--ink-3); }

/* ---------- pathway (W&V) ---------- */
.work { background: radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--ember) 18%, transparent), transparent 60%), var(--bg-2); }
.work h2 { font-size: clamp(2rem, 5vw, 3.8rem); max-width: 60rem; }
.path { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; margin: 2.5rem 0; counter-reset: step; border: 1px solid var(--line); }
@media (max-width: 960px) { .path { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .path { grid-template-columns: minmax(0, 1fr); } }
.path li { list-style: none; padding: 1rem; border-left: 1px solid var(--line); counter-increment: step; display: grid; gap: .35rem; align-content: start; background: var(--bg); }
.path li:first-child { border-left: 0; }
@media (max-width: 960px) { .path li { border-left: 0; border-top: 1px solid var(--line); } }
.path li::before { content: counter(step, decimal-leading-zero); font: 500 .72rem var(--mono); color: var(--gold); }
.path b { font: 400 1.1rem/1.2 var(--serif); }
.path span { color: var(--ink-3); font-size: .82rem; line-height: 1.4; }
.path li.wv-step { background: color-mix(in srgb, var(--ember) 10%, var(--bg)); }
.path li.wv-step::after { content: "W&V"; font: 500 .62rem var(--mono); letter-spacing: .12em; color: var(--ember); }

/* ---------- explorer (JSON Crack-style map) ---------- */
.explorer { display: grid; gap: .8rem; scroll-margin-top: 4.5rem; }
.ex-bar { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.ex-search { display: flex; flex: 1 1 18rem; min-width: 0; border: 1px solid var(--line-strong); background: var(--panel); }
.ex-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); padding: .7rem .9rem; font: 400 1rem var(--sans); }
.ex-search input::placeholder { color: var(--ink-3); }
.ex-search input:focus { outline: none; }
.ex-search:focus-within { border-color: var(--gold); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); }
.seg button { background: none; border: 0; padding: .55rem .9rem; font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }
.ex-lenses { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: thin; }
.ex-lenses .chip { white-space: nowrap; }
.ex-types { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .8rem; color: var(--ink-2); }
.ex-types label { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.ex-types input { accent-color: var(--gold); }
.ex-status { font: 400 .8rem var(--mono); color: var(--ink-3); margin: 0; }
.ex-main { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: .8rem; align-items: start; }
@media (max-width: 960px) { .ex-main { grid-template-columns: minmax(0, 1fr); } }
.canvas { position: relative; height: clamp(440px, 74vh, 860px); overflow: hidden; cursor: grab; touch-action: none; border: 1px solid var(--line); background-color: var(--bg-2); background-image: radial-gradient(var(--ink-4) 1px, transparent 1.2px); background-size: 22px 22px; }
.canvas.drag { cursor: grabbing; }
.explorer.full .canvas { position: fixed; inset: 0; height: auto; z-index: 120; }
.explorer.full .ex-detail { position: fixed; right: 12px; top: 64px; bottom: 12px; width: min(22rem, 90vw); z-index: 121; overflow: auto; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.world svg { position: absolute; left: 0; top: 0; overflow: visible; }
@media (prefers-reduced-motion: no-preference) { .world.ease { transition: transform .28s ease; } }
.edge { fill: none; stroke: var(--line-strong); stroke-width: 1.4; }
.edge.on { stroke: var(--gold); stroke-width: 2; }
.node { position: absolute; background: var(--panel); border: 1px solid var(--line-strong); font: 12px/22px var(--mono); color: var(--ink); }
.node.dim { opacity: .32; }
.node.sel { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.node .nh { all: unset; box-sizing: border-box; width: 100%; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; cursor: pointer; }
.node .nh:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.node .nh b { font: 500 13px/1 var(--sans); overflow: hidden; text-overflow: ellipsis; }
.node .nh i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--ink-3)); flex: none; }
.node .nh i.sq { border-radius: 2px; }
.node .nr { display: flex; gap: 8px; padding: 0 10px; height: 22px; white-space: nowrap; overflow: hidden; width: 100%; background: none; border: 0; text-align: left; font: inherit; color: inherit; }
.node .nr:last-child { margin-bottom: 6px; }
.node .nk { color: var(--gold-2); flex: none; }
.node .nv { overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.node .nv.v-num { color: var(--ink); }
.node .nv.v-ref { color: var(--ink-3); }
.node button.nr { cursor: pointer; }
.node button.nr:hover { background: var(--gold-soft); }
.node.root { border-color: var(--gold); }
.zoom { position: absolute; right: 10px; bottom: 10px; display: flex; border: 1px solid var(--line-strong); background: var(--panel); z-index: 2; }
.zoom button { background: none; border: 0; border-left: 1px solid var(--line-strong); padding: 7px 11px; cursor: pointer; font: 12px var(--mono); color: var(--ink); }
.zoom button:first-child { border-left: 0; }
.hint { position: absolute; left: 10px; bottom: 10px; font: 11px var(--mono); color: var(--ink-3); background: var(--panel); padding: 4px 8px; border: 1px solid var(--line); z-index: 2; }
@media (max-width: 640px) { .hint { display: none; } .canvas { height: 64vh; } }
.ex-detail { border: 1px solid var(--line); background: var(--panel); padding: 1.1rem 1.15rem; display: grid; gap: .8rem; align-content: start; min-height: 12rem; }
.ex-detail h3 { margin: 0; font-size: 1.25rem; }
.ex-detail .k { font: 500 .68rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.ex-detail p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.ex-detail .badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.ex-detail blockquote { margin: 0; padding-left: .8rem; border-left: 2px solid var(--line-strong); font-family: var(--serif); font-size: .98rem; color: var(--ink); }
.ex-list { border: 1px solid var(--line); max-height: clamp(440px, 74vh, 860px); overflow: auto; }
.ex-list table.data { font-size: .85rem; }
.ex-list table.data td:first-child { min-width: 14rem; }

/* ---------- misc ---------- */
.note { font-size: .82rem; color: var(--ink-3); max-width: 50rem; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 2rem; align-items: start; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
code.hash { font: 400 .78rem var(--mono); word-break: break-all; color: var(--ink-2); }
@media print { .site-head, .site-foot, .explorer, .actions { display: none !important; } body { background: #fff; color: #000; } }
