/*
 * Canary component styles, the Instrument identity. Tokens live in tokens.css;
 * the rules those three follow live in DESIGN.md.
 *
 * The dashboard is an instrument panel: a fixed 16rem rail, a sticky status
 * bar, one column of flat panels and 1px rules. Data is mono and tabular.
 * State colour appears only on a state badge, with its glyph and its word.
 */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--space-5);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-m);
  line-height: var(--leading);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body.has-bar { padding-bottom: 72px; }

/* The rail's own background fills the letterbox the fixed rail would leave. */
.shell { display: block; }

.column { display: flex; flex-direction: column; min-height: 100vh; min-width: 0; }

main { flex: 1 0 auto; min-width: 0; padding-block: var(--space-6) var(--space-8); }
main:focus { outline: none; }

::selection { background: var(--canary); color: var(--on-canary); }

/* Focus: a 2px amber ring with a 2px offset. */
:focus-visible {
  outline: 2px solid var(--canary);
  outline-offset: 2px;
  border-radius: var(--radius-s);
}

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  min-width: 0;
  padding-inline: var(--gutter);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Type. Geist carries words, under 60ch a line. */

h1, h2, h3 {
  margin: 0;
  line-height: var(--leading-tight);
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: var(--text-2xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-xl); letter-spacing: -0.015em; }
h3 { font-size: var(--text-l); font-weight: 500; }

p { margin: 0; max-width: var(--measure); text-wrap: pretty; }

a {
  color: var(--canary-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

code, pre, .mono { font-family: var(--font-mono); }
.mono { font-size: 0.9375em; }
.wrap-anywhere { overflow-wrap: anywhere; min-width: 0; }
.muted { color: var(--ink-muted); }

strong { font-weight: 600; }

/* Icons and glyphs */

.icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.glyph { width: 16px; height: 16px; flex: none; }

.s-verified { color: var(--state-verified); }
.s-resolved { color: var(--state-resolved); }
.s-unresolvable { color: var(--state-unresolvable); }
.s-unverified { color: var(--state-unverified); }
.s-disputed { color: var(--state-disputed); }
.s-compromised { color: var(--state-compromised); }

/* Tones for results that are not block states: payment outcomes and verify
   results. They share the state palette but never a state's label. */
.tone-good { color: var(--state-verified); }
.tone-bad { color: var(--state-compromised); }
.tone-neutral { color: var(--state-unverified); }

/* A state badge: glyph, word and colour, always together. Mono, uppercase,
   2px corner, on an inset surface so the word reads as data. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface-low);
  border: var(--rule-width) solid var(--rule);
  border-radius: var(--radius-s);
}
.badge-large { font-size: var(--text-s); gap: 8px; padding: 4px 10px; }
.badge-large .glyph { width: 18px; height: 18px; }
.badge-warning { color: var(--ink-muted); }
.badge-warning .icon { width: 16px; height: 16px; }

/* Skip link and watermark */

.skip-link {
  position: absolute;
  left: max(var(--gutter), calc((100% - var(--page-max)) / 2 + var(--gutter)));
  top: -80px;
  z-index: 50;
  background: var(--canary);
  color: var(--on-canary);
  padding: var(--space-2) var(--space-3);
  font-weight: 600;
  border-radius: var(--radius-s);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-2); }

.watermark {
  position: sticky;
  top: 0;
  z-index: 45;
  margin: 0;
  max-width: none;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  font-weight: 600;
  font-size: var(--text-s);
  letter-spacing: 0.02em;
  padding: 6px var(--gutter);
}
.watermark-foot { position: static; display: block; }

/* The rail. Under 1024px it is a header with the nav as a row. */

.rail {
  background: var(--surface-low);
  border-bottom: var(--rule-width) solid var(--rule);
  padding: var(--space-4) var(--gutter) var(--space-3);
}
.rail-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.rail-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.rail-build {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

@media (min-width: 1024px) {
  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: 16rem;
    height: 100vh;
    overflow-y: auto;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-6);
    border-right: var(--rule-width) solid var(--rule);
    border-bottom: 0;
    padding: var(--space-5) var(--space-4);
  }
  .rail-top { display: grid; gap: var(--space-5); align-items: start; }
  .rail .nav ul { flex-direction: column; flex-wrap: nowrap; gap: var(--space-1); align-items: stretch; }
  .rail .nav a { display: block; }
  .column { margin-left: 16rem; }
  .rail-foot { flex-direction: column; align-items: stretch; gap: var(--space-3); margin-top: 0; }
}

