/* Tanod: route board and fare matrix. Fonts are self-hosted (SIL OFL 1.1, see fonts/). */

@font-face {
  font-family: "Bungee";
  src: url("fonts/bungee-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2-variations"), url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-var.woff2") format("woff2-variations"), url("fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ tokens */

:root {
  color-scheme: light;

  /* the fixed ink set */
  --enamel: #f3c11a;          /* signboard yellow */
  --enamel-deep: #dba705;     /* yellow in shade */
  --ink: #16140f;             /* painted black */
  --ink-on-enamel: #16140f;
  --ink-soft-on-enamel: #3d3412;
  --route: #1636a3;           /* route lettering blue */
  --route-on-enamel: #11298a;
  --go: #1d6b38;              /* verdict low */
  --stop: #c4141c;            /* reserved: high, critical, dangerous only */

  /* the body: stainless steel and posted paper */
  --steel: #d5d9da;
  --steel-hi: #eef1f1;
  --steel-lo: #a9b0b3;
  --steel-ink: #1e2224;
  --steel-ink-soft: #464f53;
  --paper: #ffffff;
  --paper-rule: #16140f;
  --paper-hair: #c9cdcf;
  --paper-ink: #16140f;
  --paper-ink-soft: #4a4f52;
  --code-ground: #16181a;
  --code-ink: #e9ece8;
  --code-dim: #9aa3a6;
  --code-key: #f3c11a;
  --code-str: #b9cdfa;
  --code-num: #f1d27a;

  --stripe-a: #1636a3;
  --stripe-b: var(--enamel);
  --stripe-c: #ffffff;

  --focus: var(--route);
  --agents-ground: #16140f;
  --trim: #b7bec1;
  --trim-edge: #8c9497;
  --on-stop: #ffffff;

  --font-sign: "Bungee", "Archivo", sans-serif;
  --font-text: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1240px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --route: #8eabff;
    --go: #5fc583;
    --stop: #ff5b5f;
    --steel: #15181b;
    --steel-hi: #22272b;
    --steel-lo: #0c0e10;
    --steel-ink: #e6e9ea;
    --steel-ink-soft: #a7b0b4;
    --paper: #1d2125;
    --paper-rule: #e6e9ea;
    --paper-hair: #3a4146;
    --paper-ink: #eef0f0;
    --paper-ink-soft: #aab3b7;
    --code-ground: #0b0c0d;
    --stripe-c: #15181b;
    --focus: #f3c11a;
  --agents-ground: #08090a;
  --on-stop: #16140f;
  --trim: #2b3135;
  --trim-edge: #454c51;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --route: #8eabff;
  --go: #5fc583;
  --stop: #ff5b5f;
  --steel: #15181b;
  --steel-hi: #22272b;
  --steel-lo: #0c0e10;
  --steel-ink: #e6e9ea;
  --steel-ink-soft: #a7b0b4;
  --paper: #1d2125;
  --paper-rule: #e6e9ea;
  --paper-hair: #3a4146;
  --paper-ink: #eef0f0;
  --paper-ink-soft: #aab3b7;
  --code-ground: #0b0c0d;
  --stripe-c: #15181b;
  --focus: #f3c11a;
  --agents-ground: #08090a;
  --on-stop: #16140f;
  --trim: #2b3135;
  --trim-edge: #454c51;
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 4.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--steel);
  color: var(--steel-ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
}

::selection { background: var(--enamel); color: var(--ink); }

a {
  color: var(--route);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 3px; }

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

html { scrollbar-color: var(--steel-lo) var(--steel); }

code, pre, kbd { font-family: var(--font-mono); font-size: 0.9em; }

p code, li code, td code, dd code {
  background: color-mix(in srgb, var(--steel-ink) 9%, transparent);
  padding: 0.05em 0.3em;
  border-radius: 3px;
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }

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

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: var(--enamel);
  padding: var(--space-2) var(--space-4);
  z-index: 20;
}
.skip:focus { top: var(--space-2); }

/* ------------------------------------------------------------------ the signboard */

