/* ============================================================
   heidegull.com — styles (v19 redesign)
   Professional dark system: Inter + JetBrains Mono, near-black
   surfaces, hairline borders, one gold accent shared with the
   live charts. Component contracts (.pos-*, .returns-stats,
   .chart-*) are consumed by the data JS — keep class names.
   ============================================================ */

:root {
  --bg:        #0a0d12;
  --bg-2:      #0c1017;
  --panel:     #0f141c;
  --panel-2:   #111722;
  --ink:       #e8eaee;
  --ink-dim:   #a9b2bf;
  --ink-mute:  #66717f;
  --gold:      #caa46a;
  --gold-soft: #b39058;
  --teal:      #7fb8c9;
  --copper:    #c3744a;
  --up:        #79b89a;
  --line:      #1d2531;
  --line-soft: #151c26;

  --sans: "Inter", -apple-system, system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max:  1120px;
  --gut:  clamp(20px, 4vw, 56px);

  /* iOS standalone PWA — paint into the home-indicator area */
  background: var(--bg);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Quieter native tap flash; we use our own hover/active styles */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a { color: inherit; text-decoration: none; }

::selection { background: rgba(202, 164, 106, .25); }

/* Keyboard / switch-control focus ring (separate from hover) */
:focus { outline: none; }
:focus-visible {
  outline: 1.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link — invisible until a keyboard / VoiceOver user lands on it */
.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ============================ NAV ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 var(--gut);
  /* Honour the iOS notch / Dynamic Island in both portrait and landscape */
  padding-left:  max(var(--gut), env(safe-area-inset-left));
  padding-right: max(var(--gut), env(safe-area-inset-right));
  padding-top: env(safe-area-inset-top);
  height: calc(60px + env(safe-area-inset-top));
  background: rgba(10, 13, 18, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  min-width: 0;
}
.brand .mark { width: 26px; height: 26px; color: var(--gold); flex: none; }
.wordmark {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  color: var(--ink-dim);
}
.links > a { transition: color .15s ease; }
.links > a:hover { color: var(--ink); }
.nav-gh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 500;
  transition: border-color .15s ease, background .15s ease;
}
.nav-gh:hover { border-color: var(--gold); background: rgba(202, 164, 106, .06); color: var(--ink); }
.lang {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  white-space: nowrap;
}
.lang a:hover { color: var(--ink); }
.lang-on { color: var(--gold); }
.lang-sep { margin: 0 6px; }

/* On phones, hide section anchors; keep GitHub + language reachable */
@media (max-width: 800px) {
  .links > a:not(.nav-gh) { display: none; }
  .nav-gh span { display: none; }
  .nav-gh { padding: 7px 9px; }
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(84px, 12vh, 150px) var(--gut) clamp(64px, 9vh, 110px);
  padding-left:  max(var(--gut), env(safe-area-inset-left));
  padding-right: max(var(--gut), env(safe-area-inset-right));
}
#fabric-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
  pointer-events: none;
}
.hero::after {
  /* settle the animation under the stat row so text stays readable */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(10,13,18,0) 0%, rgba(10,13,18,.9) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
}
h1 {
  font-weight: 650;
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 22px;
  max-width: 860px;
}
.lede {
  max-width: 660px;
  color: var(--ink-dim);
  font-size: clamp(15px, 1.5vw, 17px);
  margin: 0 0 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 54px; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cta.primary { background: var(--gold); color: #0b0d10; }
.cta.primary:hover { background: #d8b57c; }
.cta.ghost { border: 1px solid var(--line); color: var(--ink-dim); }
.cta.ghost:hover { border-color: var(--gold); color: var(--ink); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  max-width: 860px;
  border-top: 1px solid var(--line);
}
.hero-stats > div { padding: 16px 20px 2px 0; border-top: 1px solid transparent; }
.hero-stats dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 5px;
}
.hero-stats dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); margin-top: 12px; }
  .hero-cta { margin-bottom: 40px; }
  h1 br { display: none; }  /* let narrow screens wrap naturally */
}

/* ============================ SECTIONS ============================ */
.section {
  padding: clamp(68px, 9vw, 104px) var(--gut);
  /* Honour landscape notch on the section edges too */
  padding-left:  max(var(--gut), env(safe-area-inset-left));
  padding-right: max(var(--gut), env(safe-area-inset-right));
  border-bottom: 1px solid var(--line-soft);
}
.section-alt { background: var(--bg-2); }
.section-head { max-width: var(--max); margin: 0 auto 44px; }
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 14px;
}
h2 {
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  max-width: 860px;
}
.sub {
  max-width: 720px;
  color: var(--ink-dim);
  font-size: clamp(14.5px, 1.4vw, 16px);
  margin: 0;
}
@media (max-width: 680px) {
  .section-head { margin-bottom: 32px; }
}