/* The wordmark sits on its perch line. */

.wordmark {
  position: relative;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  padding: 2px 18px 9px 2px;
}
/* The perch: a thin line the name sits on, running on past the last letter. */
.wordmark::after {
  content: "";
  position: absolute;
  left: -4px;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--canary);
}
.wordmark:hover { text-decoration: none; }

/* Nav. The site keeps its row; the rail makes it a column. */

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-block;
  padding: 6px 0 4px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--rule-strong); }
.nav a[aria-current="page"] { border-bottom-color: var(--canary); }

.rail .nav a {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  border-bottom: 0;
  border-radius: var(--radius-s);
  padding: 7px 10px;
}
.rail .nav a:hover { color: var(--ink); background: var(--surface-high); }
.rail .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-high); }

@media (max-width: 1023px) {
  .rail .nav { flex: 1 1 100%; }
  .rail .nav ul { gap: var(--space-1) var(--space-4); }
  .rail .nav a { padding: 4px 6px; }
}

.net-badge {
  margin: 0;
  background: var(--canary);
  color: var(--on-canary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.35;
  padding: 5px 8px;
  border-radius: var(--radius-s);
}

.theme-toggle { justify-content: center; min-width: 10.5rem; }
.rail .theme-toggle { min-width: 0; width: 100%; }

/* Sticky status bar, 56px, across the content column. */

.statusbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 56px;
  background: var(--surface);
  border-bottom: var(--rule-width) solid var(--rule);
  box-shadow: var(--shadow-chrome);
}
.statusbar .wrap { display: flex; align-items: center; height: 100%; }
.status-line {
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

/* The site header (the public site's chrome, not the dashboard's rail). */

.site-header { border-bottom: var(--rule-width) solid var(--rule); }

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "mark nav badge toggle";
  align-items: center;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-5) var(--space-3);
}

@media (max-width: 1039px) {
  .header-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "mark badge toggle"
      "nav nav nav";
  }
}

@media (max-width: 639px) {
  .header-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "mark toggle"
      "badge badge"
      "nav nav";
    padding-block: var(--space-4) var(--space-2);
  }
  .net-badge { justify-self: start; }
  .nav ul { gap: var(--space-1) var(--space-4); }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  font: inherit;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.2;
  color: var(--canary-text);
  background: transparent;
  border: var(--rule-width) solid var(--rule-strong);
  border-radius: var(--radius-m);
  cursor: pointer;
}
.btn:hover { background: var(--surface-high); border-color: var(--ink); }
.btn:active { background: var(--surface-highest); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn .icon { width: 18px; height: 18px; }
.btn-small { min-height: 30px; padding: 3px 8px; }
.btn-small .icon { width: 16px; height: 16px; }

/* Notices and the lower-bound sentence */

.notice {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: var(--rule-width) solid var(--rule-strong);
  border-radius: var(--radius-m);
}
.notice .icon { margin-top: 2px; }

.lower-bound {
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: var(--rule-width) solid var(--rule-strong);
  border-left: 2px solid var(--canary);
  border-radius: var(--radius-s);
  font-weight: 500;
}

/* Page structure */

.section { margin-top: var(--space-7); min-width: 0; }
.section-tight { margin-top: var(--space-6); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
}
.section > h2 { margin-bottom: var(--space-4); }
.section-head > h2 { margin-bottom: 0; }
.section-note {
  margin: calc(-1 * var(--space-2)) 0 var(--space-4);
  color: var(--ink-muted);
  font-size: var(--text-s);
}

.page-head { display: grid; gap: var(--space-3); }
.lede { font-size: var(--text-l); max-width: 60ch; }
.page-head .lede { font-size: var(--text-m); }
.state-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }

.crumbs {
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
}

.empty { color: var(--ink-muted); }

.split { display: grid; gap: var(--space-7); grid-template-columns: minmax(0, 1fr); }
.split > section > h2 { margin-bottom: var(--space-4); }
.split-even { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); }
  .split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); }
}

.prose h2 { font-size: var(--text-l); margin-bottom: var(--space-2); }

/* Verdict: the overview's first sentence. */

