/* Shrooms Grow at Night: a nocturnal field guide to a living network.
   One system for every route. Sections: type, tokens, base, shell, controls,
   tables, figures, explore, charts, story pages, learn, sources, print.
   Design record: docs/FIELD-GUIDE-REDESIGN.md. */

/* ---------- type (self-hosted, SIL Open Font License) ---------- */

@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 300 650; font-display: swap;
  src: url("fonts/Fraunces-Soft-300-650.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 300 650; font-display: swap;
  src: url("fonts/Fraunces-Soft-Italic-300-650.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/HankenGrotesk-400-700.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/JetBrainsMono-400-700.woff2") format("woff2");
}

/* ---------- tokens ---------- */

:root {
  color-scheme: dark;
  /* Night: the ground and three raised tones. Surfaces separate by tone and rule, not shadow. */
  --night-0: #070a06;
  --night-1: #0b0f0a;
  --night-2: #10150e;
  --night-3: #161d14;
  --night-4: #1e2719;
  /* Cream ink, three strengths. --cream-3 keeps 5:1 on every night tone. */
  --cream: #efe7d2;
  --cream-2: #cdc6b0;
  --cream-3: #a39d8a;
  --cream-4: #918d7c;
  --rule: rgba(239, 231, 210, .12);
  --rule-2: rgba(239, 231, 210, .22);
  --rule-3: rgba(239, 231, 210, .38);
  /* Bioluminescence: selection, the living series, the primary action. Used sparingly. */
  --glow: #c7e541;
  --glow-2: #dff27f;
  --glow-dim: #7d9431;
  --glow-wash: rgba(199, 229, 65, .09);
  --glow-line: rgba(199, 229, 65, .42);
  /* Forest secondaries and the burn. */
  --moss: #93ab5c;
  --lichen: #9dbcb0;
  --spore: #e8c96a;
  --ember: #e59a6c;
  --ember-2: #f3b68f;
  --alarm: #ff8a6b;

  /* Status: always paired with a word. */
  --st-verified: var(--glow);
  --st-indexed: var(--lichen);
  --st-estimated: var(--spore);
  --st-partial: var(--ember);
  --st-reported: var(--spore);
  --st-unavailable: var(--cream-3);
  --st-stale: var(--alarm);
  --st-historical: var(--lichen);

  /* Stable chart series. */
  --series-1: var(--glow);
  --series-2: var(--moss);
  --series-3: var(--lichen);
  --series-4: var(--spore);
  --series-usd: var(--cream-2);
  --series-fees: var(--ember);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* Aliases read by inline SVG styles in app.js and treasury.js. */
  --display: var(--serif);
  --accent: var(--glow);
  --ink: var(--cream);
  --ink-soft: var(--cream-2);
  --ink-faint: var(--cream-3);
  --line: var(--rule);
  --line-strong: var(--rule-2);
  --cap: var(--ember);
  --loss: var(--alarm);
  --surface: var(--night-2);

  --t-hero: clamp(2.55rem, 1.55rem + 3.4vw, 4.5rem);
  --t-h1: clamp(2.2rem, 1.5rem + 2.4vw, 3.75rem);
  --t-h2: clamp(1.55rem, 1.25rem + 1vw, 2.2rem);
  --t-h3: 1.2rem;
  --t-fig-xl: clamp(2.3rem, 1.8rem + 1.5vw, 3.25rem);
  --t-fig-l: clamp(1.8rem, 1.5rem + .9vw, 2.4rem);
  --t-fig-m: 1.5rem;
  --t-small: .875rem;
  --t-meta: .8125rem;
  --t-label: .72rem;

  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;
  --gutter: clamp(1rem, .4rem + 2.6vw, 2.5rem);
  --measure: 68ch;
  --r-1: 2px; --r-2: 4px; --r-3: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.45, 0, .2, 1);
  --dur-1: 120ms; --dur-2: 220ms; --dur-3: 420ms;
  --masthead-h: 60px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .94 0 0 0 0 .9 0 0 0 0 .8 0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
/* --masthead-live is the measured sticky masthead height (app.js); anchors land just below it. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--masthead-live, var(--masthead-h)) + 12px); }
body {
  margin: 0; min-height: 100vh;
  background-color: var(--night-1);
  background-image: radial-gradient(90rem 40rem at 70% -12rem, rgba(199, 229, 65, .045), transparent 70%);
  background-repeat: no-repeat;
  color: var(--cream);
  font: 400 1rem/1.58 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* Print texture over the atmosphere; it never reaches into a plot or table cell. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: var(--grain); opacity: .045; mix-blend-mode: screen;
}
::selection { background: rgba(199, 229, 65, .32); color: var(--cream); }

h1, h2, h3, h4 { margin: 0 0 .45em; font-weight: 400; color: var(--cream); text-wrap: balance; overflow-wrap: break-word; }
h1 { font: 380 var(--t-h1)/1.02 var(--serif); letter-spacing: -.012em; }
h2 { font: 400 var(--t-h2)/1.1 var(--serif); letter-spacing: -.008em; }
h3 { font: 500 var(--t-h3)/1.25 var(--serif); letter-spacing: -.003em; }
h4 { font: 600 .95rem/1.4 var(--sans); }
p { margin: 0 0 1em; max-width: var(--measure); }
p, li, dd, figcaption { text-wrap: pretty; }
a { color: var(--glow); text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: rgba(199, 229, 65, .45); }
a:hover { color: var(--glow-2); text-decoration-color: currentColor; }
strong, b { font-weight: 600; }
img, svg { max-width: 100%; }
code, .mono, kbd { font-family: var(--mono); font-size: .9em; }
.num { font-variant-numeric: tabular-nums lining-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--glow-2); outline-offset: 3px; border-radius: 1px; }
/* Pointer focus draws nothing, including browsers' own rings on focusable SVG. */
:focus:not(:focus-visible) { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute !important; left: -9999px; top: .5rem; z-index: 90;
  background: var(--night-3); color: var(--cream); padding: .7rem 1rem; border: 1px solid var(--glow); border-radius: var(--r-2);
}
.skip-link:focus { left: .5rem; }
.small { font-size: var(--t-small); }
.muted { color: var(--cream-3); }
.list-clean { list-style: none; margin: 0; padding: 0; }
.display { font-family: var(--serif); }

/* Labels: small, set in the interface face, tracked caps. The plate numeral is Fraunces italic. */
.eyebrow, th, .stat__label, .metric__label, .tag, .filters label, .livebar dt {
  font: 600 var(--t-label)/1.35 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--cream-3);
}
.eyebrow { display: block; margin: 0 0 .7rem; color: var(--moss); }
.plate-no { font: italic 400 1rem/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--cream-3); margin-right: .5rem; white-space: nowrap; }

/* ---------- shell: masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 30;
  background: var(--night-1);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner, .page, .sitefoot__inner, .shift__inner {
  width: min(1360px, 100% - 2 * var(--gutter)); margin-inline: auto;
}
.masthead__inner { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--masthead-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--cream); text-decoration: none; flex: 0 1 auto; min-width: 0; min-height: 44px; }
.brand__mark { width: 30px; height: 30px; flex: none; overflow: visible; }
.brand__cap { fill: var(--glow); }
.brand__gills { stroke: #34401a; stroke-width: 1; fill: none; stroke-linecap: round; }
.brand__stem { fill: var(--cream); }
.brand__roots { stroke: var(--glow); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.brand__spore { fill: var(--spore); }
.brand__word { height: 15px; width: auto; fill: var(--cream); }
.brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.brand:hover .brand__word { fill: #fff8e6; }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .6rem;
  color: var(--cream-2); text-decoration: none; font-size: .9rem; letter-spacing: .005em; border-radius: var(--r-2);
  transition: color var(--dur-1) var(--ease);
}
.nav a:hover { color: var(--cream); }
.nav a[aria-current="page"] { color: var(--cream); }
/* Current page: a lit spore at the end of a short root under the label. */
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .6rem; right: .6rem; bottom: 8px; height: 1px;
  background: linear-gradient(90deg, var(--glow), rgba(199, 229, 65, .15));
}
.nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: calc(.6rem - 2px); bottom: 6px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 8px rgba(199, 229, 65, .8);
}
.nav__minor { color: var(--cream-3) !important; }
.nav__minor:hover, .nav__minor[aria-current="page"] { color: var(--cream) !important; }
.nav__sep { width: 1px; height: 18px; background: var(--rule-2); margin: 0 .4rem; }
.masthead__socials { display: flex; align-items: center; gap: .15rem; flex: none; }
.social-link {
  display: inline-grid; place-items: center; width: 40px; height: 44px; color: var(--cream-3); border-radius: var(--r-2);
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.social-link:hover { color: var(--cream); background: var(--night-3); }
.menu-toggle {
  display: none; align-items: center; gap: .55rem; margin-left: auto; min-height: 44px; padding: 0 .85rem;
  background: transparent; border: 1px solid var(--rule-2); border-radius: var(--r-2); color: var(--cream); font-size: .9rem;
}
.menu-toggle__icon { position: relative; width: 16px; height: 10px; border-block: 1.5px solid currentColor; }
.menu-toggle__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; transform: translateY(-50%); }
.menu-toggle[aria-expanded="true"] { border-color: var(--glow-line); color: var(--glow); }

@media (max-width: 1180px) {
  .nav a { padding: 0 .45rem; font-size: .86rem; }
  .nav a[aria-current="page"]::after { left: .45rem; right: .45rem; }
  .nav a[aria-current="page"]::before { left: calc(.45rem - 2px); }
  .nav__sep { margin: 0 .2rem; }
}
@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .masthead__socials { order: 3; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: var(--night-2); border-bottom: 1px solid var(--rule-2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    display: none;
  }
  .masthead--open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; width: min(1360px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: .5rem 0 1rem; }
  .nav li { border-bottom: 1px solid var(--rule); }
  .nav a { width: 100%; min-height: 48px; padding: 0 .25rem; font-size: 1rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"]::before { position: static; margin-right: .6rem; }
  .nav__sep { display: none; }
}
@media (max-width: 520px) {
  .brand__word { height: 12px; }
  .masthead__inner { gap: .5rem; }
  .masthead__socials .social-link { width: 36px; }
  .menu-toggle__label { display: none; }
  .menu-toggle { padding: 0 .75rem; }
}
@media (max-width: 370px) {
  .brand__word { display: none; }
  .brand__name { position: static; width: auto; height: auto; clip: auto; font: 600 .9rem/1.15 var(--sans); white-space: normal; min-width: 0; }
}

/* ---------- shell: the night shift (recent-window figures, static) ---------- */

@media (max-width: 760px) {
}

/* ---------- shell: page, databar, footer, dialogs ---------- */

.page { padding: 0 0 var(--sp-7); min-height: 60vh; outline: none; }
#app { display: block; }
.loading { color: var(--cream-3); font: italic 400 1.05rem/1.5 var(--serif); padding: var(--sp-7) 0; margin: 0; }
.loading::before {
  content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .65rem; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 10px var(--glow); vertical-align: .12em; animation: spore-pulse 1.6s var(--ease-io) infinite;
}
@keyframes spore-pulse { 50% { opacity: .35; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .loading::before { animation: none; } }

#databar { margin-top: var(--sp-5); }
#databar:empty { display: none; }
.atlas__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding: var(--sp-4) 0 0; border-top: 1px solid var(--rule); font-size: var(--t-meta); color: var(--cream-3);
}
.atlas__bar a { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; }
.livebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--sp-4) var(--sp-5); margin: 0 0 var(--sp-5); padding: var(--sp-4) 0; border-block: 1px solid var(--rule); }
.livebar div { min-width: 0; }
.livebar dd { margin: .25rem 0 0; font-size: var(--t-small); overflow-wrap: anywhere; }

.notice, .errorbox {
  margin: var(--sp-4) 0; padding: var(--sp-4) var(--sp-5); border: 1px solid var(--rule-2); border-radius: var(--r-2);
  background: var(--night-2);
}
.notice__title, .errorbox strong { display: block; font: 600 .95rem/1.4 var(--sans); margin-bottom: .3rem; }
.notice p, .errorbox p { margin: 0; color: var(--cream-2); font-size: var(--t-small); }
.notice--critical, .errorbox { border-color: rgba(255, 138, 107, .5); }
.notice--critical .notice__title, .errorbox strong { color: var(--alarm); }

.sitefoot { position: relative; margin-top: 0; padding: var(--sp-6) 0 var(--sp-6); border-top: 1px solid var(--rule); text-align: center; overflow: hidden; }
.sitefoot__roots { display: block; width: min(900px, 100%); height: 46px; margin: -.35rem auto var(--sp-4); fill: none; stroke: var(--glow-dim); stroke-width: 1; opacity: .6; }
.sitefoot__roots path { vector-effect: non-scaling-stroke; }
.sitefoot__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.sitefoot__brand { display: inline-flex; margin: 0; border-radius: 50%; }
.sitefoot__mark { width: 34px; height: 34px; }
.sitefoot p { margin: 0 auto .35rem; color: var(--cream-3); font-size: var(--t-small); }
.sitefoot__lead { color: var(--cream-2) !important; }
.sitefoot__row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: var(--sp-5); }
.sitefoot__action {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--rule-2); border-radius: var(--r-2);
  background: transparent; color: var(--cream-2); font-size: .88rem; text-decoration: none;
}
.sitefoot__action:hover { color: var(--cream); border-color: var(--rule-3); background: var(--night-2); }

.disclaimer {
  width: min(46rem, 100% - 2rem); max-height: min(86vh, 900px); padding: 0; border: 1px solid var(--rule-2); border-radius: var(--r-3);
  background: var(--night-2); color: var(--cream); box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}
.disclaimer::backdrop { background: rgba(4, 6, 4, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.disclaimer__inner { padding: 0 var(--sp-6) var(--sp-6); }
.disclaimer__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: var(--sp-5) 0 var(--sp-4); margin-bottom: var(--sp-2); background: var(--night-2); border-bottom: 1px solid var(--rule); }
.disclaimer__head h2 { margin: 0; }
.disclaimer h3 { font: 400 1.45rem/1.15 var(--serif); color: var(--cream); margin: var(--sp-6) 0 .2rem; padding-top: var(--sp-4); border-top: 1px solid var(--rule-2); scroll-margin-top: 5.5rem; }
.disclaimer section:first-of-type h3 { margin-top: var(--sp-3); }
.disclaimer h4 { font: 600 .74rem/1.4 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--moss); margin: var(--sp-4) 0 .4rem; }
.disclaimer__date { font-size: var(--t-meta, .78rem); color: var(--cream-3); margin: 0; }
.disclaimer__nav { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; padding-bottom: var(--sp-3); border-bottom: 1px solid var(--rule); }
.disclaimer__nav .linkish { font-size: .88rem; }
.disclaimer p { font-size: .93rem; color: var(--cream-2); }
.disclaimer h3:focus { outline: none; color: var(--glow); }
@media (max-width: 520px) { .disclaimer__inner { padding: 0 var(--sp-4) var(--sp-5); } }

.freshness-note {
  position: fixed; z-index: 60; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(22rem, calc(100vw - 2rem)); padding: var(--sp-4) var(--sp-5); background: var(--night-3);
  border: 1px solid var(--rule-2); border-radius: var(--r-3); box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}
.freshness-note h2 { font-size: 1.3rem; }
.freshness-note p { font-size: var(--t-small); color: var(--cream-2); }
.freshness-note__time { color: var(--cream) !important; }
.freshness-note__close { position: absolute; top: .4rem; right: .4rem; width: 40px; height: 40px; border: 0; background: transparent; color: var(--cream-2); font-size: 1.4rem; border-radius: var(--r-2); }
.freshness-note__close:hover { background: var(--night-4); color: var(--cream); }

/* ---------- controls ---------- */

.btn, .living-button, .view-share__button, .living-search-result, .living-example {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--rule-2); border-radius: var(--r-2); background: transparent; color: var(--cream);
  font: 500 .88rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.btn:hover, .living-button:hover, .view-share__button:hover, .living-search-result:hover, .living-example:hover {
  border-color: var(--rule-3); background: var(--night-3); color: var(--cream);
}
.living-button--story, .btn--primary { border-color: var(--glow-line); color: var(--glow); }
.living-button--story:hover, .btn--primary:hover { border-color: var(--glow); color: var(--glow-2); background: var(--glow-wash); }
.living-button--quiet, .btn--ghost { border-color: transparent; color: var(--cream-2); }
.living-button[aria-pressed="true"] { background: var(--night-4); border-color: var(--rule-3); }
.living-button:disabled, .btn:disabled, .living-button[aria-disabled="true"] { opacity: .45; cursor: default; }
.linkish, .living-text-button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent;
  color: var(--glow); font: 500 .9rem/1.3 var(--sans); text-decoration: underline; text-decoration-color: rgba(199, 229, 65, .4); text-underline-offset: .22em;
}
.linkish:hover, .living-text-button:hover { color: var(--glow-2); text-decoration-color: currentColor; }
.linkish:disabled { color: var(--cream-4); text-decoration: none; cursor: default; }