figcaption {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  text-align: center;
  margin: 16px auto 0;
  max-width: 640px;
  letter-spacing: .02em;
}

/* ============================ RETURNS STATS ============================ */
.returns-stats {
  max-width: var(--max);
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line-soft);
  overflow: hidden;
}
.returns-stats[hidden] { display: none; }
.returns-stats > div { background: var(--panel); padding: 20px 24px; }
.returns-stats > div dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.returns-stats > div dd {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: -0.01em;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.rs-desk { color: var(--gold); }
.rs-sp   { color: var(--teal); }
.rs-up   { color: var(--up); }
.rs-down { color: var(--copper); }
@media (max-width: 640px) {
  .returns-stats > div { padding: 14px 14px; }
  .returns-stats > div dt { letter-spacing: .1em; font-size: 9.5px; }
}

/* ============================ CHARTS ============================ */
.chart-figure {
  max-width: var(--max);
  margin: 0 auto;
}
.returns-chart,
.reviews-chart {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, #0d1420 0%, #0a0e16 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: visible;
}
.returns-chart { height: 360px; }  /* JS resizes to fit the data */
.reviews-chart { height: 240px; }
.chart-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  text-align: right;
  margin-top: 12px;
  letter-spacing: .02em;
}

.disclosure {
  max-width: var(--max);
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-mute);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ============================ POSITIONS TABLE ============================ */
.positions-wrap {
  max-width: var(--max);
  margin: 0 auto;
}
#positions-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}
.pos-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(160px, 1.9fr) 0.72fr 0.72fr;
  align-items: center;
  gap: 18px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}
.pos-row:not(.pos-head):hover { background: rgba(202, 164, 106, .025); }
.pos-row:last-child { border-bottom: 0; }
.pos-head {
  background: var(--panel-2);
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding-top: 11px;
  padding-bottom: 11px;
}
.pos-symbol { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pos-tkr { font-weight: 500; color: var(--ink); font-size: 14px; letter-spacing: .04em; }
.pos-dir {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid currentColor;
  opacity: .9;
}
.pos-dir-long  { color: var(--teal); }
.pos-dir-short { color: var(--copper); }
.pos-vehicle { color: var(--ink-mute); font-size: 11px; }
.pos-weight {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.pos-bar {
  display: block;
  height: 5px;
  background: var(--line-soft);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.pos-bar > span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-soft) 0%, var(--gold) 100%);
}
.pos-pct { font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.pos-pnl {
  font-variant-numeric: tabular-nums;
  text-align: right;
  letter-spacing: .02em;
}
.pos-pnl-up   { color: var(--up); }
.pos-pnl-down { color: var(--copper); }
.pos-hold {
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink-mute);
}
/* Header cells stay neutral even though data cells recolour. */
.pos-head .pos-pnl,
.pos-head .pos-hold { color: var(--ink-mute); }
.pos-footer {
  padding: 12px 22px;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: .04em;
  border-top: 1px solid var(--line-soft);
  background: var(--panel-2);
}
.pos-empty {
  padding: 36px 22px;
  text-align: center;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 13px;
}
#positions-meta {
  display: block;
  text-align: right;
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: .02em;
}

/* On phones, drop the weight bar so symbol / weight% / P&L / hold all fit. */
@media (max-width: 680px) {
  .pos-row { grid-template-columns: minmax(92px, 1.3fr) 0.8fr 0.85fr 0.7fr; gap: 10px; padding: 11px 12px; font-size: 12px; }
  .pos-tkr { font-size: 13px; }
  .pos-bar { display: none; }
  .pos-weight { display: block; text-align: right; }
  .pos-pct { min-width: 0; }
}

/* ============================ PIPELINE FIGURE ============================ */
.pipeline-figure {
  max-width: var(--max);
  margin: 0 auto 52px;
}
.pipeline-svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px 10px;
}
.pipeline-svg-mobile { display: none; max-width: 340px; margin: 0 auto; }
@media (max-width: 680px) {
  .pipeline-svg-desktop { display: none; }
  .pipeline-svg-mobile  { display: block; }
}

/* ============================ CAPABILITY GRID ============================ */
.cap-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 960px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cap-grid { grid-template-columns: 1fr; } }
.cap-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 24px 26px;
  transition: border-color .15s ease;
}
.cap-card:hover { border-color: #2b3646; }
.cap-card .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 12px;
}
.cap-card h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.cap-card p {
  font-size: 14px;
  color: var(--ink-dim);
  margin: 0;
  line-height: 1.62;
}
.cap-card code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--gold);
  background: rgba(202, 164, 106, .07);
  border: 1px solid rgba(202, 164, 106, .16);
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
}

/* ============================ SPEC SHEET ============================ */
.spec {
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}
.spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line-soft);
}
.spec-row:last-child { border-bottom: 0; }
.spec-k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 3px;
}
.spec-v {
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.62;
}
@media (max-width: 680px) {
  .spec-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
}

