/* SPDX-License-Identifier: AGPL-3.0-or-later */

/* Modelwrite project site.
   Hand-written CSS. No @import, no web fonts, no external requests, no build
   step.

   Direction A - "precision instrument". The page is a measurement tool, not a
   document: a cold even canvas, every value on a plain white sheet, hairline
   rules instead of shadows, square corners, and one petrol accent spent only on
   state and action. A dark graphite instrument face runs across the top of this
   surface and of the workbench.

   ONE PALETTE, TWO SURFACES. The hex literals below are the same literals that
   the workbench stylesheet uses (server/src/ui/layout.rs, the STYLE constant),
   mapped onto this file's token names:

     --bg          -> --surface-1 (canvas)      --panel       -> panel/well
     --line        -> --border                  --line-strong -> --border-strong
     --ink         -> --text                    --ink-soft    -> --text-2
     --muted       -> --text-2                  --faint       -> --text-3
     --accent      -> --accent                  --accent-deep -> --accent-strong
     --pass/--fail/--warn keep their meanings on both surfaces.

   Palette marker: instrument-2026-09 */

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

:root {
  /* canvas and sheets */
  --bg: #f5f7f9;
  --surface: #ffffff;
  --panel: #edf1f4;
  --panel-2: #e4e9ee;

  /* rules */
  --line: #cfd7de;
  --line-strong: #aeb9c2;

  /* ink - three measured steps, all AA on every surface they sit on */
  --ink: #101418;
  --ink-soft: #2c343b;
  --muted: #49535c;
  --faint: #5f6973;

  /* the one accent: state, action, link. Never decoration. */
  --accent: #0b6e99;
  --accent-deep: #075a7e;
  --accent-tint: #e6f2f7;

  /* the graphite instrument face */
  --chrome: #101418;
  --chrome-ink: #e7edf2;
  --chrome-muted: #9aa5ae;
  --chrome-line: #2a323a;
  --accent-bright: #5cc6de;

  /* A gate that failed stays red and a stated warning stays amber. Nothing
     else on the page is coloured. */
  --pass: #116b34;
  --pass-bg: #e4f2e9;
  --pass-line: #b9d9c6;
  --pass-ink: #0d5228;
  --fail: #a3231c;
  --fail-bg: #fae9e7;
  --fail-line: #e6c4c0;
  --fail-ink: #7e1a14;
  --warn: #7a5200;
  --warn-bg: #fbf1da;
  --warn-line: #e6d3a8;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, Menlo, monospace;

  --shell: 72rem;
  --prose: 44rem;
  --radius: 2px;
  --radius-sm: 2px;
}

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

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

html {
  /* 17px base: the body copy and the navigation were the two things the review
     called small. Every component size in this file is in rem, so one number
     moves the whole scale. */
  font-size: 17px;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
p { margin: 0 0 1rem; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-deep); }

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

code {
  background: var(--panel-2);
  border-radius: var(--radius-sm);
  padding: 0.12em 0.34em;
  word-break: break-word;
  font-size: 0.88em;
}

pre {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.55;
}

pre code { background: none; padding: 0; font-size: 0.8125rem; word-break: normal; }

strong { font-weight: 650; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; color: var(--bg); }

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

/* ---------------------------------------------------------------- shell */

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 1.5rem; }

/* --------------------------------------------------------------- header */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  /* the same graphite face the workbench puts across the top of every page */
  background: var(--chrome);
  border-bottom: 1px solid var(--chrome-line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  min-height: 3.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--chrome-ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--chrome-ink); }
.wordmark__mark { display: block; flex: none; }

.masthead nav { margin-left: auto; }