input[type="search"], input[type="text"], select {
  min-height: 44px; padding: 0 .85rem; border: 1px solid var(--rule-2); border-radius: var(--r-2);
  background: var(--night-2); color: var(--cream); font-size: 1rem;
}
input[type="search"]::placeholder, input[type="text"]::placeholder { color: var(--cream-4); }
input:focus-visible, select:focus-visible { outline: 2px solid var(--glow-2); outline-offset: 1px; }
select { padding-right: 2.2rem; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cream-3) 50%), linear-gradient(135deg, var(--cream-3) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }

/* Segmented choices share one shape everywhere: windows, measures, receipt filters. */
.chart-window__choices, .chart-measures, .treasury-receipt-filters {
  display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border: 1px solid var(--rule-2); border-radius: var(--r-2);
}
.chart-window__choices button, .chart-measures button, .treasury-receipt-filters button {
  min-height: 40px; padding: 0 .85rem; border: 0; border-radius: 3px; background: transparent; color: var(--cream-3); font: 500 .85rem/1 var(--sans);
}
.chart-window__choices button:hover, .chart-measures button:hover, .treasury-receipt-filters button:hover { color: var(--cream); }
.chart-window__choices [aria-pressed="true"], .chart-measures [aria-pressed="true"], .treasury-receipt-filters [aria-pressed="true"] { background: var(--night-4); color: var(--cream); }

/* Status: word first, a small lit dot for colour. Never colour alone. */
.pill {
  display: inline-flex; align-items: center; gap: .38rem; padding: .12rem .45rem .12rem .38rem; border-radius: var(--r-1);
  border: 1px solid currentColor; background: transparent; color: var(--st-unavailable);
  font: 600 .66rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; vertical-align: .08em;
}
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.pill--verified { color: var(--st-verified); border-color: rgba(199, 229, 65, .45); }
.pill--indexed { color: var(--st-indexed); border-color: rgba(157, 188, 176, .45); }
.pill--estimated { color: var(--st-estimated); border-color: rgba(232, 201, 106, .45); }
.pill--partial { color: var(--st-partial); border-color: rgba(229, 154, 108, .5); }
.pill--project_reported { color: var(--st-reported); border-color: rgba(232, 201, 106, .45); }
.pill--unavailable { color: var(--st-unavailable); border-color: rgba(163, 157, 138, .45); }
.pill--stale { color: var(--st-stale); border-color: rgba(255, 138, 107, .5); }
.pill--historical { color: var(--st-historical); border-color: rgba(157, 188, 176, .45); }
button.pill { cursor: pointer; min-height: 24px; background: transparent; }
button.pill:hover { background: rgba(255, 138, 107, .1); }
.tag {
  display: inline-block; padding: .1rem .4rem; border: 1px solid var(--rule-2); border-radius: var(--r-1);
  font-size: .64rem; color: var(--cream-2); letter-spacing: .08em; vertical-align: .1em;
}

/* Disclosures: a hairline row with a plus that turns. One style everywhere. */
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary {
  display: flex; align-items: center; gap: .6rem; min-height: 44px;
  color: var(--cream-2); font: 500 .9rem/1.35 var(--sans);
}
details > summary:hover { color: var(--cream); }
details > summary::before {
  content: ""; flex: none; width: 11px; height: 11px;
  background: linear-gradient(var(--glow), var(--glow)) center / 11px 1.5px no-repeat, linear-gradient(var(--glow), var(--glow)) center / 1.5px 11px no-repeat;
  transition: transform var(--dur-2) var(--ease);
}
details[open] > summary::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { details > summary::before { transition: none; } }
.drawer, .story__more, .page-records { border-top: 1px solid var(--rule); }
.drawer__body, .story__more > :not(summary), .page-records > :not(summary) { padding-bottom: var(--sp-4); }
.drawer__body > :first-child { margin-top: 0; }
.drawer__body ul { padding-left: 1.1rem; margin: .3rem 0 .8rem; }
.drawer__body li { margin-bottom: .3rem; color: var(--cream-2); font-size: var(--t-small); }

.kv { display: grid; grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr); gap: .4rem 1.25rem; margin: .5rem 0 1rem; font-size: var(--t-small); }
.kv dt { color: var(--cream-3); }
.kv dd { margin: 0; color: var(--cream); overflow-wrap: anywhere; }
.kv dd.mono { font-size: .82rem; }
@media (max-width: 600px) { .kv { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); } }

.addr { display: inline-flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.addr__copy {
  min-height: 28px; padding: 0 .45rem; border: 1px solid var(--rule-2); border-radius: var(--r-1); background: transparent;
  color: var(--cream-3); font: 600 .62rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
}
.addr__copy:hover { color: var(--cream); border-color: var(--rule-3); }
.addr__exact { display: block; width: 100%; margin-top: .4rem; font: .8rem var(--mono); }
.record-exact { display: inline-block; }
.record-exact > summary { display: inline; min-height: 0; color: inherit; font: inherit; text-decoration: underline dotted var(--cream-4); text-underline-offset: .25em; }
.record-exact > summary::before { display: none; }
.record-exact__value { display: block; margin-top: .3rem; font-size: .78rem; color: var(--cream-2); word-break: break-all; }

/* ---------- tables: printed rules, tabular numerals ---------- */

.tablewrap { width: 100%; overflow-x: auto; margin: .5rem 0 1rem; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
caption { caption-side: top; text-align: left; padding: 0 0 .6rem; color: var(--cream-3); font: italic 400 .95rem/1.4 var(--serif); }
thead th {
  text-align: left; font-size: .66rem; padding: .7rem .75rem .55rem; border-top: 1.5px solid var(--cream-2); border-bottom: 1px solid var(--rule-2);
  white-space: nowrap; vertical-align: bottom;
}
tbody td { padding: .6rem .75rem; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--cream); }
tbody tr:last-child td { border-bottom: 1.5px solid var(--cream-2); }
tbody tr:hover td { background: rgba(239, 231, 210, .025); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num.mono { font-family: var(--sans); font-size: inherit; }
td .mono, td a.mono { font-size: .8rem; }
.table__caption { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: .8rem 0 .2rem; color: var(--cream-3); font-size: var(--t-meta); }
.table__notes { color: var(--cream-3); }
.table--focused .table__extra { display: none; }
.table__pages { display: flex; gap: 1rem; margin: .4rem 0 1rem; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; margin: .8rem 0; }
.filters label { display: flex; flex-direction: column; gap: .35rem; }
.filters__count { margin: 0; color: var(--cream-3); font-size: var(--t-meta); align-self: center; }
.record-field-label { display: none; }
@media (max-width: 650px) {
  .records-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .records-table, .records-table tbody, .records-table tr, .records-table td { display: block; width: 100%; }
  .records-table tr { padding: .6rem 0; border-bottom: 1px solid var(--rule-2); }
  .records-table tbody tr:last-child td { border-bottom: 0; }
  .records-table tbody tr:last-child { border-bottom: 1.5px solid var(--cream-2); }
  .records-table td { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); gap: .5rem; padding: .25rem 0; border: 0; text-align: left !important; white-space: normal; }
  .records-table td.num { white-space: normal; }
  .record-field-label { display: block; color: var(--cream-3); font: 600 .64rem/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding-top: .15rem; }
  .records-table tbody tr:hover td { background: transparent; }
}

/* ---------- figures: specimens, tiles, ledgers ---------- */

/* A specimen figure: label, value in Fraunces with its unit, a note, provenance on request. */
.stat { position: relative; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.stat__label { color: var(--cream-3); }
.stat__value { margin: 0; font: 360 var(--t-fig-l)/1.02 var(--serif); letter-spacing: -.01em; color: var(--cream); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.stat__value--muted { color: var(--cream-4); font-style: italic; }
.stat__unit { font: 600 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--cream-3); margin-left: .15rem; white-space: nowrap; }
.stat__note { color: var(--cream-3); font-size: var(--t-meta); line-height: 1.45; }
.stat__chip { align-self: flex-start; display: inline-flex; padding: .1rem .4rem; border: 1px solid rgba(232, 201, 106, .45); border-radius: var(--r-1); color: var(--spore); font: 600 .62rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.stat__chip--partial { color: var(--ember); border-color: rgba(229, 154, 108, .5); }
.stat__chip--indexed { color: var(--lichen); border-color: rgba(157, 188, 176, .45); }
.stat__chip--gap { color: var(--cream-3); border-color: var(--rule-2); }
.stat__source { font-size: var(--t-meta); }
.reward-usd-estimate { font: 400 .95rem/1 var(--sans); color: var(--cream-3); letter-spacing: 0; margin-left: .35rem; white-space: nowrap; }

/* Key figures as a ledger row: hairline columns, no boxes. */
.headline { display: grid; gap: 0; margin: var(--sp-5) 0; }
.headline--keys { display: flex; flex-wrap: wrap; border-top: 1px solid var(--rule-2); }
.headline--keys > .stat, .headline--keys > .reward-rate-card { flex: 1 1 14rem; padding: var(--sp-4) var(--sp-5) var(--sp-4) 0; border-bottom: 1px solid var(--rule); }
.headline--keys > .stat + .stat { padding-left: var(--sp-5); border-left: 1px solid var(--rule); }
.headline--rows { display: grid; grid-template-columns: 1fr; }
.headline--rows > .stat + .stat { padding-left: 0; border-left: 0; }
.metric-group__time { flex-basis: 100%; grid-column: 1 / -1; margin: .6rem 0 0; color: var(--cream-3); font-size: var(--t-meta); }
.page-metric__time { margin: .1rem 0 0; color: var(--cream-3); font-size: var(--t-meta); }
.page-metric__proof { margin-top: .35rem; }
.page-metric__proof > summary { min-height: 32px; font-size: var(--t-meta); color: var(--cream-3); }
.page-metric__proof[open] { padding-bottom: .5rem; }
.page-metric__proof p { font-size: var(--t-small); color: var(--cream-2); }
.page-metric__exact { font-family: var(--mono); font-size: .82rem !important; color: var(--cream) !important; overflow-wrap: anywhere; }
.page-metric > .pill, .page-metric > .freshness-trigger { align-self: flex-start; }
@media (max-width: 720px) {
  .headline--keys > .stat + .stat { padding-left: 0; border-left: 0; }
  .headline--keys > .stat, .headline--keys > .reward-rate-card { padding-right: 0; }
}

.measurement-sources { margin: .3rem 0 .4rem; }
.measurement-sources__links { list-style: none; margin: 0 0 .2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1rem; font-size: var(--t-meta); }
.measurement-sources__links a { display: inline-flex; align-items: center; min-height: 32px; }
.measurement-sources__providers > summary { min-height: 32px; font-size: var(--t-meta); }

/* ============================================================
   NETWORK: a compact head, then the map across the page.
   Details open in a column to the right only when asked for.
   ============================================================ */

.living-atlas.atlas { position: relative; display: block; margin: 0; }
.network-head {
  display: grid; grid-template-columns: minmax(15rem, 1fr) minmax(0, 3.2fr); gap: var(--sp-5); align-items: stretch;
  padding: var(--sp-4) 0 var(--sp-3);
}
.network-head__intro { display: flex; flex-direction: column; justify-content: center; gap: .35rem; min-width: 0; }
.network-head__title { margin: 0; font: 380 clamp(1.7rem, 1.2rem + 1vw, 2.2rem)/1.05 var(--serif); letter-spacing: -.012em; }
.hero__accent { font-style: italic; font-weight: 340; color: var(--glow); letter-spacing: -.01em; }
.network-head__lede { margin: 0; color: var(--cream-2); font-size: var(--t-small); line-height: 1.5; max-width: 46ch; }

/* Four figures in one row, each with its scope beside its value. */
.network-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--rule); min-width: 0; }
.network-figures > .living-outcomes { display: contents; }
.network-figures .prong, .network-trading {
  position: relative; display: grid; min-width: 0; margin: 0; padding: .1rem var(--sp-4) .2rem; border: 0; border-right: 1px solid var(--rule); background: transparent;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "value chart" "label label" "note note" "def def";
  align-content: start; row-gap: .1rem; cursor: pointer;
}
.network-figures .prong:last-child, .network-trading { border-right: 0; }
.network-figures .prong__name, .network-trading .prong__name { grid-area: name; font: italic 400 1rem/1.25 var(--serif); color: var(--cream); text-decoration: none; justify-self: start; }
.network-figures .prong__link:hover { color: var(--glow-2); }
.network-figures .outcome-index { display: none; }
.network-figures .stat__label, .network-trading .stat__label { grid-area: label; color: var(--cream-3); font-size: .64rem; }
.network-figures .prong__value { grid-area: value; margin: .15rem 0 0; font: 340 clamp(1.45rem, 1rem + 1vw, 1.95rem)/1.05 var(--serif); letter-spacing: -.012em; }
.network-figures .prong__value .stat__unit { font-size: .6rem; margin-left: .3rem; vertical-align: .25em; }
.network-figures .prong__approx { font: 400 .82rem/1 var(--sans); color: var(--cream-3); margin-left: .35rem; letter-spacing: 0; }
.network-figures .prong__chart { grid-area: chart; align-self: center; width: 4.6rem; height: 1.7rem; }
.network-figures .prong__chart svg { width: 100%; height: 100%; overflow: visible; }
.network-figures .outcome-note { grid-area: note; display: flex; flex-wrap: wrap; align-items: center; gap: 0 .5rem; margin-top: .2rem; color: var(--cream-3); font-size: .72rem; line-height: 1.35; }
.network-figures .outcome-definition { grid-area: def; color: var(--cream-4); font-size: .7rem; line-height: 1.35; margin: .1rem 0 0; }
.network-figures .outcome-basis, .network-figures .prong__sub { display: none; }
.network-figures .prong[data-outcome="2"] .spark__line { stroke: var(--ember); }
.network-figures .prong[data-outcome="2"] .spark__area { fill: rgba(229, 154, 108, .08); }
.network-figures .prong .chart-hover { width: 15rem; }
.network-figures .pill { font-size: .58rem; min-height: 0; padding: .05rem .35rem; }

/* Trading totals: the fourth figure. */
.network-trading { cursor: default; grid-template-areas: "name name" "value value" "label label" "note note" "def def"; }
.network-trading .living-welcome__counts { grid-area: value; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .9rem; margin-top: .15rem; }
.network-trading .network-headline { display: flex; align-items: baseline; gap: .3rem; min-width: 0; }
.network-trading .network-headline strong { font: 340 clamp(1.45rem, 1rem + 1vw, 1.95rem)/1.05 var(--serif); letter-spacing: -.012em; color: var(--cream); white-space: nowrap; }
.network-trading .network-headline span { color: var(--cream-3); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.network-trading .network-headline[data-network-metric="swaps"] strong, .network-trading .network-headline[data-network-metric="tokens"] strong { font-size: 1rem; font-family: var(--sans); font-weight: 600; }
.network-trading .network-headline[data-network-metric="tokens"] { display: none; }
.network-trading .network-total-scope { grid-area: note; margin: .2rem 0 0; color: var(--cream-3); font-size: .72rem; line-height: 1.35; }
.network-trading .network-total-basis { grid-area: def; margin: 0; }
.network-trading .network-total-basis > summary { min-height: 28px; font-size: .72rem; color: var(--cream-3); }
.network-trading .network-total-basis[open] { position: absolute; z-index: 20; top: 100%; right: 0; width: min(26rem, 90vw); padding: .6rem .9rem; background: var(--night-3); border: 1px solid var(--rule-2); border-radius: var(--r-3); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.network-trading .network-total-basis p { font-size: var(--t-small); color: var(--cream-2); }

/* The plate: one slim toolbar, then the frame. */
.living-plate { position: relative; }
.living-toolbar { display: flex; align-items: center; gap: .6rem; padding: 0 0 var(--sp-2); position: relative; z-index: 6; }
.living-count { margin: 0 auto 0 0; color: var(--cream-3); font: italic 400 .98rem/1.25 var(--serif); }
.living-count strong { color: var(--cream); font-weight: 400; }
.living-search { position: relative; flex: 0 1 18rem; min-width: 10rem; }
.living-search input { width: 100%; padding-left: 2.2rem; background: var(--night-2); }
.living-search__icon {
  position: absolute; left: .8rem; top: 50%; width: 12px; height: 12px; margin-top: -8px; border: 1.5px solid var(--cream-3); border-radius: 50%;
  font-size: 0; pointer-events: none;
}
.living-search__icon::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: var(--cream-3); right: -5px; bottom: -3px; transform: rotate(45deg); }
.living-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: 22rem; overflow: auto;
  padding: .35rem; background: var(--night-3); border: 1px solid var(--rule-2); border-radius: var(--r-3); box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}
.living-search-results p { margin: .5rem; color: var(--cream-3); font-size: var(--t-small); }
.living-search-result { width: 100%; justify-content: flex-start; border-color: transparent; font-weight: 400; }
.living-search-result:hover, .living-search-result:focus-visible { background: var(--night-4); border-color: transparent; }

/* The frame: the map alone, or the map plus a details column. */
.living-frame {
  --map-h: clamp(500px, calc(100svh - var(--masthead-live, 61px) - 13.5rem), 1000px);
  display: grid; grid-template-columns: minmax(0, 1fr) 0; transition: grid-template-columns 320ms cubic-bezier(.2, .8, .2, 1);
  border: 1px solid var(--rule); border-radius: var(--r-1); overflow: hidden;
}
.living-atlas--open .living-frame { grid-template-columns: minmax(0, 1fr) var(--panel-w, 26rem); }
.living-map.atlas__map { position: relative; margin: 0; padding: 0; min-width: 0; }
.living-scene.sphere {
  position: relative; width: 100%; height: var(--map-h); margin: 0; overflow: hidden; border: 0; border-radius: 0;
  background:
    radial-gradient(60% 55% at 50% 44%, rgba(199, 229, 65, .07), transparent 70%),
    linear-gradient(180deg, var(--night-2), var(--night-1) 78%, #0e0c08);
  touch-action: pan-y;
}
.living-scene--zoomed { touch-action: none; cursor: grab; }
.living-scene--zoomed:active { cursor: grabbing; }
.living-scene.sphere::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--grain); opacity: .05; mix-blend-mode: screen; }
.living-stage.atlas__stage { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.living-zoom { position: absolute; inset: 0; transform-origin: 0 0; --k: 1; }
.living-svg.atlas__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; outline-offset: -3px; }
.living-glow, .living-flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.living-glow { animation: living-breathe 7s var(--ease-io) infinite; will-change: opacity; }
@keyframes living-breathe { 0%, 100% { opacity: .45; } 50% { opacity: .85; } }
.atlas__stage--paused .living-glow { animation-play-state: paused; }
.living-scene__hint { display: none; }
.living-scene__controls { position: absolute; top: .55rem; right: .55rem; z-index: 3; display: flex; gap: .35rem; }
.living-zoom-controls { display: flex; }
.living-zoom-controls .living-button { border-radius: 0; margin-left: -1px; min-width: 36px; }
.living-zoom-controls .living-button:first-child { border-radius: var(--r-2) 0 0 var(--r-2); margin-left: 0; }
.living-zoom-controls .living-button:last-child { border-radius: 0 var(--r-2) var(--r-2) 0; }
.living-scene__controls .living-button {
  min-height: 36px; padding: 0 .7rem; font-size: .78rem; color: var(--cream-2);
  background: rgba(11, 15, 10, .82); border-color: var(--rule);
}
.living-scene__controls .living-button:hover { border-color: var(--rule-3); color: var(--cream); }
.living-scene__controls .living-button:disabled { opacity: .55; cursor: default; }
.living-fan-pages { position: absolute; right: .6rem; bottom: 3.8rem; z-index: 3; display: flex; align-items: center; gap: .4rem; font-size: var(--t-meta); color: var(--cream-2); }
.living-fan-pages .living-button { min-height: 36px; min-width: 40px; padding: 0 .6rem; background: rgba(11, 15, 10, .85); }
.living-fan-pages--down { bottom: auto; top: 3.35rem; right: auto; left: .55rem; }
.living-fan-pages--up, .living-fan-pages--left { right: auto; left: .6rem; }
.living-back.living-button {
  position: absolute; top: .55rem; left: .55rem; z-index: 3; min-height: 36px; padding: 0 .75rem; font-size: .78rem;
  color: var(--cream); background: rgba(11, 15, 10, .82); border-color: var(--rule-2);
}
.living-back.living-button:hover { border-color: var(--glow-line); }
.living-nearby {
  position: absolute; left: .6rem; right: .6rem; bottom: .6rem; z-index: 5; display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem;
  background: var(--night-3); border: 1px solid var(--rule-2); border-radius: var(--r-3);
}
.living-nearby .eyebrow { flex-basis: 100%; margin: 0 0 .2rem; }

