/* LGTM. The review bench: a near black photographic field, one lit object, one rail of live rows.
   Built to art/ref/reference.jpg. Two inks: cream on near black, hot orange for the state.

   ONE SCALE, no loose numbers anywhere in this file:
     type    16 / 18 / 20 / 24 / 32 / 48 / 64
     space   4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96
     surface 1 px hairline, 18 px radius, 24 px (tight) or 32 px of inner padding
   Every text colour below clears 4.5:1 on the surface it sits on. */

@font-face { font-family: Technor; src: url(/fonts/technor-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Technor; src: url(/fonts/technor-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Haskoy; src: url(/fonts/haskoy-var.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: Krypton; src: url(/fonts/krypton-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Krypton; src: url(/fonts/krypton-medium.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --page: #0a0b16;
  --page-2: #0d0f1c;
  --panel: #141726;
  --panel-2: #191d2e;
  --well: #0b0d18;
  --line: #262b3f;
  --line-soft: #1d2232;
  --ink: #f4f1e4;
  --body: #ced3e4;
  --muted: #a7b0ca;
  --dim: #929ab5;
  --accent: #f85840;
  --accent-ink: #1a0c08;
  --accent-ink-2: rgba(26, 12, 8, .88);
  --accent-hot: #ff6b52;
  --ember: #7a2a28;

  --display: Technor, "Trebuchet MS", sans-serif;
  --text: Haskoy, "Segoe UI", system-ui, sans-serif;
  --mono: Krypton, ui-monospace, "Cascadia Mono", monospace;

  --t1: 16px; --t2: 18px; --t3: 20px; --t4: 24px; --t5: 32px; --t6: 48px; --t7: 64px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --radius: 18px;
  --control: 48px;
  --container: 1760px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; background: var(--page); }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 var(--t2)/1.55 var(--text);
  font-synthesis: none;
  overflow-x: clip;            /* clip, never hidden: hidden freezes every sticky column */
  -webkit-font-smoothing: antialiased;
}
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; }
.wrap { width: min(100% - var(--s8), var(--container)); margin: 0 auto; }
@media (max-width: 900px) { .wrap { width: calc(100% - var(--s6)); } }

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* ---- type roles ---------------------------------------------------------- */
.lab {
  font-family: var(--display); font-weight: 500; font-size: var(--t1); line-height: 1.2;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.lab-a { color: var(--accent); }
.h-sec {
  font-family: var(--display); font-weight: 700; font-size: var(--t5); line-height: 1.1;
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0;
}
.h-blk {
  font-family: var(--display); font-weight: 500; font-size: var(--t3); line-height: 1.25;
  letter-spacing: 0.1em; text-transform: uppercase; margin: 0;
}
.mono { font-family: var(--mono); font-size: var(--t1); letter-spacing: 0; }
.txt { font-size: var(--t2); line-height: 1.55; color: var(--body); margin: 0; }
.txt + .txt { margin-top: var(--s4); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.acc { color: var(--accent); }
.num { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- top row: mark, nav and the two live figures all on one line ---------- */
.top {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: var(--s6); padding: var(--s5) 0;
}
.top + .rule { margin-bottom: 0; }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand b {
  font-family: var(--display); font-weight: 700; font-size: var(--t4); letter-spacing: 0.1em;
  line-height: 1; color: var(--ink);
}
.brand span { font-size: var(--t1); color: var(--dim); letter-spacing: 0.02em; line-height: 1.2; }
.nav { display: flex; gap: var(--s5); justify-self: center; }
.nav a {
  position: relative; text-decoration: none; padding: var(--s3) var(--s1) var(--s4);
  font-family: var(--display); font-weight: 500; font-size: var(--t1); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); transition: color .14s;
}
.nav a:hover { color: var(--ink); }
.nav a:active { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: var(--s2); width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; background: var(--accent);
}
.top-figs { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; }
.fig { display: flex; align-items: baseline; gap: var(--s2); white-space: nowrap; }
.fig b { font-family: var(--mono); font-weight: 600; font-size: var(--t3); line-height: 1.2; color: var(--ink); }
.fig span { font-size: var(--t1); color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2; }

/* ---- surfaces: one padding, one radius, one hairline --------------------- */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s6);
}
.panel-2 { background: var(--panel-2); }
.panel.tight { padding: var(--s5); }
a.panel { display: block; text-decoration: none; transition: border-color .14s; }
a.panel:hover { border-color: var(--accent); }
a.panel:active { transform: translateY(1px); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--control); padding: var(--s3) var(--s5);
  border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2);
  font-size: var(--t1); color: var(--muted); white-space: nowrap;
  transition: border-color .14s, color .14s, background .14s;
}
.chip:hover { border-color: var(--dim); color: var(--ink); }
.chip:active { background: var(--panel); }
.chip.on { border-color: var(--accent); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 52px; padding: 0 var(--s5); border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink); cursor: pointer; text-decoration: none;
  font-family: var(--display); font-weight: 500; font-size: var(--t1); letter-spacing: 0.12em;
  text-transform: uppercase; transition: background .14s, border-color .14s, transform .08s;
}
.btn:hover { border-color: var(--accent); background: var(--panel); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn.primary:hover { background: var(--accent-hot); border-color: var(--accent-hot); }
.btn[disabled], .btn[aria-disabled="true"] {
  background: transparent; border-color: var(--line); color: var(--muted); cursor: not-allowed;
}
.btn[disabled]:hover, .btn[aria-disabled="true"]:hover { border-color: var(--line); background: transparent; }
.btn[disabled] img, .btn[aria-disabled="true"] img { opacity: .75; }
.btn img { width: var(--s5); height: var(--s5); object-fit: contain; flex: none; }

.field {
  display: block; width: 100%; min-height: 56px; padding: var(--s4) var(--s5); border-radius: var(--s3);
  background: var(--well); border: 1px solid var(--line); color: var(--ink);
  font: 400 var(--t2)/1.4 var(--mono);
}
.field::placeholder { color: var(--dim); }
.field:focus { outline: none; border-color: var(--accent); }
.field[aria-invalid="true"] { border-color: var(--accent); }

/* ---- the bench (first screen): three columns that end on one line -------- */
.bench {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3.3fr);
  gap: var(--gutter); padding: var(--s5) 0 var(--s7); align-items: stretch;
}
.col { display: flex; flex-direction: column; gap: var(--gutter); min-width: 0; }
/* a column of summary beside a rail that runs long travels with it instead of leaving a hole */
.sticky-stack { position: sticky; top: var(--s5); display: flex; flex-direction: column; gap: var(--gutter); }
.col > .grow { flex: 1 1 auto; }