.board {
  background: var(--steel);
  padding: clamp(10px, 1.6vw, 18px) clamp(10px, 1.6vw, 18px) 0;
}

/* stainless trim around the enamel face */
.board__trim {
  background: var(--trim);
  border: 1px solid var(--trim-edge);
  padding: clamp(6px, 0.9vw, 10px);
  border-radius: 6px;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.55);
}

.board__face {
  background: var(--enamel);
  color: var(--ink-on-enamel);
  border-radius: 3px;
  padding: clamp(12px, 1.6vw, 22px) clamp(16px, 3vw, 44px) clamp(16px, 2vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas:
    "util util"
    "name routes"
    "sub routes"
    "call routes";
  column-gap: clamp(20px, 4vw, 64px);
  row-gap: clamp(10px, 1.4vw, 18px);
  position: relative;
}

.util {
  grid-area: util;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 0.875rem;
  font-weight: 600;
  padding-bottom: clamp(8px, 1vw, 14px);
  border-bottom: 2px solid var(--ink-on-enamel);
}
.util a { color: var(--ink-on-enamel); text-decoration: none; }
.util a:hover { text-decoration: underline; }
.util__home { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0; }
.util ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.board__name { grid-area: name; align-self: end; }

.wordmark {
  font-family: var(--font-sign);
  font-weight: 400;
  font-size: clamp(3.4rem, 9.5vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--ink-on-enamel);
  /* sign-painter's drop shade, in route blue, then a hairline keyline */
  text-shadow:
    0.045em 0.05em 0 var(--route-on-enamel),
    0.06em 0.068em 0 var(--ink-on-enamel);
  margin-left: -0.04em;
}

.board__line {
  margin-top: clamp(12px, 1.6vw, 20px);
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  line-height: 1.12;
  font-weight: 800;
  font-stretch: 88%;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.board__sub {
  grid-area: sub;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.45;
  color: var(--ink-soft-on-enamel);
  font-weight: 500;
  max-width: 46ch;
}

.board__routes {
  grid-area: routes;
  list-style: none;
  margin: 0;
  padding: 0;
  align-self: start;
  margin-top: 6px;
  display: grid;
  align-content: start;
  gap: 0;
  border-top: 3px solid var(--ink-on-enamel);
}
.board__routes li { border-bottom: 3px solid var(--ink-on-enamel); }
.board__routes a {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  grid-template-areas: "mark name kind";
  column-gap: clamp(10px, 1.2vw, 16px);
  align-items: center;
  align-content: center;
  padding: clamp(10px, 1.1vw, 14px) 0;
  text-decoration: none;
  color: var(--route-on-enamel);
}
.board__routes .mark { grid-area: mark; width: clamp(34px, 3.4vw, 46px); height: auto; color: var(--ink-on-enamel); }
.route-name {
  grid-area: name;
  font-family: var(--font-sign);
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.route-kind {
  grid-area: kind;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft-on-enamel);
  justify-self: end;
  text-align: right;
}
.board__routes a:hover .route-name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }

/* ------------------------------------------------------------------ painted body stripe (sticky route rail) */

.stripe {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-top: clamp(14px, 2vw, 22px);
  background:
    linear-gradient(180deg,
      var(--stripe-b) 0 3px,
      var(--stripe-c) 3px 5px,
      var(--stripe-a) 5px calc(100% - 5px),
      var(--stripe-c) calc(100% - 5px) calc(100% - 3px),
      var(--stripe-b) calc(100% - 3px) 100%);
  color: #fff;
}
.stripe ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: var(--wrap);
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.stripe ul::-webkit-scrollbar { display: none; }
.stripe a {
  display: block;
  white-space: nowrap;
  padding: 0.85rem clamp(0.7rem, 1.4vw, 1.2rem) 0.8rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sign);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}