/* The details column: inside the frame, as tall as the map, scrolling on its own. */
.living-inspector.atlas__drawer {
  position: relative; margin: 0; min-width: 0; height: var(--map-h); overflow: auto; overscroll-behavior: contain;
  padding: 0 var(--sp-4) var(--sp-5); background: var(--night-2); border: 0; border-left: 1px solid var(--rule-2); outline: none;
  animation: panel-in 320ms cubic-bezier(.2, .8, .2, 1);
}
@keyframes panel-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.living-inspector .inspector-top { position: sticky; top: 0; z-index: 3; background: var(--night-2); margin: 0 calc(-1 * var(--sp-4)); padding: .35rem var(--sp-3) .35rem var(--sp-4); border-top: 0; border-bottom: 1px solid var(--rule); }
.inspector-top--overview .drawer__crumb { font: 600 .68rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); }
.living-underside { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; padding: var(--sp-2) 0 0; }
.living-underside .living-legend { flex: 1 1 32rem; margin: 0; }
.living-underside .living-asof { margin: 0; }
.living-underside .pendle-branch { flex: 1 1 100%; margin-top: var(--sp-2); }

/* Below the map: how to read it. */
.network-notes { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--rule-2); }
.network-notes > h2 { font-size: 1.5rem; margin: 0 0 var(--sp-3); }
.network-notes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.network-notes h3 { font: 400 1.1rem/1.3 var(--serif); margin: 0 0 .4rem; }
.network-notes p { color: var(--cream-2); font-size: var(--t-small); margin: 0 0 .5rem; max-width: 62ch; }
.network-notes .home-figure-details { margin-top: var(--sp-3); }
.home-figure-details > summary { color: var(--cream-3); font-size: var(--t-small); }
.home-figure-details p, .home-figure-sources p { font-size: var(--t-small); color: var(--cream-2); }