/* ============================ PRINCIPLES ============================ */
.principles {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .principles { grid-template-columns: 1fr; } }
.principles article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 24px 26px;
}
.principles h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  line-height: 1.4;
}
.pr-num {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: 12px;
}
.principles p {
  font-size: 14px;
  color: var(--ink-dim);
  margin: 0;
  line-height: 1.62;
}

/* ============================ FOOTER ============================ */
.foot {
  padding: 44px var(--gut) calc(44px + env(safe-area-inset-bottom));
  padding-left:  max(var(--gut), env(safe-area-inset-left));
  padding-right: max(var(--gut), env(safe-area-inset-right));
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
@media (max-width: 720px) { .foot-inner { grid-template-columns: 1fr; text-align: center; gap: 14px; } }
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.foot-brand span { color: var(--ink); }
.foot-copy {
  color: var(--ink-mute);
  font-size: 12.5px;
  margin: 0;
  max-width: 460px;
}
@media (max-width: 720px) { .foot-copy { margin: 0 auto; } }
.foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (max-width: 720px) { .foot-right { align-items: center; } }
.foot-gh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 12px;
  transition: border-color .15s ease, color .15s ease;
}
.foot-gh:hover { border-color: var(--gold); color: var(--ink); }
.foot-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  margin: 0;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ============================ PREMISE LEDGER (v20) ============================ */
.ledger {
  max-width: var(--max);
  margin: 0 auto;
}
.ledger-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 0 0 28px;
  padding: 0;
}
.ledger-stats[hidden] { display: none; }
.ledger-stats > div { background: var(--panel); padding: 18px 22px; }
.ledger-stats dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 6px;
}
.ledger-stats dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 22px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .ledger-stats { grid-template-columns: repeat(3, 1fr); }
  .ledger-stats > div { padding: 14px 14px; }
  .ledger-stats dd { font-size: 18px; }
}
@media (max-width: 460px) { .ledger-stats { grid-template-columns: repeat(2, 1fr); } }

.band-title, .spec-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 10px;
}
.band-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--line-soft);
  margin-bottom: 12px;
}
.band-seg { display: block; height: 100%; }
.band-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--ink-dim); }
.band-key b { color: var(--ink); font-weight: 500; font-family: var(--mono); font-size: 12.5px; margin-left: 2px; }
.band-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.band-strong       { background: var(--up); }
.band-constructive { background: var(--teal); }
.band-contested    { background: var(--gold); }
.band-weakening    { background: var(--copper); }
.band-proposed     { background: #3a4656; }
.band-rejected     { background: #262e3a; }
.band-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  color: #0b0d10;
  background: var(--ink-mute);
  vertical-align: 1px;
}
.band-tag.band-proposed, .band-tag.band-rejected { color: var(--ink-dim); }

.ledger-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  margin: 28px 0 0;
}
@media (max-width: 900px) { .ledger-grid { grid-template-columns: 1fr; } }
.ledger-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 24px 22px;
}
.ledger-card h3 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin: 0 0 16px;
}
.spec-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 12.5px; color: var(--ink-mute); }
.spec-kind { color: var(--ink-dim); }
.spec-statement {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: -0.005em;
}
.legs { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 13px; }
.legs td { padding: 8px 10px 8px 0; border-top: 1px solid var(--line-soft); color: var(--ink-dim); vertical-align: top; }
.legs tr:first-child td { border-top: 0; }
.leg-series { font-family: var(--mono); color: var(--ink); white-space: nowrap; font-size: 12.5px; }
.leg-h { font-family: var(--mono); color: var(--ink-mute); white-space: nowrap; font-size: 12px; }
.leg-pol { white-space: nowrap; color: var(--up); font-size: 12.5px; }
.leg-pol.leg-dis { color: var(--copper); }
.spec-dissent { font-size: 13.5px; color: var(--ink-dim); margin: 0; line-height: 1.6; }

.moves { list-style: none; margin: 0; padding: 0; }
.moves li { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.moves li:first-child { border-top: 0; padding-top: 0; }
.mv-date { font-family: var(--mono); font-size: 11.5px; color: var(--ink-mute); padding-top: 3px; white-space: nowrap; }
.mv-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.mv-statement { font-size: 13.5px; color: var(--ink-dim); line-height: 1.5; }
.mv-change { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mv-arrow { color: var(--ink-mute); font-size: 12px; }
.mv-basis { font-size: 12px; color: var(--ink-mute); }
.ledger-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); margin: 14px 0 0; }

/* Explanatory rows under the ledger reuse .spec; a tighter variant */
.ledger-how { margin-top: 44px; }

/* Quieter hero stat for the live count */
.hero-stats dd .live-n { font-family: var(--mono); color: var(--ink); }
