@charset "utf-8";

/* =========================================================================
   RelayGrid — case study stylesheet.

   Visual mode (docs/spec/04_RELAYGRID/PROJECT_BRIEF.md):
   "Incident timeline and operational map".

   Written from scratch for this page. It shares no rule and no token name with
   portfolio/wayfold/case-study.css, portfolio/tracelab/case-study.css or
   portfolio/aster-shift/case-study.css. The only class names in common with any
   of them are `.gnav`, `.gnav__in`, `.gnav__mark` and `.gnav__here` — the small
   global portfolio navigation Master Instruction §14 allows, restyled here for
   the console ground.

   Four structural commitments, none of which the three earlier case studies
   make:

   1. THE PAGE HAS A TIME GUTTER. Every section of part one is a stream entry,
      and every stream entry carries its absolute stamp in a fixed left gutter,
      set in mono, sticky while its entry is being read — the same right-hand
      gutter discipline the product uses on Live Response, moved to the left
      because on a reading page the stamp is the entry point rather than the
      afterthought. TraceLab's marginalia column is on the right and carries
      references; Aster Shift's hour bars are full-width bands. This is neither.

   2. THE DASHED RULE MEANS ZONE BOUNDARY. TraceLab reserves dashes for anything
      provisional and Aster Shift has no dashes at all. Here a dashed rule is the
      product's own `map-keyline` — a zone boundary — and it is used for exactly
      one thing on this page: separating the incident record from the examination
      of it, and drawing the four-register quadrant.

   3. NOTHING ON THIS PAGE IS A CARD. The product has no card grid anywhere
      (TASK_FLOW §4), so neither does its case study: every list is rows on 1 px
      rules, every panel is a flat tinted compartment, and no element on the page
      carries a drop shadow except the two that quote a dialog.

   4. THE TYPE CARRIES THE MEASURED-VERSUS-WRITTEN SPLIT. This is the single rule
      the product is built on (TASK_FLOW §5C), and the page is set by the same
      rule: IBM Plex Mono for every identifier, every measurement with its unit,
      every absolute timestamp, every coordinate and every state ID; IBM Plex
      Sans for every sentence a person wrote. A number on this page is never set
      in the face that carries an argument.

   Contrast. Every ink/ground pair used below was computed by the WCAG 2.x
   relative-luminance formula from the token hexes before it was used, and the
   figure is recorded beside the token. The four grounds are #111315, #191D20,
   #22272B and #0B0D0E; the worst text pair actually used is `--ink-3` on
   `--panel` (the `.note__label` eyebrow) at 5.04:1 against a 4.5:1 requirement.
   No text run on this page has an ancestor carrying a background-image, so no
   run on it is unmeasurable.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Fonts — the product's own two families, self-hosted beside this page.
   No CDN, no @import, no external request of any kind is made by this page.
   ------------------------------------------------------------------------- */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('assets/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('assets/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('assets/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

/* -------------------------------------------------------------------------
   Tokens. Every colour below is a value from
   docs/build-pack/relaygrid/TOKENS.json, carried across unchanged; the ratio in
   each comment is against `--ground` unless another ground is named.
   ------------------------------------------------------------------------- */
:root {
  --ground: #111315;   /* console ground */
  --rail: #0b0d0e;     /* one step below the ground */
  --pane: #191d20;     /* one step above it */
  --panel: #22272b;    /* raised panel */

  --ink: #e7e9e8;      /* 15.27:1 on ground · 13.91:1 on pane · 12.36:1 on panel */
  --ink-2: #aeb6b8;    /*  9.03:1 on ground ·  8.23:1 on pane ·  7.31:1 on panel */
  --ink-3: #8c979b;    /*  6.22:1 on ground ·  5.67:1 on pane ·  5.04:1 on panel */

  --orange: #f47a22;   /*  6.79:1 on ground ·  6.18:1 on pane ·  5.49:1 on panel */
  --cyan: #5adde1;     /* 11.41:1 on ground · 10.39:1 on pane ·  9.23:1 on panel */
  --alert: #e6656e;    /*  5.72:1 on ground ·  5.21:1 on pane — never used as text on panel */

  --hairline: #262c31; /* NON-TEXT: row separator inside one compartment */
  --rule-pane: #39424a;/* NON-TEXT: separator between two compartments */
  --keyline: #8c979b;  /* NON-TEXT when dashed: the map's own zone boundary */

  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --page: 1200px;
  --pad: 28px;
  --gutter: 172px;
  --measure: 70ch;

  --r-chip: 5px;
  --r-panel: 9px;
  --r-dialog: 11px;
}

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

html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.64;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cyan);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.008em;
}