/* SVG plate. Cream threads, lime where SHROOM is held, ember toward the burn. */
.living-root { stroke: var(--cream); stroke-opacity: .17; stroke-linecap: round; }
.living-root--empty { stroke: var(--moss); stroke-opacity: .3; stroke-dasharray: 1.5 5; }
.living-root--dim { stroke-opacity: .06; }
.living-root--selected { stroke: var(--glow-2); stroke-opacity: .95; }
.living-root--trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: root-trace 640ms var(--ease) 60ms forwards; }
@keyframes root-trace { to { stroke-dashoffset: 0; } }
.living-root-glow { stroke: var(--glow); stroke-linecap: round; }
.living-grain { stroke: var(--ember-2); stroke-linecap: round; }
.living-dot { fill: var(--glow); stroke: rgba(11, 15, 10, .9); stroke-width: 1.2; }
.living-dot--empty { fill: var(--night-1); stroke: var(--moss); stroke-width: 1.2; }
.living-dot--unknown { fill: var(--night-2); stroke: var(--cream-3); stroke-dasharray: 2 2; }
.living-node { cursor: pointer; outline: none; }
.living-node .living-dot, .living-node .living-node-halo, .living-label-leader { pointer-events: none; }
.living-node--dim { opacity: .16; }
.living-node-halo { fill: var(--glow); opacity: .1; }
.living-node:hover .living-dot, .living-node--focus .living-dot { stroke: var(--cream); stroke-width: 2.4; fill: var(--glow-2); }
.living-node:focus-visible .living-hit { stroke: var(--glow-2); stroke-width: 1.5; }
.living-label {
  font: 600 12px/1 var(--sans); letter-spacing: .05em; fill: var(--cream); pointer-events: none;
  paint-order: stroke; stroke: var(--night-1); stroke-width: 3.5px; stroke-linejoin: round;
}
.living-label--match { fill: var(--glow-2); }
.living-label-leader { stroke: var(--cream-3); stroke-opacity: .35; stroke-width: 1; }
.living-selected-dot { fill: var(--glow-2); stroke: var(--night-1); stroke-width: 2; }
.living-selected-label { font: italic 400 20px/1 var(--serif); fill: var(--cream); paint-order: stroke; stroke: var(--night-1); stroke-width: 5px; }
.living-branch { stroke: var(--glow); stroke-width: 1.4; stroke-opacity: .55; }
.living-branch--empty { stroke: var(--moss); stroke-dasharray: 2 5; stroke-opacity: .5; }
.living-branch--selected, .living-branch.is-linked { stroke: var(--glow-2); stroke-width: 2.4; stroke-opacity: 1; }
.living-branch--grow { stroke-dasharray: 1; stroke-dashoffset: 1; animation: root-trace 520ms var(--ease) forwards; }
.living-pool { outline: none; cursor: pointer; }
.living-pool-hit { fill: transparent; stroke: transparent; }
.living-pool:hover .living-pool-hit, .living-pool--selected .living-pool-hit { fill: rgba(199, 229, 65, .08); stroke: rgba(199, 229, 65, .3); }
.living-pool:focus-visible .living-pool-hit { stroke: var(--glow-2); stroke-width: 1.5; fill: rgba(199, 229, 65, .12); }
.living-pool-label { fill: var(--cream); font: 500 13px/1 var(--sans); pointer-events: none; font-variant-numeric: tabular-nums; }
.living-pool--selected .living-pool-label { fill: var(--glow-2); }
/* The hub: a glowing cap seen from underneath. */
.living-hub { cursor: pointer; outline: none; }
.living-hub-halo { pointer-events: none; }
.living-hub-ring { fill: none; stroke: var(--glow-2); stroke-opacity: .32; stroke-width: 1; }
.living-hub-gills { fill: none; stroke: #1a2410; stroke-opacity: .5; stroke-width: .8; }
.living-hub-stem { fill: #f7f2de; stroke: #1a2410; stroke-opacity: .55; stroke-width: 1; }
.living-hub-rim { fill: none; stroke: #e9f0c4; stroke-opacity: .9; stroke-width: 1.3; }
.living-hub-label {
  fill: var(--cream); font: 560 14px/1 var(--serif); letter-spacing: .18em;
  paint-order: stroke; stroke: var(--night-1); stroke-width: 5px; stroke-linejoin: round;
}
.living-hub:hover .living-hub-rim { stroke-width: 2.2; }
.living-hub:hover .living-hub-ring, .living-hub:focus-visible .living-hub-ring { stroke-opacity: 1; stroke-width: 2; }
.living-orbit-ring { fill: none; stroke: var(--glow); stroke-opacity: .22; stroke-width: 1; stroke-dasharray: 1.5 7; }
.living-orbit-spore { fill: var(--spore); opacity: .7; }
.living-burn { cursor: pointer; outline: none; }
.living-burn-filament { stroke: var(--ember); stroke-width: 1.3; stroke-opacity: .22; }
.living-burn-root { stroke: var(--ember-2); stroke-width: 1.4; stroke-opacity: .7; stroke-dasharray: 1.5 5; stroke-linecap: round; }
.living-burn-glow { stroke: var(--ember); stroke-width: 6; stroke-opacity: .4; }
.living-burn-trail { stroke: #ffdcb4; stroke-width: 2.4; stroke-opacity: .85; stroke-dasharray: 1.2 32; stroke-linecap: round; }
.living-burn-warmth { fill: var(--ember); fill-opacity: .45; }
.living-burn-tip { fill: var(--ember-2); }
.living-stage--burn-selected .living-burn-root { stroke: #ffd2a8; stroke-width: 2; stroke-opacity: .95; }
.living-stage--burn-selected .living-burn-glow { stroke-width: 9; stroke-opacity: .6; }
.living-stage--focused .living-burn-filament, .living-stage--focused .living-burn-root,
.living-stage--focused .living-burn-glow, .living-stage--focused .living-burn-trail { opacity: .45; }
.living-ground-line { stroke: var(--ember); stroke-opacity: .35; stroke-width: 1; }
.living-burn-label { fill: var(--ember-2); font: italic 400 13px/1 var(--serif); letter-spacing: .01em; }
.living-burn:hover .living-burn-label, .living-burn:focus-visible .living-burn-label { fill: #ffd8bd; }
.living-burn:focus-visible .living-ground-line { stroke: #ffd8bd; stroke-opacity: 1; stroke-width: 2.5; }
.living-mushroom { fill: none; stroke: var(--cream); stroke-opacity: .3; stroke-width: .9; stroke-linejoin: round; stroke-linecap: round; }
.living-mushroom-cap { fill: rgba(199, 229, 65, .16); stroke: var(--glow); stroke-opacity: .55; stroke-width: .9; }
.living-ember { fill: var(--ember-2); opacity: .35; }
.living-lines-leaving { animation: lines-leave 320ms ease-out forwards; pointer-events: none; }
.living-glow g { transition: opacity 260ms ease-out; }
.living-glow g.living-late { opacity: 0; transition: none; }
@keyframes lines-leave { to { opacity: 0; } }
.living-stage[data-fan="down"] .living-burn-filament, .living-stage[data-fan="down"] .living-burn-root,
.living-stage[data-fan="down"] .living-burn-glow, .living-stage[data-fan="down"] .living-burn-trail { opacity: .14; }
@media (prefers-reduced-motion: reduce) {
  .living-glow { animation: none; opacity: .65; }
  .living-root--trace, .living-branch--grow { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* Under the plate: other destinations, the key, the as-of line. */
.pendle-branch {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; margin-top: .6rem; padding: .55rem .8rem;
  min-height: 48px; border: 1px solid var(--rule); border-radius: var(--r-1); color: var(--cream); text-decoration: none; background: var(--night-2);
  transition: border-color var(--dur-1) var(--ease);
}
.pendle-branch:hover { border-color: rgba(157, 188, 176, .55); color: var(--cream); }
.pendle-branch__link { width: 64px; height: 18px; fill: none; stroke: var(--lichen); stroke-width: 1.4; }
.pendle-branch strong { font: italic 400 1.02rem/1.2 var(--serif); margin-right: .6rem; }
.pendle-branch__scope { color: var(--cream-3); font-size: var(--t-meta); }
.pendle-branch__value { color: var(--lichen); font-size: var(--t-small); font-weight: 500; white-space: nowrap; }
.living-legend { margin-top: .35rem; }
.living-legend > summary { flex-wrap: wrap; gap: .3rem 1rem; font-size: var(--t-meta); color: var(--cream-3); min-height: 44px; }
.living-legend > summary::before { display: none; }
.legend__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); margin-right: -.55rem; }
.legend__dot--empty { background: transparent; border: 1.2px solid var(--moss); }
.living-legend__more { margin-left: auto; color: var(--glow); }
.living-legend__body { padding: .2rem 0 .8rem; }
.living-legend__body p { font-size: var(--t-small); color: var(--cream-2); max-width: 80ch; }
.living-asof { margin: 0; color: var(--cream-4); font-size: .76rem; letter-spacing: .02em; }

/* The inspector: the left page's entry for whatever is selected. */
.living-inspector.atlas__drawer { position: relative; margin: 0; padding: 0 var(--sp-6) 0 0; background: transparent; border: 0; outline: none; }
.inspector-top { display: flex; align-items: center; gap: .45rem; min-height: 48px; border-top: 1px solid var(--rule-2); padding-top: .3rem; }
.inspector-top .drawer__crumb { flex: 1; min-width: 0; margin: 0; }
.inspector-close, .inspector-expand {
  flex: none; min-width: 44px; height: 44px; border: 1px solid var(--rule-2); border-radius: var(--r-2); background: transparent;
  color: var(--cream-2); font: 400 1.35rem/1 var(--sans);
}
.inspector-close:hover, .inspector-expand:hover { background: var(--night-3); color: var(--cream); border-color: var(--rule-3); }
.inspector-expand { display: none; }
.inspector-peek { display: none; }
.inspector-body { padding: var(--sp-3) 0 var(--sp-5); }
.inspector-pending { padding: var(--sp-4) 0; }
.view-share { position: relative; }
.view-share__button { min-height: 44px; padding: 0 .75rem; font-size: .8rem; color: var(--cream-2); }
.view-share__fallback {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(20rem, 80vw); padding: .8rem;
  background: var(--night-3); border: 1px solid var(--rule-2); border-radius: var(--r-3); box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.view-share__fallback p { font-size: var(--t-small); margin-bottom: .4rem; }
.view-share__fallback input { width: 100%; margin-bottom: .5rem; font-size: .85rem; }
.view-share__fallback button { min-height: 44px; padding: 0 .8rem; border: 1px solid var(--rule-2); background: transparent; border-radius: var(--r-2); }

.drawer__crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .35rem; margin: 0 0 .6rem; color: var(--cream-3); font-size: var(--t-meta); }
.drawer__crumb .linkish { min-height: 44px; font-size: var(--t-meta); }
.drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.drawer__title { font: 380 clamp(1.9rem, 1.5rem + 1.2vw, 2.55rem)/1.05 var(--serif); letter-spacing: -.012em; margin: 0 0 .35rem; }
.dossier__slash { color: var(--cream-4); font-style: italic; margin: 0 .05em; }
.drawer__subtitle { margin: 0; color: var(--cream-3); font-size: var(--t-small); }
.drawer__why { color: var(--cream-2); font-size: .95rem; font-style: italic; font-family: var(--serif); }
.inspector-population { margin: var(--sp-4) 0 .2rem; font: 600 var(--t-label)/1.3 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--moss); }
.dossier__hero { position: relative; margin: 0 0 var(--sp-4); }
.dossier__head { margin-bottom: var(--sp-2); }
.dossier__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: .4rem; border-top: 1px solid var(--rule); }
.dossier__metric { min-width: 0; padding: .8rem 1rem .8rem 0; border-bottom: 1px solid var(--rule); }
.dossier__metric.inspector-primary { grid-column: 1 / -1; padding-right: 0; }
.dossier__metric.inspector-primary + .dossier__metric + .dossier__metric { padding-left: 1rem; border-left: 1px solid var(--rule); }
.dossier__label { display: block; color: var(--cream-3); font-size: var(--t-meta); }
.dossier__value { margin: .2rem 0 .1rem; font: 360 1.85rem/1.05 var(--serif); letter-spacing: -.01em; color: var(--cream); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: normal; }
.inspector-primary .dossier__value { font-size: var(--t-fig-xl); }
.dossier__unit { font: 600 .66rem/1 var(--sans); letter-spacing: .1em; margin-left: .4rem; color: var(--cream-3); vertical-align: .2em; }
.dossier__sub { display: block; color: var(--cream-3); font-size: var(--t-meta); line-height: 1.45; }
.dossier__chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 0; margin: .2rem 0 .4rem; }
.chip { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .1rem; padding: .7rem .8rem .7rem 0; min-width: 0; border-bottom: 1px solid var(--rule); }
.chip + .chip { padding-left: .8rem; border-left: 1px solid var(--rule); }
.chip__value { font: 500 1.05rem/1.2 var(--sans); color: var(--cream); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.chip__label { color: var(--cream-3); font-size: .74rem; line-height: 1.35; }
.chip__bar { display: block; height: 2px; background: var(--rule); margin-top: .35rem; order: -1; }
.chip__fill { display: block; height: 100%; background: var(--glow); }
.inspector-story-link { margin-top: var(--sp-2); }
.dossier__shares { margin: var(--sp-3) 0; }
.dossier__bar { display: flex; height: 6px; gap: 2px; margin: .4rem 0 .5rem; }
.dossier__seg { display: block; min-width: 2px; background: var(--glow); }
.dossier__seg--1 { background: var(--moss); } .dossier__seg--2 { background: var(--lichen); } .dossier__seg--3 { background: var(--cream-4); }
.dossier__legend { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-size: var(--t-meta); color: var(--cream-2); }
.dossier__key { display: inline-flex; align-items: center; gap: .35rem; }
.dossier__swatch { width: 8px; height: 8px; display: inline-block; }
.inspector-body h3 { font: 500 1.1rem/1.3 var(--serif); margin: var(--sp-5) 0 .4rem; }
.drawer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.drawer__list > li { border-bottom: 1px solid var(--rule); }
.drawer__row {
  display: grid; grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr) auto; align-items: center; gap: .2rem .9rem; width: 100%;
  min-height: 56px; padding: .6rem .4rem .6rem 0; border: 0; background: transparent; color: var(--cream); text-align: left;
  transition: background var(--dur-1) var(--ease);
}
button.drawer__row:hover, [data-pool-row].is-linked .drawer__row { background: var(--glow-wash); }
.drawer__row--selected { box-shadow: inset 2px 0 0 var(--glow); padding-left: .6rem; }
.drawer__row--static { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
.drawer__row-main { font: 500 .98rem/1.25 var(--sans); }
.drawer__row-detail { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.drawer__row-sub, .drawer__row-state { color: var(--cream-3); font-size: .78rem; line-height: 1.4; }
.drawer__row-state { color: var(--cream-2); }
.drawer__row-bar { grid-column: 1 / -1; display: block; height: 2px; background: var(--rule); }
.drawer__row-fill { display: block; height: 100%; background: var(--glow-line); }
.drawer__marks { display: flex; align-items: center; }
.drawer__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); }
.drawer__dot--empty { background: transparent; border: 1.2px solid var(--moss); }
.inspector-rest > details > summary { font-size: var(--t-small); }
.inspector-rest .drawer__list { border-top: 0; }
.drawer__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); margin-bottom: .6rem; }
.drawer__stat { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .6rem .6rem 0; border-bottom: 1px solid var(--rule); }
.drawer__stat + .drawer__stat { padding-left: .7rem; border-left: 1px solid var(--rule); }
.drawer__stat-value { font: 500 1rem/1.2 var(--sans); }
.drawer__stat-label { color: var(--cream-3); font-size: .74rem; }
.drawer__activity { margin: var(--sp-3) 0; }
.drawer__activity p { font-size: var(--t-small); color: var(--cream-2); }
.drawer__row-link { margin-top: .15rem; }
.inspector-more { margin-top: var(--sp-3); }
.inspector-more__body { padding-bottom: var(--sp-3); }
.inspector-basis h3 { margin-top: var(--sp-3); }
.inspector-basis p { font-size: var(--t-meta); color: var(--cream-2); overflow-wrap: anywhere; }
.inspector-asof { margin: var(--sp-5) 0 0; color: var(--cream-4); font-size: .76rem; }
.burn__figure { margin: var(--sp-3) 0 .2rem; font: 360 var(--t-fig-xl)/1 var(--serif); color: var(--ember-2); }
.burn__figure .stat__unit { margin-left: .4rem; }
.drawer__title--burn { color: var(--ember-2); }
.hook { width: 18px; height: 18px; vertical-align: -.25em; color: var(--cream-3); }
.hook--on { color: var(--spore); }

/* The welcome entry and the walkthrough. */
.living-welcome { padding: var(--sp-5) 0 var(--sp-3); }
.living-welcome .eyebrow { margin-bottom: .45rem; }
.living-welcome h2 { font-size: 1.75rem; margin-bottom: .3rem; }
.living-welcome__lede { color: var(--cream-2); font-size: var(--t-small); margin-bottom: var(--sp-4); }
.living-welcome__counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--rule); }
.network-headline { display: flex; flex-direction: column; gap: .2rem; padding: .7rem .8rem .75rem 0; min-width: 0; }
.network-headline + .network-headline { padding-left: .8rem; border-left: 1px solid var(--rule); }
.network-headline strong { font: 380 1.55rem/1.05 var(--serif); color: var(--cream); font-variant-numeric: lining-nums tabular-nums; }
.network-headline span { color: var(--cream-3); font-size: .74rem; line-height: 1.3; }
.network-total-scope { margin: .6rem 0 0; color: var(--cream-3); font-size: var(--t-meta); }
.network-total-basis p, .living-map-coverage p { font-size: var(--t-small); color: var(--cream-2); }
.network-total-exact { font-family: var(--mono); font-size: .78rem !important; overflow-wrap: anywhere; }
.living-token-choices { margin: var(--sp-5) 0 var(--sp-3); text-align: center; }
.living-welcome__try { text-align: center; }
.living-examples { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 .6rem; }
.living-example { min-width: 5.5rem; font-weight: 600; letter-spacing: .04em; border-color: var(--glow-line); color: var(--glow); }
.living-example:hover { border-color: var(--glow); color: var(--glow-2); background: var(--glow-wash); }
.living-choice-hint { margin: 0 auto; color: var(--cream-3); font-size: var(--t-meta); max-width: 34ch; }
.living-walkthrough { margin: var(--sp-4) 0; padding: var(--sp-4) var(--sp-4) var(--sp-3); border: 1px solid var(--glow-line); border-radius: var(--r-1); background: linear-gradient(180deg, var(--glow-wash), transparent 70%); }
.living-walkthrough__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.living-walkthrough__top .eyebrow { margin: 0; }
.living-walkthrough h3 { font: 400 1.45rem/1.15 var(--serif); margin: .5rem 0 .4rem; }
.living-walkthrough p { font-size: var(--t-small); color: var(--cream-2); }
.living-story__progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .5rem; }
.living-story__progress span { height: 2px; background: var(--rule-2); }
.living-story__progress .is-active { background: var(--glow); }
.living-story__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* What changed: dated highlights, one row each. */
.changed { margin-top: 0; border-top: 1px solid var(--rule); }
.changed > summary { flex-wrap: wrap; gap: .2rem .6rem; min-height: 56px; font: 400 1.2rem/1.3 var(--serif); color: var(--cream); }
.changed__hint { font: 400 var(--t-meta)/1.3 var(--sans); color: var(--cream-3); }
.changed__window { font-size: var(--t-meta); color: var(--cream-3); }
.changed__list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; border-top: 1px solid var(--rule); }
.changed__item { border-bottom: 1px solid var(--rule); }
.changed__link { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; grid-template-areas: "kind title when" "kind text action"; gap: .15rem 1.25rem; padding: .75rem 0; color: var(--cream); text-decoration: none; }
.changed__link:hover { background: var(--glow-wash); }
.changed__kind { grid-area: kind; font: 600 var(--t-label)/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--moss); }
.changed__item--burn .changed__kind { color: var(--ember); }
.changed__title { grid-area: title; font: 500 .98rem/1.35 var(--sans); }
.changed__text { grid-area: text; color: var(--cream-2); font-size: var(--t-small); }
.changed__when { grid-area: when; color: var(--cream-3); font-size: var(--t-meta); text-align: right; white-space: nowrap; }
.changed__action { grid-area: action; color: var(--glow); font-size: var(--t-meta); text-align: right; white-space: nowrap; }
.changed__empty { color: var(--cream-3); font-size: var(--t-small); }
@media (max-width: 640px) {
  .changed__link { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kind" "title" "text" "when" "action"; }
  .changed__when, .changed__action { text-align: left; }
}

/* The directory below the spread. */
.living-directory { margin-top: var(--sp-6); border-top: 1px solid var(--rule-2); }
.living-directory > summary { font: 400 1.35rem/1.2 var(--serif); color: var(--cream); min-height: 64px; }

/* Topology preview while evidence loads: same plate, quieter. */
.atlas__map--preview .sphere { position: relative; height: clamp(360px, 60vh, 640px); border: 1px solid var(--rule); background: var(--night-2); }
.atlas__map--preview .atlas__stage { position: absolute; inset: 0; }
.atlas__svg--preview { width: 100%; height: 100%; }
.atlas__svg--preview .atlas__spoke { stroke: var(--cream); stroke-opacity: .12; }
.atlas__svg--preview .atlas__dot { fill: var(--moss); opacity: .6; }
.atlas__svg--preview .atlas__hub { fill: var(--night-1); stroke: var(--glow); }
.atlas__svg--preview .atlas__hublabel { fill: var(--glow); font: 600 12px var(--sans); letter-spacing: .16em; }
.sphere__hint { position: absolute; left: 1rem; bottom: .8rem; margin: 0; color: var(--cream-3); font: italic 400 .95rem var(--serif); }

@media (max-width: 1280px) {
  .living-atlas.atlas { grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); }
  .living-inspector.atlas__drawer { padding-right: var(--sp-5); }
  .living-search { flex-basis: 13rem; }
}
@media (max-width: 1023px) {
  .living-atlas.atlas { display: block; }
  .living-atlas::before { display: none; }
  .living-atlas > .living-plate { position: static; padding-left: 0; }
  .living-scene.sphere { height: clamp(380px, 62vw, 620px); }
  .living-toolbar { flex-wrap: wrap; }
  .living-search { flex: 1 1 12rem; }
  .living-inspector.atlas__drawer { padding: 0; margin-top: var(--sp-5); }
  /* Selected on touch: a peek card over the plate; the full entry opens as a sheet. */
  .living-inspector.living-inspector--selected {
    position: fixed; z-index: 40; margin: 0 auto; padding: 0;
    inset: auto max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    max-width: 720px; background: var(--night-3); border: 1px solid var(--rule-3); border-radius: var(--r-3);
    box-shadow: 0 -16px 50px rgba(0, 0, 0, .6); overflow: hidden;
  }
  .living-inspector--selected.living-inspector--offscreen:not(.living-inspector--expanded) { display: none; }
  .living-inspector--selected .inspector-top { min-height: 56px; padding: .3rem .6rem .1rem 1rem; border-top: 0; }
  .living-inspector .inspector-expand { display: inline-flex; align-items: center; margin-left: auto; width: auto; padding: 0 .85rem; font: 500 .85rem var(--sans); white-space: nowrap; color: var(--glow); border-color: var(--glow-line); }
  .inspector-peek { display: block; padding: 0 1rem .9rem; }
  .inspector-peek__title { font: 400 1.6rem/1.1 var(--serif); margin: 0 0 .5rem; overflow-wrap: anywhere; }
  .inspector-peek__figures { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
  .inspector-peek__figures span { display: block; color: var(--cream-3); font-size: .72rem; }
  .inspector-peek__figures strong { display: block; margin-top: .15rem; font: 380 1.25rem/1.15 var(--serif); overflow-wrap: anywhere; }
  .inspector-peek p { font-size: var(--t-small); margin: 0; color: var(--cream-2); }
  .living-inspector--selected .inspector-body { display: none; }
  .living-inspector--selected:not(.living-inspector--expanded) .inspector-top .view-share { display: none; }
  .living-inspector--selected .inspector-top .drawer__crumb { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
  .living-inspector--expanded.living-inspector--selected {
    inset: auto env(safe-area-inset-right) 0 env(safe-area-inset-left); max-width: 760px; z-index: 50;
    height: min(86dvh, 920px); max-height: min(86dvh, 920px); overflow: auto; border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom); background: var(--night-2);
  }
  .living-inspector--expanded .inspector-top { position: sticky; top: 0; z-index: 3; background: var(--night-2); padding: .5rem 1rem; border-bottom: 1px solid var(--rule-2); }
  .living-inspector--expanded .inspector-peek { display: none; }
  .living-inspector--expanded .inspector-body { display: block; padding: var(--sp-4) 1.25rem var(--sp-6); }
  .inspector-backdrop { position: fixed; inset: 0; z-index: 49; background: rgba(4, 6, 4, .66); }
  body.inspector-is-modal { overflow: hidden; }
}
@media (max-width: 1023px) and (max-height: 500px) {
  .living-scene.sphere { height: clamp(240px, calc(100svh - 144px), 320px); }
  .living-inspector--selected:not(.living-inspector--expanded) .inspector-peek { display: none; }
  .living-inspector--expanded.living-inspector--selected { height: calc(100dvh - 8px - env(safe-area-inset-top)); max-height: calc(100dvh - 8px - env(safe-area-inset-top)); }
}
@media (max-width: 767px) {
  .living-scene.sphere { height: 440px; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); border-inline: 0; border-radius: 0; }
  .living-toolbar .living-button--quiet { display: none; }
  .living-toolbar .living-button { padding: 0 .8rem; }
  .dossier__chips { grid-template-columns: 1fr 1fr; }
  .chip:nth-child(3) { padding-left: 0; border-left: 0; }
  .drawer__stats { grid-template-columns: 1fr 1fr; }
  .pendle-branch { grid-template-columns: minmax(0, 1fr); gap: .2rem; padding: .7rem .9rem; }
  .pendle-branch__link { display: none; }
  .pendle-branch strong { display: block; }
}
@media (max-width: 380px) {
  .living-welcome__counts { grid-template-columns: 1fr; }
  .network-headline + .network-headline { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* Sparklines inside figures. */
.spark { display: block; overflow: visible; }
.spark__line { fill: none; stroke: var(--glow); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark__line--historical { stroke-opacity: .7; }
.spark__area { fill: rgba(199, 229, 65, .07); stroke: none; }
.spark__end { fill: var(--glow); stroke: var(--night-1); stroke-width: 1.5; }
.spark__base { stroke: var(--rule-2); stroke-width: 1; }
.spark__bar { fill: var(--glow); fill-opacity: .8; }
.spark__bar--rolled { fill: var(--cream-4); }
.spark__axis { fill: var(--cream-3); font: 10px var(--sans); }
.holdings-mini svg { width: 100%; height: 100%; }
.chart-isolated { fill: none; stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ============================================================
   STORY PAGES: a plate head, the key ledger, one primary chart,
   compact supporting sections, records at the foot.
   ============================================================ */

.supporting { display: block; }
.page__head, .story__head {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "eyebrow art" "title art" "lede art";
  column-gap: var(--sp-7); align-items: end; padding: var(--sp-7) 0 var(--sp-5); border-bottom: 1px solid var(--rule-2);
}
.story__head > .eyebrow { grid-area: eyebrow; margin-bottom: var(--sp-4); }
.story__head > h1, .page__head > h1 { grid-area: title; margin: 0 0 var(--sp-3); font: 380 var(--t-h1)/1.02 var(--serif); letter-spacing: -.014em; }
.story__head > .story__lede, .page__head > .page__lede { grid-area: lede; margin: 0; color: var(--cream-2); font-size: 1.03rem; line-height: 1.6; max-width: 60ch; }
.story__head > .field-art, .story__head > .network-emblem { grid-area: art; align-self: end; width: clamp(200px, 20vw, 270px); height: auto; color: var(--cream); overflow: visible; }
.page__head h1:focus, #page-title:focus { outline: none; }

/* Engraved vignettes. */
.field-art { color: var(--cream); }
.field-art .fg-cap, .field-art .fg-stem { fill: none; stroke: currentColor; stroke-width: 1.05; stroke-linejoin: round; stroke-opacity: .85; }
.field-art .fg-cap-glow { fill: var(--glow); fill-opacity: .12; stroke: none; }
.field-art .fg-fine { fill: none; stroke: currentColor; stroke-width: .5; stroke-opacity: .5; stroke-linecap: round; }
.field-art .fg-shade { stroke-opacity: .4; }
.field-art .fg-spot { fill: var(--night-1); stroke: currentColor; stroke-width: .55; stroke-opacity: .8; }
.field-art .fg-ground { fill: none; stroke: currentColor; stroke-width: .8; stroke-opacity: .5; }
.field-art .fg-root { fill: none; stroke: var(--glow); stroke-width: .7; stroke-opacity: .55; stroke-linecap: round; }
.field-art .fg-root--ember { stroke: var(--ember); }
.field-art .fg-node { fill: var(--glow); }
.field-art .fg-spore { fill: var(--glow); opacity: .75; }
.field-art .fg-ember { fill: var(--ember-2); opacity: .7; }
.field-art .fg-log { fill: none; stroke: var(--ember); stroke-width: 1; stroke-opacity: .8; }
.field-art .fg-lens { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-opacity: .85; }
.field-art .fg-lens-glass { fill: var(--glow); fill-opacity: .06; }
.field-art .fg-lens-handle { stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-opacity: .5; }
.field-art .fg-gill-view { stroke: var(--glow); stroke-opacity: .7; stroke-width: .6; }
.network-emblem { color: var(--glow-dim); }
.network-emblem.learn-hero__art, .network-emblem.supporting-roots:not(.field-art) { width: 220px; height: auto; }
.network-emblem__cap { fill: rgba(199, 229, 65, .14); }

.page-section { margin: var(--sp-7) 0 0; }
.page-section__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem var(--sp-4); margin-bottom: var(--sp-4); }
.page-section__head h2 { margin: 0; }
.page-section__head h2:focus { outline: none; }
.page-section__head p { margin: 0; color: var(--cream-3); font-size: var(--t-small); flex-basis: 100%; }
.page-scope { color: var(--cream-3); font-size: var(--t-meta); margin: .5rem 0; }
.page-scope a { font-size: inherit; }
.treasury-context-link { margin: var(--sp-4) 0; }
.treasury-context-link a, .fee-uses a, .source-group__link { display: inline-flex; align-items: center; min-height: 44px; }
.supporting .headline--keys { margin-top: 0; }
.supporting > .headline--keys:first-of-type { border-top: 0; }
.section-detail { padding: var(--sp-4) 0; color: var(--cream-3); font-size: var(--t-small); }
.section-detail__message { margin: 0 0 .5rem; font-style: italic; font-family: var(--serif); font-size: 1rem; }
.page-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-6); }
.page-support-grid > .page-section { min-width: 0; }
.fee-uses { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.4rem; margin: var(--sp-4) 0 0; padding: var(--sp-3) 0; border-block: 1px solid var(--rule); }
.fee-uses p { margin: 0 auto 0 0; color: var(--cream-2); font-size: var(--t-small); }
.fee-uses strong { color: var(--cream); font-weight: 600; }
.reward-flow__footnote { flex-direction: row !important; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem !important; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.reward-flow__footnote .stat__value { font-size: 1.2rem; }
.reward-flow__footnote .page-metric__proof { margin: 0; }
.story__more, .page-records { margin: 0; }
.page-records > summary, .story__more > summary { min-height: 52px; }
.supporting > .story__more:last-child, .supporting > .page-records:last-child { border-bottom: 1px solid var(--rule); }
.supporting > .story__more, .supporting > .page-records, .supporting > .page-records + .story__more { margin-top: var(--sp-5); }
.supporting > .page-records + .page-records, .supporting > .page-records + .story__more { margin-top: 0; }

/* ---------- charts ---------- */

.chart { position: relative; margin: 0; }
.supporting .chart, .supporting .holdings-figure, .dated-series__chart, .turnover__chart, .holdings-figure {
  padding: var(--sp-5) var(--sp-5) var(--sp-4); border: 1px solid var(--rule); border-radius: var(--r-1); background: var(--night-2);
}
.chart__title { font: 400 1.35rem/1.2 var(--serif); margin: 0 0 .2rem; }
.chart__q { color: var(--cream-3); font-size: var(--t-small); margin: 0 0 var(--sp-3); font-style: italic; font-family: var(--serif); }
.chart figcaption { color: var(--cream-3); font-size: var(--t-meta); line-height: 1.55; margin-top: var(--sp-3); }
.chart figcaption > p { margin: .4rem 0 0; }
.chart figcaption .pill { margin-right: .4rem; }
.chart-reading { color: var(--cream-2); font-size: var(--t-small); margin: .4rem 0 0; }
.chart-proof > summary { min-height: 40px; font-size: var(--t-meta); color: var(--cream-3); }
.chart-method { color: var(--cream-3); font-size: var(--t-meta); padding-bottom: var(--sp-2); }
.chart__legend { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: .6rem 0 0; font-size: var(--t-meta); color: var(--cream-2); }
.chart__legend > span { display: inline-flex; align-items: center; gap: .45rem; }
.swatch { width: 16px; height: 3px; display: inline-block; background: var(--glow); }
.swatch--out { background: var(--ember); }
.swatch--in { background: var(--glow); }

.chart-window { display: grid; gap: .35rem; margin: 0 0 var(--sp-3); }
.chart-window__bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; }
.chart-window__note { margin: 0; font-size: var(--t-meta); color: var(--cream-3); }
.chart-measures { margin: 0 0 var(--sp-4); }
.chart-dates { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0 0; color: var(--cream-3); font-size: .76rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.chart-dates time { display: flex; flex-direction: column; }
.chart-dates time:last-child { text-align: right; }
.chart-dates time span + span { color: var(--cream-4); }

.dated-series__heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .3rem 1.4rem; margin: 0 0 var(--sp-4); }
.dated-series__heading h3 { font: 400 1.4rem/1.2 var(--serif); margin: 0; }
.dated-series__latest { margin: 0; color: var(--cream-3); font-size: var(--t-meta); }
.dated-series__latest strong { font: 360 2rem/1 var(--serif); color: var(--glow); margin-right: .2rem; font-variant-numeric: lining-nums tabular-nums; }
.dated-series__line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dated-series__line--fees { stroke: var(--series-fees); }
.dated-series__line--usd { stroke: var(--series-usd); stroke-width: 1.5; stroke-dasharray: 5 4; }
.dated-series__line--partial { stroke-dasharray: 3 4; }
.dated-series__line--fees.dated-series__latest strong, .fee-history .dated-series__latest strong { color: var(--ember-2); }
.reward-series { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: -.4rem 0 .8rem; font-size: var(--t-meta); color: var(--cream-2); }
.reward-series span::before { content: ""; display: inline-block; width: 16px; height: 2px; margin-right: .45rem; vertical-align: .25em; }
.reward-series__mu::before { background: var(--series-1); }
.reward-series__usd::before { background: repeating-linear-gradient(90deg, var(--series-usd) 0 5px, transparent 5px 9px); }
.reward-axis-labels { display: flex; justify-content: space-between; margin: 0 0 .3rem; font: 600 .64rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--cream-3); }