.masthead ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.masthead nav a {
  color: var(--chrome-muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.masthead nav a:hover { color: var(--accent-bright); border-bottom-color: var(--accent-bright); }

.masthead .repo {
  font-family: var(--mono);
  font-size: 0.8125rem;
  border: 1px solid var(--chrome-line);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  color: var(--chrome-muted);
  text-decoration: none;
  white-space: nowrap;
}
.masthead .repo:hover { border-color: var(--accent-bright); color: var(--accent-bright); }

/* ----------------------------------------------------------------- hero */

.hero { padding: 2.75rem 0 2.25rem; border-bottom: 1px solid var(--line); }

/* The product capture is in the first screen, beside the copy. The wordmark is
   no longer the largest object on the page: the workbench is. */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 27rem) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 62rem) { .hero__grid { grid-template-columns: 1fr; gap: 2rem; } }

.hero__shot { margin: 0; }
.hero__shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}
.hero__shot figcaption {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: var(--prose);
}
.hero__shot figcaption b { color: var(--ink-soft); }

.hero__kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero__mark { display: block; margin: 0 0 0.75rem; }

.hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}

/* The positioning sentence carries the lead now, not the product name. */
.hero__tagline {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.15rem;
  text-wrap: balance;
}

.hero__lede { max-width: var(--prose); font-size: 1.0625rem; color: var(--ink-soft); }
.hero__lede strong { color: var(--ink); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.4rem 0 0;
}

/* One obvious primary action, in the accent. Everything else is an outline. */
.button {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
}
.button:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #ffffff; }

.button--quiet {
  background: transparent;
  color: var(--accent);
  border-color: var(--line-strong);
}
.button--quiet:hover { background: var(--panel); border-color: var(--accent); color: var(--accent-deep); }

/* A one-line statement of what is proven and what is not, directly under the
   masthead. It is the first thing a sceptical reader looks for. */
.statusline {
  margin: 1.4rem 0 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: var(--prose);
}
.statusline b { color: var(--ink); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  white-space: nowrap;
}

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

.section { padding: 3.25rem 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }

.section__head { max-width: var(--prose); margin-bottom: 1.75rem; }