.stripe li:first-child a { padding-left: 0; }
.stripe a::after {
  content: "";
  position: absolute;
  left: clamp(0.7rem, 1.4vw, 1.2rem);
  right: clamp(0.7rem, 1.4vw, 1.2rem);
  bottom: 9px;
  height: 3px;
  background: var(--enamel);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.stripe li:first-child a::after { left: 0; }
.stripe a:hover::after { transform: scaleX(0.5); }
.stripe a[aria-current="true"] { color: var(--enamel); }
.stripe a[aria-current="true"]::after { transform: scaleX(1); }
.stripe a:focus-visible { outline-color: var(--enamel); outline-offset: -3px; }

/* ------------------------------------------------------------------ fare matrix */

.fares { padding-top: clamp(28px, 4vw, 52px); }

.matrix {
  background: var(--paper);
  color: var(--paper-ink);
  border: 3px solid var(--paper-rule);
  border-radius: 2px;
  box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.55);
}

.matrix__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding: clamp(14px, 1.8vw, 22px) clamp(14px, 2.4vw, 32px);
  border-bottom: 3px solid var(--paper-rule);
}
.matrix__head h2 {
  font-family: var(--font-sign);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}
.matrix__head p { font-size: 0.9375rem; color: var(--paper-ink-soft); font-weight: 500; }

.matrix table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.matrix th, .matrix td {
  text-align: left;
  vertical-align: top;
  padding: clamp(12px, 1.4vw, 18px) clamp(14px, 2.4vw, 32px);
  border-bottom: 1px solid var(--paper-hair);
}
.matrix thead th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-ink-soft);
  padding-top: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--paper-rule);
  white-space: nowrap;
}
.matrix tbody th { width: 20%; vertical-align: top; }
.matrix td.reads { width: 36%; }
.matrix td.fare { width: 20%; }
.matrix td.time { width: 24%; }
.matrix .ep { white-space: nowrap; }
.matrix tbody th a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper-ink);
}
.matrix tbody th .mark { width: 28px; height: auto; flex: none; }
.matrix tbody th span {
  font-family: var(--font-sign);
  font-weight: 400;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.matrix tbody th a:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.matrix .fare {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.matrix .fare small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-text);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--paper-ink-soft);
  white-space: normal;
}
.matrix td.reads { max-width: 34ch; }
.matrix .ep { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--paper-ink-soft); line-height: 1.6; }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }

