/* minefield.cloud
   Drawing set in phosphor on true black.
   Lettering: osifont (ISO 3098 drafting hand). Text and data: IBM Plex Mono.
   Greek symbols: IBM Plex Sans. */

@font-face {
  font-family: "Drafting";
  src: url("/fonts/osifont-subset.woff2?v=4a4d8081d1") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("/fonts/plex-mono-regular.woff2?v=4a4d8081d1") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("/fonts/plex-mono-medium.woff2?v=4a4d8081d1") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PlexGreek";
  src: url("/fonts/plex-sans-greek.woff2?v=4a4d8081d1") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-03FF;
}

@property --ph {
  syntax: "<color>";
  inherits: true;
  initial-value: #ffd18b;
}
@property --halo {
  syntax: "<color>";
  inherits: true;
  initial-value: #f7931a;
}
@property --disc {
  syntax: "<color>";
  inherits: true;
  initial-value: #f7931a;
}
@property --disc-ink {
  syntax: "<color>";
  inherits: true;
  initial-value: #ffffff;
}

:root {
  color-scheme: dark;
  --ph: #ffd18b;
  --halo: #f7931a;
  --disc: #f7931a;
  --disc-ink: #ffffff;
  --ground: #000000;

  /* luminance tiers, all derived from the one phosphor */
  --t1: var(--ph);
  --t2: color-mix(in oklab, var(--ph) 74%, #000);
  --t3: color-mix(in oklab, var(--ph) 56%, #000);
  --r1: color-mix(in oklab, var(--ph) 34%, #000);
  --r2: color-mix(in oklab, var(--ph) 19%, #000);
  --r3: color-mix(in oklab, var(--ph) 10%, #000);
  --glow-a: color-mix(in srgb, var(--halo) 70%, transparent);
  --glow-b: color-mix(in srgb, var(--halo) 24%, transparent);

  --letter: "PlexGreek", "Drafting", "Plex", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --mono: "PlexGreek", "Plex", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.2vw, 64px);
  --measure: 62ch;
  --bar-h: 48px;
  --ease: cubic-bezier(0.22, 0.72, 0.18, 1);

  transition: --ph 0.42s var(--ease), --halo 0.42s var(--ease), --disc 0.42s var(--ease), --disc-ink 0.42s var(--ease);
}
:root[data-phosphor="green"] {
  --ph: #a0ff91;
  --halo: #42ff53;
  --disc: #a0ff91;
  --disc-ink: #000000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 20px);
  touch-action: manipulation;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--t1);
  font: 400 15px/1.62 var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
::selection {
  background: var(--t1);
  color: #000;
}
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--r1);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  transition: text-decoration-color 0.18s;
}
a:hover {
  text-decoration-color: var(--t1);
}
:focus-visible {
  outline: 1px solid var(--t1);
  outline-offset: 3px;
}
h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure,
table {
  margin: 0;
  padding: 0;
}
ol,
ul {
  list-style: none;
}
code,
kbd,
samp,
pre {
  font: inherit;
}
button,
input {
  font: inherit;
  color: inherit;
}
svg {
  display: block;
}
sup,
sub {
  font-size: 0.72em;
  line-height: 0;
}
[hidden] {
  display: none !important;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 8px 12px;
  background: #000;
  border: 1px solid var(--t1);
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}

/* ---------- lettering ---------- */
.lt {
  font-family: var(--letter);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  line-height: 1.35;
  color: var(--t3);
}
.m {
  font-family: var(--letter);
  font-style: normal;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
}
.lit {
  color: var(--t1);
  text-shadow: 0 0 1px var(--glow-a), 0 0 9px var(--glow-b);
}
.dim {
  color: var(--t2);
}
.nw {
  white-space: nowrap;
}

/* ---------- top bar ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  background: #000;
  border-bottom: 1px solid var(--r2);
}
.bar__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
}
.bar__brand svg {
  width: 22px;
  height: 22px;
}
.bar__brand span {
  font-family: var(--letter);
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-top: 1px;
}
.mark-disc {
  fill: var(--disc);
}
.mark-m {
  fill: var(--disc-ink);
}
.bar__index {
  display: none;
  gap: 22px;
  margin-left: auto;
}
.bar__index a {
  font-family: var(--letter);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--t3);
  padding: 6px 0;
  transition: color 0.2s;
}
.bar__index a:hover,
.bar__index a[aria-current="true"] {
  color: var(--t1);
}
.bar__index a b {
  font-weight: 400;
  margin-right: 0.5em;
  color: var(--r1);
  transition: color 0.2s;
}
.bar__index a[aria-current="true"] b {
  color: var(--t1);
}
.bar__tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex: none;
}
.lamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--letter);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
  white-space: nowrap;
}
.lamp i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--t3);
  flex: none;
}
.lamp[data-state="live"] {
  color: var(--t1);
}
.lamp[data-state="live"] i {
  background: var(--t1);
  border-color: var(--t1);
  box-shadow: 0 0 6px var(--glow-a);
}
.lamp[data-state="stale"] i,
.lamp[data-state="snapshot"] i {
  background: linear-gradient(90deg, var(--t2) 50%, transparent 50%);
  border-color: var(--t2);
}
.lamp[data-state="stale"],
.lamp[data-state="snapshot"] {
  color: var(--t2);
}
.lamp time {
  display: none;
  color: var(--t3);
}
.tgl {
  appearance: none;
  background: none;
  border: 1px solid var(--r1);
  height: 28px;
  padding: 0 10px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--letter);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t2);
  transition: border-color 0.2s, color 0.2s;
}
.tgl:hover {
  border-color: var(--t1);
  color: var(--t1);
}
.tgl i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--t1);
  box-shadow: 0 0 6px var(--glow-a);
}
.tgl kbd {
  color: var(--t3);
  border-left: 1px solid var(--r1);
  padding-left: 8px;
}

/* ---------- sheets ---------- */
main {
  display: block;
}
.sheet {
  position: relative;
  padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(48px, 7vw, 96px);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  border-bottom: 1px solid var(--r2);
}
.sheet__in {
  max-width: 1280px;
  margin: 0 auto;
}
/* registration ticks at the sheet corners */
.sheet::before,
.sheet::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 1px;
  height: 9px;
  background: var(--r1);
}
.sheet::before {
  left: max(var(--gutter), env(safe-area-inset-left));
}
.sheet::after {
  right: max(var(--gutter), env(safe-area-inset-right));
}
.head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.head__no {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.head__no .lt:first-child {
  color: var(--t1);
}
.head__no .rule {
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: var(--r2);
  align-self: center;
}
h2 {
  font: 400 clamp(27px, 4.4vw, 46px) / 1.08 var(--letter);
  letter-spacing: 0.035em;
  text-transform: uppercase;
  max-width: 22ch;
  text-wrap: balance;
}
.lead {
  max-width: var(--measure);
  color: var(--t2);
  font-size: 16px;
  text-wrap: pretty;
}
.lead strong,
.note strong,
.prose strong {
  font-weight: 500;
  color: var(--t1);
}
.prose {
  max-width: var(--measure);
  color: var(--t2);
  text-wrap: pretty;
}
.prose + .prose {
  margin-top: 1em;
}

/* status stamps: every number is one of four things */
.stamp {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--r1);
  font-family: var(--letter);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t2);
  white-space: nowrap;
  text-decoration: none;
  vertical-align: 1px;
}
a.stamp:hover {
  border-color: var(--t1);
  color: var(--t1);
}
.stamp--live {
  border-color: var(--t1);
  color: var(--t1);
}
.stamp--live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
  box-shadow: 0 0 5px var(--glow-a);
}
:root[data-telemetry="stale"] .stamp--live,
:root[data-telemetry="snapshot"] .stamp--live,
:root[data-telemetry="offline"] .stamp--live {
  border-color: var(--r1);
  color: var(--t3);
}
:root[data-telemetry="stale"] .stamp--live::before,
:root[data-telemetry="snapshot"] .stamp--live::before,
:root[data-telemetry="offline"] .stamp--live::before {
  background: none;
  box-shadow: none;
  outline: 1px solid currentColor;
  outline-offset: -1px;
}
.stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* numbered general notes */
.notes {
  display: grid;
  gap: 18px 40px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--r2);
  counter-reset: note;
}
.notes > li {
  counter-increment: note;
  display: grid;
  grid-template-columns: 26px 1fr;
  color: var(--t2);
  font-size: 14px;
  line-height: 1.6;
  max-width: 58ch;
  text-wrap: pretty;
}
.notes > li::before {
  content: counter(note) ".";
  font-family: var(--letter);
  color: var(--t3);
  letter-spacing: 0.05em;
}
.notes .stamps {
  margin-top: 8px;
}