/* the repo under the light */
.stage { position: relative; display: flex; flex-direction: column; gap: var(--s4); }
.stage-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); }
.object { position: relative; display: grid; place-items: center; flex: 1 1 auto; min-height: 320px; max-height: 520px; }
.object canvas { width: 100%; height: 100%; }
.object .halo {
  position: absolute; width: 56%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(248,88,64,.22), rgba(248,88,64,0) 62%); filter: blur(12px);
}
.repo-name {
  font-family: var(--display); font-weight: 700; letter-spacing: 0.04em;
  font-size: var(--t6); line-height: 1.05; margin: 0; overflow-wrap: anywhere;
}
.repo-owner {
  font-family: var(--display); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-size: var(--t2); margin: 0 0 var(--s2);
}

/* the chamfered cards: the solid orange mass of the page, and the verdict that turns into one */
.verdict {
  --chamfer: 32px;
  background: var(--accent); color: var(--accent-ink); padding: var(--s5) var(--s6) var(--s6);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.verdict .lab { color: var(--accent-ink-2); }
.verdict-word {
  font-family: var(--display); font-weight: 700; letter-spacing: 0.02em; line-height: .92;
  font-size: var(--t7); margin: var(--s3) 0 0; overflow-wrap: anywhere;
}
.verdict.waiting { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); clip-path: none; }
.verdict.waiting .lab { color: var(--muted); }
.verdict.waiting .verdict-word { color: var(--muted); }
.verdict.changes { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.verdict.changes .lab { color: var(--accent); }
.verdict-note { margin: var(--s4) 0 0; font-size: var(--t1); line-height: 1.45; }
.verdict .verdict-note { color: var(--accent-ink-2); }
.verdict.waiting .verdict-note, .verdict.changes .verdict-note { color: var(--muted); }
.verdict-scores { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); margin-top: var(--s4); }
.verdict-scores b { font-family: var(--mono); font-weight: 600; font-size: var(--t3); }
.verdict-scores span { font-size: var(--t1); }
.stamp { width: 100%; max-width: 230px; margin-top: var(--s4); mix-blend-mode: multiply; }
#verdict-panel { display: grid; gap: var(--gutter); align-content: start; }