p {
  margin: 0 0 1.05em;
}

strong,
b {
  color: var(--ink);
  font-weight: 600;
}

em {
  font-style: italic;
}

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

/* The mono face carries every machine-produced value, exactly as it does in the
   product. `.v` is a value, `.id` is a state ID or a file path, `.ctl` is the
   accessible name of a control the product exposes. */
.v,
.id,
.ctl {
  font-family: var(--mono);
  font-size: 0.885em;
  font-weight: 400;
  letter-spacing: 0;
}
.v {
  color: var(--ink);
}
.id {
  color: var(--ink-3);
}
.ctl {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--rule-pane);
  padding-bottom: 1px;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.measure {
  max-width: var(--measure);
}

/* =========================================================================
   Global portfolio navigation — the ONE element §14 allows to be shared.
   Same three spans as the other three pages; restyled for the console ground.
   ========================================================================= */
.gnav {
  border-bottom: 1px solid var(--hairline);
  background: var(--rail);
}
.gnav__in {
  max-width: var(--page);
  margin: 0 auto;
  padding: 13px var(--pad);
  display: flex;
  gap: 20px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}
.gnav__mark {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.gnav__here {
  font-size: 13px;
  color: var(--ink-3);
}
.gnav__here b {
  color: var(--ink-2);
  font-weight: 500;
}

/* =========================================================================
   Masthead. The product's own rail-plus-pane silhouette, once, as a cover:
   an 88 px mono strip on the left carrying the product mark, then the plate.
   ========================================================================= */
.masthead {
  border-bottom: 1px solid var(--rule-pane);
  background: var(--ground);
  position: relative;
}
.masthead__in {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
}
.masthead__rail {
  border-right: 1px solid var(--hairline);
  padding: 46px 0 46px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.masthead__rail span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.masthead__rail i {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--orange);
  margin-bottom: 12px;
}
.masthead__plate {
  padding: 46px 0 52px 34px;
}

.masthead__stamp {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 26px;
}
.masthead__stamp b {
  color: var(--orange);
  font-weight: 500;
}

.masthead h1 {
  font-size: clamp(46px, 8.2vw, 82px);
  letter-spacing: -0.028em;
  margin: 0 0 10px;
}
.masthead__subject {
  font-size: clamp(19px, 2.5vw, 24px);
  color: var(--ink-2);
  font-weight: 400;
  margin: 0 0 26px;
  max-width: 34ch;
  line-height: 1.32;
}
.masthead__lede {
  max-width: 62ch;
  color: var(--ink-2);
  margin-bottom: 34px;
}

/* Docket — rows on hairlines, never a card grid. */
.docket {
  margin: 0 0 38px;
  border-top: 1px solid var(--hairline);
  max-width: 780px;
}
.docket div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
}
.docket dt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}
.docket dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
}
.docket dd b {
  color: var(--ink);
}

/* The two-column register. Left: the record. Right: the exhibits. */
.register {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0 44px;
  border-top: 1px solid var(--rule-pane);
  padding-top: 22px;
}
.register__head {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.register ol {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.register li {
  border-bottom: 1px solid var(--hairline);
}
.register a {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 8px 0;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
}
.register a:hover,
.register a:focus-visible {
  color: var(--ink);
}
.register a b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
}
.register a:hover b {
  color: var(--cyan);
}
.register--ex a {
  grid-template-columns: 62px minmax(0, 1fr);
}

/* =========================================================================
   The record. Each entry is a stream entry: a sticky mono stamp in the left
   gutter, then the body.
   ========================================================================= */
.record {
  display: block;
}

.entry {
  border-bottom: 1px solid var(--hairline);
}
.entry__in {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr);
  gap: 0 40px;
  align-items: start;
}

.entry__gutter {
  position: sticky;
  top: 20px;
  padding: 56px 0 56px;
  text-align: right;
}
.entry__stamp {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: block;
  margin: 0 0 4px;
}
.entry__zone {
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin: 0;
}
.entry__actor {
  display: block;
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  font-family: var(--mono);
}
/* The 3 px status rule the product paints on a selected queue row, used here to
   mark which of the four actor classes wrote the entry. */