/* ---------- cover sheet ---------- */
.cover {
  padding-top: clamp(40px, 7vw, 96px);
}
.cover__grid {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.cover__kicker {
  color: var(--t3);
  margin-bottom: clamp(18px, 2.4vw, 28px);
}
.wordmark {
  width: min(100%, 560px);
  height: auto;
  fill: var(--t1);
  filter: drop-shadow(0 0 0.8px var(--glow-a)) drop-shadow(0 0 9px var(--glow-b));
}
.cover__claim {
  font: 400 clamp(21px, 2.9vw, 31px) / 1.22 var(--letter);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: clamp(22px, 3vw, 36px);
  max-width: 24ch;
  text-wrap: balance;
}
.cover__def {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--t2);
  font-size: 16px;
  text-wrap: pretty;
}
.cover__seal {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin: 0 auto;
}
.cover__seal svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--r1);
  font-family: var(--letter);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--t1);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.btn:hover {
  border-color: var(--t1);
}
.btn--solid {
  background: var(--t1);
  border-color: var(--t1);
  color: #000;
}
.btn--solid:hover {
  background: transparent;
  color: var(--t1);
}
.btn svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

/* readout strip */
.readouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--r2);
  border-left: 1px solid var(--r2);
  margin-top: clamp(32px, 5vw, 56px);
}
.ro {
  padding: 12px 14px 13px;
  border-right: 1px solid var(--r2);
  border-bottom: 1px solid var(--r2);
  min-width: 0;
}
.ro dt {
  font-family: var(--letter);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 4px;
}
.ro dd {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ro dd small {
  font-size: 12px;
  font-weight: 400;
  color: var(--t3);
  margin-left: 4px;
}
.ro--wide {
  grid-column: 1 / -1;
}
.ro--sm dd {
  font-size: 14px;
  font-weight: 400;
}

/* a value that just changed decays like phosphor */
@keyframes decay {
  0% {
    text-shadow: 0 0 2px var(--glow-a), 0 0 16px var(--halo);
  }
  100% {
    text-shadow: 0 0 0 transparent, 0 0 0 transparent;
  }
}
.tick {
  animation: decay 0.9s var(--ease) 1;
}

/* drawing index */
.index {
  width: 100%;
  border-collapse: collapse;
  margin-top: clamp(36px, 5vw, 64px);
  font-size: 14px;
}
.index caption {
  text-align: left;
  padding-bottom: 10px;
}
.index th,
.index td {
  text-align: left;
  vertical-align: baseline;
  padding: 10px 12px 10px 0;
  border-top: 1px solid var(--r2);
  font-weight: 400;
}
.index tr:last-child th,
.index tr:last-child td {
  border-bottom: 1px solid var(--r2);
}
.index th {
  width: 3.2em;
  font-family: var(--letter);
  letter-spacing: 0.1em;
  color: var(--t3);
}
.index td:nth-child(2) a {
  font-family: var(--letter);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.index td:nth-child(2) a:hover {
  text-shadow: 0 0 1px var(--glow-a), 0 0 9px var(--glow-b);
}
.index td:nth-child(3) {
  color: var(--t3);
  display: none;
}
.index td:last-child {
  text-align: right;
  padding-right: 0;
  white-space: nowrap;
}

/* ---------- general arrangement ---------- */
.ga {
  display: grid;
  gap: 0;
  counter-reset: st;
  border-top: 1px solid var(--r2);
}
.ga > li {
  counter-increment: st;
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 0;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--r2);
}
.ga > li::before {
  content: counter(st);
  grid-row: 1 / span 3;
  width: 26px;
  height: 26px;
  border: 1px solid var(--t1);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--letter);
  font-size: 13px;
  padding-top: 1px;
}
/* the bus between balloons */
.ga > li::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 46px;
  bottom: -20px;
  width: 1px;
  background: var(--r1);
}
.ga > li:last-child::after {
  display: none;
}
.ga h3 {
  font: 400 17px/1.25 var(--letter);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ga p {
  color: var(--t2);
  font-size: 14px;
  line-height: 1.58;
  max-width: 52ch;
  text-wrap: pretty;
}
.ga .spec {
  font-size: 12.5px;
  color: var(--t3);
  margin-top: 4px;
}
.why {
  display: grid;
  gap: 28px 44px;
  margin-top: clamp(40px, 6vw, 72px);
}
.why h3 {
  font: 400 19px/1.2 var(--letter);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.why p {
  color: var(--t2);
  font-size: 14.5px;
  max-width: 46ch;
  text-wrap: pretty;
}
.why .stamps {
  margin-top: 12px;
}
.why > div {
  padding-top: 16px;
  border-top: 1px solid var(--t1);
}

/* ---------- figures ---------- */
.fig {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.fig__plate {
  position: relative;
  min-width: 0;
}
.fig__plate svg {
  width: 100%;
  overflow: visible;
  -webkit-user-select: none;
  user-select: none;
}
.fig__cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--r2);
}
.fig__side {
  min-width: 0;
}
.fig__side > * + * {
  margin-top: 22px;
}
.drag {
  cursor: grab;
  touch-action: pan-y;
}
.drag:active {
  cursor: grabbing;
}

/* svg tiers */
.k1 {
  stroke: var(--t1);
}
.k2 {
  stroke: var(--t2);
}
.k3 {
  stroke: var(--r1);
}
.k4 {
  stroke: var(--r2);
}
.f1 {
  fill: var(--t1);
}
.f2 {
  fill: var(--t2);
}
.f3 {
  fill: var(--r1);
}
.f4 {
  fill: var(--r2);
}
.f0 {
  fill: #000;
}
.fn {
  fill: none;
}
.ln {
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.ln2 {
  fill: none;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.dash {
  stroke-dasharray: 3 4;
}
.center {
  stroke-dasharray: 14 4 2 4;
}
.glow {
  filter: drop-shadow(0 0 1.2px var(--glow-a)) drop-shadow(0 0 7px var(--glow-b));
}
.tx {
  font-family: var(--letter);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--t3);
  stroke: none;
}
.tx--1 {
  fill: var(--t1);
}
.tx--2 {
  fill: var(--t2);
}
.tx--num {
  font-family: var(--mono);
  letter-spacing: 0;
  text-transform: none;
  font-size: 11px;
}
.tx--raw {
  text-transform: none;
  letter-spacing: 0.04em;
}
.tx--halo {
  paint-order: stroke;
  stroke: #000;
  stroke-width: 3.2px;
  stroke-linejoin: round;
}
.tx--inv {
  fill: #000;
}
.cellp {
  fill: none;
  stroke: none;
  vector-effect: non-scaling-stroke;
}
.cellp--on {
  fill: var(--t1);
  fill-opacity: 0.13;
  stroke: var(--t2);
  stroke-width: 1;
}
.cellp--sel {
  fill: var(--t1);
  fill-opacity: 1;
  stroke: var(--t1);
  stroke-width: 1;
}
@keyframes verify {
  0% {
    fill-opacity: 0.13;
  }
  22% {
    fill-opacity: 0.4;
  }
  100% {
    fill-opacity: 0.13;
  }
}
.cellp--on.go {
  animation: verify 0.56s var(--ease) 1 both;
}
.hit {
  fill: transparent;
  stroke: none;
  cursor: pointer;
}
@keyframes pulse {
  0% {
    opacity: 1;
    r: 3.6px;
  }
  18% {
    r: 7px;
  }
  100% {
    opacity: 0;
    r: 13px;
  }
}
.ping {
  fill: none;
  stroke: var(--t1);
  stroke-width: 1;
  opacity: 0;
  pointer-events: none;
}
.ping.go {
  animation: pulse 0.9s var(--ease) 1 both;
}

/* definition table used for node readouts and specs */
.spec-t {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.spec-t caption {
  text-align: left;
  padding-bottom: 8px;
}
.spec-t th,
.spec-t td {
  padding: 7px 0;
  border-top: 1px solid var(--r2);
  vertical-align: baseline;
  font-weight: 400;
}
.spec-t tr:last-child th,
.spec-t tr:last-child td {
  border-bottom: 1px solid var(--r2);
}
.spec-t th {
  text-align: left;
  font-family: var(--letter);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
  padding-right: 14px;
  white-space: nowrap;
}
.spec-t td {
  text-align: right;
  word-break: break-word;
}
.spec-t td small {
  color: var(--t3);
  font-size: 12px;
}
.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 2px 8px;
  font-size: 13.5px;
  color: var(--t2);
}
.check i {
  width: 11px;
  height: 11px;
  border: 1px solid var(--t3);
  margin-top: 5px;
  position: relative;
}
.check[data-ok="true"] i {
  border-color: var(--t1);
}
.check[data-ok="true"] i::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--t1);
  box-shadow: 0 0 5px var(--glow-a);
}
.check[data-ok="false"] i::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 4px;
  height: 1px;
  background: var(--t1);
  transform: rotate(45deg);
}
.check b {
  font-weight: 400;
  color: var(--t1);
}