.section h2 {
  font-size: clamp(1.5rem, 3.2vw, 1.95rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.025em;
}

.section h3 { font-size: 1.0625rem; margin: 2rem 0 0.6rem; }

.section__head p { color: var(--ink-soft); font-size: 1.0625rem; }

.prose { max-width: var(--prose); color: var(--ink-soft); }
.prose strong { color: var(--ink); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

/* -------------------------------------------------------- evidence cards */

.records {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
  gap: 1.25rem;
}

.record {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.record__bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.record__bar h3 {
  font-size: 0.9375rem;
  margin: 0;
  font-weight: 650;
}

.record__file {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
  flex-basis: 100%;
  margin-left: 0;
  overflow-wrap: anywhere;
}

.record--pass .record__bar { border-bottom-color: var(--pass-line); }
.record--fail .record__bar { border-bottom-color: var(--fail-line); }

.pill {
  flex: none;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.pill--pass { color: var(--pass-ink); background: var(--pass-bg); border-color: var(--pass-line); }
.pill--fail { color: var(--fail-ink); background: var(--fail-bg); border-color: var(--fail-line); }

.record dl {
  margin: 0;
  padding: 0.35rem 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.record dl > div {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 0.5rem 0.75rem;
  padding: 0.32rem 1rem;
}

.record dt { color: var(--muted); word-break: break-word; }
.record dd { margin: 0; color: var(--ink); word-break: break-word; }

.record dd.is-pass { color: var(--pass-ink); font-weight: 650; }
.record dd.is-fail { color: var(--fail-ink); font-weight: 650; }

.record__failures {
  margin: 0;
  padding: 0.6rem 1rem 0.7rem 2rem;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 0.78125rem;
  color: var(--fail-ink);
  background: var(--fail-bg);
  list-style: none;
}
.record__failures li { margin: 0.15rem 0; }
.record__failures li::before { content: "x "; font-weight: 700; }

.record__repro {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 0.8rem 1rem 0.9rem;
  background: var(--panel);
}
.record__repro p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 0.45rem;
}
.record__repro pre {
  margin: 0;
  font-size: 0.75rem;
  padding: 0.55rem 0.7rem;
  background: var(--surface);
  white-space: pre-wrap;
}

.records__caption {
  max-width: var(--prose);
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ------------------------------------------------------------ stat strip */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  margin: 1.75rem 0 0;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.stat__num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}
.stat__num--fail { color: var(--fail); }
.stat__label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------- callout */

.callout {
  border: 1px solid var(--fail-line);
  border-left: 3px solid var(--fail);
  border-radius: var(--radius);
  background: var(--fail-bg);
  padding: 1rem 1.15rem;
  margin: 1.75rem 0 0;
  max-width: var(--prose);
}
.callout h3 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--fail-ink); }
.callout p { color: var(--fail-ink); font-size: 0.9375rem; }
.callout code { background: rgba(255,255,255,0.7); }

/* ---------------------------------------------------------------- cards */

/* auto-fill, not auto-fit: a ragged last row keeps card width instead of
   stretching one card across the full width. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.25rem;
}

.card__head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.card h3 { font-size: 1rem; margin: 0; }
.card p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; }

.card__num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}

/* Status vocabulary. The same dot means the same thing everywhere it appears,
   and it is the only place a capability's maturity is expressed. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex: none;
  background: currentColor;
}

.status--works { color: var(--pass-ink); }
.status--partial { color: var(--warn); }
.status--planned { color: var(--muted); }
.status--planned::before { background: transparent; border: 2px solid currentColor; width: 0.5rem; height: 0.5rem; }

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

.limits { list-style: none; margin: 0; padding: 0; max-width: var(--prose); }

.limits > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.limits > li:last-child { border-bottom: 1px solid var(--line); }

.limits__mark {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--fail);
  padding-top: 0.15rem;
}

.limits h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.limits p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }
.limits p + p { margin-top: 0.6rem; }

/* -------------------------------------------------------------- figures */

.figures { display: grid; gap: 1.5rem; }

figure { margin: 0; }

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

figcaption {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: var(--prose);
}
figcaption b { color: var(--ink-soft); }

/* The model-health capture sits in the measure section, where the claim it
   proves is made. It is the evidence, so it gets the full measure. */
.measure__shot { margin: 2rem 0 0; max-width: 58rem; }

/* The remaining gallery is a two-up, not a three-up. */
.figures { grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); }

/* --------------------------------------------------------- architecture */

.layers { display: grid; gap: 0; max-width: 58rem; }

.layer {
  display: grid;
  grid-template-columns: 12.5rem 1fr;
  gap: 0 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.layer:last-child { border-bottom: 1px solid var(--line); }

.layer__name {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
  line-height: 1.5;
}
.layer__note {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.layer__items { margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; color: var(--ink-soft); }
.layer__items li { padding: 0.1rem 0; }
.layer__items code { font-size: 0.8125rem; }

.flow { max-width: 44rem; margin: 1.75rem 0 0; }
.flow svg { width: 100%; height: auto; display: block; }
.flow .box { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.25; }
.flow .box--accent { stroke: var(--accent); stroke-width: 1.75; }
.flow .box--out { fill: var(--panel); stroke: var(--line-strong); }
.flow .wire { stroke: var(--line-strong); stroke-width: 1.25; fill: none; }
.flow .label { font-family: var(--mono); font-size: 13px; fill: var(--ink); }
.flow .sub { font-family: var(--mono); font-size: 11px; fill: var(--muted); }

/* --------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 2.5rem 0 3rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer h2 { font-size: 0.8125rem; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.75rem; }
.site-footer p { max-width: var(--prose); }
.site-footer pre {
  background: var(--surface);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.site-footer a { color: var(--accent); }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2rem;
}

/* ------------------------------------------------------------- narrow */

@media (max-width: 46rem) {
  .shell { padding: 0 1.15rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .section { padding: 2.5rem 0; }
  .masthead nav { margin-left: 0; width: 100%; }
  .masthead .repo { margin-left: 0; }
  .record dl > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .record dt { font-size: 0.75rem; }
  .layer { grid-template-columns: 1fr; gap: 0.5rem; }
}

@media (max-width: 30rem) {
  .hero__actions .button { display: block; text-align: center; }
  .record__file { display: none; }
}

/* --------------------------------------------------------------- print */

@media print {
  .masthead, .hero__actions, .skip, .flow { display: none; }
  body { font-size: 10.5pt; }
  .section { padding: 1.2rem 0; break-inside: avoid; }
  .record, .card, .stat, figure, .layer { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .record, .cards, .stats, .layers, .door, .metric, .examples-key { border-color: #999; }
  .callout { background: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
/* ----------------------------------------------------------- trial doors */
.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.25rem;
}

.door {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
}

.door__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin-bottom: 0.4rem;
}

.door h3 { font-size: 1.05rem; margin: 0; }

.door__host {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  margin-left: auto;
}

.door__status {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  white-space: nowrap;
}
.door__status--live { color: var(--pass-ink); background: var(--pass-bg); border-color: var(--pass-line); }
.door__status--soon { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }

.door__tagline { font-size: 1.0625rem; font-weight: 650; color: var(--ink); margin: 0.4rem 0 0.6rem; }
.door p { color: var(--ink-soft); font-size: 0.9375rem; margin: 0 0 0.75rem; }
.door .button { align-self: flex-start; margin-top: auto; }

.door__note {
  margin: 0.25rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* -------------------------------------------------------------- metrics */
.metrics {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1rem;
}

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.95rem 1.05rem 1.05rem;
}

.metric__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  margin-bottom: 0.45rem;
}

.metric h4 { font-size: 0.9375rem; margin: 0; font-weight: 650; }
.metric__id { font-size: 0.75rem; color: var(--muted); }

.metric__status {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--pass-ink);
  white-space: nowrap;
}

.metric__desc { font-size: 0.875rem; color: var(--ink-soft); margin: 0 0 0.45rem; }

.metric__deps { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin: 0; }
.metric__deps span { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.6875rem; margin-right: 0.35rem; }

/* -------------------------------------------------------------- gap list */
.gaps {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  max-width: var(--prose);
}
.gaps > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
}
.gaps > li:last-child { border-bottom: 1px solid var(--line); }
.gaps__mark { font-family: var(--mono); color: var(--accent); font-weight: 700; }
.gaps p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }
.gaps strong { color: var(--ink); }

/* ------------------------------------------------------------------ faq */
.faq { list-style: none; margin: 0; padding: 0; max-width: var(--prose); }
.faq > li { padding: 1.15rem 0; border-top: 1px solid var(--line); }
.faq > li:last-child { border-bottom: 1px solid var(--line); }
.faq h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.faq p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }
.faq p + p { margin-top: 0.6rem; }

/* A reproduce block inside a limits item sits a little below the text. */
.limits pre { margin-top: 0.5rem; }
/* ----------------------------------------------------- example corpus */
.pill--warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.pill--muted { color: var(--muted); background: var(--panel-2); border-color: var(--line-strong); }

.examples-key {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.examples-key > li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem 1.1rem;
}
.examples-key .pill { display: inline-block; margin-bottom: 0.5rem; }
.examples-key p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }

.section h3.examples-sub { margin: 2.25rem 0 0.75rem; font-size: 1rem; }

.table-scroll { overflow-x: auto; }

.examples {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.9375rem;
}
.examples th, .examples td {
  text-align: left;
  vertical-align: top;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.examples thead th {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--line-strong);
  white-space: nowrap;
}
.examples tbody tr:hover { background: var(--panel); }
.examples td { color: var(--ink-soft); }
.examples .ex-name { display: block; font-weight: 650; color: var(--ink); }
.examples .ex-path {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
  white-space: nowrap;
}
.examples .ex-meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.71875rem;
  color: var(--muted);
  margin-top: 0.2rem;
  white-space: nowrap;
}
.examples .ex-upstream {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  word-break: break-word;
}
.examples .ex-demo { max-width: 30rem; }

@media (max-width: 46rem) {
  .examples .ex-path, .examples .ex-meta { white-space: normal; overflow-wrap: anywhere; }
}