.turnover { margin: 0; }
.turnover > .hero__turnover { margin: 0 0 var(--sp-3); color: var(--cream-2); font-size: var(--t-small); }
.hero__turnover-figure { font-weight: 600; color: var(--cream); }
.turnover__chart, .dated-series__chart { --axis-width: 3.4rem; --axis-gap: .7rem; }
.turnover__plot { display: grid; grid-template-columns: var(--axis-width) minmax(0, 1fr); column-gap: var(--axis-gap); align-items: stretch; }
.turnover__chart--two .turnover__plot, .dated-series__chart--usd .turnover__plot { grid-template-columns: var(--axis-width) minmax(0, 1fr) var(--axis-width); }
.turnover__y { display: flex; flex-direction: column; justify-content: space-between; padding: 2px 0; text-align: right; color: var(--cream-3); font-size: .74rem; font-variant-numeric: tabular-nums; }
.turnover__y2, .reward-axis-usd { text-align: left; color: var(--cream-2); }
.turnover__y2 { color: var(--ember-2); }
.turnover__svg { display: block; width: 100%; height: 240px; overflow: visible; }
.turnover__grid { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.turnover__line { fill: none; vector-effect: non-scaling-stroke; }
.turnover__series, .turnover .spark__line { stroke: var(--series-1); stroke-width: 2; }
.turnover__fees { fill: none; stroke: var(--series-fees); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.turnover__line--unobserved { fill: none; stroke: var(--glow); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: .7; }
.turnover__mark { stroke: var(--glow); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.turnover__mark--fees { stroke: var(--ember); }
.turnover__anchor { stroke: var(--cream-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.turnover .spark__area { fill: rgba(199, 229, 65, .06); }
.turnover__legend { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: .6rem 0 0; font-family: var(--sans); font-size: var(--t-meta); color: var(--cream-2); }
.turnover__legend > span { display: inline-flex; align-items: center; gap: .45rem; }
.turnover__swatch { width: 16px; height: 2px; display: inline-block; }
.turnover__swatch--moved { background: var(--series-1); }
.turnover__swatch--fees { background: var(--series-fees); }
.turnover__chart .chart-dates, .dated-series__chart .chart-dates { padding-left: calc(var(--axis-width) + var(--axis-gap)); }
.turnover__chart--two .chart-dates, .dated-series__chart--usd .chart-dates { padding-right: calc(var(--axis-width) + var(--axis-gap)); }
.fee-history .dated-series__latest strong { color: var(--ember-2); }

.holdings-figure { margin: 0; }
.holdings-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-bottom: var(--sp-3); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.holdings-legend > span { display: inline-flex; align-items: center; gap: .5rem; color: var(--cream-2); }
.holdings-swatch { width: 18px; height: 2px; background: currentColor; }
.holdings-legend .holdings-key--total { color: var(--glow); font-weight: 600; }
.holdings-legend .holdings-key--v4 .holdings-swatch { background: var(--moss); }
.holdings-legend .holdings-key--pendle .holdings-swatch { background: var(--lichen); }
.holdings-legend .holdings-key--meridian .holdings-swatch { background: var(--spore); }
.holdings-axis-title { margin-bottom: .4rem; font: 600 .64rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--cream-3); }
.holdings-grid { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .7rem; }
.holdings-y { display: flex; flex-direction: column; justify-content: space-between; padding: 8px 0; text-align: right; color: var(--cream-3); font-size: .74rem; font-variant-numeric: tabular-nums; }
.holdings-grid .holdings-plot { display: block; width: 100%; height: 240px; margin: 0; overflow: visible; }
.holdings-figure .chart-dates { padding-left: 3.9rem; }
.holdings-mini { width: 100%; height: 100%; }
.holdings-mini .holdings-plot { display: block; width: 100%; height: 100%; }
.page-liquidity-chart .hero__turnover { color: var(--cream-2); font-size: var(--t-small); margin: 0 0 var(--sp-3); }

/* The readout: a floating field note over the plot, only while reading. */
.chart-readable { cursor: crosshair; touch-action: pan-y; }
.chart-readable:focus-visible { outline: 2px solid var(--glow-2); outline-offset: 4px; }
figure:has(> .chart-hover), .epoch-chart:has(> .chart-hover), .prong:has(> .chart-hover) { position: relative; }
[data-chart-window] figure { scroll-margin-top: var(--chart-anchor, 0px); }
.chart-hover {
  position: absolute; z-index: 5; width: min(18.5rem, calc(100% - 12px)); padding: .7rem .85rem; pointer-events: none;
  background: rgba(22, 29, 20, .97); border: 1px solid var(--rule-3); border-radius: var(--r-2); box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  color: var(--cream); font-size: var(--t-meta); line-height: 1.45;
}
.chart-hover--viewport { position: fixed; }
.chart-hover__date { margin: 0 0 .35rem; color: var(--cream-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-hover__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .05rem .8rem; padding: .25rem 0; border-top: 1px solid var(--rule); }
.chart-hover__row > span { color: var(--cream-3); }
.chart-hover__value { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.chart-hover__row small { width: 100%; color: var(--cream-3); font-size: .72rem; }
.chart-hover__note { display: block; margin-top: .3rem; color: var(--cream-4); font-size: .72rem; }
.chart-shared-missing { color: var(--spore); margin: 0 0 .3rem; }
.chart-hover__marker { stroke: var(--cream-2); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.chart-hover-wrap { position: relative; }
.history-plot { position: relative; min-width: 13rem; }
.history-plot > svg { display: block; width: 100%; height: 46px; }
.history-plot .chart-hover { top: 0; }

.epoch-chart { position: relative; margin-top: var(--sp-3); }
.epoch-chart__note { margin: 0 0 .5rem; color: var(--cream-3); font-size: var(--t-meta); }
.epoch-chart .spark--epochs { width: 100%; height: 200px; display: block; }
.epoch-chart__x { display: flex; justify-content: space-between; gap: .6rem; margin-top: .4rem; color: var(--cream-3); font-size: .76rem; }
.bar-chart { display: grid; gap: .45rem; margin: .6rem 0; }
.bar-chart__row { display: grid; grid-template-columns: minmax(8rem, 15rem) minmax(0, 1fr) minmax(6rem, auto); gap: .8rem; align-items: center; font-size: var(--t-small); }
.bar-chart__label { color: var(--cream-2); }
.bar-chart__bar { width: 100%; height: 10px; }
.bar-chart__value { text-align: right; font-variant-numeric: tabular-nums; }
.gapband { fill: url(#gap-hatch); fill: var(--rule-2); }

@media (max-width: 650px) {
  .supporting .chart, .supporting .holdings-figure, .dated-series__chart, .turnover__chart, .holdings-figure { padding: var(--sp-4) .8rem .8rem; margin-inline: calc(-1 * var(--gutter) + 4px); border-inline: 0; border-radius: 0; }
  .turnover__chart, .dated-series__chart { --axis-width: 2.7rem; --axis-gap: .45rem; }
  .turnover__svg, .holdings-grid .holdings-plot { height: 190px; }
  .holdings-grid { grid-template-columns: 2.6rem minmax(0, 1fr); gap: .45rem; }
  .holdings-figure .chart-dates { padding-left: 3.05rem; }
  .epoch-chart .spark--epochs { height: 160px; }
  .dated-series__latest strong { font-size: 1.6rem; }
  .chart-window__choices button { padding: 0 .7rem; }
  .bar-chart__row { grid-template-columns: minmax(0, 1fr) auto; }
  .bar-chart__bar { grid-column: 1 / -1; order: 3; }
}

/* ---------- supporting components on the story pages ---------- */

/* Positions: a printed table built from rows, readable on a phone. */
.position-inventory__filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem); gap: .8rem 1.2rem; margin-bottom: var(--sp-4); }
.position-inventory__filters label { display: flex; flex-direction: column; gap: .35rem; font: 600 var(--t-label)/1.35 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-3); }
.position-inventory__filters input, .position-inventory__filters select { width: 100%; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.position-inventory__columns, .position-inventory__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr) 3.5rem; gap: 1rem; align-items: center; }
.position-inventory__columns { padding: .65rem 0 .5rem; border-top: 1.5px solid var(--cream-2); border-bottom: 1px solid var(--rule-2); font: 600 .66rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-3); }
.position-inventory__columns span:nth-child(2), .position-inventory__columns span:nth-child(3) { text-align: right; }
.position-inventory__list { list-style: none; margin: 0; padding: 0; border-bottom: 1.5px solid var(--cream-2); }
.position-inventory__list > li { border-bottom: 1px solid var(--rule); }
.position-inventory__list > li:last-child { border-bottom: 0; }
.position-inventory__row { min-height: 60px; padding: .55rem 0; color: var(--cream); text-decoration: none; transition: background var(--dur-1) var(--ease); }
.position-inventory__row:hover { background: var(--glow-wash); color: var(--cream); }
.position-inventory__pair { display: flex; flex-direction: column; min-width: 0; }
.position-inventory__pair strong { font-weight: 500; }
.position-inventory__pair small { color: var(--cream-3); font-size: .76rem; }
.position-inventory__balance { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.position-inventory__balance small { display: none; color: var(--cream-3); font-size: .72rem; }
.position-inventory__balance strong { font: 360 1.2rem/1.1 var(--serif); }
.position-inventory__state { font-size: var(--t-meta); color: var(--cream-2); display: inline-flex; align-items: center; gap: .45rem; }
.position-inventory__state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--glow); flex: none; }
.position-inventory__state--out_of_range::before { background: transparent; border: 1.2px solid var(--spore); }
.position-inventory__state:not(.position-inventory__state--in_range):not(.position-inventory__state--out_of_range)::before { background: transparent; border: 1.2px solid var(--cream-4); }
.position-inventory__open { color: var(--glow); font-size: var(--t-meta); text-align: right; }
.position-inventory__empty { padding: var(--sp-4) 0; color: var(--cream-3); font-style: italic; font-family: var(--serif); }
.position-inventory__paging { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .8rem; margin-top: var(--sp-3); }
.position-inventory__count { margin: 0; color: var(--cream-3); font-size: var(--t-meta); text-align: center; }
@media (max-width: 720px) {
  .position-inventory__filters { grid-template-columns: 1fr; }
  .position-inventory__columns { display: none; }
  .position-inventory__list { border-top: 1.5px solid var(--cream-2); }
  .position-inventory__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "pair open" "a b" "state state"; gap: .35rem 1rem; padding: .8rem 0; }
  .position-inventory__pair { grid-area: pair; }
  .position-inventory__open { grid-area: open; }
  .position-inventory__balance { align-items: flex-start; }
  .position-inventory__balance:nth-child(2) { grid-area: a; }
  .position-inventory__balance:nth-child(3) { grid-area: b; }
  .position-inventory__balance small { display: block; }
  .position-inventory__state { grid-area: state; }
}

/* Fixed-population change: the same ledger, with signs. */
.compare h2 { margin-bottom: .2rem; }
.compare > .small { max-width: 80ch; }

/* Pair rankings: a list of roots, each as long as its share of the largest. */
.pair-ranking__scope { color: var(--cream-3); font-size: var(--t-meta); margin: 0 0 var(--sp-3); }
.pair-ranking ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-6); border-top: 1px solid var(--rule); }
.pair-ranking li { border-bottom: 1px solid var(--rule); }
.pair-ranking__row { display: grid; grid-template-columns: minmax(0, 1fr) auto 1.2rem; grid-template-areas: "name amount open" "bar bar bar"; gap: .15rem .8rem; align-items: baseline; padding: .6rem 0 .55rem; color: var(--cream); text-decoration: none; }
.pair-ranking__row:hover { color: var(--cream); background: var(--glow-wash); }
.pair-ranking__name { grid-area: name; font-weight: 500; }
.pair-ranking__amount { grid-area: amount; font-variant-numeric: tabular-nums; color: var(--cream-2); font-size: var(--t-small); }
.pair-ranking__open { grid-area: open; color: var(--glow); font-size: .8rem; }
.pair-ranking__row svg { grid-area: bar; width: 100%; height: 8px; overflow: visible; }
.pair-ranking__track { stroke: var(--rule-2); stroke-width: 1; }
.pair-ranking__growth { stroke: var(--glow); stroke-width: 2; }
.supporting--fees .pair-ranking__growth { stroke: var(--ember); }
@media (max-width: 720px) { .pair-ranking ol { grid-template-columns: 1fr; } }