.matrix__foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3) var(--space-5);
  align-items: center;
  padding: clamp(12px, 1.6vw, 18px) clamp(14px, 2.4vw, 32px);
  background: var(--enamel);
  color: var(--ink-on-enamel);
  border-top: 3px solid var(--paper-rule);
}
.matrix__foot strong {
  font-family: var(--font-sign);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.matrix__foot p { font-weight: 600; }

/* boarding strip: the first call */
.boarding {
  margin-top: clamp(18px, 2.4vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}
.boarding h2 {
  grid-column: 1 / -1;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

.cmd {
  background: var(--code-ground);
  color: var(--code-ink);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}
.cmd__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid #2c3033;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--code-dim);
}
.cmd pre {
  margin: 0;
  padding: 14px 16px 16px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  scrollbar-color: #3a3f43 transparent;
}

.copy {
  font: inherit;
  font-family: var(--font-sign);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--enamel);
  border: 0;
  border-radius: 3px;
  padding: 7px 12px 6px;
  cursor: pointer;
  min-width: 6.2rem;
  transition: background-color 160ms ease-out, transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.copy:hover { background: #ffd23d; }
.copy:active { transform: translateY(1px); }
.copy[data-state="done"] { background: #fff; }
.copy[data-state="failed"] { background: #fff; color: var(--ink); text-decoration: underline; }
.copy:focus-visible { outline-color: #fff; }

/* syntax ink for JSON and shell */
.t-k { color: var(--code-key); }
.t-s { color: var(--code-str); }
.t-n { color: var(--code-num); }
.t-c { color: var(--code-dim); }
.t-stop { color: #ff7a7e; font-weight: 700; }

/* ------------------------------------------------------------------ sections */

.section { padding-block: clamp(56px, 8vw, 112px) 0; }
.section:last-of-type { padding-bottom: clamp(56px, 8vw, 112px); }

.section__title {
  font-size: clamp(1.9rem, 4.2vw, 3.25rem);
  line-height: 1.02;
  font-weight: 800;
  font-stretch: 84%;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.section__lede {
  margin-top: var(--space-4);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  max-width: 62ch;
  color: var(--steel-ink-soft);
}

/* ------------------------------------------------------------------ route boards (one per product) */

.route { padding-top: clamp(56px, 8vw, 112px); }

.route__board {
  background: var(--enamel);
  color: var(--ink-on-enamel);
  border: 3px solid var(--ink);
  border-radius: 3px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(14px, 2vw, 24px) clamp(16px, 2.6vw, 32px);
}
.route__board .mark { width: clamp(48px, 6vw, 76px); height: auto; }
.route__board h2 {
  font-family: var(--font-sign);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--route-on-enamel);
  text-shadow: 0.04em 0.045em 0 var(--ink-on-enamel);
}
.route__board p {
  margin-top: 8px;
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  font-weight: 700;
  font-stretch: 92%;
  line-height: 1.3;
  max-width: 48ch;
}

/* the end-label grid: name, kind, fare, time, limit; identical on every route */
.label {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 3px solid var(--ink);
  border-top: 0;
  background: var(--paper);
  color: var(--paper-ink);
  margin: 0;
}
.label > div {
  padding: 12px clamp(12px, 1.6vw, 20px) 14px;
  border-right: 1px solid var(--paper-hair);
  min-width: 0;
}
.label > div:last-child { border-right: 0; }
.label dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-ink-soft);
}
.label dd {
  margin: 4px 0 0;
  font-weight: 600;
  line-height: 1.35;
}
.label dd .num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.route__body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(28px, 3.4vw, 44px);
}

.stops h3, .notcovered h3, .demo h3 {
  font-size: 1.125rem;
  font-weight: 800;
  font-stretch: 92%;
  letter-spacing: -0.005em;
  margin-bottom: var(--space-3);
}
.stops ul, .notcovered ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.stops li, .notcovered li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-bottom: 1px solid color-mix(in srgb, var(--steel-ink) 18%, transparent);
  line-height: 1.45;
}
.stops li::before {
  /* a route stop: a filled dot on the line */
  content: "";
  position: absolute;
  left: 4px;
  top: 0.95em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--route);
}
.stops li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--route);
  opacity: 0.35;
  z-index: 0;
}
.notcovered { margin-top: clamp(24px, 3vw, 36px); }
.notcovered li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 1.02em;
  width: 12px;
  height: 2px;
  background: var(--steel-ink);
}

.inputs { margin-top: clamp(24px, 3vw, 36px); }
.inputs p + p { margin-top: var(--space-3); }

.demo { display: grid; gap: clamp(16px, 2vw, 24px); align-content: start; min-width: 0; }

/* sample report: the printed slip */
.slip {
  background: var(--paper);
  color: var(--paper-ink);
  border: 2px solid var(--paper-rule);
  border-radius: 2px;
  min-width: 0;
}
.slip__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 2px solid var(--paper-rule);
  font-size: 0.8125rem;
  font-weight: 700;
}
.slip__head .synthetic {
  font-weight: 600;
  color: var(--paper-ink-soft);
}
.slip__body { padding: 16px; display: grid; gap: 14px; }
.slip__summary {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  font-weight: 600;
}
.slip pre {
  margin: 0;
  background: var(--code-ground);
  color: var(--code-ink);
  padding: 12px 14px;
  border-radius: 3px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
}
.slip dl { margin: 0; display: grid; gap: 10px; }
.slip dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-ink-soft); }
.slip dd { margin: 2px 0 0; line-height: 1.5; max-width: 70ch; }
.slip__finding-title { font-size: 1.0625rem; font-weight: 800; font-stretch: 94%; line-height: 1.3; }
.slip__meta { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--paper-ink-soft); overflow-wrap: anywhere; }
.slip__foot {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--paper-hair);
  font-size: 0.875rem;
  color: var(--paper-ink-soft);
  display: flex;
  gap: 6px 16px;
  flex-wrap: wrap;
}
.slip__warn {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 12px;
  border: 1px dashed var(--paper-ink-soft);
}