/* rubric */
.rubric { display: grid; gap: var(--s3); }
.rubric-row { display: grid; grid-template-columns: minmax(0, 1fr) 54px; align-items: center; gap: var(--s4); }
.rubric-row .lab { letter-spacing: 0.1em; }
.bar { grid-column: 1 / -1; height: 5px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.score { font-family: var(--mono); font-weight: 600; font-size: var(--t2); text-align: right; }

/* reviewer medallions: two tiles of one height, every line on the same row */
.readers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.reader {
  display: grid; grid-template-rows: auto auto auto auto; justify-items: center; text-align: center;
  gap: var(--s3); padding: var(--s5) var(--s4); border: 1px solid var(--line-soft);
  border-radius: var(--radius); background: var(--page-2);
}
.reader .disc {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #e9e2cc;
  box-shadow: 0 0 0 1px var(--line), 0 0 44px rgba(244,241,228,.12);
}
.reader .disc img { width: 100%; height: 100%; object-fit: cover; }
.reader.live .disc { box-shadow: 0 0 0 1px var(--accent), 0 0 48px rgba(248,88,64,.3); }
.reader b { font-family: var(--display); font-weight: 500; font-size: var(--t1); letter-spacing: 0.1em; text-transform: uppercase; }
.reader .mono { font-size: var(--t1); line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; min-height: 2.6em; }
.reader .state { font-size: var(--t1); color: var(--muted); align-self: end; }

/* ---- the live rail ------------------------------------------------------- */
#rail-panel { display: flex; flex-direction: column; }
.rail { position: relative; padding-left: var(--s6); flex: 1 1 auto; }
.rail::before {
  content: ""; position: absolute; left: 7px; top: var(--s2); bottom: var(--s2); width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--ember) 70%, transparent);
}
.rail-node {
  position: absolute; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--page); border: 1px solid var(--accent);
}
.rail-node--head { top: var(--s1); }
.rail-node--foot { bottom: var(--s1); background: var(--accent); }
.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
.feed { display: flex; flex-direction: column; gap: var(--s3); }
.note {
  position: relative; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: var(--s4) var(--s5); display: grid; grid-template-columns: var(--s6) minmax(0, 1fr); gap: var(--s3);
}
.note::before {
  content: ""; position: absolute; left: -25px; top: var(--s5); width: var(--s4); height: 1px; background: var(--line);
}
.note .who { width: var(--s6); height: var(--s6); border-radius: 50%; background: #e9e2cc; overflow: hidden; }
.note .who img { width: 100%; height: 100%; object-fit: cover; }
.note .who.mark { background: var(--panel-2); display: grid; place-items: center; }
.note .who.mark img { width: var(--s5); height: var(--s5); object-fit: contain; }
.note-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); margin-bottom: var(--s2); }
.tag {
  font-family: var(--mono); font-weight: 600; font-size: var(--t1); letter-spacing: .02em;
  padding: var(--s2) var(--s4); border-radius: var(--s2); background: var(--line-soft); color: var(--muted);
}
.tag.blocking { background: var(--accent); color: var(--accent-ink); }
.tag.praise { background: #22283a; color: var(--ink); }
.note a.where { font-family: var(--mono); font-size: var(--t1); color: var(--muted); overflow-wrap: anywhere; }
.note a.where:hover { color: var(--accent); }
.note p { margin: 0; font-size: var(--t2); line-height: 1.5; color: var(--body); overflow-wrap: anywhere; }
.note .code {
  margin-top: var(--s3); padding: var(--s4) var(--s5); border-radius: var(--s2); background: var(--well);
  border: 1px solid var(--line-soft);
  font: 400 var(--t1)/1.5 var(--mono); color: var(--muted); white-space: pre-wrap; word-break: break-all; tab-size: 2;
}
.caret { display: inline-block; width: 9px; height: 17px; background: var(--accent); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- bands: 48 px of air each side of the hairline, never a void over 96 -- */
.band { position: relative; padding: var(--s7) 0; }
.band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.band:first-of-type::before { display: none; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s6); }
.band-head .lab { text-align: right; }
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--gutter); }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--gutter); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--gutter); }

/* the step line: four nodes of one kind, four cells ruled to one height */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--s6); }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.step { position: relative; padding: var(--s6) var(--s5) var(--s3); border-left: 1px solid var(--line); }
.step::before {
  content: ""; position: absolute; left: -8px; top: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); border: 1px solid var(--accent);
}
.step h3 { font-family: var(--display); font-weight: 500; font-size: var(--t3); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 var(--s3); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: var(--s4); border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl th {
  font-family: var(--display); font-weight: 500; font-size: var(--t1); letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line);
}
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl a { text-decoration: none; }
.tbl a:hover { color: var(--accent); }