/* The MU reward rate: a figure with its trailing history beside it. */
.reward-rate-card__main { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); }
.reward-rate-card .stat__value { color: var(--glow); white-space: nowrap; }
.reward-rate-card__history { position: relative; margin: 0; flex: 0 1 11rem; min-width: 7rem; }
.reward-rate-card__history svg { display: block; width: 100%; height: 3rem; }
.reward-rate-card__scale { position: absolute; right: 0; top: -1rem; color: var(--cream-4); font-size: .68rem; }
.reward-rate-card__empty { color: var(--cream-3); font-size: var(--t-meta); font-style: italic; margin: 0; }
.reward-rate-card__basis { color: var(--cream-3); font-size: var(--t-meta); margin: 0; }

/* Burns: the stock in ember, its two completed paths, pending kept apart, recent receipts on one ground line. */
.burn-breakdown.headline { margin: 0; border-top: 0; }
.burn-breakdown > .stat { padding: .7rem 0 !important; border-left: 0 !important; }
.burn-breakdown > .stat:first-child { padding-top: 0 !important; }
.burn-breakdown .stat__value { font-size: 1.6rem; }
.burn-summary__receipts-title { font: 400 1.25rem/1.2 var(--serif); margin: var(--sp-6) 0 var(--sp-3); }
.burn-receipts { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(229, 154, 108, .45); }
.burn-receipts li { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1rem .8rem 0; }
.burn-receipts li + li { padding-left: 1rem; border-left: 1px solid var(--rule); }
.burn-receipts__spore { position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ember-2); box-shadow: 0 0 8px rgba(229, 154, 108, .8); }
.burn-receipts li + li .burn-receipts__spore { left: 1rem; }
.burn-receipts__kind { display: block; font: 600 var(--t-label)/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ember); }
.burn-receipts time { display: block; color: var(--cream-3); font-size: .76rem; }
.burn-receipts p { margin: .2rem 0 0; font: 360 1.25rem/1.15 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.burn-receipts a { font-size: .78rem; }
@media (max-width: 900px) {
  .burn-receipts { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid rgba(229, 154, 108, .45); }
  .burn-receipts li, .burn-receipts li + li { padding: .5rem 0 .8rem 1.2rem; border-left: 0; border-bottom: 1px solid var(--rule); }
  .burn-receipts__spore, .burn-receipts li + li .burn-receipts__spore { top: .9rem; left: -4px; }
}
.burn__table td { vertical-align: middle; }

/* Records (component blocks) use small ledger cards. */
.grid { display: grid; gap: 0; }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-6); }
.grid--metrics { grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); border-top: 1px solid var(--rule); margin: .6rem 0 .8rem; }
.card { min-width: 0; padding: var(--sp-3) var(--sp-4) var(--sp-3) 0; border-bottom: 1px solid var(--rule); }
.grid--metrics .card { padding-right: var(--sp-4); }
.metric__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-bottom: .3rem; }
.metric__label { font-size: .64rem; }
.metric__value { margin: .1rem 0; font: 360 1.35rem/1.2 var(--serif); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.metric__value--unavailable { color: var(--cream-4); font-style: italic; }
.metric__unit { margin-left: .35rem; font: 600 .64rem/1 var(--sans); letter-spacing: .1em; color: var(--cream-3); }
.metric__reason, .metric__meta { color: var(--cream-3); font-size: .76rem; margin: 0; }
.page-records section > h2, .story__more section > h2 { font-size: 1.35rem; margin-top: var(--sp-4); display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.component__why { font-size: var(--t-meta); }
.component__table td { font-size: var(--t-meta); }
.component__meaning { display: inline-flex; align-items: center; gap: .35rem; margin-right: .8rem; }
.status-guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0 var(--sp-5); margin: var(--sp-3) 0; border-top: 1px solid var(--rule); }
.status-guide > div { display: grid; grid-template-columns: 9.4rem minmax(0, 1fr); gap: .8rem; align-items: baseline; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.status-guide p { margin: 0; font-size: var(--t-meta); color: var(--cream-2); }

/* ---------- flows (receipts by path) ---------- */
.flows { display: grid; gap: var(--sp-5); }
.flows--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flows__lanehead { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-bottom: .4rem; border-bottom: 1px solid var(--rule-2); }
.flows__lanetitle { font: 400 1.2rem/1.2 var(--serif); margin: 0; }
.flow__card { padding: var(--sp-3) 0; border-bottom: 1px solid var(--rule); }
.flow__head { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.flow__head h3 { font-size: 1.05rem; margin: 0; }
.flow__chain { display: flex; flex-wrap: wrap; gap: .3rem; margin: .5rem 0; }
.flow__chip { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .5rem; border: 1px solid var(--rule-2); border-radius: var(--r-1); font-size: .78rem; color: var(--cream-2); }
.flow__chip--terminal { border-style: dashed; color: var(--cream-3); }
.flow__num { color: var(--glow); font-weight: 600; font-size: .72rem; }
.flow__totals { margin: .5rem 0; }
.flow__totals li { display: flex; justify-content: space-between; gap: .6rem; padding: .25rem 0; font-size: var(--t-small); }
.flow__total { font-weight: 600; font-family: var(--sans); }
.flow__count { color: var(--cream-3); font-size: .76rem; }
.flow__leg { padding: .4rem 0; }
.flow__legtitle { font-size: var(--t-small); }
.flow__receipts li { font-size: .8rem; padding: .15rem 0; color: var(--cream-2); }
@media (max-width: 900px) { .flows--two { grid-template-columns: 1fr; } }

@media (max-width: 1023px) {
  .story__head { column-gap: var(--sp-5); padding-top: var(--sp-6); }
  .story__head > .field-art, .story__head > .network-emblem { width: 180px; }
}
@media (max-width: 740px) {
  .story__head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eyebrow" "title" "lede"; padding: var(--sp-5) 0 var(--sp-4); }
  .story__head > .field-art, .story__head > .network-emblem { display: none; }
  .page-support-grid { grid-template-columns: 1fr; }
  .page-section { margin-top: var(--sp-6); }
}

/* ============================================================
   HOW IT WORKS: the plate, a key to its three parts, then the
   mechanism drawn as roots between measured steps.
   ============================================================ */

.learn-page { display: block; }

/* The key: three entries, each a row with its numeral. */

.learn-tab[aria-selected="true"] { color: var(--cream); }
.learn-tab[aria-selected="true"]::after { background: var(--path-light, var(--glow)); }
.learn-tab--rewards { --path-light: var(--spore); }
.learn-tab--liquidity { --path-light: var(--glow); }
.learn-tab--burn { --path-light: var(--ember); }

.learn-board { --learn-light: var(--glow); --learn-line: rgba(199, 229, 65, .4); position: relative; border: 1px solid var(--rule); border-radius: var(--r-1); background: var(--night-2); outline: none; }
.learn-board[data-path="rewards"] { --learn-light: var(--spore); --learn-line: rgba(232, 201, 106, .42); }
.learn-board[data-path="burn"] { --learn-light: var(--ember); --learn-line: rgba(229, 154, 108, .45); }
.learn-board__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-5) var(--sp-5) 0; }
.learn-board__head .eyebrow { color: var(--learn-light); }
.learn-board__head h2 { margin: 0 0 .3rem; }
.learn-board__intro { color: var(--cream-2); font-size: var(--t-small); margin: 0; }
.learn-motion { flex: none; min-height: 40px; padding: 0 .8rem; border: 1px solid var(--rule-2); border-radius: var(--r-2); background: transparent; color: var(--cream-3); font-size: .78rem; }
.learn-motion:hover { color: var(--cream); border-color: var(--rule-3); }
.learn-diagram { position: relative; margin: 0 var(--sp-5); }
.learn-roots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; fill: none; }
.learn-root-halo { stroke: var(--learn-light); stroke-width: 8; stroke-opacity: .12; filter: blur(4px); }
.learn-root-halo--policy { stroke-opacity: .05; }
.learn-root { stroke: var(--learn-light); stroke-opacity: .6; stroke-width: 1.4; stroke-linecap: round; }
.learn-root--policy { stroke-dasharray: 3 6; stroke-opacity: .7; }
.learn-root-flow { stroke: var(--cream); stroke-width: 2.4; stroke-dasharray: 2 23; stroke-linecap: round; stroke-opacity: .85; animation: learn-current 14s linear infinite; }
@keyframes learn-current { to { stroke-dashoffset: -100; } }
.learn-board--paused .learn-root-flow, .learn-board--offscreen .learn-root-flow { animation-play-state: paused; }
.learn-path { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); margin: 0; padding: var(--sp-5) 0 0; list-style: none; }
.learn-path--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.learn-path > li { min-width: 0; }
.learn-node { display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; padding: var(--sp-3) .6rem var(--sp-4); border: 1px solid transparent; border-radius: var(--r-2); background: transparent; color: var(--cream); text-align: center; transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); }
.learn-node:hover { background: rgba(239, 231, 210, .03); }
.learn-node[aria-pressed="true"] { border-color: var(--learn-line); background: linear-gradient(0deg, rgba(239, 231, 210, .035), transparent 85%); }
.learn-node__orb { position: relative; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: .7rem; border-radius: 50%; border: 1px solid var(--learn-line); background: var(--night-1); color: var(--learn-light); }
.learn-node[aria-pressed="true"] .learn-node__orb { border-color: var(--learn-light); box-shadow: 0 0 0 5px rgba(239, 231, 210, .04), 0 0 22px rgba(199, 229, 65, .12); }
.learn-node__orb .learn-icon { width: 38px; height: 38px; }
.learn-node__number { position: absolute; top: -6px; right: -10px; font: italic 400 .8rem/1 var(--serif); color: var(--cream-3); background: var(--night-2); padding: 0 .15rem; }
.learn-node__copy { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.learn-node__title { font: 400 1.1rem/1.2 var(--serif); }
.learn-node__line { color: var(--cream-3); font-size: .78rem; }
.learn-node__figure { margin-top: .45rem; font: 360 1.7rem/1.05 var(--serif); color: var(--learn-light); font-variant-numeric: lining-nums tabular-nums; }
.learn-node__figure span { font: 600 .62rem/1 var(--sans); letter-spacing: .1em; color: var(--cream-3); margin-left: .3rem; }
.learn-node__scope { color: var(--cream-3); font-size: .74rem; }
.learn-node .pill { margin-top: .4rem; }
.learn-icon { color: currentColor; }
.learn-diagram__key { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding: var(--sp-3) var(--sp-5); color: var(--cream-3); font-size: .78rem; }
.learn-diagram__legend { font-style: italic; font-family: var(--serif); }
.learn-insight { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--sp-6); padding: var(--sp-5); border-top: 1px solid var(--rule); background: rgba(7, 10, 6, .35); }
.learn-insight__story .eyebrow { color: var(--learn-light); }
.learn-insight__body { font: 400 1.08rem/1.55 var(--serif); color: var(--cream); max-width: 60ch; }
.learn-insight__metric strong { font: 360 var(--t-fig-l)/1 var(--serif); color: var(--learn-light); font-variant-numeric: lining-nums tabular-nums; }
.learn-insight__metric span { margin-left: .4rem; font: 600 .66rem/1 var(--sans); letter-spacing: .1em; color: var(--cream-3); }
.learn-insight__scope { margin: .3rem 0 .5rem; color: var(--cream-3); font-size: var(--t-meta); }
.learn-liquidity-split { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: .6rem 0; font-size: var(--t-small); }
.learn-liquidity-split dt { color: var(--cream-3); }
.learn-liquidity-split dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.learn-proof { margin-top: .5rem; border-top: 1px solid var(--rule); }
.learn-proof__body p { font-size: var(--t-small); color: var(--cream-2); }
.learn-proof__exact { font-family: var(--mono); font-size: .8rem !important; overflow-wrap: anywhere; }
.learn-proof__receipts { display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-size: var(--t-meta); }
.learn-text-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--glow); font: 500 .9rem var(--sans); text-decoration: underline; text-decoration-color: rgba(199, 229, 65, .4); text-underline-offset: .22em; cursor: pointer; }
.learn-text-link:hover { color: var(--glow-2); }
.learn-board__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; padding: var(--sp-3) var(--sp-5); border-top: 1px solid var(--rule); }
.learn-board__foot p { margin: 0; color: var(--cream-3); font-size: var(--t-meta); max-width: 70ch; }
.learn-receipts { margin-top: var(--sp-4); }
@media (prefers-reduced-motion: reduce) { .learn-root-flow { display: none; animation: none; } }
@media (max-width: 960px) {
  .learn-insight { grid-template-columns: 1fr; gap: var(--sp-4); }
}
@media (max-width: 740px) {
  .learn-board__head { padding: var(--sp-4) var(--sp-4) 0; }
  .learn-diagram { margin: 0 var(--sp-4); }
  .learn-path, .learn-path--3 { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); padding-top: var(--sp-4); }
  .learn-node { display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: start; gap: .9rem; padding: .7rem .5rem; text-align: left; }
  .learn-node__orb { width: 48px; height: 48px; margin: .2rem 0 0; }
  .learn-node__orb .learn-icon { width: 32px; height: 32px; }
  .learn-node__copy { align-items: flex-start; }
  .learn-insight { padding: var(--sp-4); }
  .learn-diagram__key, .learn-board__foot { padding-inline: var(--sp-4); }
}

/* ============================================================
   DATA & SOURCES: the provenance plate.
   ============================================================ */

.sources-update { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6); align-items: end; padding: var(--sp-5) 0; border-bottom: 1px solid var(--rule); }
.sources-update .eyebrow { margin-bottom: .5rem; }
.sources-update__time { margin: 0; font: 360 var(--t-fig-l)/1.05 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.sources-update p.small { margin: .3rem 0 0; }
.sources-update__rule { margin: 0; padding-left: var(--sp-5); border-left: 1px solid var(--glow-line); color: var(--cream-2); font: italic 400 1.1rem/1.5 var(--serif); }
.source-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: var(--sp-5); border-top: 1px solid var(--rule-2); }
.source-group { display: flex; flex-direction: column; min-width: 0; padding: var(--sp-4) var(--sp-5) var(--sp-3) 0; }
.source-group + .source-group { padding-left: var(--sp-5); border-left: 1px solid var(--rule); }
.source-group .eyebrow { margin-bottom: .4rem; }
.source-group h2 { font-size: 1.6rem; margin: 0 0 .4rem; }
.source-group__description { color: var(--cream); font-size: var(--t-small); margin: 0 0 .5rem; }
.source-group__rule { color: var(--cream-3); font-size: var(--t-meta); margin: 0 0 .5rem; flex: 1; }
.source-group__details { border-top: 1px solid var(--rule); margin-top: .4rem; }
.source-coverage { display: grid; gap: 0; }
.source-coverage__component > summary { justify-content: flex-start; font-size: var(--t-small); }
.source-coverage__component > summary .pill { margin-left: auto; }
.source-coverage__metrics { list-style: none; margin: 0 0 .6rem; padding: 0; }
.source-coverage__metrics > li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; padding: .35rem 0; border-top: 1px solid var(--rule); font-size: var(--t-meta); }
.source-coverage__metrics > li > span:first-child { flex: 1; min-width: 10rem; color: var(--cream-2); }
.source-coverage__proof { flex-basis: 100%; }
.source-coverage__proof > summary { min-height: 32px; font-size: .76rem; color: var(--cream-3); }
.sources-page > .page-records { margin-top: 0; }
.sources-page > .page-records:first-of-type { margin-top: var(--sp-6); }
.source-directory { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0 var(--sp-5); border-top: 1px solid var(--rule); }
.source-entry { padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.source-entry h3 { font-size: 1rem; margin: 0 0 .1rem; }
.source-entry p { margin: 0; }
.dimensions { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0 var(--sp-5); border-top: 1px solid var(--rule); }
.dimension { padding: var(--sp-3) 0; border-bottom: 1px solid var(--rule); }
.dimension__head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.dimension__title { font-size: 1.1rem; margin: 0; }
.dimension__support { color: var(--cream-2); font-size: var(--t-small); margin: .3rem 0; }
.dimensions__empty { margin-top: var(--sp-3); }
.parity__table td { font-size: var(--t-meta); }
.sources-archive h2 { font-size: 1.4rem; margin-top: var(--sp-5); }
@media (max-width: 900px) {
  .sources-update { grid-template-columns: 1fr; gap: var(--sp-4); }
  .source-groups { grid-template-columns: 1fr; }
  .source-group, .source-group + .source-group { padding: var(--sp-4) 0; border-left: 0; border-top: 1px solid var(--rule); }
  .source-group:first-child { border-top: 0; }
}

/* ============================================================
   POOLS DIRECTORY (under the map) and the treasury fallback.
   ============================================================ */

#atlas-list .filters { margin-top: 0; }
table.dir caption { font-style: normal; font-family: var(--sans); font-size: var(--t-meta); }
.dir__count { color: var(--cream-2); font-weight: 600; }
.dir th { padding-inline: .6rem; }
.dir .sort {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 32px; padding: 0; border: 0; background: transparent;
  color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
}
.dir .sort:hover { color: var(--cream); }
.dir th[aria-sort] { color: var(--glow); }
.dir th[aria-sort="descending"] .sort::after { content: "↓"; }
.dir th[aria-sort="ascending"] .sort::after { content: "↑"; }
.dir td { vertical-align: middle; padding-inline: .6rem; }
.dir__cell { display: flex; align-items: center; gap: .6rem; }
.dir__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); }
.dir__dot--empty { background: transparent; border: 1.2px solid var(--moss); }
.dir__name { display: flex; flex-direction: column; min-width: 0; }
.dir__pair { display: inline-flex; align-items: center; gap: .3rem; }
.dir__pair .linkish { min-height: 32px; color: var(--cream); text-decoration: none; font-weight: 500; font-size: .92rem; }
.dir__pair .linkish:hover { color: var(--glow-2); text-decoration: underline; }
.dir__meta { color: var(--cream-3); font-size: .74rem; }
.dir__hook { display: inline-flex; color: var(--spore); }
.hook-mark { width: 10px; height: 13px; margin-left: .35rem; vertical-align: -.1em; color: var(--spore); flex: none; }
.dir__more-row td { text-align: center; }
@media (max-width: 900px) { .dir__desk { display: none; } }