/* controls */
.ctl {
  display: grid;
  gap: 22px;
}
/* label and reading share a line when they fit; a long reading drops below its label */
.ctl__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
}
.ctl__row label {
  font-family: var(--letter);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
  white-space: nowrap;
}
.ctl__row output {
  font-size: 13.5px;
  min-width: 0;
  text-wrap: balance;
}
.ctl__row input[type="range"] {
  flex: 0 0 100%;
}
input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: none;
  cursor: pointer;
  touch-action: pan-y;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: var(--r1);
}
input[type="range"]::-moz-range-track {
  height: 1px;
  background: var(--r1);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 3px;
  height: 19px;
  margin-top: -9px;
  background: var(--t1);
  border: 0;
  border-radius: 0;
  box-shadow: 0 0 6px var(--glow-a);
}
input[type="range"]::-moz-range-thumb {
  width: 3px;
  height: 19px;
  background: var(--t1);
  border: 0;
  border-radius: 0;
  box-shadow: 0 0 6px var(--glow-a);
}
.seg {
  display: inline-flex;
  border: 1px solid var(--r1);
}
.seg button {
  appearance: none;
  background: none;
  border: 0;
  border-right: 1px solid var(--r1);
  height: 30px;
  padding: 0 12px;
  font-family: var(--letter);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.seg button:last-child {
  border-right: 0;
}
.seg button:hover {
  color: var(--t1);
}
.seg button[aria-pressed="true"] {
  background: var(--t1);
  color: #000;
}
.ctl__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* big figure-of-merit numeral */
.fom {
  display: grid;
  gap: 2px;
}
.fom__v {
  font: 500 clamp(34px, 5.4vw, 56px) / 1 var(--mono);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.fom__v small {
  font: 400 15px/1 var(--letter);
  letter-spacing: 0.12em;
  color: var(--t2);
  margin-left: 8px;
}
.fom__l {
  margin-top: 8px;
  max-width: 44ch;
}

/* horizontally scrollable wide tables on small screens */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--r1) transparent;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  white-space: nowrap;
}
.tbl caption {
  text-align: left;
  padding-bottom: 8px;
}
.tbl th {
  font-family: var(--letter);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
  text-align: right;
  padding: 7px 0 7px 18px;
  border-bottom: 1px solid var(--r1);
}
.tbl td {
  text-align: right;
  padding: 7px 0 7px 18px;
  border-bottom: 1px solid var(--r2);
}
.tbl th:first-child,
.tbl td:first-child {
  text-align: left;
  padding-left: 0;
}
.tbl tfoot td {
  border-bottom: 0;
  border-top: 1px solid var(--t1);
  color: var(--t1);
  font-weight: 500;
}
.tbl .l {
  text-align: left;
}
.tbl tr[data-hot="true"] td {
  color: var(--t1);
  text-shadow: 0 0 1px var(--glow-a), 0 0 9px var(--glow-b);
}
.tbl td.q {
  color: var(--t3);
}
.exact {
  font-size: 13px;
  line-height: 1.7;
  color: var(--t2);
  overflow-wrap: anywhere;
}
.exact b {
  font-weight: 500;
  color: var(--t1);
}