.verdict { display: grid; gap: var(--space-3); padding-top: var(--space-2); }
.verdict-head {
  font-size: var(--text-4xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 40ch;
  text-wrap: pretty;
}
.verdict .lower-bound { margin-top: var(--space-2); }

@media (max-width: 639px) {
  .verdict-head { font-size: var(--text-2xl); }
}

/* Coverage strip */

.strip-figure { margin: 0; }
/* On the blocks page the strip follows the lower-bound note directly. */
.strip-figure.section-tight { margin-top: var(--space-6); }
.strip { display: block; overflow: visible; }
.strip-axis, .strip-tick { stroke: var(--rule-strong); stroke-width: 1; }
.strip-label {
  fill: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.strip-ground { fill: var(--bg); }
.strip-hatch { stroke: var(--state-unresolvable); }
.seg .seg-fill { fill: currentColor; }
.seg .seg-edge { stroke: currentColor; stroke-width: 2; }
.seg .seg-ring { fill: none; stroke: currentColor; stroke-width: 1.5; }
.seg .seg-hollow { fill: var(--bg); stroke: currentColor; stroke-width: 1.5; }
.seg .seg-hatch { stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 3 2; }
.strip-marker { overflow: visible; }

/* Six state tiles, in the order of the taxonomy. Zero counts stay visible. */

.counts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
@media (min-width: 600px) { .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .counts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .counts { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.count-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-4);
  background: var(--surface);
  border: var(--rule-width) solid var(--rule);
  border-radius: var(--radius-l);
}
.count-head { display: flex; flex-wrap: wrap; gap: var(--space-2); min-width: 0; max-width: 100%; }
.count-n {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.count-meaning { font-size: var(--text-s); color: var(--ink-muted); }
/* The disclosure sits at the tile's foot, so it lines up across a row. */
.count-explain { margin-top: auto; padding-top: var(--space-2); }
.count-row.is-zero .count-n { color: var(--ink-muted); font-weight: 400; }

/* What does this mean? */

.explain summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-muted);
  background: transparent;
  border: var(--rule-width) solid var(--rule);
  border-radius: var(--radius-s);
  padding: 3px 8px;
}
.explain summary:hover, .explain[open] summary { color: var(--ink); border-color: var(--rule-strong); }
.explain summary::-webkit-details-marker { display: none; }
.explain summary .icon { width: 14px; height: 14px; }
.explain[open] summary { margin-bottom: var(--space-2); }
.explain p {
  font-size: var(--text-s);
  padding: var(--space-3);
  background: var(--surface-low);
  border: var(--rule-width) solid var(--rule);
  border-radius: var(--radius-s);
}

/* Findings */

.finding-list { list-style: none; margin: 0; padding: 0; border-top: var(--rule-width) solid var(--rule); }
.finding-item {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-4);
  border-bottom: var(--rule-width) solid var(--rule);
}
.finding-sentence { font-size: var(--text-l); font-weight: 500; line-height: 1.3; text-wrap: pretty; }
.finding-sentence a { text-decoration-thickness: 1px; }
.finding-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}
.finding-provable { color: var(--ink-muted); }

.provable { font-size: var(--text-l); }
.provable.is-provable { font-weight: 600; }

/* Facts: label and value pairs */

.facts { margin: var(--space-5) 0 0; display: grid; gap: 0; border-top: var(--rule-width) solid var(--rule); }
.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1);
  padding-block: var(--space-3);
  border-bottom: var(--rule-width) solid var(--rule);
}
.facts dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.facts dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); min-width: 0; }
@media (min-width: 720px) {
  .facts > div { grid-template-columns: 12rem minmax(0, 1fr); gap: var(--space-4); align-items: baseline; }
}
.facts-compact { margin-top: var(--space-4); }

.server-name { font-weight: 600; }

/* Hashes: mono, in groups of four spaced by CSS, never by characters. */

.hash {
  font-family: var(--font-mono);
  font-size: 0.9375em;
  font-variant-numeric: slashed-zero;
  white-space: nowrap;
}
.hash > span { display: inline-block; }
.hash > span:not(:last-child) { margin-right: 0.35em; }
.hash-ell { color: var(--ink-muted); }
.hash-full { white-space: normal; }
.hash-block { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); min-width: 0; }
.hash-block .hash-full { max-width: 40ch; }
/* After a height or a server name, the full hash takes its own line, so
   every copy button in a list of facts sits at the same place. */