.entry__gutter::after {
  content: '';
  position: absolute;
  top: 60px;
  right: -20px;
  width: 3px;
  height: 34px;
  background: var(--rule-pane);
}
.entry--machine .entry__gutter::after {
  background: var(--ink-3);
}
.entry--person .entry__gutter::after {
  background: var(--cyan);
}
.entry--failure .entry__gutter::after {
  background: var(--alert);
}
.entry--severity .entry__gutter::after {
  background: var(--orange);
}
.entry__gutter {
  position: sticky;
}

.entry__body {
  padding: 56px 0 56px;
  min-width: 0;
}
.entry__body > .measure > h2,
.entry__body > h2 {
  font-size: clamp(25px, 3.1vw, 33px);
  margin: 0 0 20px;
  max-width: 24ch;
}
.entry__body h3 {
  font-size: 18.5px;
  margin: 34px 0 12px;
  color: var(--ink);
}
.entry__body h4 {
  font-size: 15.5px;
  margin: 24px 0 8px;
}

/* The dashed zone boundary — used exactly twice on this page. */
.boundary {
  border: 0;
  border-top: 1px dashed var(--keyline);
  opacity: 0.55;
  margin: 0;
}
.partmark {
  max-width: var(--page);
  margin: 0 auto;
  padding: 30px var(--pad) 8px;
  display: flex;
  gap: 18px;
  align-items: baseline;
  flex-wrap: wrap;
}
.partmark__id {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.partmark__name {
  font-size: 13.5px;
  color: var(--ink-3);
}

/* =========================================================================
   Product copy, quoted. A flat tinted compartment with the copy slot printed
   as a mono stamp on its own line — never a pull-quote, never centred.
   ========================================================================= */
.said {
  background: var(--pane);
  border-left: 2px solid var(--rule-pane);
  padding: 15px 20px 13px;
  margin: 0 0 20px;
  border-radius: 0 var(--r-chip) var(--r-chip) 0;
}
.said p {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.52;
}
.said p:last-of-type {
  margin-bottom: 10px;
}
.said--live {
  border-left-color: var(--cyan);
}
.said--severity {
  border-left-color: var(--orange);
}
.said--failure {
  border-left-color: var(--alert);
}
.said__slot {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* A note the harness or the review recorded — flat, tinted one step higher. */
.note {
  background: var(--panel);
  border-radius: var(--r-panel);
  padding: 18px 22px 6px;
  margin: 26px 0;
}
.note__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 8px;
}
.note p {
  font-size: 15.5px;
  color: var(--ink-2);
}
.note--flag {
  box-shadow: inset 2px 0 0 var(--alert);
}

/* -------------------------------------------------------------------------
   Access to the running build, published beside this page at prototype/.
   Same grammar as .note — a flat tinted compartment on --panel, no card and
   no drop shadow — carrying the product's own cyan as an inset marker rule
   rather than a border, so the block reads as the page's, not as a widget
   dropped into it.

   Contrast on --panel #22272b: --cyan 9.23:1 (label), --ink 12.36:1 (heading),
   --ink-2 7.31:1 (body). The filled control is --rail #0b0d0e on --orange
   #f47a22 at 7.10:1, and --rail on --cyan at 11.93:1 when hovered.
   ------------------------------------------------------------------------- */
.livedesk {
  background: var(--panel);
  border-radius: var(--r-panel);
  box-shadow: inset 2px 0 0 var(--cyan);
  padding: 20px 22px 20px;
  margin: 30px 0 6px;
}
.livedesk__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 8px;
}
.livedesk__h {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.livedesk__line {
  margin: 0 0 16px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.livedesk p:last-child {
  margin-bottom: 0;
}
.livedesk__cta {
  display: inline-block;
  padding: 11px 18px;
  border-radius: var(--r-chip);
  background: var(--orange);
  color: var(--rail);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.livedesk__cta:hover {
  background: var(--cyan);
}
.livedesk__cta:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.livedesk__spec {
  margin: 20px 0 0;
}

/* The negative list — what the product refuses to be. Rows on hairlines. */
.refusals {
  list-style: none;
  margin: 24px 0 8px;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.refusals li {
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15.5px;
  color: var(--ink-2);
}
.refusals li b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 3px;
}

/* =========================================================================
   Exhibits — a capture on the console ground. No device frame, no rounded
   bezel, no perspective: the capture's own ground is this page's ground, so a
   1 px keyline is the whole mount.
   ========================================================================= */
.exhibit {
  margin: 0;
  padding: 34px 0 8px;
}
.exhibit--full {
  max-width: 1560px;
  margin: 0 auto;
  padding: 8px var(--pad) 44px;
}
.exhibit__head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
  border-bottom: 1px solid var(--rule-pane);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.exhibit__id {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.exhibit__name {
  font-size: 15.5px;
  color: var(--ink);
  font-weight: 500;
}
.exhibit__meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  margin-left: auto;
}
.exhibit__plate {
  border: 1px solid var(--hairline);
  background: var(--rail);
  line-height: 0;
}
.exhibit__plate img,
.exhibit__plate video {
  width: 100%;
  height: auto;
  display: block;
}
.exhibit__foot {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 12px 0 0;
  max-width: 88ch;
}

/* The reading of an exhibit — keyed by the product's own region names, not by
   numbered dots painted over the capture. */
.reading {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
  columns: 2;
  column-gap: 40px;
}
.reading li {
  break-inside: avoid;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.reading li > b {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
}

/* =========================================================================
   The four navigation registers, on the plane's own quadrant cross.
   ========================================================================= */
.quadrant {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 26px 0 8px;
  border: 1px dashed var(--keyline);
  border-radius: 2px;
}
.quadrant > div {
  padding: 20px 22px;
  border-right: 1px dashed var(--keyline);
  border-bottom: 1px dashed var(--keyline);
}
.quadrant > div:nth-child(2n) {
  border-right: 0;
}
.quadrant > div:nth-child(n + 3) {
  border-bottom: 0;
}
.quadrant h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 8px;
}
.quadrant p {
  font-size: 14.5px;
  margin: 0 0 8px;
  color: var(--ink-2);
}
.quadrant p:last-child {
  margin-bottom: 0;
}
.quadrant .qwhere {
  color: var(--ink-3);
  font-size: 13px;
}

/* =========================================================================
   The departure list — six transitions, each with one decided trigger.
   ========================================================================= */
.legs {
  list-style: none;
  margin: 22px 0 8px;
  padding: 0;
  border-top: 1px solid var(--rule-pane);
}
.legs > li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.legs__t {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
  padding-top: 1px;
}
.legs__leg {
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
  margin: 0 0 5px;
}
.legs__leg .arrow {
  display: inline-block;
  width: 22px;
  border-top: 1px solid var(--rule-pane);
  margin: 0 9px 5px;
  vertical-align: middle;
}
.legs__trigger {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
}
.legs__return {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14.5px;
  color: var(--ink-2);
}
.legs__return .legs__t {
  color: var(--ink-3);
}

/* Three departures from the happy path — the edge states. */
.edges {
  list-style: none;
  margin: 20px 0 8px;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.edges > li {
  background: var(--ground);
  padding: 18px 0;
}
.edges__id {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--alert);
  margin: 0 0 5px;
}
.edges h4 {
  margin: 0 0 7px;
  font-size: 16px;
}
.edges p {
  font-size: 14.5px;
  margin: 0 0 9px;
}
.exits {
  margin: 0;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 4px 14px;
  font-size: 14px;
}
.exits dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}
.exits dd {
  margin: 0;
  color: var(--ink-2);
}

/* =========================================================================
   Measured ledgers. A definition row per measurement, value right-aligned in
   mono — the product's own right-hand value gutter.
   ========================================================================= */
.ledger {
  margin: 22px 0;
  border-top: 1px solid var(--rule-pane);
}
.ledger > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.ledger dt {
  font-size: 14.5px;
  color: var(--ink-2);
}
.ledger dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.ledger dd.zero {
  color: var(--cyan);
}
.ledger dd.held {
  color: var(--orange);
}
.ledger dd.bad {
  color: var(--alert);
}

/* Six counts, as a row of tiles — flat, no border, no shadow, no card. */
.counts {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  /* Six counts, and the column count always divides six exactly, so the grid
     never ends in an empty cell. */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.counts li {
  background: var(--pane);
  padding: 16px 18px;
}
.counts b {
  display: block;
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 5px;
}
.counts li[data-zero='true'] b {
  color: var(--cyan);
}
.counts span {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.4;
  display: block;
}

/* Where the states live — one row per view. */
.views {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  border-top: 1px solid var(--rule-pane);
}
.views li {
  display: grid;
  grid-template-columns: 190px 132px minmax(0, 1fr);
  gap: 6px 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.views__name {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.views__tally {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
}
.views__tally b {
  color: var(--ink);
  font-weight: 500;
}
.views__ids {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.62;
  word-break: break-word;
}

/* =========================================================================
   The repair. A before/after band pair, then a 1:1 loupe pair.
   ========================================================================= */
.pair {
  margin: 28px 0 8px;
  display: grid;
  gap: 26px;
}
.pair__item {
  margin: 0;
}
.pair__cap {
  display: flex;
  gap: 6px 16px;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 0 0 9px;
}
.pair__state {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.pair__item--before .pair__state {
  color: var(--alert);
}
.pair__item--after .pair__state {
  color: var(--cyan);
}
.pair__what {
  font-size: 14px;
  color: var(--ink-2);
}

/* The plane band, cropped in CSS from the full capture. The capture is 2×
   device scale, so the crop is shown at half its pixel size — one PRODUCT pixel
   to one page pixel. Nothing is re-rendered and nothing is retouched. */
.band {
  width: 100%;
  aspect-ratio: 718 / 270;
  border: 1px solid var(--hairline);
  background-repeat: no-repeat;
  /* 768 / 718 — the capture laid down at the product's own CSS scale */
  background-size: 106.9638% auto;
  /* x: 100% → −50 px · y: 158 / 754 → −158 px, the pane's own top edge */
  background-position: 100% 20.9549%;
}
.band--before {
  background-image: url('assets/stills/plane-768-before.webp');
}
.band--after {
  background-image: url('assets/stills/plane-768-after.webp');
}

/* The loupe. Shown at the capture's own device resolution — one image pixel to
   one page pixel — which is the 2× read the review was scored from. */
.loupes {
  margin: 30px 0 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
  gap: 26px;
  justify-content: start;
}
.loupe {
  margin: 0;
}
.loupe__win {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 20 / 11;
  border: 1px solid var(--hairline);
  background-repeat: no-repeat;
  /* 1536 / 400 */
  background-size: 384% auto;
  /* x: 640 / 1136 · y: 580 / 1828 */
  background-position: 56.338% 31.729%;
}
.loupe__win--before {
  background-image: url('assets/stills/plane-768-before.webp');
}
.loupe__win--after {
  background-image: url('assets/stills/plane-768-after.webp');
}
.loupe figcaption {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 9px;
}
.loupes > figcaption {
  grid-column: 1 / -1;
  font-size: 13.5px;
  color: var(--ink-3);
  max-width: 86ch;
}

/* The nine marks, measured before and after. */
.marks {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 13.5px;
}
.marks caption {
  text-align: left;
  font-size: 13.5px;
  color: var(--ink-3);
  padding-bottom: 10px;
}
.marks th,
.marks td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
}
.marks thead th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule-pane);
  white-space: nowrap;
}
.marks tbody th {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink);
  font-size: 13px;
}
.marks td {
  font-family: var(--mono);
  color: var(--ink-2);
  text-align: right;
  white-space: nowrap;
}
.marks td.bad {
  color: var(--alert);
}
.marks td.good {
  color: var(--cyan);
}
.marks tr.row--flag th,
.marks tr.row--flag td {
  background: var(--pane);
}

/* Gate C scores. */
.scores {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.scores caption {
  text-align: left;
  font-size: 13.5px;
  color: var(--ink-3);
  padding-bottom: 10px;
}
.scores th,
.scores td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--hairline);
}
.scores thead th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule-pane);
  text-align: right;
}
.scores thead th:first-child {
  text-align: left;
}
.scores tbody th {
  text-align: left;
  color: var(--ink-2);
  font-weight: 400;
}
.scores td {
  text-align: right;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink-2);
}
.scores td.now {
  color: var(--ink);
}
.scores td.fail {
  color: var(--alert);
}
.scores td.pass {
  color: var(--cyan);
}
.scores tr.row--flag th,
.scores tr.row--flag td {
  background: var(--pane);
}