/* severity and verdict chips */
.sev {
  display: inline-block;
  font-family: var(--font-sign);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  padding: 5px 8px 4px;
  border-radius: 2px;
  border: 2px solid currentColor;
  white-space: nowrap;
}
.sev--stop { color: var(--on-stop); background: var(--stop); border-color: var(--stop); }
.sev--caution { color: var(--ink); background: var(--enamel); border-color: var(--ink); }
.sev--medium { color: var(--paper-ink); background: transparent; }
.sev--go { color: #fff; background: var(--go); border-color: var(--go); }
.score { font-family: var(--font-mono); font-weight: 700; }

/* ------------------------------------------------------------------ for agents */

.agents {
  margin-top: clamp(56px, 8vw, 112px);
  background: var(--agents-ground);
  color: #eceeea;
  border-top: 6px solid var(--enamel);
  padding-block: clamp(56px, 8vw, 104px);
}
.agents .section__title { color: #fff; }
.agents .section__lede { color: #b9bfbd; }
.agents a { color: var(--enamel); }
.agents p code, .agents li code, .agents td code, .agents dd code { background: rgba(255, 255, 255, 0.1); }

.agents__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 48px) clamp(20px, 3vw, 44px);
  margin-top: clamp(32px, 4vw, 56px);
}
.agents__mcp { grid-column: span 7; min-width: 0; }
.agents__pay { grid-column: span 5; min-width: 0; }
.agents__docs { grid-column: 1 / -1; }

.agents h3 {
  font-family: var(--font-sign);
  font-weight: 400;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--enamel);
  margin-bottom: var(--space-4);
}
.agents h3 + p { max-width: 60ch; }

.tools {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-5);
  font-size: 0.9375rem;
}
.tools th, .tools td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid #34383a;
}
.tools thead th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ea5a3;
  border-bottom: 2px solid #eceeea;
}
.tools td:first-child { font-family: var(--font-mono); font-size: 0.8125rem; white-space: nowrap; color: #fff; }

.agents .cmd { margin-top: var(--space-5); background: #000; }
.agents .cmd__bar { border-bottom-color: #2a2d2f; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #34383a;
  line-height: 1.5;
}
.steps li::before {
  content: counter(step);
  font-family: var(--font-sign);
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--ink);
  background: var(--enamel);
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 2px;
}
.agents__pay > p:last-child { margin-top: var(--space-4); color: #b9bfbd; font-size: 0.9375rem; }

.docs-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid #eceeea;
}
.docs-row a {
  display: grid;
  gap: 6px;
  padding: 18px 18px 20px 0;
  text-decoration: none;
  color: #eceeea;
  border-right: 1px solid #34383a;
  margin-right: 18px;
}
.docs-row a:last-child { border-right: 0; margin-right: 0; }
.docs-row strong {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  color: var(--enamel);
  font-weight: 700;
}
.docs-row span { font-size: 0.9375rem; color: #b9bfbd; line-height: 1.45; }
.docs-row a:hover strong { text-decoration: underline; text-underline-offset: 0.2em; }

/* ------------------------------------------------------------------ limits */

.limits__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 64px);
  margin-top: clamp(28px, 3.4vw, 44px);
  border-top: 3px solid var(--steel-ink);
}
.limits__grid section { padding: 20px 0 22px; border-bottom: 1px solid color-mix(in srgb, var(--steel-ink) 22%, transparent); }
.limits__grid h3 { font-size: 1.125rem; font-weight: 800; font-stretch: 92%; margin-bottom: 6px; }
.limits__grid p { max-width: 60ch; color: var(--steel-ink-soft); }

.notice {
  margin-top: clamp(32px, 4vw, 52px);
  border: 3px solid var(--steel-ink);
  padding: clamp(16px, 2.4vw, 28px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2vw, 28px);
  align-items: start;
  background: var(--steel-hi);
}
.notice strong {
  font-family: var(--font-sign);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  max-width: 9ch;
}
.notice p { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); font-weight: 600; max-width: 62ch; }
.notice p + p { margin-top: var(--space-3); font-weight: 500; color: var(--steel-ink-soft); }