/* ---- the merge box (the links) ------------------------------------------- */
.merge { position: relative; padding: var(--s7) 0 var(--s8); }
.merge::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.merge-box {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s7);
  align-items: stretch;
}
.merge-side { display: flex; flex-direction: column; }
.merge-box .h-sec, .token-name { font-size: var(--t6); margin: var(--s3) 0 0; line-height: 1.05; }
.merge-checks { display: grid; gap: var(--s3); margin: var(--s5) 0 0; padding: 0; list-style: none; }
.merge-checks li {
  display: grid; grid-template-columns: var(--s5) minmax(0, 1fr); gap: var(--s3); align-items: start;
  font-size: var(--t2); color: var(--body);
}
.merge-checks img { width: var(--s5); height: var(--s5); object-fit: contain; margin-top: 2px; }
.token-name { font-family: var(--display); font-weight: 700; letter-spacing: .06em; }
.risk { margin: auto 0 0; padding-top: var(--s5); font-size: var(--t1); color: var(--muted); }
.ca {
  margin-top: var(--s4); padding: var(--s4) var(--s5); border-radius: var(--s3); background: var(--well);
  border: 1px solid var(--line);
  font: 400 var(--t2)/1.45 var(--mono); color: var(--ink); overflow-wrap: anywhere; user-select: all;
}
.ca.empty { color: var(--muted); user-select: none; }
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s4); }
.links .wide { grid-column: 1 / -1; }
.copied { font-size: var(--t1); color: var(--accent); min-height: var(--s5); margin: var(--s3) 0 0; }