.treasury-scope { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; margin: var(--sp-4) 0; font-size: var(--t-meta); color: var(--cream-3); }
.treasury-scope ul { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .8rem; margin: 0; padding: 0; }
.treasury-detail-grid, .treasury-allocation { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: var(--sp-4) var(--sp-5); }
.treasury-panel { min-width: 0; }
.treasury-assets { list-style: none; margin: .4rem 0; padding: 0; }
.treasury-assets__asset { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid var(--rule); color: var(--cream); text-decoration: none; font-size: var(--t-small); }
.treasury-assets__amount { font-variant-numeric: tabular-nums; }
.treasury-receipts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.treasury-receipts > li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .3rem 1rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.treasury-receipts time { display: block; color: var(--cream-3); font-size: .76rem; }
.treasury-receipts__amount { font-variant-numeric: tabular-nums; }
.treasury-receipts__proof { grid-column: 1 / -1; }
.treasury-address { font: .78rem var(--mono); overflow-wrap: anywhere; }

/* ---------- 404 and print ---------- */

@media print {
  :root { --night-1: #fff; --night-2: #fff; --night-3: #f4f4f0; --cream: #111; --cream-2: #333; --cream-3: #555; --cream-4: #777; --rule: #ccc; --rule-2: #999; --rule-3: #666; --glow: #3f5a28; --glow-2: #3f5a28; }
  body { background: #fff; color: #111; }
  body::before, .masthead, .ticker, .sitefoot__row, .living-plate, .living-toolbar, .chart-window, .shift__tabs, .inspector-top button, .living-scene__controls { display: none !important; }
  .living-atlas.atlas { display: block; }
  a { color: #3f5a28; }
  .chart, .holdings-figure, .dated-series__chart { break-inside: avoid; border-color: #ccc; background: #fff; }
  details > summary::before { display: none; }
}

/* Data & sources additions: identity line, per-group coverage, the reading key. */
.sources-update__identity { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .3rem 2rem; margin: 0; padding-top: var(--sp-3); border-top: 1px solid var(--rule); }
.sources-update__identity div { display: flex; gap: .6rem; align-items: baseline; }
.sources-update__identity dt { font: 600 var(--t-label)/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-3); }
.sources-update__identity dd { margin: 0; font-size: .82rem; color: var(--cream-2); }
.source-group__coverage { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: 0 0 .3rem; color: var(--cream-2); font-size: var(--t-meta); }
.reading-key__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--sp-6); align-items: start; }
.reading-key__timing { margin: 0; border-top: 1px solid var(--rule); }
.reading-key__timing div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.reading-key__timing dt { font: 400 1.05rem/1.3 var(--serif); color: var(--cream); }
.reading-key__timing dd { margin: 0; color: var(--cream-2); font-size: var(--t-meta); }
.reading-key .status-guide { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sources-page > .reading-key + .page-records { margin-top: var(--sp-6); }
@media (max-width: 900px) {
  .reading-key__grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .reading-key .status-guide { grid-template-columns: 1fr; }
}

/* Long identifiers never widen the page. */
a.mono, .mono a, td a, .drawer__body a, .list-clean a { overflow-wrap: anywhere; }
.sitefoot__socials { display: flex; justify-content: center; gap: .25rem; margin-top: var(--sp-4); }
@media (max-width: 420px) { .masthead__socials { display: none; } }

/* ---------- reflow at large text sizes (200% root) ----------
   Big figures cap their growth by viewport width so a number never exceeds
   a narrow screen; at normal text sizes the caps are inactive. */
.stat__value { font-size: min(var(--t-fig-l), 11vw); }
.inspector-primary .dossier__value { font-size: min(var(--t-fig-xl), 12vw); }
.dossier__value { font-size: min(1.85rem, 9vw); }
.hero__title, .story__head > h1, .learn-title, .treasury-hub__header h1 { font-size: min(var(--t-h1), 13vw); }
.living-atlas .hero__title { font-size: min(clamp(2.5rem, 1.35rem + 2.05vw, 3.35rem), 13vw); }
.burn-eq > .stat:first-child .stat__value, .sources-update__time { font-size: min(var(--t-fig-xl), 11vw); }
.btn, .living-button, .living-example, .living-search-result, .view-share__button, .sitefoot__action { white-space: normal; text-align: center; }
.pill { white-space: normal; max-width: 100%; }
dd.mono, .mono { overflow-wrap: anywhere; }
.living-search { min-width: min(10rem, 100%); }
.reward-rate-card__main { flex-wrap: wrap; }
.reward-rate-card__history { min-width: 0; flex: 1 1 7rem; }
.learn-board__head { flex-wrap: wrap; }
@media (max-width: 1023px) {
}
@media (max-width: 740px) { .learn-node { grid-template-columns: 50px minmax(0, 1fr); } }
.learn-node__title, .learn-node__figure { overflow-wrap: break-word; max-width: 100%; }
.learn-node__figure { font-size: min(1.7rem, 9vw); }
.reading-key__timing div { grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); }
@media (max-width: 600px) {
  .reading-key__timing div, .status-guide > div { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .status-guide .pill { justify-self: start; }
}
.pendle-branch__value, .stat__unit { white-space: normal; }
@media (min-width: 768px) { .pendle-branch { grid-template-columns: auto minmax(0, 1fr) minmax(0, auto); } }
.dossier__unit { margin-left: .1rem; }
.inspector-top { flex-wrap: wrap; }

/* Reflow safety: a word that cannot fit its line breaks rather than widening the page.
   break-word (not anywhere) keeps min-content sizing, so flex items do not collapse to letters. */
body { overflow-wrap: break-word; }
td a, td .mono, td code { overflow-wrap: anywhere; }
.page-section__head h2 { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .nav a { white-space: nowrap; } }
.living-toolbar { flex-wrap: wrap; }
.network-headline strong { font-size: min(1.55rem, 6.4vw); }
.status-guide > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .8rem; }
.status-guide > div > .pill { flex: 0 0 auto; min-width: 8.6rem; }
.status-guide > div > p { flex: 1 1 12rem; }
.learn-node__orb { flex: none; }

/* Masthead with large text: the full navigation needs about 62rem. A container
   query in rem responds to the root text size as well as the window, so the menu
   takes over the moment the navigation would not fit. app.js adds
   .masthead--compact as a measured fallback for anything the query misses. */
.masthead { container: masthead / inline-size; }
@container masthead (max-width: 62.5rem) {
  .menu-toggle { display: inline-flex; }
  .masthead__socials { order: 3; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--night-2); border-bottom: 1px solid var(--rule-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); display: none; }
  .masthead--open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; width: min(1360px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: .5rem 0 1rem; }
  .nav li { border-bottom: 1px solid var(--rule); }
  .nav a { width: 100%; min-height: 48px; padding: 0 .25rem; font-size: 1rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"]::before { position: static; margin-right: .6rem; }
  .nav__sep { display: none; }
}
@media (min-width: 1024px) {
  @container masthead (min-width: 62.5rem) and (max-width: 80rem) { .masthead__socials { display: none; } .brand__word { height: 13px; } }
}
.masthead--compact .menu-toggle { display: inline-flex; }
.masthead--compact .masthead__socials { order: 3; }
.masthead--compact .nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--night-2); border-bottom: 1px solid var(--rule-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); display: none; }
.masthead--compact.masthead--open .nav { display: block; }
.masthead--compact .nav ul { flex-direction: column; align-items: stretch; gap: 0; width: min(1360px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: .5rem 0 1rem; }
.masthead--compact .nav li { border-bottom: 1px solid var(--rule); }
.masthead--compact .nav a { width: 100%; min-height: 48px; padding: 0 .25rem; font-size: 1rem; }
.masthead--compact .nav a[aria-current="page"]::after { display: none; }
.masthead--compact .nav a[aria-current="page"]::before { position: static; margin-right: .6rem; }
.masthead--compact .nav__sep { display: none; }
/* Scroll containers also clip visually hidden (absolute) labels inside them. */
.tablewrap, .shift__items { position: relative; }
/* The stale badge opens a note: a small drawn "i" says so. */
.freshness-trigger::after {
  content: "i"; display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; margin-left: .15em;
  border: 1px solid currentColor; border-radius: 50%; font: italic 600 .95em/1 var(--serif); letter-spacing: 0; text-transform: none;
}
.brand__word { flex: none; }

/* Learn: node figures share rows across the path (subgrid), so values line up. */
@media (min-width: 741px) {
  .learn-path { row-gap: 0; }
  .learn-path > li { display: grid; grid-template-rows: subgrid; grid-row: span 6; }
  .learn-node { display: grid; grid-template-rows: subgrid; grid-row: span 6; justify-items: center; align-items: start; align-content: start; row-gap: 0; }
  .learn-node__copy { display: contents; }
  .learn-node__orb { grid-row: 1; }
  .learn-node__title { grid-row: 2; margin: 0 0 .3rem; }
  .learn-node__line { grid-row: 3; }
  .learn-node__figure { grid-row: 4; margin: .45rem 0 0; }
  .learn-node__scope { grid-row: 5; margin: .25rem 0 0; }
  .learn-node .pill { grid-row: 6; align-self: start; }
}
/* Narrow: the selected step's detail opens inside its list item, under the node. */
@media (max-width: 740px) {
  .learn-node { height: auto; }
  .learn-path .learn-insight { position: relative; z-index: 1; margin: .5rem 0 .25rem; border: 1px solid var(--learn-line); border-radius: var(--r-2); background: var(--night-2); }
  .learn-path .learn-insight__metric { display: none; }
  .learn-path .learn-insight__scope { margin-top: 0; }
}
.inspector-body > p > a { display: inline-flex; align-items: center; min-height: 44px; }
/* 404 page (static HTML): its brand keeps the site name as visible text. */
.brand__text .brand__name { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: nowrap; font: 600 .95rem/1 var(--sans); letter-spacing: .02em; }
/* Grid minimums in rem never exceed their container (large text on phones). */
.livebar { grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); }
.dossier__chips { grid-template-columns: repeat(auto-fit, minmax(min(7.5rem, 100%), 1fr)); }
.status-guide, .source-directory { grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); }
.dimensions { grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr)); }
.kv { grid-template-columns: minmax(min(8rem, 40%), 13rem) minmax(0, 1fr); }
.bar-chart__row { grid-template-columns: minmax(min(8rem, 30%), 15rem) minmax(0, 1fr) minmax(min(6rem, 25%), auto); }
.position-inventory__filters { grid-template-columns: minmax(0, 1fr) minmax(min(12rem, 45%), 16rem); }
/* Four-column Learn path with large text: nodes shrink to their column. */
@media (min-width: 741px) {
  .learn-path > li, .learn-node { min-width: 0; }
  .learn-node { padding-inline: min(.6rem, 1vw); }
  .learn-node__figure { font-size: min(1.7rem, 4.2vw); }
  .learn-node__title { font-size: min(1.1rem, 2.9vw); }
}
.source-coverage { grid-template-columns: minmax(0, 1fr); }
.source-coverage__component > summary { flex-wrap: wrap; }
.source-coverage__metrics > li > span:first-child { min-width: min(10rem, 100%); }
.dimension__head { flex-wrap: wrap; }
.dimension__head > h3 { min-width: 0; flex: 1 1 12rem; }
.source-coverage__proof { min-width: 0; }
.source-coverage__proof, .source-coverage__proof * { overflow-wrap: anywhere; }
.learn-insight { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 960px) { .learn-insight { grid-template-columns: minmax(0, 1fr); } }
.learn-insight > * { min-width: 0; }
.filters label { min-width: 0; max-width: 100%; }
.filters input, .filters select { min-width: 0; max-width: 100%; }
.metric__head { flex-wrap: wrap; }
.metric__head > * { min-width: 0; }
.table__notes { min-width: 0; flex: 1 1 100%; overflow-wrap: anywhere; }
.component__meaning { display: inline-flex; flex-wrap: wrap; max-width: 100%; }
.flows--two > * { min-width: 0; }
@media (max-width: 900px) { .flows--two { grid-template-columns: minmax(0, 1fr); } }
.flows__lanehead, .flow__head, .flow__chain { flex-wrap: wrap; }
.flow__chip { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
/* The bounded minimums above apply at every width; the narrow-screen layouts still win below. */
@media (max-width: 767px) { .living-inspector .dossier__chips, .dossier__chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .position-inventory__filters { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 650px) { .bar-chart__row { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 600px) { .kv { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); } }
/* What changed: the time and action columns wrap before they widen the page. */
.changed__link { grid-template-columns: min(9rem, 25%) minmax(0, 1fr) fit-content(40%); }
.changed__when, .changed__action { white-space: normal; }
@media (max-width: 640px) { .changed__link { grid-template-columns: minmax(0, 1fr); } }
/* Stacked record rows: the label column never takes the value's room (large text on phones). */
@media (max-width: 650px) { .records-table td { grid-template-columns: minmax(0, min(7.5rem, 38%)) minmax(0, 1fr); } }
.dir__pair { flex-wrap: wrap; min-width: 0; }
.dir__pair .linkish { overflow-wrap: anywhere; text-align: left; }
@media (max-width: 650px) { .records-table thead tr, .records-table thead th { display: block; width: 1px; height: 1px; overflow: hidden; padding: 0; } }
.filters select { width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   Network v2: in-place selection, zoom-stable labels, responsive head.
   ============================================================ */
.living-label { font-size: calc(12px / var(--k, 1)); stroke-width: calc(3.5px / var(--k, 1)); }
.living-selected-label { font-size: calc(20px / var(--k, 1)); stroke-width: calc(5px / var(--k, 1)); }
.living-pool-label { font-size: calc(12px / var(--k, 1)); paint-order: stroke; stroke: var(--night-1); stroke-width: calc(3px / var(--k, 1)); stroke-linejoin: round; }
.living-label-leader, .living-root, .living-branch, .living-burn-root, .living-burn-filament { vector-effect: non-scaling-stroke; }
.living-root--muted { stroke-opacity: .13; }
.living-node--muted { opacity: .55; }
.living-hub-label { font-size: calc(14px / var(--k, 1)); stroke-width: calc(5px / var(--k, 1)); }
.living-node--muted:hover, .living-node--muted.living-node--focus { opacity: 1; }
.living-selected-ring { fill: none; stroke: var(--glow); stroke-opacity: .55; stroke-width: 1; }
.living-node--selected .living-selected-dot { fill: var(--glow-2); stroke: var(--night-1); stroke-width: 2; }
.living-pool-dot { stroke-width: 1.4; }
.living-pool-hit { fill: transparent; stroke: none; }
.living-pool:hover .living-pool-hit, .living-pool--selected .living-pool-hit { fill: rgba(199, 229, 65, .12); stroke: none; }
.living-pool:focus-visible .living-pool-hit { fill: rgba(199, 229, 65, .16); stroke: var(--glow-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: reduce) {
  .living-frame { transition: none; }
  .living-inspector.atlas__drawer { animation: none; }
}

@media (max-width: 1280px) {
  .living-frame { --panel-w: 23rem; }
  .network-head { grid-template-columns: minmax(12.5rem, 1fr) minmax(0, 3.6fr); gap: var(--sp-4); }
  .network-figures .prong, .network-trading { padding-inline: var(--sp-3); }
}
@media (max-width: 1300px) {
  .living-frame { --map-h: clamp(460px, calc(100svh - var(--masthead-live, 61px) - 19.5rem), 900px); }
}
@media (max-width: 1023px) {
  .network-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--sp-3); }
  .network-figures .prong, .network-trading { padding: .1rem var(--sp-3) .2rem 0; border-right: 0; }
  .network-figures .prong:nth-child(odd) { border-right: 1px solid var(--rule); }
  .network-figures .prong:nth-child(even), .network-trading { padding-left: var(--sp-3); }
  .living-frame { display: block; border: 0; border-radius: 0; overflow: visible; }
  .living-scene.sphere { height: clamp(420px, 70svh, 640px); border: 1px solid var(--rule); border-radius: var(--r-1); }
  .living-inspector.atlas__drawer { height: auto; overflow: visible; padding: 0; background: transparent; border-left: 0; animation: none; }
  .living-inspector .inspector-top { position: static; margin: 0; padding: .3rem .6rem .1rem 1rem; background: transparent; border-bottom: 0; }
  .living-inspector--expanded .inspector-top { position: sticky; background: var(--night-2); border-bottom: 1px solid var(--rule-2); }
  .living-toolbar { flex-wrap: wrap; }
  .living-count { flex-basis: 100%; }
  .living-search { flex: 1 1 12rem; }
  .network-notes__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
}
@media (max-width: 767px) {
  .network-head { padding-top: var(--sp-3); }
  .network-head__title { font-size: 1.6rem; }
  .living-scene.sphere { height: min(74svh, 560px); width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); border-inline: 0; border-radius: 0; }
  .network-figures .prong__chart { width: 3.6rem; height: 1.4rem; }
}
@media (max-width: 420px) {
  .network-figures { grid-template-columns: minmax(0, 1fr); }
  .network-figures .prong, .network-figures .prong:nth-child(odd), .network-figures .prong:nth-child(even), .network-trading { border-right: 0; padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: var(--sp-2); }
}

/* Figures: name and sparkline on one row, the value on its own line, then its scope. */
.network-figures .prong, .network-trading { grid-template-areas: "name chart" "value value" "label label" "note note" "def def"; }
.network-figures .prong__value { font-size: clamp(1.35rem, .9rem + .9vw, 1.8rem); }
.network-figures .prong__chart { align-self: end; }
.network-trading { grid-template-areas: "name name" "value value" "label label" "note note" "def def"; }
.network-trading .living-welcome__counts { padding: 0; border: 0; background: none; }
.network-trading .network-headline strong { font-size: clamp(1.35rem, .9rem + .9vw, 1.8rem); }
.network-trading .network-headline[data-network-metric="swaps"] strong { font: 600 .95rem/1 var(--sans); color: var(--cream-2); }
.network-trading .network-headline[data-network-metric="swaps"] span { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .78rem; }
.network-trading .network-total-scope { display: none; }
.network-trading .network-total-basis { grid-area: note; }
/* The network page runs wider than reading pages: the map wants the width. */
:root[data-route="explore"] .page, :root[data-route="explore"] .masthead__inner, :root[data-route="explore"] .sitefoot__inner { width: min(1840px, 100% - 2 * var(--gutter)); }

.network-head { padding: var(--sp-3) 0 var(--sp-3); }
.network-head__title { font-size: clamp(1.6rem, 1.1rem + .8vw, 2rem); }
.network-figures .prong[data-outcome="1"] .prong__value .stat__unit { display: none; }
.living-frame { --map-h: clamp(460px, calc(100svh - var(--masthead-live, 61px) - 15.2rem), 1000px); }
@media (max-width: 1180px) { .living-frame { --map-h: clamp(460px, calc(100svh - var(--masthead-live, 61px) - 18rem), 900px); } }
/* Phones and tablets: the sheet keeps its own ground and scroll. */
@media (max-width: 1023px) {
  .living-inspector.living-inspector--selected { background: var(--night-3); }
  .living-inspector--expanded.living-inspector--selected { overflow: auto; background: var(--night-2); }
  .living-frame { --map-h: auto; }
}
/* Phones: a compact 2 x 2 of figures so the map is in the first screen; the MU definition stays. */
@media (max-width: 767px) {
  .network-head__intro { display: block; }
  .network-head__title { margin-bottom: .2rem; }
  .network-head__lede { font-size: .9rem; }
  .network-figures, .network-figures .prong, .network-figures .prong:nth-child(odd), .network-figures .prong:nth-child(even), .network-trading { border-bottom: 0; }
  .network-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--sp-2); padding-top: var(--sp-2); }
  .network-figures .prong, .network-trading { padding: 0 var(--sp-2) 0 0; grid-template-areas: "name chart" "value value" "label label" "note note" "def def"; }
  .network-figures .prong:nth-child(even), .network-trading { padding: 0 0 0 var(--sp-2); }
  .network-figures .prong:nth-child(odd) { border-right: 1px solid var(--rule); }
  .network-figures .prong__name, .network-trading .prong__name { font-size: .88rem; }
  .network-figures .prong__value, .network-trading .network-headline strong { font-size: 1.3rem; }
  .network-figures .prong__approx { display: block; margin: .1rem 0 0; font-size: .72rem; }
  .network-trading .network-total-basis, .network-trading .network-headline[data-network-metric="swaps"] { display: none; }
  .network-figures .outcome-note { font-size: .68rem; }
  .network-figures .prong__chart { width: 3rem; height: 1.1rem; }
  .network-figures .outcome-definition { font-size: .68rem; }
}