/* ------------------------------------------------------------------ about and footer */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.about__name {
  font-family: var(--font-sign);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 0.95;
  color: var(--steel-ink);
}
.about__name span {
  display: block;
  margin-top: 10px;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--steel-ink-soft);
  max-width: 30ch;
}
.about__text p { max-width: 62ch; font-size: 1.0625rem; }
.about__text p + p { margin-top: var(--space-4); }
.disclosure {
  border-top: 3px solid var(--steel-ink);
  border-bottom: 3px solid var(--steel-ink);
  padding: 16px 0;
  font-weight: 700;
  font-size: clamp(1.125rem, 1.6vw, 1.3rem) !important;
  line-height: 1.4;
}

.foot {
  background: var(--enamel);
  color: var(--ink-on-enamel);
  border-top: 6px solid var(--ink);
}
.foot__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-5) clamp(24px, 5vw, 72px);
  align-items: end;
  padding-block: clamp(28px, 4vw, 48px);
}
.foot__mark {
  font-family: var(--font-sign);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 0.9;
  text-shadow: 0.045em 0.05em 0 var(--route-on-enamel);
}
.foot nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: flex-end;
}
.foot a { color: var(--ink-on-enamel); font-weight: 600; }
.foot__note {
  grid-column: 1 / -1;
  border-top: 2px solid var(--ink-on-enamel);
  padding-top: var(--space-4);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft-on-enamel);
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ marks */

.mark { display: block; flex: none; aspect-ratio: 1; }

/* ------------------------------------------------------------------ arrival motion: the board pulls in once */

