/* Flappy Robin: dark-only page, tokens from DESIGN.md */
:root {
  --ink: #110E08;
  --ledger: #1D1A14;
  --rule: #35322D;
  --chalk: #FFFFFF;
  --smoke: #B4B0AA;
  --ash: #888784;
  --neon: #CCFF00;
  --up: #00C805;
  --down: #FF5000;

  --f-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', monospace;

  --t-xs: 0.8rem;     /* 12.8 */
  --t-s: 1rem;        /* 16 */
  --t-m: 1.25rem;     /* 20 */
  --t-l: 1.5625rem;   /* 25 */
  --t-xl: 1.953rem;   /* 31.25 */
  --t-xxl: 2.441rem;  /* 39 */

  --top-h: 56px;
  --gutter: 40px;
  --side: minmax(220px, 280px);
  --gap: clamp(32px, 4.5vw, 80px);
  --row: 36px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font: 400 var(--t-s)/1.5 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100svh;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
code, .mono { font-family: var(--f-mono); font-weight: 400; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.k { display: block; color: var(--ash); font-size: var(--t-xs); line-height: 1.4; }

/* ── one column system for header, play, how it works and footer ──
   left 220–280 | game: widest bezel the height allows (chrome 14 × 48 px) | rail 220–280 */
.cols {
  --stage-track: calc((100svh - var(--top-h) - 24px - 48px) * 0.5625 + 14px);
  display: grid;
  grid-template-columns: var(--side) minmax(0, var(--stage-track)) var(--side);
  justify-content: center;
  column-gap: var(--gap);
  padding-inline: var(--gutter);
}

/* ── header ─────────────────────────────────────────── */
.top { height: var(--top-h); align-items: center; border-bottom: 1px solid var(--rule); }
.brand { grid-column: 1 / 3; justify-self: start; display: inline-flex; align-items: center; gap: 12px; }
.brand img { image-rendering: pixelated; width: 32px; height: 32px; }
.wordmark { display: block; width: 160px; height: 14px; color: var(--chalk); }
.nav { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 28px; color: var(--smoke); }
.nav a { transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--chalk); }

/* ── play: trading pane ─────────────────────────────── */
.play {
  height: calc(100svh - var(--top-h));
  min-height: 600px;
  grid-template-rows: minmax(0, 1fr);
  padding-block: 12px;
}
.side { align-self: center; height: var(--bezel-h, 816px); min-height: 0; display: flex; flex-direction: column; }

/* left column: CA and the one line on top, scores and controls at the foot (mirrors the rail) */
.ca-block { display: grid; gap: 8px; }
.scores { display: flex; gap: 40px; }
.scores dt { color: var(--ash); font-size: var(--t-xs); }
.scores dd { font-size: var(--t-l); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.scores dd.is-new { animation: bump .5s var(--ease-out); }
@keyframes bump { 30% { transform: translateY(-4px); } }
.left-foot { margin-top: auto; display: grid; gap: 20px; }
.lede { margin-top: 20px; color: var(--smoke); max-width: 26ch; text-wrap: balance; }
.controls { display: flex; align-items: center; gap: 12px; }
[data-game="none"] .left-foot { visibility: hidden; }
.hint { color: var(--ash); font-size: var(--t-xs); }
.hint .touch { display: none; }
@media (pointer: coarse) { .hint .touch { display: inline; } .hint .fine { display: none; } }
.mute {
  width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; flex: none;
  color: var(--smoke); border: 1px solid var(--rule); transition: color .15s, border-color .15s;
}
.mute:hover { color: var(--chalk); border-color: var(--ash); }
.mute svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.mute .spk { fill: currentColor; stroke: none; }
.mute .cross { display: none; }
.mute[data-muted="true"] .wave { display: none; }
.mute[data-muted="true"] .cross { display: inline; }

/* CA field: the same box before and after the address exists, so nothing moves */
.ca-field {
  width: 100%; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 6px 0 20px; border-radius: 999px;
  background: var(--ledger); border: 1px solid var(--rule);
  text-align: left;
}
.ca-copy { transition: border-color .15s; }
.ca-copy:hover { border-color: var(--ash); }
.ca-addr { font-size: var(--t-m); color: var(--chalk); letter-spacing: -0.01em; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ca-action {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; min-width: 80px; padding: 0 16px; border-radius: 999px;
  background: var(--neon); color: var(--ink); font-weight: 600; font-size: 0.875rem;
}
.ca-copy.is-copied .ca-action::before {
  content: ''; width: 10px; height: 6px; margin-top: -3px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg);
}
.ca-field.is-soon .ca-addr { color: var(--ash); }
.ca-field.is-soon .ca-action { background: none; color: var(--ash); font-weight: 500; min-width: 0; }

/* ── stage ─────────────────────────────────────────── */
.stage-col { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; min-width: 0; }
.stage-sizer { grid-area: 1 / 1; align-self: stretch; justify-self: stretch; visibility: hidden; pointer-events: none; min-height: 0; }
.bezel {
  grid-area: 1 / 1;
  position: relative;
  padding: 6px 6px 0;
  border-radius: 20px;
  background: var(--ledger);
  border: 1px solid var(--rule);
}
.screen {
  position: relative; border-radius: 14px; overflow: hidden; background: #0B0906;
  touch-action: none; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.screen:focus-visible { outline-offset: 3px; }
.screen canvas { display: block; width: 432px; height: 768px; image-rendering: pixelated; image-rendering: crisp-edges; }

/* boot overlay */
.boot {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--ink);
  background-image:
    linear-gradient(var(--ledger) 1px, transparent 1px),
    linear-gradient(90deg, var(--ledger) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
  transition: opacity .2s ease-out;
  cursor: default;
}
.boot.is-leaving { opacity: 0; }
.boot-inner { width: min(220px, 78%); display: grid; gap: 22px; justify-items: start; }
.boot-bar { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; width: 100%; }
.boot-bar i { aspect-ratio: 1; background: var(--rule); }
.boot-bar i.on { background: var(--chalk); }
.boot-checks { display: grid; gap: 10px; }
.boot-checks li { display: flex; align-items: center; gap: 12px; color: var(--ash); font-weight: 500; font-variant-numeric: tabular-nums; }
.boot-checks i { position: relative; width: 14px; height: 14px; flex: none; }
.boot-checks i::before { content: ''; position: absolute; inset: 4px; background: var(--rule); }
.boot-checks li[data-state="active"] { color: var(--chalk); }
.boot-checks li[data-state="active"] i::before { background: var(--chalk); animation: blink 1.2s steps(2, jump-none) infinite; }
.boot-checks li[data-state="ok"] { color: var(--chalk); }
.boot-checks li[data-state="ok"] i::before {
  inset: 2px 1px 5px 3px; background: none;
  border-left: 2px solid var(--neon); border-bottom: 2px solid var(--neon); transform: rotate(-45deg);
}
.boot-checks li[data-state="fail"] { color: var(--down); }
.boot-checks li[data-state="fail"] i::before, .boot-checks li[data-state="fail"] i::after {
  content: ''; position: absolute; inset: 6px 0 auto; height: 2px; background: var(--down); transform: rotate(45deg);
}
.boot-checks li[data-state="fail"] i::after { transform: rotate(-45deg); }
@keyframes blink { 50% { opacity: 0.25; } }
.boot-msg { display: grid; gap: 14px; justify-items: start; width: 100%; }
.boot-title { font-weight: 500; color: var(--chalk); }
.boot[data-mode="refused"] .boot-title { color: var(--down); }
.boot-detail { width: 100%; color: var(--ash); font-size: var(--t-xs); }
.boot-detail summary { cursor: pointer; width: max-content; list-style: none; }
.boot-detail summary::-webkit-details-marker { display: none; }
.boot-detail summary::after { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.boot-detail[open] summary::after { transform: rotate(-135deg); margin-bottom: 0; }
.boot-detail summary:hover { color: var(--smoke); }
.boot-detail p { margin-top: 8px; color: var(--smoke); overflow-wrap: anywhere; max-height: 9em; overflow: auto; }
.boot[data-mode="stopped"] { background: rgba(17, 14, 8, 0.88); background-image: none; }
.boot[data-mode="stopped"] .boot-bar, .boot[data-mode="stopped"] .boot-checks { display: none; }
.boot-empty { display: none; place-items: center; }
.boot-empty img { width: 64px; height: 64px; image-rendering: pixelated; }
.boot[data-mode="unpublished"] .boot-inner { display: none; }
.boot[data-mode="unpublished"] .boot-empty { display: grid; }
.btn-ghost {
  height: 32px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule); color: var(--chalk); font-weight: 500; font-size: var(--t-xs);
}
.btn-ghost:hover { border-color: var(--ash); }

/* chin + verified chip */
.chin { position: relative; height: 40px; display: flex; align-items: center; justify-content: center; }
.verified {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px;
  color: var(--ash); font-size: var(--t-xs); font-weight: 500; transition: color .15s, background-color .15s;
}
.verified .chk { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; display: none; }
.verified[data-state="ok"] { color: var(--smoke); }
.verified[data-state="ok"] .chk { display: block; stroke: var(--neon); }
.verified[data-state="ok"]:hover, .verified[aria-expanded="true"] { color: var(--chalk); background: rgba(255, 255, 255, 0.06); }
.verified[data-state="refused"], .verified[data-state="stopped"] { color: var(--down); }

.pop {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  width: min(320px, calc(100vw - 32px)); z-index: 5;
  padding: 16px; border-radius: 14px;
  background: var(--ledger); border: 1px solid var(--rule);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  text-align: left;
}
.facts { display: grid; gap: 10px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.facts dt { color: var(--ash); font-size: var(--t-xs); white-space: nowrap; }
.facts dd { font-size: var(--t-xs); color: var(--chalk); text-align: right; font-variant-numeric: tabular-nums; }
.facts a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.facts a:hover { text-decoration-color: var(--chalk); }
.btn-check {
  margin-top: 16px; width: 100%; height: 36px; border-radius: 999px;
  border: 1px solid var(--rule); font-weight: 500; font-size: var(--t-xs);
}
.btn-check:hover:not(:disabled) { border-color: var(--ash); }
.btn-check:disabled { color: var(--ash); }
.check-result { margin-top: 10px; min-height: 1.4em; font-size: var(--t-xs); color: var(--smoke); text-align: center; }
.check-result[data-state="ok"] { color: var(--chalk); }
.check-result[data-state="ok"]::before {
  content: ''; display: inline-block; width: 9px; height: 5px; margin: 0 8px 3px 0;
  border-left: 2px solid var(--neon); border-bottom: 2px solid var(--neon); transform: rotate(-45deg);
}
.check-result[data-state="bad"] { color: var(--down); }

/* ── rail: stats on top, the tape at the foot ─────── */
.rail { position: relative; }
.live { position: absolute; right: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--ash); font-size: var(--t-xs); font-weight: 500; line-height: 1.4; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.live[data-state="live"] { color: var(--smoke); }
.live[data-state="live"] i { background: var(--neon); box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.14); }
.live[data-state="offline"] i { background: var(--ash); }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 24px 16px; }
.stats dt { color: var(--ash); font-size: var(--t-xs); line-height: 1.4; }
.stats dd { margin-top: 2px; font-size: var(--t-m); font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.stats small { color: var(--ash); font-size: var(--t-xs); font-weight: 400; }
.st-block { grid-column: 1 / -1; }
.st-block dd { font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.02em; }

/* odometer: digit windows taller than the glyphs, so a neighbour never peeks in */
.odo { display: flex; height: 1.2em; line-height: 1.2; overflow: hidden; color: var(--chalk); }
.odo-d { display: inline-block; height: 1.2em; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 17%, #000 83%, transparent); mask-image: linear-gradient(transparent, #000 17%, #000 83%, transparent); }
.odo-s { display: flex; flex-direction: column; transition: transform 160ms var(--ease-out); }
.odo-s b { font-weight: inherit; height: 1.2em; line-height: 1.2; }
.odo-sep { width: 0.3em; }

/* tape: fixed slots with hairlines down to the bezel's foot, newest on top (rail.mjs sets --fit-rows) */
.tape {
  --rows: var(--fit-rows, 8);
  margin-top: auto; flex: none; height: calc(var(--rows) * var(--row) + 1px); overflow: hidden;
  border-top: 1px solid var(--rule);
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--row) - 1px), var(--rule) calc(var(--row) - 1px) var(--row));
}
.ev {
  height: var(--row); display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; column-gap: 8px; align-items: center;
  font-size: var(--t-xs); line-height: 1; padding-bottom: 1px;
  animation: ev-in .15s var(--ease-out);
}
.ev-mark { color: var(--ash); font-size: 0.625rem; text-align: center; }
.ev[data-kind="buy"] .ev-mark { color: var(--up); }
.ev[data-kind="sell"] .ev-mark { color: var(--down); }
.ev[data-kind="launch"] .ev-mark, .ev[data-kind="graduated"] .ev-mark { color: var(--chalk); }
.ev-sym { min-width: 0; color: var(--chalk); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-val { color: var(--smoke); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
@keyframes ev-in { from { transform: translateY(-8px); opacity: 0; } }

/* ── how it works ──────────────────────────────────── */
.how { padding-block: 56px; border-top: 1px solid var(--rule); align-items: start; }
.how-head { display: grid; gap: 8px; justify-items: start; }
.how h2 { font-size: var(--t-m); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.text-link { color: var(--smoke); font-size: var(--t-xs); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
.text-link:hover { color: var(--chalk); text-decoration-color: var(--chalk); }
.steps { grid-column: 2 / 4; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; }
.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 4px; align-content: start; }
.steps .n { grid-row: span 2; color: var(--ash); font-variant-numeric: tabular-nums; font-weight: 500; line-height: 1.5; }
.steps b { font-weight: 600; }
.steps span:last-child { color: var(--smoke); font-size: var(--t-xs); }

/* ── footer ────────────────────────────────────────── */
.foot { padding-block: 24px 32px; border-top: 1px solid var(--rule); color: var(--ash); font-size: var(--t-xs); row-gap: 8px; }
.foot p:last-child { grid-column: 2 / 4; justify-self: end; text-align: right; }

.dev-badge {
  position: fixed; right: 16px; bottom: 16px; z-index: 20;
  padding: 6px 12px; border-radius: 999px;
  background: var(--ink); border: 1px solid var(--down); color: var(--down);
  font-size: var(--t-xs); font-weight: 500;
}

/* ── narrower desktop ──────────────────────────────── */
@media (max-width: 1279px) {
  :root { --gutter: 28px; --side: minmax(220px, 250px); --gap: 32px; }
  .cols { grid-template-columns: var(--side) minmax(0, 1fr) var(--side); }
  .ca-addr { font-size: 1.125rem; }
  .ca-field { padding-left: 16px; }
  .ca-action { min-width: 72px; padding: 0 14px; }
}

/* ── mobile / tablet ───────────────────────────────── */
@media (max-width: 1099px) {
  :root { --top-h: 52px; --gutter: 16px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .top { display: flex; justify-content: space-between; }
  .wordmark { width: 120px; height: 10.5px; }
  .play {
    height: auto; min-height: 0; display: flex; flex-direction: column; gap: 20px;
    padding-block: 12px 40px;
  }
  .stage-col { order: 1; display: flex; justify-content: center; }
  .screen canvas { width: 288px; height: 512px; }
  .stage-sizer { position: absolute; left: 0; right: 0; top: 0; height: calc(100svh - var(--top-h) - 120px); min-height: 360px; }
  .bezel { margin: 0 auto; }
  .side { height: auto; align-self: center; width: 100%; max-width: max(var(--bezel-w, 100%), 358px); }
  .side-left { order: 2; gap: 20px; }
  .ca-addr { font-size: var(--t-m); }
  .scores { gap: 32px; }
  .left-foot { margin: 0; display: flex; align-items: end; justify-content: space-between; }
  .lede, .hint { display: none; }
  .rail { order: 3; padding-top: 20px; border-top: 1px solid var(--rule); }
  .live { position: static; margin-bottom: 14px; }
  .stats { grid-template-columns: auto auto auto auto; gap: 0 12px; }
  .st-block { grid-column: auto; }
  .st-block dd, .stats dd { font-size: var(--t-s); font-weight: 500; letter-spacing: 0; }
  .stats dt { margin-bottom: 2px; }
  .tape { --rows: 1; margin-top: 12px; flex: none; height: calc(var(--row) + 1px); }
  .how { padding-block: 40px; row-gap: 24px; }
  .steps { grid-column: 1; grid-template-columns: 1fr; row-gap: 20px; }
  .foot { padding-block: 24px 32px; }
  .foot p:last-child { grid-column: 1; justify-self: start; text-align: left; }
}
@media (max-width: 1099px) and (min-width: 600px) {
  .how { grid-template-columns: 200px minmax(0, 1fr); column-gap: 32px; max-width: calc(var(--bezel-w, 600px) + 2 * var(--gutter)); margin-inline: auto; }
  .steps { grid-column: 2; }
}

/* ── docs ──────────────────────────────────────────── */
.docs-cols { display: grid; grid-template-columns: 200px minmax(0, 68ch); column-gap: 80px; justify-content: center; padding-inline: var(--gutter); }
.page-docs .top { grid-template-columns: 200px minmax(0, 68ch); column-gap: 80px; }
.page-docs .brand { grid-column: 1 / 2; }
.page-docs .nav { grid-column: 2; }
.docs { padding-block: 16px 112px; }
.toc { position: sticky; top: 32px; align-self: start; padding-top: 64px; }
.toc ol { display: grid; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 5px 0 5px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ash); font-size: var(--t-xs); transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--chalk); }
.toc a.is-current { color: var(--chalk); border-left-color: var(--chalk); }
.prose section { padding-top: 56px; scroll-margin-top: 16px; }
.prose h2 { font-size: var(--t-l); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 16px; }
.prose p, .prose li { color: var(--smoke); }
.prose p + p { margin-top: 12px; }
.prose p + table, .prose p + .table-wrap, .prose table + p, .prose .table-wrap + p, .prose ol + p, .prose ul + p,
.prose p + ol, .prose p + ul, .prose table + ul, .prose .table-wrap + .table-wrap { margin-top: 20px; }
.prose b { color: var(--chalk); font-weight: 500; }
.prose code { font-size: 0.875em; color: var(--chalk); overflow-wrap: anywhere; }
.muted, .prose .muted { color: var(--ash); }
.prose .muted { font-size: var(--t-xs); }
.notice { display: flex; align-items: center; gap: 10px; margin: 20px 0 4px; color: var(--ash); font-size: var(--t-xs); }
.notice::before { content: ''; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--ash); }
a.inline { color: var(--chalk); text-decoration: underline; text-decoration-color: var(--ash); text-underline-offset: 3px; }
a.inline:hover { text-decoration-color: var(--chalk); }
.prose pre {
  margin: 12px 0 20px; padding: 16px 20px; overflow-x: auto;
  background: var(--ledger); border: 1px solid var(--rule); border-radius: 10px;
  font: 400 0.8125rem/1.7 var(--f-mono); color: var(--smoke); tab-size: 2;
}
.prose pre code { font-size: inherit; color: inherit; overflow-wrap: normal; white-space: pre; }
.prose table { width: 100%; border-collapse: collapse; }
.kv th { width: 1%; padding: 11px 32px 11px 0; text-align: left; vertical-align: baseline; white-space: nowrap; color: var(--ash); font-weight: 400; font-size: var(--t-xs); }
.kv td { padding: 11px 0; vertical-align: baseline; color: var(--chalk); overflow-wrap: anywhere; }
.kv tr + tr > * { border-top: 1px solid var(--rule); }
.facts-table td code, .facts-table td .mono { font-size: 0.8125rem; }
.table-wrap { overflow-x: auto; }
.grid th { padding: 0 20px 10px 0; text-align: left; color: var(--ash); font-weight: 400; font-size: var(--t-xs); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.grid td { padding: 11px 20px 11px 0; vertical-align: top; color: var(--smoke); font-size: 0.875rem; border-bottom: 1px solid var(--rule); }
.grid td:last-child, .grid th:last-child { padding-right: 0; }
.grid td code { font-size: 0.8125rem; }
.table-wrap .grid td code { overflow-wrap: normal; }
.table-wrap .grid td:first-child code { white-space: nowrap; }
.abi td:first-child code { color: var(--ash); }
.list { display: grid; gap: 10px; }
.list li { position: relative; padding-left: 20px; }
.list li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; background: var(--rule); }
.numbered { display: grid; gap: 10px; counter-reset: step; }
.numbered li { position: relative; padding-left: 28px; counter-increment: step; }
.numbered li::before { content: counter(step); position: absolute; left: 0; top: 0; color: var(--ash); font-variant-numeric: tabular-nums; font-weight: 500; }
#token .ca { margin-bottom: 12px; }
#token .ca-field { height: auto; min-height: 52px; padding-block: 6px; }
#token .ca-addr { font-size: 0.8125rem; }

@media (max-width: 1099px) {
  .docs-cols, .page-docs .top { grid-template-columns: minmax(0, 1fr); }
  .page-docs .top { display: flex; }
  .docs { padding-block: 0 72px; }
  .toc { display: none; }
  .prose section { padding-top: 44px; }
  .kv th { padding-right: 16px; }
  #token .ca-field { border-radius: 16px; padding-left: 16px; }
  #token .ca-addr { white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
}
/* three-column tables become stacked rows on phones */
@media (max-width: 599px) {
  .grid thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .grid, .grid tbody, .grid tr, .grid td { display: block; }
  .grid tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .grid tbody tr:first-child { border-top: 1px solid var(--rule); }
  .grid td { padding: 0; border: 0; }
  .grid td + td { margin-top: 4px; }
  .grid td:empty { display: none; }
  .table-wrap .grid td code { white-space: normal; overflow-wrap: anywhere; }
  .table-wrap .grid td:first-child code { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