/* What is still wrong. Rows, each one a standing item. */
.standing {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  border-top: 1px solid var(--rule-pane);
}
.standing li {
  padding: 15px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--ink-2);
}
.standing li > b {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

/* =========================================================================
   Source specimens.
   ========================================================================= */
.specimen {
  margin: 24px 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--rail);
}
.specimen figcaption {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  align-items: baseline;
  padding: 11px 18px;
  border-bottom: 1px solid var(--hairline);
  background: var(--pane);
}
.specimen__path {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
}
.specimen__note {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-left: auto;
}
.specimen pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--ink-2);
  tab-size: 2;
}
.specimen code {
  font-family: inherit;
}
.specimen .c {
  color: var(--ink-3);
}
.specimen .k {
  color: var(--cyan);
}

/* The stack, as installed. */
.stack {
  margin: 20px 0;
  border-top: 1px solid var(--rule-pane);
}
.stack > div {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.stack dt {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.stack dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* The disclosure block on references. */
.affidavit {
  background: var(--pane);
  border-radius: var(--r-panel);
  padding: 20px 24px 8px;
  margin: 22px 0;
}
.affidavit__head {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 10px;
}
.affidavit p {
  font-size: 15.5px;
}

/* =========================================================================
   Colophon.
   ========================================================================= */
.colophon {
  background: var(--rail);
  border-top: 1px solid var(--rule-pane);
  padding: 54px 0 60px;
}
.colophon h2 {
  font-size: 22px;
  margin: 0 0 18px;
}
.colophon p {
  max-width: 78ch;
  color: var(--ink-2);
  font-size: 15.5px;
}
.colophon__blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 40px;
  margin: 30px 0 26px;
  border-top: 1px solid var(--hairline);
}
.colophon__blocks section {
  padding: 18px 0 4px;
}
.colophon__blocks h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 8px;
}
.colophon__blocks p {
  font-size: 14px;
}
.disclosure {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ink-3);
}
.imprint {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  color: var(--ink-3);
  margin: 0;
}