/* hardware ladder */
.ladder {
  border-top: 1px solid var(--r2);
}
.ladder > li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 20px;
  padding: 16px 0 17px;
  border-bottom: 1px solid var(--r2);
}
.ladder .ladder__rate {
  font: 500 clamp(24px, 3.4vw, 32px) / 1.05 var(--mono);
  letter-spacing: -0.015em;
  white-space: nowrap;
  color: var(--t1);
  max-width: none;
}
.ladder .ladder__rate small {
  font: 400 13px/1 var(--letter);
  letter-spacing: 0.12em;
  color: var(--t2);
  margin-left: 6px;
}
.ladder h3 {
  font: 400 15px/1.3 var(--letter);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ladder p {
  font-size: 13.5px;
  color: var(--t2);
  max-width: 60ch;
  text-wrap: pretty;
}
.ladder .stamps {
  margin-top: 6px;
}

/* ---------- procedures ---------- */
.procs {
  display: grid;
  gap: clamp(28px, 4vw, 48px) 44px;
}
.proc {
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid var(--t1);
}
.proc h3 {
  font: 400 19px/1.2 var(--letter);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.proc h3 b {
  font-weight: 400;
  color: var(--t3);
  letter-spacing: 0.1em;
}
.proc > p {
  color: var(--t2);
  font-size: 14px;
  margin-top: 8px;
  max-width: 54ch;
  text-wrap: pretty;
}
.cmd {
  position: relative;
  margin-top: 14px;
  padding-top: 34px;
  border: 1px solid var(--r1);
}
.cmd::before {
  content: "Terminal";
  position: absolute;
  inset: 0 0 auto 0;
  height: 34px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--r2);
  font-family: var(--letter);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t3);
}
.cmd pre {
  margin: 0;
  padding: 12px 14px 13px;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
}
.cmd .cl {
  display: block;
  padding-left: 2ch;
  text-indent: -2ch;
}
.cmd pre .p {
  color: var(--t3);
  -webkit-user-select: none;
  user-select: none;
}
.cmd button {
  position: absolute;
  top: 0;
  right: 0;
  height: 34px;
  width: 46px;
  appearance: none;
  background: none;
  border: 0;
  border-left: 1px solid var(--r2);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--t2);
  transition: color 0.2s, background-color 0.2s;
}
.cmd button:hover {
  color: var(--t1);
}
.cmd button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}
.cmd button .ok {
  display: none;
}
.cmd button[data-done] {
  background: var(--t1);
  color: #000;
}
.cmd button[data-done] .ok {
  display: block;
}
.cmd button[data-done] .cp {
  display: none;
}
.ends {
  margin-top: clamp(36px, 5vw, 64px);
}