/* ---- small parts --------------------------------------------------------- */
.kv { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: var(--s3) var(--s4); }
.kv dt { font-family: var(--display); font-weight: 500; font-size: var(--t1); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kv dd { margin: 0; font-size: var(--t2); overflow-wrap: anywhere; }
.kv dd.mono { font-size: var(--t1); }
.who-row { display: grid; grid-template-columns: var(--s7) minmax(0, 1fr); gap: var(--s3); align-items: center; }
.who-row img { width: var(--s7); height: var(--s7); border-radius: 50%; background: var(--panel-2); }
.checks { display: grid; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: var(--s5) minmax(0, 1fr); gap: var(--s3); font-size: var(--t1); color: var(--muted); align-items: start; }
.checks li.fail { color: var(--ink); }
.checks img { width: var(--s5); height: var(--s5); object-fit: contain; margin-top: 1px; }
.empty-note { color: var(--muted); font-size: var(--t2); margin: 0; }

/* an empty section is a finished block, not a dropped line */
.empty-plate {
  display: grid; justify-items: center; align-content: center; gap: var(--s4); text-align: center;
  min-height: 160px; padding: var(--s6); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
}
.empty-plate img { width: var(--s7); height: var(--s7); object-fit: contain; opacity: .8; }
.empty-plate p { margin: 0; font-size: var(--t2); color: var(--muted); max-width: 52ch; }

.err { color: var(--accent); font-size: var(--t1); min-height: var(--s5); margin: var(--s2) 0 0; }
.hide { display: none !important; }

/* ---- the premise card: the page's one solid orange mass, chamfered like his ---- */
.premise {
  --chamfer: 32px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  padding: var(--s5) var(--s6) var(--s6);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.premise .lab { color: var(--accent-ink-2); }
.premise h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: .02em; line-height: .95;
  font-size: var(--t6); margin: var(--s3) 0 0;
}
.premise p { margin: var(--s4) 0 0; font-size: var(--t2); line-height: 1.45; color: var(--accent-ink-2); }

/* the two blocks that close the left column share what is left of it: the orange mass centres
   its own text, the submit block keeps the filter on its bottom line */
#submit-box { display: flex; flex-direction: column; }
.submit-rules { margin-top: auto; padding-top: var(--s5); }

.facts { display: flex; flex-wrap: wrap; gap: var(--s3); }
.facts a.chip { text-decoration: none; }
.facts a.chip:hover { border-color: var(--accent); color: var(--ink); }

/* a row is always complete: with one coin the row takes the width, never a half grid */
#wall-rows, #wall { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.rows { display: grid; gap: var(--s3); }
.coinrow {
  display: grid; grid-template-columns: 168px minmax(0, 1fr) repeat(3, minmax(0, 150px));
  gap: var(--s5); align-items: center; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5);
  transition: border-color .14s;
}
.coinrow:hover { border-color: var(--accent); }
.coinrow .shot { width: 168px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--s3); background: var(--well); }
.coinrow b { display: block; font-family: var(--display); font-weight: 500; letter-spacing: .06em; font-size: var(--t4); }
.coinrow .sub { color: var(--muted); font-size: var(--t1); overflow-wrap: anywhere; }
.coinrow .cellnum { text-align: right; }
.coinrow .cellnum b { font-family: var(--mono); font-weight: 600; font-size: var(--t3); letter-spacing: 0; }
.coinrow .cellnum span { display: block; font-size: var(--t1); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* the pad's own three figures: a label and its value on one ruled row */
.ledger { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; padding: 0; }
.ledger dt, .ledger dd {
  display: flex; align-items: center; min-height: var(--control); margin: 0;
  padding: var(--s3) var(--s5); border-bottom: 1px solid var(--line-soft);
}
.ledger dt {
  font-family: var(--display); font-weight: 500; font-size: var(--t1); letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.ledger dd { justify-content: flex-end; font-family: var(--mono); font-weight: 600; font-size: var(--t2); color: var(--ink); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }

/* keyboard focus is the page's own, not the browser's grey box */
a:focus-visible, button:focus-visible, .coinrow:focus-visible, .chip:focus-visible, .field:focus-visible,
input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}

/* ---- widths -------------------------------------------------------------- */
@media (max-width: 1500px) {
  .bench { grid-template-columns: minmax(0, 3.4fr) minmax(0, 5fr) minmax(0, 3.6fr); }
  .pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1180px) {
  .bench { grid-template-columns: minmax(0, 1fr); }
  .sticky-stack { position: static; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s6); }
  .merge-box { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .top { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--s3); padding: var(--s4) 0 var(--s3); }
  .nav { grid-column: 1 / -1; justify-self: start; flex-wrap: wrap; gap: var(--s1) var(--s5); }
  .nav a { padding: var(--s2) var(--s1) var(--s3); }
  .object { max-height: 420px; }
  .repo-name, .premise h1, .verdict-word { font-size: var(--t5); }
  .merge-box .h-sec, .token-name { font-size: var(--t5); }
}
@media (max-width: 820px) {
  .band { padding: var(--s7) 0; }
  .cols-4, .cols-3, .cols-2, .steps, .readers, .links { grid-template-columns: minmax(0, 1fr); }
  /* stacked, one height per card buys nothing and leaves a hole under the short ones */
  .cols-4, .cols-3, .cols-2, .steps { grid-auto-rows: auto; }
  .steps { gap: var(--s5); }
  .steps::before { display: none; }
  .h-sec { font-size: var(--t4); }
  .merge-box .h-sec, .token-name { font-size: var(--t5); }
  .panel { padding: var(--s5); }
  .merge-box { padding: var(--s5); }
  .top-figs { gap: var(--s4); }
  .coinrow { grid-template-columns: 120px minmax(0, 1fr); row-gap: var(--s3); }
  .coinrow .shot { width: 120px; }
  .coinrow .cellnum {
    grid-column: 1 / -1; min-width: 0; display: flex; gap: var(--s4); align-items: baseline;
    justify-content: space-between; text-align: left;
  }
  .coinrow .cellnum span { display: inline; }
  .tbl th:nth-child(n+4), .tbl td:nth-child(n+4) { display: none; }
  .chip { white-space: normal; }
  .stage-top { flex-wrap: wrap; row-gap: var(--s3); }
}
@media (max-width: 420px) {
  .tag { white-space: normal; overflow-wrap: anywhere; }
  .note-head { row-gap: var(--s2); }
  .rail-head, .band-head { flex-wrap: wrap; row-gap: var(--s2); }
  .band-head .lab { text-align: left; }
  .lab { overflow-wrap: anywhere; }
  .repo-name, .premise h1, .merge-box .h-sec, .token-name { font-size: var(--t4); }
}
/* the narrowest phone: the pad figures read as label over value, one ruled pair each */
@media (max-width: 360px) {
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger dt { border-bottom: 0; padding-bottom: 0; min-height: 0; }
  .ledger dd { justify-content: flex-start; padding-top: var(--s1); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