/* =========================================================================
   Responsive. The gutter is the first thing to go: below 940 px the stamp sits
   above its entry as a row, which is what the product itself does at 768 when
   the timestamp gutter cannot hold its column.
   ========================================================================= */
@media (max-width: 1080px) {
  :root {
    --gutter: 128px;
  }
  .reading {
    columns: 1;
  }
}

@media (max-width: 940px) {
  :root {
    --pad: 20px;
  }
  body {
    font-size: 16.5px;
  }
  .masthead__in {
    grid-template-columns: minmax(0, 1fr);
  }
  .masthead__rail {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    padding: 30px 0 18px;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }
  .masthead__rail i {
    margin-bottom: 0;
    align-self: center;
  }
  .masthead__plate {
    padding: 30px 0 40px;
  }
  .register {
    grid-template-columns: minmax(0, 1fr);
  }
  .entry__in {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .entry__gutter {
    position: static;
    text-align: left;
    padding: 34px 0 0;
    display: flex;
    gap: 6px 16px;
    align-items: baseline;
    flex-wrap: wrap;
    border-left: 3px solid var(--rule-pane);
    padding-left: 14px;
  }
  .entry--machine .entry__gutter {
    border-left-color: var(--ink-3);
  }
  .entry--person .entry__gutter {
    border-left-color: var(--cyan);
  }
  .entry--failure .entry__gutter {
    border-left-color: var(--alert);
  }
  .entry--severity .entry__gutter {
    border-left-color: var(--orange);
  }
  .entry__gutter::after {
    display: none;
  }
  .entry__stamp {
    margin: 0;
  }
  .entry__actor {
    margin: 0;
  }
  .entry__body {
    padding: 16px 0 44px;
  }
  .docket div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .views li {
    grid-template-columns: minmax(0, 1fr);
  }
  .stack > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
  .quadrant {
    grid-template-columns: minmax(0, 1fr);
  }
  .quadrant > div {
    border-right: 0;
    border-bottom: 1px dashed var(--keyline);
  }
  .quadrant > div:last-child {
    border-bottom: 0;
  }
  .register a {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .counts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .counts b {
    font-size: 24px;
  }
  .legs > li,
  .legs__return {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
  .exits {
    grid-template-columns: minmax(0, 1fr);
    gap: 1px 0;
  }
  .exits dt {
    padding-top: 8px;
  }
  .marks,
  .scores {
    font-size: 12.5px;
  }
  .marks th,
  .marks td,
  .scores th,
  .scores td {
    padding: 7px 6px;
  }
}

/* A table that will not fit is allowed to scroll inside its own compartment
   rather than pushing the page sideways. */
.scroller {
  overflow-x: auto;
  margin: 24px 0;
  -webkit-overflow-scrolling: touch;
}
.scroller > table {
  margin: 0;
  min-width: 560px;
}

@media print {
  body {
    background: #fff;
    color: #000;
  }
}