/* ---------- title block ---------- */
.tb {
  padding: clamp(40px, 6vw, 72px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.tb__in {
  max-width: 1280px;
  margin: 0 auto;
}
.tb__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--t1);
  border-left: 1px solid var(--r1);
}
.tb__grid > div {
  padding: 10px 12px 12px;
  border-right: 1px solid var(--r1);
  border-bottom: 1px solid var(--r1);
  min-width: 0;
}
.tb__grid .lt {
  font-size: 10.5px;
  margin-bottom: 4px;
}
.tb__grid p {
  font-size: 13.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.tb__title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.tb__title svg {
  width: 34px;
  height: 34px;
  flex: none;
}
.tb__title strong {
  font: 400 21px/1.1 var(--letter);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
}
.tb__wide {
  grid-column: 1 / -1;
}
.tb__fine {
  margin-top: 16px;
  color: var(--t3);
  font-size: 12.5px;
  max-width: 78ch;
}

/* ---------- reveal ---------- */
.rv {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.rv.in {
  opacity: 1;
  transform: none;
}
.no-js .rv {
  opacity: 1;
  transform: none;
}
.no-js .js-only {
  display: none !important;
}
.js .no-js-only {
  display: none !important;
}

/* ---------- layout breakpoints ---------- */
@media (min-width: 560px) {
  .readouts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ro--wide {
    grid-column: span 2;
  }
  .lamp time {
    display: inline;
  }
  .tb__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tb__wide {
    grid-column: span 2;
  }
  .index td:nth-child(3) {
    display: table-cell;
  }
}
@media (min-width: 760px) {
  .notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .why {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .procs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ladder > li {
    grid-template-columns: minmax(200px, 0.3fr) minmax(0, 1fr);
    align-items: baseline;
  }
  .ladder .ladder__rate {
    grid-row: span 3;
  }
}
@media (min-width: 1100px) {
  .ladder > li {
    grid-template-columns: 280px minmax(0, 1fr) auto;
    column-gap: 32px;
  }
  .ladder .ladder__rate {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .ladder h3 {
    grid-column: 2;
    grid-row: 1;
  }
  .ladder > li > p:not([class]) {
    grid-column: 2;
    grid-row: 2;
  }
  .ladder .stamps {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin-top: 2px;
    flex-direction: column;
    align-items: flex-end;
    align-self: start;
  }
}
@media (min-width: 980px) {
  .cover__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
  .fig {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  }
  .fig--even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    column-gap: 56px;
    align-items: end;
  }
  .head__no {
    grid-column: 1 / -1;
  }
  .ga {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-top: 0;
  }
  .ga > li {
    display: block;
    padding: 0 22px 0 0;
    border-bottom: 0;
  }
  .ga > li::before {
    position: relative;
    z-index: 1;
    background: #000;
    margin-bottom: 18px;
  }
  .ga > li::after {
    left: 26px;
    right: 0;
    top: 13px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .ga h3 {
    margin-bottom: 8px;
  }
  .notes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .bar__index {
    display: flex;
  }
  .bar__tools {
    margin-left: 12px;
  }
  .procs {
    column-gap: 64px;
  }
}
@media (max-width: 420px) {
  .tgl kbd {
    display: none;
  }
  .bar {
    gap: 12px;
  }
  .bar__tools {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  :root {
    transition: none;
  }
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .tick,
  .ping.go,
  .cellp--on.go {
    animation: none;
  }
}
@media print {
  .bar,
  .tgl,
  .cmd button {
    display: none;
  }
  html,
  body {
    background: #fff;
  }
  :root {
    --ph: #000;
    --halo: #000;
    --disc: #000;
    --disc-ink: #fff;
  }
}

/* ---------- seal ---------- */
.seal {
  fill: none;
}
.seal-a {
  stroke: var(--t1);
}
.seal-b {
  stroke: var(--t3);
}
.seal-c {
  stroke: var(--r1);
}
.seal-d {
  stroke: var(--r2);
}
.seal .gl {
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.seal.on .gl {
  opacity: 1;
}
.seal__dial,
.seal__core {
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.seal.on .seal__dial,
.seal.on .seal__core {
  opacity: 1;
}
/* The glow sits on the svg root, where a pixel is a screen pixel. On a child
   of a scaled viewBox the same lengths are user units and the halo floods
   the ground. */
svg.seal {
  filter: drop-shadow(0 0 0.6px var(--glow-a)) drop-shadow(0 0 5px var(--glow-b));
  overflow: visible;
}
@media (prefers-reduced-motion: reduce) {
  .seal .gl,
  .seal__dial,
  .seal__core {
    transition: none;
  }
}

/* ---------- header field table ---------- */
.fields {
  margin-top: 14px;
}
.fields summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--t2);
  list-style: none;
}
.fields summary::-webkit-details-marker {
  display: none;
}
.fields summary::before {
  content: "+";
  width: 16px;
  height: 16px;
  border: 1px solid var(--r1);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1;
}
.fields[open] summary::before {
  content: "\2212";
}
.fields summary:hover {
  color: var(--t1);
}
.fields .tbl {
  margin-top: 8px;
  max-width: 760px;
}
.fields .tbl td:nth-child(2),
.fields .tbl th:nth-child(2) {
  text-align: right;
  padding-right: 18px;
}
.fields .tbl td:nth-child(4) {
  color: var(--t3);
  white-space: normal;
}
#ring-note {
  margin-top: 12px;
}
#fig-tape {
  margin-top: 6px;
}
#transport .fig__plate + .fig,
#transport .fig + div {
  margin-top: clamp(32px, 5vw, 56px);
}
#fig-frame + .ctl {
  margin-top: 12px;
}
.fig__plate > .ctl {
  margin-top: 18px;
}
#ledger {
  margin-bottom: 4px;
}
.fig__side .scroll-x {
  max-height: 372px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--r1) transparent;
}
.fig__side .tbl thead th {
  position: sticky;
  top: 0;
  background: #000;
}

