:root {
  --bg: #0a0c10;
  --surface: #11151c;
  --surface-2: #151a23;
  --line: #1e2530;
  --text: #e6edf3;
  --muted: #8b949e;
  --gold: #ffb224;
  --pass: #3fb950;
  --fail: #f85149;
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

header.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand b { color: var(--gold); }

nav.links { display: flex; gap: 20px; font-size: 0.85rem; }
nav.links a { color: var(--muted); }
nav.links a:hover { color: var(--text); text-decoration: none; }

.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 140%;
  background:
    radial-gradient(42% 55% at 18% 18%, rgba(255, 178, 36, 0.13), transparent 70%),
    radial-gradient(38% 48% at 85% 8%, rgba(63, 185, 80, 0.08), transparent 70%),
    radial-gradient(55% 60% at 55% 95%, rgba(56, 97, 251, 0.07), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero h1 .line2 { color: var(--gold); }

.hero p.sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 44ch;
  margin: 0 0 28px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.button {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.button.primary { background: var(--gold); color: #141000; border-color: var(--gold); }
.button.primary:hover { text-decoration: none; filter: brightness(1.08); }
.button.ghost { color: var(--text); }
.button.ghost:hover { text-decoration: none; border-color: var(--muted); }

.terminal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.terminal .bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.terminal .dot { width: 11px; height: 11px; border-radius: 50%; background: #2c333d; }
.terminal .dot.r { background: #f85149; }
.terminal .dot.y { background: #d29922; }
.terminal .dot.g { background: #3fb950; }

.terminal .title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.terminal pre {
  margin: 0;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.65;
  color: var(--text);
  overflow-x: auto;
  min-height: 300px;
  max-height: 420px;
  overflow-y: auto;
  white-space: pre;
}

#hero-terminal {
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal pre .ok { color: var(--pass); }
.terminal pre .anchor-line { color: var(--gold); }
.terminal pre .verdict { color: var(--pass); font-weight: 700; }
.terminal pre .prompt { color: var(--muted); }

.runit {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}

.runit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.runit-head h3 { margin: 0; font-size: 1.05rem; }

.runit-note {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.runit pre {
  margin: 0;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.7;
  color: var(--text);
  overflow-x: auto;
}

button.copy {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}

button.copy:hover { border-color: var(--gold); }

button.copy.done { color: var(--pass); border-color: var(--pass); }

section { padding: 88px 0; border-top: 1px solid var(--line); }

.kicker {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}

p.lede { color: var(--muted); max-width: 62ch; margin: 0 0 40px; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.card .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.card .big {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.card .big.gold { color: var(--gold); }

.card.wide { grid-column: span 2; }

.mainnet-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.mainnet-line a { color: var(--pass); }

.heartbeat {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.heartbeat .pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pass);
  animation: pulse 2.4s ease-out infinite;
}

.heartbeat .pulse.stale { background: var(--fail); animation: none; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(63, 185, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}

.readout {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.8;
  color: var(--muted);
}

.readout b { color: var(--text); font-weight: 500; }
.readout .pass { color: var(--pass); font-weight: 700; }

.spark { width: 100%; height: 72px; margin-top: 8px; }

.player {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 28px;
}

.player-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.chip {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
}

.chip-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip-value {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.chip-value.good { color: var(--pass); }
.chip-value.bad { color: var(--fail); }
.chip-value.gold { color: var(--gold); }

.player-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px;
  align-items: start;
}

#pipe { width: 100%; height: auto; }

.pnode rect {
  fill: var(--bg);
  stroke: var(--line);
  stroke-width: 1.5;
  transition: stroke 250ms ease, fill 250ms ease;
}

.pnode text {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  text-anchor: middle;
  transition: fill 250ms ease;
}

.pnode.done rect { stroke: var(--pass); }
.pnode.done text { fill: var(--text); }
.pnode.active rect { stroke: var(--gold); fill: #171207; }
.pnode.active text { fill: var(--gold); }
.pnode.bad rect { stroke: var(--fail); fill: #190b0b; }
.pnode.bad text { fill: var(--fail); }

.pedge {
  stroke: var(--line);
  stroke-width: 1.5;
  transition: stroke 250ms ease;
}

.pedge.done { stroke: var(--pass); }

.pedge.active {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 7 7;
  animation: edge-march 700ms linear infinite;
}

.pedge.bad {
  stroke: var(--fail);
  stroke-width: 2;
  stroke-dasharray: 7 7;
  animation: edge-march 700ms linear infinite;
}

@keyframes edge-march {
  to { stroke-dashoffset: -14; }
}

.step-kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.player-side h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 10px;
}

.player-side p { color: var(--muted); margin: 0 0 14px; min-height: 92px; }

.changed {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.changed li { padding: 3px 0; }
.changed li::before { content: "~ "; color: var(--gold); }

.player-nav { display: flex; gap: 10px; margin-bottom: 16px; }

.pbtn {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, opacity 150ms ease;
}

.pbtn:hover { border-color: var(--gold); color: var(--gold); }
.pbtn.primary { border-color: var(--gold); color: var(--gold); }
.pbtn.ghost { color: var(--muted); }
.pbtn:disabled { opacity: 0.35; cursor: default; }
.pbtn:disabled:hover { border-color: var(--line); color: var(--text); }

.player-dots { display: flex; gap: 8px; margin-bottom: 10px; }

.pdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  transition: background 200ms ease, border-color 200ms ease;
}

.pdot.on { background: var(--gold); border-color: var(--gold); }
.pdot.past { background: var(--line); }

.kbd-hint {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #4a5563;
}

.lede code, .runit-note code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

.halo-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

#halo { width: 100%; height: auto; display: block; }

.halo-tick { stroke-linecap: round; }
.halo-tick.contract { stroke: var(--gold); }
.halo-tick.eoa { stroke: var(--pass); }
.halo-tick.slot-present { stroke: #2f8f46; }
.halo-tick.slot-absent { stroke: #35414f; }
.halo-tick:hover { stroke: #ffffff; }

.halo-core { fill: var(--gold); }

.halo-ring-guide { fill: none; stroke: var(--line); stroke-dasharray: 2 6; }

.halo-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.halo-count {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--text);
  line-height: 1.1;
}

.halo-caption {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.halo-root {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--gold);
  margin-top: 8px;
}

.halo-footer { margin-top: 18px; display: grid; gap: 10px; justify-items: center; }

.halo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.halo-legend span { display: inline-flex; align-items: center; gap: 7px; }

.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.swatch.gold { background: var(--gold); }
.swatch.green { background: var(--pass); }
.swatch.dim { background: #2f8f46; }
.swatch.hollow { background: #35414f; }

.halo-detail {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 16px;
  min-height: 20px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.halo-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #4a5563;
  text-align: center;
}

.binary-divider {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #2a3340;
  letter-spacing: 0.3em;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  margin: 8px 0;
}

.gas-chips { margin-bottom: 22px; }

.gas-groups { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }

.ggroup { border-bottom: 1px solid var(--line); background: var(--surface); }
.ggroup:last-child { border-bottom: 0; }

.ghead {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 14px 18px 4px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  text-align: left;
}

.gchev {
  color: var(--muted);
  font-size: 1rem;
  transition: transform 200ms ease;
}

.ggroup.open .gchev { transform: rotate(90deg); color: var(--gold); }

.gname { flex: 1; }

.gpill {
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
  border: 1px solid var(--line);
}

.gpill.good { color: var(--pass); border-color: rgba(63, 185, 80, 0.4); }
.gpill.bad { color: var(--gold); border-color: rgba(255, 178, 36, 0.35); }

.gbars { padding: 4px 18px 12px; }

.gdetail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.ggroup.open .gdetail { max-height: 160px; }

.gdetail p {
  margin: 0;
  padding: 2px 18px 16px 44px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  max-width: 72ch;
}

.callout {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
  background: rgba(63, 185, 80, 0.05);
  border: 1px solid rgba(63, 185, 80, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
}

.callout-kicker {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pass);
}

.callout p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.65; max-width: 78ch; }

.costbox {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}

.costbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.costbox-head h3 { margin: 0; font-size: 1.05rem; }

.gwei-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

#gwei {
  width: 84px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 7px 10px;
  text-align: right;
}

#gwei:focus { outline: none; border-color: var(--gold); }

.live-tag {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pass);
  border: 1px solid rgba(63, 185, 80, 0.4);
  border-radius: 999px;
  padding: 2px 9px;
}

.cost-row {
  display: grid;
  grid-template-columns: 150px 130px 150px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.cost-row:last-child { border-bottom: 0; }

.cost-name { color: var(--text); }
.cost-gas { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.cost-eth { color: var(--gold); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.cost-detail { color: var(--muted); font-size: 0.72rem; }

.costbox-note { margin: 14px 0 0; color: var(--muted); font-size: 0.8rem; }

.bars { margin-top: 28px; }

.bar-row {
  display: grid;
  grid-template-columns: 220px 1fr 110px;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.bar-row .name { color: var(--muted); }
.bar-row .value { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }

.bar-track { background: var(--surface-2); border-radius: 4px; height: 14px; overflow: hidden; }

.bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--gold);
  width: 0;
  transition: width 900ms ease-out;
}

.bar-fill.sol { background: #39434f; }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; }

.tab {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 14px;
  cursor: pointer;
}

.tab.active { color: var(--gold); border-color: var(--gold); }

.findings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.finding {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.finding .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
}

.finding .fid { color: var(--muted); }

.badge {
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.64rem;
}

.badge.critical { background: rgba(248, 81, 73, 0.14); color: var(--fail); }
.badge.high { background: rgba(255, 178, 36, 0.14); color: var(--gold); }
.badge.medium { background: rgba(56, 139, 253, 0.14); color: #58a6ff; }
.badge.info { background: rgba(139, 148, 158, 0.14); color: var(--muted); }
.badge.status { background: rgba(63, 185, 80, 0.12); color: var(--pass); }

.finding h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.finding p { color: var(--muted); font-size: 0.88rem; margin: 0; }

footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 0;
}

.badge-wall { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding: 14px 0;
}

.marquee .track {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  animation: slide 30s linear infinite;
}

.marquee .track span { margin: 0 18px; }
.marquee .track .star { color: var(--gold); }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 520ms ease-out, transform 520ms ease-out; }
.reveal.in-view { opacity: 1; transform: none; }

.brand a { color: inherit; }
nav.links a.here { color: var(--gold); }

.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 88px;
  align-items: start;
}

.docs-side { position: sticky; top: 80px; }

.docs-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }

.docs-list a {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 7px 12px;
  border-radius: 7px;
  border: 1px solid transparent;
}

.docs-list a:hover { color: var(--text); text-decoration: none; }
.docs-list a.here { color: var(--gold); background: var(--surface); border-color: var(--line); }

.docs-note { color: #4a5563; font-size: 0.76rem; margin-top: 18px; line-height: 1.5; }

.docs-loading { color: var(--muted); font-family: var(--mono); font-size: 0.85rem; }

.mddoc { min-width: 0; line-height: 1.7; color: var(--muted); }

.mddoc h1, .mddoc h2, .mddoc h3 {
  font-family: var(--display);
  color: var(--text);
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
}

.mddoc h1 { font-size: 1.9rem; margin-top: 0.2em; }
.mddoc h2 { font-size: 1.35rem; }
.mddoc h3 { font-size: 1.05rem; }

.mddoc p { margin: 0 0 1em; max-width: 78ch; }
.mddoc li { margin: 0.3em 0; }

.mddoc code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

.mddoc pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text);
}

.mddoc pre code { background: none; border: 0; padding: 0; }

.mddoc table {
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  display: block;
  overflow-x: auto;
  margin: 0 0 1.2em;
}

.mddoc th, .mddoc td {
  border: 1px solid var(--line);
  padding: 7px 12px;
  text-align: left;
  color: var(--text);
  white-space: nowrap;
}

.mddoc th { color: var(--muted); text-transform: uppercase; font-size: 0.66rem; letter-spacing: 0.08em; }

.mddoc blockquote {
  border-left: 3px solid var(--gold);
  margin: 0 0 1em;
  padding: 2px 0 2px 16px;
  color: var(--muted);
}

@media (max-width: 880px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; }
  .docs-list { flex-direction: row; flex-wrap: wrap; }

  .hero .wrap { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .findings { grid-template-columns: 1fr; }
  .player-main { grid-template-columns: 1fr; }
  .player-side p { min-height: 0; }
  .bar-row { grid-template-columns: 130px 1fr 90px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  nav.links { gap: 10px; font-size: 0.78rem; }
  .bar-row { grid-template-columns: 96px 1fr 72px; }
  .cost-row { grid-template-columns: 1fr auto auto; }
  .cost-detail { grid-column: 1 / -1; }
  .gdetail p { padding-left: 18px; }
  .bar-row .name, .bar-row .value { font-size: 0.68rem; }
  h1 { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee .track, .heartbeat .pulse { animation: none; }
  .pedge.active, .pedge.bad { animation: none; }
  html { scroll-behavior: auto; }
}