/* Page heads: a title and one sentence, a small vignette at the edge; content starts sooner. */
.page__head.story__head { grid-template-areas: "title art" "lede art"; padding: var(--sp-5) 0 var(--sp-4); row-gap: 0; }
.story__head > h1, .page__head > h1 { font-size: min(clamp(1.9rem, 1.35rem + 1.3vw, 2.7rem), 11vw); margin-bottom: .45rem; }
.story__head > .story__lede { font-size: var(--t-small); max-width: 70ch; }
.story__head > .field-art, .story__head > .network-emblem { width: clamp(120px, 11vw, 165px); align-self: center; }
@media (max-width: 767px) { .page__head.story__head { grid-template-areas: "title" "lede"; } }
/* A page's mechanism diagram sits between its key figures and its history. */
.flow-mechanism { margin: var(--sp-5) 0 var(--sp-6); }
.flow-mechanism .learn-board__head h2 { font-size: 1.5rem; }
/* Treasury head: the same economy as other pages. */
.treasury-hub__header h1 { font-size: min(clamp(1.9rem, 1.35rem + 1.3vw, 2.7rem), 11vw); }
/* The shared measurement time closes the key-figure row rather than taking a column. */
.headline--keys > .metric-group__time { flex: 1 1 100%; order: 99; margin: 0; padding: .45rem 0 0; color: var(--cream-3); font-size: var(--t-meta); }

/* The head follows its own width in rem, so large text reflows it like a narrower window. */
.network-head-wrap { container: nethead / inline-size; }
.network-head { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
.network-head__intro { flex-direction: row; align-items: baseline; justify-content: flex-start; flex-wrap: wrap; gap: .2rem 1rem; }
.network-head__lede { max-width: 70ch; }
.network-figures { border-left: 0; border-top: 1px solid var(--rule); padding-top: var(--sp-2); }
.network-figures .prong:first-child { padding-left: 0; }
@container nethead (min-width: 74rem) {
  .network-head { grid-template-columns: minmax(17rem, 1fr) minmax(0, 3.2fr); gap: var(--sp-5); }
  .network-head__intro { flex-direction: column; align-items: stretch; justify-content: center; gap: .35rem; }
  .network-head__lede { max-width: 46ch; }
  .network-figures { border-left: 1px solid var(--rule); border-top: 0; padding-top: 0; }
  .network-figures .prong:first-child { padding-left: var(--sp-4); }
}
@container nethead (max-width: 46rem) {
  .network-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--sp-3); }
  .network-figures .prong, .network-trading { padding: .1rem var(--sp-3) .2rem 0; border-right: 0; }
  .network-figures .prong:nth-child(odd) { border-right: 1px solid var(--rule); }
  .network-figures .prong:nth-child(even), .network-trading { padding-left: var(--sp-3); }
}
@container nethead (max-width: 22rem) {
  .network-figures { grid-template-columns: minmax(0, 1fr); }
  .network-figures .prong, .network-figures .prong:nth-child(odd), .network-figures .prong:nth-child(even), .network-trading { border-right: 0; padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: var(--sp-2); }
}

/* Phones: the network overview is a bottom card with its own scroll; the map stays usable. */
@media (max-width: 1023px) {
  .living-inspector--overview.living-inspector--selected { max-height: min(62svh, 560px); overflow: auto; padding-bottom: var(--sp-3); }
  .living-inspector--overview .living-welcome { padding: 0 1rem; }
}

/* Scope facts stay with their figure: each fact on its own line, no dangling separators. */
.network-figures .outcome-note { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0; }
.network-figures .outcome-note > .pill { justify-self: start; margin-top: .15rem; }

/* Supporting notes: one quiet tier. A note follows what it qualifies and shares a
   line where it can; it never takes a column, a box or a heading's weight. */
:root { --t-note: .75rem; }
.page-scope, .pair-ranking__scope, .chart-window__note, .chart-reading, .metric-group__time, .page-metric__time,
.learn-board__foot p, .learn-diagram__key, .compare__basis { font-size: var(--t-note); line-height: 1.5; color: var(--cream-3); }
.page-scope { margin: .35rem 0 .6rem; max-width: 110ch; }
.compare__basis { margin: .5rem 0 0; max-width: 110ch; }
.headline--keys > .metric-group__time { max-width: none; padding: .3rem 0 0; }
.chart-reading { margin-top: .25rem; }
.learn-diagram__key { padding: .3rem var(--sp-5); }
.learn-board__foot { padding: .2rem var(--sp-5) .8rem; border-top: 0; }
.page-section__head p { font-size: var(--t-meta); }
.sources-update__rule { font-size: 1rem; color: var(--cream-3); }
/* A figure's status, time and source share one line under its note. */
.page-metric { flex-flow: row wrap; align-items: center; column-gap: .6rem; row-gap: .3rem; }
.page-metric > * { flex: 0 0 100%; }
.page-metric > .pill, .page-metric > .freshness-trigger, .page-metric > .page-metric__time, .page-metric > details:last-child { flex: 0 1 auto; min-width: 0; max-width: 100%; align-self: center; margin: 0; }
.page-metric > details:last-child[open] { flex-basis: 100%; }
.page-metric > details:last-child > summary { min-height: 28px; font-size: var(--t-note); }
.page-metric > .page-metric__time + details:last-child::before, .page-metric > .pill + details:last-child::before { content: none; }
.headline--keys + .page-scope { margin-top: calc(.35rem - var(--sp-5)); }
/* Full-width disclosures read across the page, not in a narrow column. */
.page-records > :not(summary) p, .story__more > :not(summary) p, .page-mu-explainer .hero__mu-text { max-width: none; }
.sitefoot p.sitefoot__status { max-width: none; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: .25rem; font-size: var(--t-note); color: var(--cream-3); }
.sitefoot__status a { font-size: inherit; }
.sitefoot__dot { width: 6px; height: 6px; margin-right: .3rem; border-radius: 50%; background: var(--glow); box-shadow: 0 0 6px rgba(199, 229, 65, .7); }
.sitefoot__dot--stale { background: var(--alarm); box-shadow: none; }
/* Chart bar: measure, time window, then Share at the far end; wraps as a unit. */
.chart-window__bar { justify-content: flex-start; gap: .6rem 1rem; }
.chart-window__bar > .view-share { margin-left: auto; }
.chart-window__bar > .chart-measures { margin: 0; }
.chart-window__bar > .chart-measures + .chart-window__choices { position: relative; }

/* SHROOM removed: an equation, then what is not yet counted, then a dated list. */
.page-burn-summary .headline--keys.burn-eq {
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr) auto minmax(0, 1fr); column-gap: var(--sp-5); align-items: start;
  margin: 0; padding-top: var(--sp-4); border-top: 1px solid var(--rule-2);
}
.headline--keys.burn-eq > .stat, .headline--keys.burn-eq > .stat + .stat { padding: 0; border: 0; }
.headline--keys.burn-eq > .metric-group__time { grid-column: 1 / -1; padding-top: .6rem; }
.burn-eq__op { font: 300 2.4rem/1 var(--serif); color: var(--cream-3); padding-top: 1.35rem; }
.burn-eq > .stat:first-child .stat__value { font-size: min(var(--t-fig-xl), 11vw); color: var(--ember-2); }
.burn-eq > .stat:not(:first-child) .stat__value { font-size: 1.85rem; padding-top: .55rem; }
.burn-eq > .stat:not(:first-child) .stat__label { padding-top: 0; }
.page-burn-summary .headline--keys.burn-summary__pending { width: min(100%, 30rem); margin: var(--sp-5) 0 0; padding: .65rem 1.1rem .35rem; border: 1px dashed rgba(229, 154, 108, .4); border-radius: var(--r-2); }
.page-burn-summary .burn-summary__pending > .stat { flex: 0 1 auto; padding: 0; border: 0; }
.page-burn-summary .burn-summary__pending .stat__value { font-size: 1.35rem; color: var(--cream-2); }
.burn-summary__receipts-title { margin: var(--sp-6) 0 var(--sp-2); }
.page-burn-summary .burn-receipts { display: block; border-top: 1px solid rgba(229, 154, 108, .45); border-left: 0; }
.page-burn-summary .burn-receipts li, .page-burn-summary .burn-receipts li + li {
  display: grid; grid-template-columns: .9rem 11.5rem 9.5rem 11rem auto minmax(0, 1fr); align-items: baseline; column-gap: var(--sp-4);
  padding: .6rem 0; border: 0; border-bottom: 1px solid var(--rule);
}
.page-burn-summary .burn-receipts__spore, .page-burn-summary .burn-receipts li + li .burn-receipts__spore { position: static; align-self: center; width: 7px; height: 7px; }
.page-burn-summary .burn-receipts time { font-size: var(--t-small); color: var(--cream-2); }
.page-burn-summary .burn-receipts p { margin: 0; text-align: right; font-size: 1.15rem; }
.burn-receipts__unit { font: 600 .62rem/1 var(--sans); letter-spacing: .1em; color: var(--cream-3); }
.page-burn-summary .burn-receipts a { justify-self: start; margin-left: var(--sp-3); }
@media (max-width: 900px) {
  .page-burn-summary .headline--keys.burn-eq { grid-template-columns: 1.8rem minmax(0, 1fr); row-gap: var(--sp-3); }
  .headline--keys.burn-eq > .stat:first-child { grid-column: 1 / -1; }
  .burn-eq__op { font-size: 1.6rem; padding-top: .9rem; }
  .burn-eq > .stat:not(:first-child) .stat__value { padding-top: 0; font-size: 1.5rem; }
}
/* Two lines per burn whenever the list is narrow for its text size (phones, 200% text). */
.page-burn-summary .burn-receipts { container: burnlist / inline-size; }
@container burnlist (max-width: 52rem) {
  .page-burn-summary .burn-receipts li, .page-burn-summary .burn-receipts li + li { grid-template-columns: .9rem minmax(0, 1fr) auto; row-gap: .15rem; }
  .page-burn-summary .burn-receipts time { grid-column: 2; grid-row: 1; }
  .page-burn-summary .burn-receipts__kind { grid-column: 3; grid-row: 1; justify-self: end; }
  .page-burn-summary .burn-receipts p { grid-column: 2; grid-row: 2; text-align: left; }
  .page-burn-summary .burn-receipts a { grid-column: 3; grid-row: 2; }
  .page-burn-summary .burn-receipts__status { grid-column: 2 / -1; }
  .page-burn-summary .burn-receipts__status:empty { display: none; }
}
/* Mechanism steps: when a step is narrow for its text size (phones at 200% text),
   the icon sits above the words instead of beside them, and long words may wrap. */
/* Phones only: wider layouts align steps through a shared grid that containment would break. */
@media (max-width: 740px) {
  .learn-path > li { container-type: inline-size; }
  @container (max-width: 15rem) {
    .learn-node { grid-template-columns: minmax(0, 1fr); justify-items: start; row-gap: .4rem; }
  }
}
.learn-node__copy, .learn-node__copy > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.pill { overflow-wrap: anywhere; }
.learn-insight, .measurement-sources { overflow-wrap: anywhere; }
/* Position rows: balances stack when the list is narrow for its text size. */
.position-inventory { container-type: inline-size; }
@container (max-width: 22rem) {
  .position-inventory__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "pair open" "a a" "b b" "state state"; }
}
/* Details card: its content block sits centred, with equal space left and right.
   (A first-pass rule had left the panel with no left padding.) */
@media (min-width: 1024px) {
  .living-inspector.atlas__drawer { padding: 0 var(--sp-5) var(--sp-5); }
  .living-inspector .inspector-top { margin: 0 calc(-1 * var(--sp-5)); padding-left: var(--sp-5); padding-right: var(--sp-5); }
}
@media (max-width: 1023px) {
  .living-inspector--selected .inspector-top { padding-left: 1rem; padding-right: 1rem; }
}