/* ---------- compact control under a plate ---------- */
.ctl--inline {
  max-width: 340px;
  margin: 2px 0 22px;
}

/* ---------- one-line instrument readout under a figure ---------- */
.readline {
  font-size: 12.5px;
  color: var(--t2);
  min-height: 1.62em;
  margin-top: 6px;
}

/* ---------- wrapping rules for narrow sheets ---------- */
.nb {
  white-space: nowrap;
}
.fig__cap {
  flex-wrap: wrap;
}
.tbl caption {
  white-space: normal;
  text-wrap: balance;
}
@media (max-width: 560px) {
  .tbl th,
  .tbl td {
    padding-left: 12px;
  }
  #payouts {
    font-size: 12.5px;
  }
  /* the share count gives way on a narrow sheet and the check becomes a mark */
  #payouts th:nth-child(2),
  #payouts td:nth-child(2) {
    display: none;
  }
  #payouts thead th:last-child,
  #payouts .chk[data-ok="true"],
  #payout-ok[data-ok="true"] {
    font-size: 0;
  }
  #payouts thead th:last-child::after,
  #payouts .chk[data-ok="true"]::after,
  #payout-ok[data-ok="true"]::after {
    content: "=";
    font: 400 12.5px/1 var(--mono);
  }
  .cmd pre {
    font-size: 12.5px;
  }
}

/* ---------- helper for clipboard fallback ---------- */
.offscreen {
  position: fixed;
  left: -200vw;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}