@media (prefers-reduced-motion: no-preference) {
  .board__routes li {
    animation: pull-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .board__routes li:nth-child(2) { animation-delay: 70ms; }
  .board__routes li:nth-child(3) { animation-delay: 140ms; }
  @keyframes pull-in {
    from { transform: translateX(18px); }
    to { transform: none; }
  }
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .agents__mcp, .agents__pay { grid-column: 1 / -1; }
  .docs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-row a:nth-child(2) { border-right: 0; margin-right: 0; }
  .docs-row a:nth-child(-n+2) { border-bottom: 1px solid #34383a; }
}

@media (max-width: 900px) {
  .board__face {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "util" "name" "routes" "sub" "call";
  }
  .board__routes { margin-top: 6px; }
  .route__body { grid-template-columns: minmax(0, 1fr); }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .label { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .label > div:nth-child(2) { border-right: 0; }
  .label > div:nth-child(-n+2) { border-bottom: 1px solid var(--paper-hair); }
  .boarding { grid-template-columns: minmax(0, 1fr); }
  .limits__grid { grid-template-columns: minmax(0, 1fr); }

  /* fare matrix: each route becomes its own block */
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .matrix table, .matrix tbody, .matrix tr, .matrix th, .matrix td { display: block; width: 100%; }
  .matrix tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "name" "fare" "reads" "time";
    border-bottom: 2px solid var(--paper-rule);
    padding: 14px clamp(14px, 2.4vw, 32px) 16px;
    gap: 8px 16px;
  }
  .matrix tbody tr:last-child { border-bottom: 0; }
  .matrix tbody th, .matrix tbody td,
  .matrix tbody td.reads, .matrix tbody td.fare, .matrix tbody td.time { padding: 0; border: 0; width: auto; }
  .matrix tbody th { grid-area: name; align-self: center; }
  .matrix td.fare { grid-area: fare; }
  .matrix td.reads { grid-area: reads; max-width: none; }
  .matrix td.time { grid-area: time; }
  .matrix td.ep { grid-area: ep; }
  .matrix td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--paper-ink-soft);
    margin-bottom: 2px;
  }
  .matrix td.fare::before { display: none !important; }
  .matrix .fare small { margin-top: 4px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .slip pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .cmd pre { font-size: 0.71875rem; padding: 12px 12px 14px; }
  .board__routes a { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "mark name" "mark kind"; }
  .route-kind { justify-self: start; text-align: left; margin-top: 2px; }
  .tools td:first-child { white-space: normal; overflow-wrap: anywhere; }
  .util ul { gap: var(--space-2) var(--space-4); }
  .util { font-size: 0.8125rem; }
  .route__board { grid-template-columns: minmax(0, 1fr); }
  .route__board .mark { width: 44px; }
  .label { grid-template-columns: minmax(0, 1fr); }
  .label > div { border-right: 0; border-bottom: 1px solid var(--paper-hair); }
  .label > div:last-child { border-bottom: 0; }
  .matrix__foot { grid-template-columns: minmax(0, 1fr); }
  .docs-row { grid-template-columns: minmax(0, 1fr); }
  .docs-row a { border-right: 0; margin-right: 0; border-bottom: 1px solid #34383a; }
  .notice { grid-template-columns: minmax(0, 1fr); }
  .notice strong { max-width: none; }
  .foot__inner { grid-template-columns: minmax(0, 1fr); }
  .foot nav ul { justify-content: flex-start; }
  .tools th:nth-child(3), .tools td:nth-child(3) { display: none; }
}

@media print {
  .stripe, .copy { display: none; }
  body { background: #fff; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.board__call {
  grid-area: call;
  align-self: end;
  background: #ffffff;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 2px;
}
.board__call .cmd__bar { color: var(--ink-soft-on-enamel); border-bottom: 2px solid var(--ink); }
.board__call .cmd__bar code { color: var(--ink); font-weight: 700; }
.board__call pre { color: var(--ink); font-weight: 600; }
.board__call .copy { border: 2px solid var(--ink); }
.board__call code { background: none; padding: 0; }
.cmd__bar code { font-size: 0.95em; color: var(--code-ink); }

/* sign lettering carries the section titles too */
.section__title, .sign-title {
  font-family: var(--font-sign);
  font-weight: 400;
  font-stretch: 100%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  color: var(--steel-ink);
  text-shadow: 0.045em 0.05em 0 var(--route);
}
.section__title { font-size: clamp(1.8rem, 3.8vw, 3rem); max-width: 22ch; }
.agents .section__title { color: var(--enamel); text-shadow: 0.045em 0.05em 0 #1636a3; }
.stops h3, .notcovered h3, .demo h3 {
  font-family: var(--font-sign);
  font-weight: 400;
  font-stretch: 100%;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* posted notice board for the limits */
.noticeboard {
  margin-top: clamp(28px, 3.4vw, 44px);
  background: var(--paper);
  color: var(--paper-ink);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 7px var(--route);
  border-radius: 2px;
}
.noticeboard .limits__grid { margin-top: 0; border-top: 0; gap: 0; padding: clamp(10px, 1.4vw, 16px) clamp(16px, 2.4vw, 32px) 0; }
.noticeboard .limits__grid section { border-bottom: 1px solid var(--paper-hair); padding: 18px 0 20px; }
.noticeboard .limits__grid section:nth-child(odd) { padding-right: clamp(16px, 2.4vw, 32px); }
.noticeboard .limits__grid section:nth-child(even) { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--paper-hair); }
.noticeboard .limits__grid section:nth-last-child(-n+2) { border-bottom: 0; }
.noticeboard .limits__grid h3 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-ink);
  font-stretch: 100%;
}
.noticeboard .limits__grid p { color: var(--paper-ink-soft); }
.noticeboard .notice {
  margin: 0;
  border: 0;
  border-top: 3px solid var(--ink);
  background: var(--enamel);
  color: var(--ink-on-enamel);
}
.noticeboard .notice p + p { color: var(--ink-soft-on-enamel); }
.noticeboard .notice a { color: var(--route-on-enamel); }

/* painted pinline inside each route board */
.route__board { box-shadow: inset 0 0 0 6px var(--enamel), inset 0 0 0 8px var(--ink); }

@media (max-width: 900px) {
  .noticeboard .limits__grid section:nth-child(n) { padding: 18px 0 20px; border-left: 0; border-bottom: 1px solid var(--paper-hair); }
  .noticeboard .limits__grid section:last-child { border-bottom: 0; }
}