.facts dd > * + .hash-block { flex-basis: 100%; }

/* Commands: an inset surface with a copy control. */

.command {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-low);
  border: var(--rule-width) solid var(--rule);
  border-radius: var(--radius-m);
  max-width: 72ch;
}
.command pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: var(--text-s);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Tables: each scrolls in its own bordered container, never the page. */

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  background: var(--surface);
  border: var(--rule-width) solid var(--rule);
  border-radius: var(--radius-l);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: var(--rule-width) solid var(--rule);
}
thead th {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--surface-low);
  white-space: normal;
}
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 500; color: var(--ink); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num-left { font-variant-numeric: tabular-nums; }
td.why { min-width: 22ch; max-width: 48ch; }
td.nowrap { white-space: nowrap; }
td.policy { min-width: 18ch; overflow-wrap: anywhere; }
td .badge { white-space: nowrap; }
.ranges th.mono { white-space: nowrap; font-weight: 500; }
.ranges td.links { white-space: nowrap; }
.per-server tbody th { white-space: nowrap; color: var(--ink-muted); }
.per-server td { min-width: 16ch; }
.cell-note { margin-top: var(--space-1); color: var(--ink-muted); min-width: 24ch; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.plain li { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; white-space: nowrap; }

/* The servers table carries each address under its name. The address wraps,
   so the eight columns stay reachable by scrolling at any width. */
.servers .stack-head { white-space: normal; overflow-wrap: anywhere; }
.servers .server-name { display: block; }
.server-url {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

/* Stacked tables. Under 720px a .table-stack table turns each row into a
   short list of labelled lines, so no column hides off the right edge. The
   templates set ARIA table roles, which keep the table for screen readers
   when display changes. */
.table-stack { --stack-label: 8.5rem; }
@media (max-width: 719px) {
  .table-stack { border: 0; border-radius: 0; overflow: visible; background: transparent; }
  .table-stack table,
  .table-stack tbody,
  .table-stack tr,
  .table-stack th,
  .table-stack td { display: block; }
  .table-stack thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .table-stack tbody { border-top: var(--rule-width) solid var(--rule); }
  .table-stack tbody tr {
    padding-block: var(--space-3);
    border-bottom: var(--rule-width) solid var(--rule);
  }
  .table-stack tbody tr > * {
    padding: 3px 0;
    border: 0;
    min-width: 0;
    max-width: none;
    text-align: left;
    white-space: normal;
  }
  .table-stack .stack-head {
    padding-bottom: var(--space-2);
    font-size: var(--text-m);
    font-weight: 600;
    color: var(--ink);
  }
  /* The label hangs in the left margin, so a cell's own inline content
     (links, commas, notes) flows as one block beside it. */
  .table-stack [data-label] {
    position: relative;
    padding-left: calc(var(--stack-label) + var(--space-3));
  }
  .table-stack [data-label]::before {
    content: attr(data-label);
    content: attr(data-label) / "";
    position: absolute;
    left: 0;
    top: 3px;
    width: var(--stack-label);
    font-weight: 500;
    color: var(--ink-muted);
  }
  .table-stack .cell-note { min-width: 0; }
  .table-stack td.links { white-space: normal; }
  .table-stack .plain li { white-space: normal; }
}

/* The per-server table on a block page has servers as columns. Under 720px
   the same facts show as one list per server. */
.narrow-only { display: none; }
@media (max-width: 719px) {
  .wide-only { display: none; }
  .narrow-only { display: block; }
}
.server-card + .server-card { margin-top: var(--space-6); }
.server-card {
  padding: var(--space-4);
  background: var(--surface);
  border: var(--rule-width) solid var(--rule);
  border-radius: var(--radius-l);
}
.server-card .facts { margin-top: var(--space-2); border-top: 0; }
.server-card .facts > div { grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--space-3); align-items: baseline; padding-block: var(--space-2); }
.server-card .facts dd { font-size: var(--text-s); }

/* Go to height */

.goto { margin-top: var(--space-5); display: grid; gap: var(--space-2); max-width: 28rem; }
.goto label { font-weight: 500; font-size: var(--text-s); }
.goto-row { display: flex; gap: var(--space-2); }
.goto input {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 6px 10px;
  font: inherit;
  font-family: var(--font-mono);
  color: var(--ink);
  background: var(--bg);
  border: var(--rule-width) solid var(--rule-strong);
  border-radius: var(--radius-m);
}
.goto input:hover { border-color: var(--ink); }
.goto input[aria-invalid="true"] { border-color: var(--state-compromised); }
.goto .btn { background: var(--canary); color: var(--on-canary); border-color: var(--canary); }
.goto .btn:hover {
  background: color-mix(in oklab, var(--canary), var(--on-canary) 14%);
  border-color: color-mix(in oklab, var(--canary), var(--on-canary) 14%);
}
.field-error { color: var(--state-compromised); font-size: var(--text-s); font-weight: 500; }

/* Pager */

.pager {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: var(--rule-width) solid var(--rule);
  font-weight: 500;
}
.pager a { display: grid; gap: 2px; text-decoration: none; }
.pager a:hover .pager-block { text-decoration: underline; }
.pager-dir {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.pager-block { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.pager-next { margin-left: auto; text-align: right; }

/* Evidence */

.download-line { margin-bottom: var(--space-4); }
.download {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: var(--text-s);
  word-break: break-all;
}

/* Verify report */

.report { display: grid; gap: var(--space-3); }
.report-message { font-size: var(--text-l); }
.report-detail { color: var(--ink-muted); }
.report-steps {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  border-top: var(--rule-width) solid var(--rule);
  counter-reset: step;
}
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  grid-template-areas: "status name" "status text";
  gap: 2px var(--space-4);
  padding-block: var(--space-3);
  border-bottom: var(--rule-width) solid var(--rule);
  font-size: var(--text-s);
}
.step-status {
  grid-area: status;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: start;
}
.step-name { grid-area: name; font-weight: 500; }
.step-name::before { content: counter(step) ". "; color: var(--ink-muted); font-weight: 400; }
.step-text { grid-area: text; }
.step-skip .step-name, .step-skip .step-text { color: var(--ink-muted); }
@media (max-width: 479px) {
  .step { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "status" "text"; }
}

/* Error panel */

.error-panel { display: grid; gap: var(--space-4); max-width: 68ch; padding-top: var(--space-5); }
.error-panel h1 { font-size: var(--text-3xl); letter-spacing: -0.02em; }
.error-body { font-size: var(--text-l); }
.error-inline {
  padding: var(--space-4);
  background: var(--surface);
  border: var(--rule-width) solid var(--rule-strong);
  border-radius: var(--radius-m);
}
.error-inline .error-body { font-size: var(--text-m); }
.error-links { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.error-links .btn { text-decoration: none; font-size: var(--text-s); min-height: 44px; padding-inline: var(--space-4); }
.tech summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: var(--text-s);
  padding-block: 2px;
}
.tech summary::-webkit-details-marker { display: none; }
.tech summary .icon { width: 16px; height: 16px; }
.tech[open] summary .icon { transform: rotate(90deg); }
.tech pre {
  margin: var(--space-2) 0 0;
  padding: var(--space-3);
  background: var(--surface-low);
  border: var(--rule-width) solid var(--rule);
  border-radius: var(--radius-m);
  font-size: var(--text-xs);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Footer */

.site-footer {
  border-top: var(--rule-width) solid var(--rule);
  font-size: var(--text-s);
  color: var(--ink-muted);
}
.footer-row { display: grid; gap: var(--space-2); padding-block: var(--space-5) var(--space-6); }
.footer-row p { max-width: 72ch; }
.site-footer a { color: var(--ink-muted); }
.ext { display: inline-flex; align-items: center; gap: 4px; }
.ext .icon { width: 16px; height: 16px; }

/* Update bar: Canary speaking, in its own colour. It stays until the reader acts. */

.update-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--canary);
  color: var(--on-canary);
  border-top: var(--rule-width) solid var(--on-canary);
  animation: bar-in var(--duration) var(--ease-out);
}
.update-bar:empty { display: none; }
.update-inner {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: var(--space-3) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}
.update-text { font-weight: 600; margin-right: auto; }
.update-bar .btn { color: var(--on-canary); border-color: var(--on-canary); background: transparent; }
.update-bar .btn:hover { background: color-mix(in oklab, var(--on-canary), transparent 88%); }
.update-bar :focus-visible { outline-color: var(--on-canary); }

@keyframes bar-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .rail, .theme-toggle, .update-bar, .copy-btn, .skip-link { display: none !important; }
  .column { margin-left: 0 !important; }
}
