/* ==========================================================================
   Design notes (#/notes) — brief §15 handoff document
   A calm internal design-system doc on the site's own grid: a sticky contents
   rail (3 columns) beside a 9-column document whose inner grid lands on the
   page columns. Mono labels, fine rules instead of boxes, specimens on a dotted
   canvas, wide tables in labelled scroll regions. Colour only through tokens;
   panels on paper 2 re-point --fg-2 to --muted-2 (4.41:1 → 5.45:1).
   Scope: .nt (every selector starts with .nt)
   ========================================================================== */

.nt { --nt-cols: 9; padding-bottom: var(--section); }

/* ---------- Head ---------- */
.nt-head { padding-block: clamp(32px, 3.8vw, 68px) clamp(48px, 5vw, 96px); }
.nt-head__grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; align-items: end; }
.nt-head__copy { grid-column: 1 / span 7; display: grid; gap: clamp(18px, 1.9vw, 28px); justify-items: start; }
/* On the page-heading token (--t-page, 40 → 84) at the page-title width, like Start and Privacy. */
.nt-h1 {
  font-size: var(--t-page); line-height: .95; font-weight: 740; letter-spacing: -0.034em;
  font-variation-settings: "wdth" 80; text-wrap: balance; margin-left: -0.03em;
}
.nt-lead { font-size: var(--t-lead); line-height: 1.5; max-width: 31em; text-wrap: pretty; }
.nt-head__actions { margin-top: 4px; }
.nt-head__count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; margin-right: -6px; border-radius: var(--r-pill);
  background: var(--tomato); color: var(--ink); font-family: var(--mono); font-size: .75rem; font-weight: 500; font-variant-numeric: tabular-nums;
}
.nt-head__actions .btn--primary:hover .nt-head__count { background: var(--ink); color: var(--paper); }
.nt-facts { grid-column: 9 / -1; margin: 0; border-top: 1.5px solid var(--ink); }
/* A wrapping row, not a fixed two-column grid: at 200% text the value drops under its label instead of running
   off the edge. */
.nt-facts > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 11px 0 12px; border-bottom: 1px solid var(--rule); }
.nt-facts dt { flex: 0 0 7.75rem; font-family: var(--mono); font-size: var(--t-meta); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2); }
.nt-facts dd { flex: 1 1 14ch; min-width: 0; margin: 0; font-size: .9375rem; font-weight: 560; line-height: 1.4; overflow-wrap: anywhere; }
/* A phrase kept whole (a fact, a hyphenated compound): it moves to the next line as a unit, and only a phrase
   wider than the whole line (enlarged text) wraps inside itself. Never nowrap, which ran off the edge at 200%. */
.nt-nw { display: inline-block; max-width: 100%; }

/* ---------- Body: rail + document ---------- */
.nt-body { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
/* The document column is a query container: its tables decide between table and card layouts by their own width. */
.nt-main { grid-column: 4 / -1; min-width: 0; container: nt-main / inline-size; }

/* The rail box hangs 12px into the margin so the hover pills can too (an overflow:auto box clips anything
   outside it); its text, numbers and rules all start on the grid line. */
.nt-rail {
  grid-column: 1 / span 3; position: sticky; top: 92px; align-self: start;
  max-height: calc(100svh - 104px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  margin-left: -12px; padding-left: 12px;
}
.nt-rail__label { padding: 14px 0 10px; border-top: 1.5px solid var(--ink); font-family: var(--mono); font-size: var(--t-meta); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); }
.nt-rail__list { list-style: none; margin: 0 0 0 -12px; padding: 0 clamp(8px, 2vw, 32px) 0 0; }
.nt-rail__btn {
  position: relative; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); align-items: center;
  width: 100%; min-height: 44px; padding: 0 10px 0 12px; margin: 0; border: 0; border-radius: 6px; background: transparent;
  color: var(--fg-2); font-size: .96875rem; font-weight: 520; line-height: 1.2; letter-spacing: -0.004em; text-align: left;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.nt-rail__btn::before {
  content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 2px; border-radius: 2px; background: var(--tomato);
  transform: scaleY(0); transition: transform 180ms var(--ease);
}
.nt-rail__btn:hover { color: var(--ink); background: var(--paper-2); }
.nt-rail__btn:focus-visible { outline-offset: -2px; border-radius: 6px; }
.nt-rail__btn[aria-current="true"] { color: var(--ink); font-weight: 650; }
.nt-rail__btn[aria-current="true"]::before { transform: scaleY(1); }
.nt-rail__n { font-family: var(--mono); font-size: var(--t-meta); font-weight: 500; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.nt-rail__btn[aria-current="true"] .nt-rail__n { color: var(--tomato-deep); }
.nt-rail__top {
  position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 12px 0 8px -12px; padding: 0 12px;
  width: calc(100% + 12px); border: 0; border-radius: 6px; background: transparent;
  font-family: var(--mono); font-size: var(--t-meta); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2);
}
.nt-rail__top::before { content: ""; position: absolute; left: 12px; right: 0; top: 0; border-top: 1px solid var(--rule); }
.nt-rail__top:hover { color: var(--ink); background: var(--paper-2); }
.nt-rail__top:focus-visible { outline-offset: -2px; }
/* short windows (1024 × 768): the whole rail, Back to top included, fits without scrolling */
@media (max-height: 820px) {
  .nt-rail__label { padding-block: 8px 4px; }
  .nt-rail__top { margin-top: 4px; margin-bottom: 0; }
}
.nt-rail__top-icon, .nt-totop__icon { width: 15px; height: 15px; transform: rotate(-90deg); }

/* ---------- Sections ---------- */
.nt-sec { padding-top: clamp(72px, 2.6rem + 4.6vw, 136px); min-width: 0; }
.nt-sec__bar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; border-top: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: var(--t-meta); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2);
}
.nt-sec__n { color: var(--tomato-deep); font-variant-numeric: tabular-nums; }
.nt-sec__ref { text-align: right; }
.nt-sec__title {
  margin-top: clamp(22px, 2.2vw, 36px); font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.75rem); line-height: .98; font-weight: 740;
  letter-spacing: -0.032em; font-variation-settings: "wdth" 78; text-wrap: balance;
}
.nt-sec__intro { margin-top: clamp(16px, 1.6vw, 22px); font-size: clamp(1.0625rem, 1rem + .25vw, 1.25rem); line-height: 1.52; max-width: 31em; text-wrap: pretty; }
.nt-sec__intro strong { font-weight: 640; }
.nt-sec__foot { display: none; margin-top: 28px; justify-content: flex-end; }
.nt-totop {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: transparent;
  font-family: var(--mono); font-size: var(--t-meta); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2);
}
.nt-totop:hover { color: var(--ink); }

.nt-block { margin-top: clamp(44px, 1.8rem + 2.6vw, 76px); min-width: 0; }
.nt-block--tight { margin-top: clamp(32px, 1.4rem + 1.6vw, 48px); }
.nt-sec__head + .nt-block--tight { margin-top: clamp(40px, 1.6rem + 2.2vw, 64px); }
.nt-h3 {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 20px;
  font-size: clamp(1.1875rem, 1.1rem + .3vw, 1.4375rem); font-weight: 670; line-height: 1.2; letter-spacing: -0.014em; font-variation-settings: "wdth" 90;
}
.nt-h3__sub { font-family: var(--mono); font-size: var(--t-meta); font-weight: 400; letter-spacing: .02em; color: var(--fg-2); font-variation-settings: normal; }
/* Reading measure (brief: 55–70 characters a line). Archivo averages about 0.48em a character, so 30–32em holds
   a full line near 65; the site's own 36em .measure runs nearer 75 at these sizes. */
.nt-note { font-size: .9375rem; line-height: 1.55; color: var(--fg-2); max-width: 30em; text-wrap: pretty; }
.nt-note strong { color: var(--fg); font-weight: 620; }
/* a measurement the page could not take: icon and words, never colour alone */
.nt-note--warn { display: flex; align-items: flex-start; gap: 8px; color: var(--error); }
.nt-note--warn .icon { flex: none; width: 16px; height: 16px; margin-top: 3px; }
.nt-note + .nt-scroll, .nt-note + .nt-ladder { margin-top: 20px; }
.nt-scroll + .nt-scroll__hint + .nt-note { margin-top: 18px; }
.nt-code {
  font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: 0; line-height: 1.5; padding: .1em .42em; border-radius: 4px;
  background: color-mix(in srgb, var(--fg) 7%, transparent); color: var(--fg); white-space: nowrap;
}
.nt-sec__intro .nt-code, .nt-note .nt-code, .nt-spec__foot .nt-code, .nt-bullets .nt-code { font-size: .8125em; padding: .06em .32em; }
.nt-path { font-family: var(--mono); font-size: .875em; letter-spacing: -0.01em; }
.nt-muted { color: var(--fg-2); }
.nt-bullets { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.nt-bullets li { position: relative; padding-left: 18px; font-size: .9375rem; line-height: 1.5; }
.nt-bullets li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--tomato); }

/* ---------- Tables ---------- */
.nt-scroll { position: relative; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.nt-scroll:focus-visible { outline-offset: 4px; border-radius: 4px; }
.nt-scroll__hint { display: none; }
.nt-scroll.is-scrollable + .nt-scroll__hint {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 10px;
  font-family: var(--mono); font-size: var(--t-meta); letter-spacing: .02em; color: var(--fg-2);
}
.nt-scroll__hint .icon { width: 14px; height: 14px; }
.nt-table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
/* tables with a sticky first column draw their own cell borders: collapsed borders and sticky cells paint unreliably */
.nt-table--assets, .nt-table--fields, .nt-table--titles { border-collapse: separate; border-spacing: 0; }
.nt-table thead th {
  text-align: left; vertical-align: bottom; padding: 0 20px 10px 0; border-bottom: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: var(--t-meta); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap;
}
.nt-table tbody th, .nt-table td { text-align: left; vertical-align: top; padding: 15px 20px 15px 0; border-bottom: 1px solid var(--rule); }
.nt-table tbody th { font-weight: 640; color: var(--fg); letter-spacing: -0.004em; }
.nt-table tr > :last-child { padding-right: 0; }
.nt-num { font-family: var(--mono); font-size: .8125rem; font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; }
.nt-src { font-family: var(--mono); font-size: .78125rem; color: var(--fg-2); letter-spacing: 0; }
/* Text tables wrap inside the column (min-width 0) and turn into labelled cards when the column is narrow.
   Only numeric tables (grid, button matrix, fields, assets, titles) keep a minimum width and scroll in their region. */
.nt-table--refs { min-width: 0; }
.nt-table--refs tbody th { width: 17%; }
.nt-table--refs td { width: 27.6%; }
.nt-table--contrast td, .nt-table--contrast tbody th { vertical-align: middle; padding-block: 12px; }
.nt-table--contrast .nt-ct__sw { width: 72px; }
.nt-table--contrast .nt-ct__use { min-width: 11rem; }
.nt-table--grid { min-width: 620px; }
.nt-table--motion { min-width: 0; font-size: .875rem; }
.nt-table--motion tbody th { width: 19%; }
.nt-table--motion td:nth-child(2) { width: 25%; }
.nt-table--motion td:nth-child(3) { width: 21%; }
.nt-table--motion td:nth-child(4) { width: 15%; }
.nt-num--wrap { white-space: normal; display: block; }
.nt-table--resp { min-width: 0; }
.nt-table--resp tbody th { width: 16%; }
.nt-table--resp td { width: 28%; }
.nt-table--titles { min-width: 640px; }
.nt-table--titles tbody th, .nt-table--titles td { vertical-align: middle; padding-block: 12px; }
.nt-table--titles tbody th .text-link { font-weight: 640; }
.nt-table--titles tr.is-flagged > * { background: color-mix(in srgb, var(--error) 5%, transparent); }
.nt-table--titles tr.is-flagged > th { box-shadow: inset 3px 0 0 var(--error); padding-left: 12px; }
.nt-table--titles tr.is-flagged .nt-kind { color: var(--muted-2); }
.nt-table--titles .nt-ok--cell, .nt-table--titles .nt-warn--cell { display: flex; gap: 5px; margin-top: 5px; font-family: var(--mono); font-size: .75rem; font-weight: 500; white-space: nowrap; }
.nt-table--titles .nt-ok--cell { color: var(--fg); }
.nt-table--titles .nt-ok--cell .icon, .nt-table--titles .nt-warn--cell .icon { width: 14px; height: 14px; }
.nt-table--fields { min-width: 820px; }
.nt-table--fields tbody th, .nt-table--fields td { padding-block: 12px; }
.nt-table--fields tbody th { width: 19%; }
.nt-table--fields td:nth-child(2) { width: 15%; }
.nt-table--fields td:nth-child(3) { width: 15%; }
.nt-table--fields td:nth-child(4) { width: 13%; }
.nt-table--fields td:last-child { width: 26%; }
.nt-fill { display: inline-grid; gap: 5px; }
.nt-table--assets { min-width: 820px; font-size: .875rem; }
.nt-table--check { min-width: 0; }
.nt-table--check tbody th { width: 22%; }
.nt-table--check td:nth-child(2) { width: 30%; }
.nt-table--check td:nth-child(3) { width: 20%; }
.nt-table--dec { min-width: 0; }
.nt-table--dec tbody th { width: 27%; }
.nt-table--dec td:nth-child(2) { width: 27%; }
.nt-table--dec td:nth-child(3) { width: 17%; }

/* ---------- Status chips: shape + words ---------- */
.nt-state {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .02em; line-height: 1;
  padding: 6px 9px 6px 8px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); color: var(--fg);
}
.nt-state__glyph { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; }
.nt-state--met { background: color-mix(in srgb, var(--ok) 9%, transparent); border-color: color-mix(in srgb, var(--ok) 38%, transparent); }
.nt-state--met .nt-state__glyph { background: var(--ok); border-color: var(--ok); }
.nt-state--half .nt-state__glyph { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.nt-state--open { border-style: dashed; border-color: color-mix(in srgb, var(--fg) 45%, transparent); }
.nt-state--open .nt-state__glyph { border-style: dashed; }
.nt-state--test .nt-state__glyph { background: radial-gradient(circle, currentColor 0 1.9px, transparent 2.4px); }
.nt-tally { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; min-width: 0; }
.nt-tally__item { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; max-width: 100%; }
.nt-tally__n { font-size: 1.5rem; font-weight: 720; line-height: 1; letter-spacing: -0.02em; font-variation-settings: "wdth" 84; font-variant-numeric: tabular-nums; }
.nt-tally__of { font-family: var(--mono); font-size: var(--t-meta); color: var(--fg-2); white-space: nowrap; }
.nt-ph {
  display: inline-block; font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  line-height: 1.3; padding: 4px 7px; border: 1px dashed currentColor; border-radius: 3px; color: var(--fg-2); white-space: nowrap;
}
.nt-ph__b { display: block; font-weight: 400; letter-spacing: .02em; text-transform: none; }

/* ================================================================= 01 Direction */
.nt-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
.nt-pillar { display: grid; gap: 10px; align-content: start; padding-top: 16px; border-top: 1px solid var(--rule); }
.nt-pillar__k { font-family: var(--mono); font-size: var(--t-meta); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--tomato-deep); }
.nt-pillar__t { font-size: 1.0625rem; line-height: 1.45; text-wrap: pretty; }

.nt-moments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gutter); }
.nt-moment { display: grid; gap: 18px; align-content: start; }
.nt-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px; border-radius: 12px; background: var(--ink); }
.nt-thumb {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background-color: var(--ink-2);
  background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--paper) 5%, transparent) 0 1px, transparent 1px 8px);
}
.nt-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; font-size: 0; }
.nt-thumb.is-missing img { visibility: hidden; }
.nt-moment__body { display: grid; gap: 8px; justify-items: start; }
.nt-moment__n { font-family: var(--mono); font-size: var(--t-meta); font-weight: 500; color: var(--tomato-deep); letter-spacing: .04em; }
.nt-moment__t { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.018em; font-variation-settings: "wdth" 86; }
.nt-moment__copy { font-size: .9375rem; line-height: 1.55; color: var(--fg); text-wrap: pretty; }
.nt-moment .arrow-link { font-size: 1rem; }

/* ================================================================= 02 Colour */
/* On the document grid: three swatches a row on desktop (each spans 3 of 9 columns), two on tablet and phones. */
.nt-swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gutter); }
@media (min-width: 1024px) { .nt-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nt-swatches--big { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nt-sw { display: grid; gap: 12px; align-content: start; min-width: 0; }
.nt-sw__chip {
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px; height: 108px; padding: 12px 14px;
  border-radius: var(--r-media); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 11%, transparent);
}
.nt-sw--big .nt-sw__chip { height: clamp(148px, 13vw, 196px); padding: 16px 18px 14px; }
.nt-sw__aa { font-size: 1.625rem; font-weight: 720; line-height: 1; letter-spacing: -0.02em; font-variation-settings: "wdth" 84; }
.nt-sw--big .nt-sw__aa { font-size: clamp(2.5rem, 1.9rem + 1.6vw, 3.75rem); letter-spacing: -0.03em; }
.nt-sw__pair { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .02em; }
.nt-sw__body { display: grid; gap: 4px; }
.nt-sw__name { font-weight: 650; font-size: 1rem; line-height: 1.25; }
.nt-sw__tok { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.nt-sw__hex { font-family: var(--mono); font-size: .78125rem; color: var(--fg-2); letter-spacing: .02em; }
.nt-sw__role { font-size: .875rem; line-height: 1.45; color: var(--fg-2); text-wrap: pretty; }

.nt-pairchip {
  display: grid; place-items: center; width: 60px; height: 38px; border-radius: 6px;
  font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; font-variation-settings: "wdth" 90;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 11%, transparent);
}
.nt-pairchip__line { width: 34px; border-top: 1.5px solid currentColor; }
.nt-pairchip__box { width: 34px; height: 18px; border: 1.5px solid currentColor; border-radius: 4px; }
.nt-pairchip__ring { width: 30px; height: 16px; border-radius: 3px; outline: 2px solid currentColor; outline-offset: 3px; }
.nt-pair__k { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2); }
.nt-pair { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; white-space: nowrap; }
.nt-pair__on { font-family: var(--mono); font-size: .75rem; color: var(--fg-2); }
.nt-verdict {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 5px 9px 5px 7px; border-radius: 4px;
  font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .02em; line-height: 1;
}
.nt-verdict .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.nt-verdict--pass { background: color-mix(in srgb, var(--ok) 10%, transparent); }
.nt-verdict--pass .icon { color: var(--ok); }
.nt-verdict--large { background: var(--paper-2); }
.nt-verdict--large .icon { color: var(--tomato-deep); }
.nt-verdict--fail { background: color-mix(in srgb, var(--error) 9%, transparent); color: var(--error); }
.nt-verdict--deco { border: 1px solid var(--rule); color: var(--fg-2); }
.nt-table--contrast tr.is-avoid > * { color: var(--fg-2); }
/* the verdict chip sits on paper 2, where secondary text must be --muted-2 (5.4:1), not --muted (4.4:1) */
.nt-table--contrast tr.is-avoid .nt-verdict { color: var(--muted-2); }
.nt-table--contrast tr.is-avoid .nt-pairchip { opacity: .9; }
.nt-avoid {
  display: inline-block; margin-right: 4px; padding: 3px 5px; border-radius: 3px; border: 1px solid currentColor;
  font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--error); line-height: 1;
}

/* ================================================================= 03 Typography */
.nt-faces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.nt-face {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px clamp(18px, 2vw, 32px); align-items: start;
  padding: clamp(20px, 2.2vw, 32px); border-radius: 14px; background: var(--paper-2); --fg-2: var(--muted-2);
}
.nt-face__aa { font-size: clamp(4rem, 2.6rem + 3.6vw, 6.75rem); font-weight: 720; line-height: .78; letter-spacing: -0.04em; font-variation-settings: "wdth" 84; padding-top: 4px; }
.nt-face--mono .nt-face__aa { font-family: var(--mono); font-weight: 500; letter-spacing: -0.06em; font-size: clamp(3.5rem, 2.3rem + 3vw, 5.75rem); }
.nt-face__body { display: grid; gap: 8px; min-width: 0; }
.nt-face__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 1.375rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.016em; font-variation-settings: "wdth" 88; }
.nt-face--mono .nt-face__name { font-family: var(--mono); font-weight: 500; font-size: 1.1875rem; letter-spacing: -0.02em; }
.nt-face__for { font-size: .9375rem; line-height: 1.45; color: var(--fg-2); }
.nt-face__for strong { color: var(--fg); font-weight: 620; }
.nt-kv { margin: 8px 0 0; display: grid; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
/* label and value wrap like the head facts, so enlarged text drops the value under its label */
.nt-kv > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.nt-kv dt { flex: 0 0 5.5rem; font-family: var(--mono); font-size: var(--t-meta); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-2); }
.nt-kv dd { flex: 1 1 12ch; min-width: 0; margin: 0; font-size: .875rem; line-height: 1.45; overflow-wrap: anywhere; }

/* width axis: a small ink screening room for the type */
.nt-axis {
  container-type: inline-size; display: grid; gap: 28px; padding: clamp(22px, 3vw, 44px);
  border-radius: 14px; background: var(--ink); color: var(--paper); --fg: var(--paper); --fg-2: var(--muted-on-ink); --line: var(--rule-on-ink); --focus: var(--paper);
}
.nt-axis__specimen {
  font-size: min(5.75rem, 9.4cqi); font-weight: 760; line-height: .95; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden;
  font-variation-settings: "wdth" var(--nt-w, 84); padding-block: .04em; min-height: 1.05em;
}
.nt-axis__ctl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px var(--gutter); align-items: center; }
.nt-axis__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: var(--t-meta); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-on-ink); }
.nt-axis__out { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; color: var(--paper); text-transform: none; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.nt-axis__ctl .nt-note { grid-column: 1 / -1; color: var(--muted-on-ink); font-size: .875rem; }
.nt-range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
.nt-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--paper) 28%, transparent); }
.nt-range::-moz-range-track { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--paper) 28%, transparent); }
.nt-range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--tomato); }
.nt-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; border: 0; background: var(--tomato); box-shadow: 0 0 0 4px var(--ink); }
.nt-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--tomato); box-shadow: 0 0 0 4px var(--ink); }
.nt-range:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; border-radius: 4px; }
/* seven presets in one row when the stage is wide enough, four + three below that; width above the label */
.nt-axis__presets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 760px) { .nt-axis__presets { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
/* phones: three a row, and "extra" takes the whole last row */
@container (max-width: 479px) {
  .nt-axis__presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nt-axis__presets li:last-child { grid-column: 1 / -1; }
}
.nt-axis__presets li { display: grid; }
.nt-preset {
  display: grid; align-content: start; justify-items: start; gap: 3px; min-height: 60px; padding: 10px 12px 11px; border-radius: 10px; text-align: left;
  border: 1px solid var(--rule-on-ink); background: transparent; color: var(--paper); transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.nt-preset:hover { border-color: var(--paper); }
.nt-preset[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.nt-preset__w { font-family: var(--mono); font-size: .9375rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.nt-preset__t { font-size: .8125rem; font-weight: 540; line-height: 1.25; color: var(--muted-on-ink); }
.nt-preset[aria-pressed="true"] .nt-preset__t { color: var(--ink); }

/* wordmark */
.nt-wm { display: grid; grid-template-columns: repeat(var(--nt-cols), minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 20px; }
.nt-wm__hero { grid-column: 1 / span 6; display: grid; gap: 18px; margin: 0; }
.nt-wm__stage {
  position: relative; display: grid; place-items: center; container-type: inline-size; padding: clamp(56px, 6vw, 88px) clamp(20px, 3vw, 40px) clamp(40px, 4vw, 60px);
  border-radius: 14px; box-shadow: inset 0 0 0 1px var(--rule);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 11%, transparent) 1px, transparent 1.2px); background-size: 16px 16px; background-position: -8px -8px;
}
.nt-wm__inner { position: relative; }
.nt-wm__mark { font-size: min(7rem, 18cqi); color: var(--ink); }
.nt-wm__dims { position: relative; height: 34px; margin-top: 16px; max-width: 100%; }
.nt-wm__dim { position: absolute; top: 0; display: grid; justify-items: center; gap: 8px; }
.nt-wm__dim i { display: block; width: 100%; height: 8px; border: 1.5px solid var(--tomato-deep); border-top: 0; }
.nt-wm__dim--s i { border-color: var(--ink); }
.nt-wm__dim b { font-family: var(--mono); font-size: var(--t-meta); font-weight: 500; letter-spacing: .02em; color: var(--tomato-deep); white-space: nowrap; }
.nt-wm__dim--s b { color: var(--fg); }
.nt-wm__cap { font-size: .9375rem; line-height: 1.55; color: var(--fg-2); max-width: 30em; }
.nt-wm__cap strong { color: var(--fg); font-weight: 650; }
.nt-wm__vars { grid-column: 7 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, auto); gap: 10px; align-content: start; }
/* Each variant is a size container: at enlarged text the mark is capped to the tile (it is 5.4em wide) and the
   label wraps beneath it, so neither runs out of the column. At default text the caps never bite. */
.nt-wm__var { container-type: inline-size; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 72px; padding: 14px 18px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--rule); }
.nt-wm__var > span:last-child { font-family: var(--mono); font-size: var(--t-meta); letter-spacing: .02em; color: var(--fg-2); text-align: right; }
.nt-wm__var .wordmark { font-size: min(1.875rem, 18cqi); }
.nt-wm__var--ink { background: var(--ink); color: var(--paper); box-shadow: none; }
.nt-wm__var--ink > span:last-child { color: var(--muted-on-ink); }
.nt-wm__var--tomato { background: var(--tomato); color: var(--ink); box-shadow: none; }
.nt-wm__var--tomato > span:last-child { color: var(--ink); }
.nt-wm__var--nav .wordmark { font-size: min(1.5rem, 18cqi); }
.nt-wm__var--min .wordmark { font-size: min(1rem, 18cqi); }
.nt-wm__todo { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }

/* type ladder */
.nt-ladder { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.nt-ladder__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr); column-gap: var(--gutter); align-items: center; padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.nt-ladder__meta { display: grid; gap: 5px; align-content: start; }
.nt-ladder__name { font-weight: 660; font-size: 1rem; line-height: 1.25; }
.nt-ladder__where { display: block; margin-top: 2px; font-size: .8125rem; font-weight: 400; color: var(--fg-2); }
.nt-ladder__code { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nt-ladder__file { margin-left: 4px; font-family: var(--mono); font-size: .6875rem; color: var(--fg-2); }
.nt-ladder__sizes { margin: 8px 0 2px; display: grid; grid-template-columns: repeat(3, minmax(0, 4.5rem)); gap: 8px; }
.nt-ladder__sizes > div { display: grid; gap: 3px; padding-top: 7px; border-top: 1px solid var(--rule); }
.nt-ladder__sizes dt { font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2); }
.nt-ladder__sizes dd { margin: 0; font-family: var(--mono); font-size: 1rem; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.nt-ladder__sizes small { font-size: .6875rem; font-weight: 400; color: var(--fg-2); margin-left: 1px; letter-spacing: 0; }
.nt-ladder__sizes > .nt-ladder__now { border-top: 2px solid var(--tomato); padding-top: 6px; }
.nt-ladder__line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-family: var(--mono); font-size: .75rem; font-variant-numeric: tabular-nums; }
.nt-ladder__line--brief { flex-wrap: nowrap; white-space: nowrap; }
.nt-ladder__k { font-size: .6875rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2); min-width: 7.5rem; }
.nt-ladder__flag { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 2px; padding: 4px 8px 4px 6px; border-radius: 4px; background: color-mix(in srgb, var(--error) 8%, transparent); color: var(--error); font-family: var(--mono); font-size: .75rem; font-weight: 500; }
.nt-ladder__flag .icon { width: 15px; height: 15px; }
.nt-ok, .nt-warn { display: inline-flex; align-items: center; gap: 4px; }
.nt-ok .icon { width: 15px; height: 15px; color: var(--ok); stroke-width: 2.4; }
.nt-warn { color: var(--error); }
.nt-warn .icon { width: 15px; height: 15px; }
.nt-ladder__spec { min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, var(--ink) 82%, transparent); mask-image: linear-gradient(90deg, var(--ink) 82%, transparent); padding-block: 4px; }
.nt-ladder__sample { white-space: nowrap; max-width: none; text-wrap: nowrap; }
.nt-ladder__spec .btn { pointer-events: none; }
.nt-ladder__input { display: inline-flex; align-items: center; width: auto; min-width: 16rem; color: var(--ink); }
/* hidden probes: the real title class lists, measured for "Now" in the shipped-titles table */
.nt-probe { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); visibility: hidden; pointer-events: none; white-space: nowrap; }

/* in context: hero line, card, paragraph, form field */
.nt-ctx { padding: clamp(22px, 3.2vw, 48px); border-radius: 14px; background: var(--paper-2); --fg-2: var(--muted-2); }
.nt-ctx .field__help { color: var(--muted-2); }
.nt-ctx__hero {
  font-size: clamp(2.5rem, 1.2rem + 4.6vw, 6rem); font-weight: 720; line-height: .98; letter-spacing: -0.028em;
  font-variation-settings: "wdth" 80; text-wrap: balance; max-width: 9.5em;
}
.nt-ctx__hero .swipe { color: var(--tomato); }
.nt-ctx__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr); gap: 40px var(--gutter); margin-top: clamp(32px, 3.4vw, 52px); align-items: start; }
.nt-ctx__kicker { display: flex; align-items: center; gap: 8px; }
.nt-ctx__copy { display: grid; gap: 18px; align-content: start; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.nt-ctx__field { margin-top: 10px; max-width: 30rem; }
.nt-ctx__card { min-width: 0; }

/* ================================================================= 04 Grid & spacing */
.nt-gds { display: flex; align-items: flex-start; gap: var(--gutter); }
.nt-gd { flex: var(--nt-gw) 1 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; }
.nt-gd__frame {
  height: clamp(118px, 11vw, 164px); padding-inline: var(--nt-pad); border-radius: 8px; overflow: hidden;
  background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule);
}
.nt-gd__cols { height: 100%; display: grid; grid-template-columns: repeat(var(--nt-cols), minmax(0, 1fr)); column-gap: var(--nt-gap); }
.nt-gd__cols i {
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px;
  background: color-mix(in srgb, var(--tomato) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tomato) 32%, transparent);
}
.nt-gd__cols b { font-family: var(--mono); font-size: .6875rem; font-weight: 500; color: var(--ink); }
.nt-gd__cap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.nt-gd__name { font-weight: 650; font-size: .9375rem; }
/* one fact per line at every size, so captions are the same height under all three frames. At default text
   "32px margins" fits even the mobile frame; at enlarged text a fact wraps inside it instead of overflowing. */
.nt-gd__facts { display: grid; grid-template-columns: minmax(0, 1fr); }
.nt-gd__facts > span { overflow-wrap: anywhere; }
.nt-live { margin: 22px 0; font-family: var(--mono); font-size: .8125rem; line-height: 1.7; letter-spacing: .01em; }
.nt-live strong { font-weight: 500; background: var(--ink); color: var(--paper); padding: 2px 6px; border-radius: 3px; }
.nt-live__dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--tomato); vertical-align: 1px; }
.nt-here {
  display: none; margin-left: 10px; vertical-align: 1px; padding: 3px 6px; border-radius: 3px; background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.nt-table--grid tr.is-here > * { background: color-mix(in srgb, var(--tomato) 8%, transparent); }
.nt-table--grid tr.is-here th { padding-left: 10px; }
.nt-table--grid tr.is-here .nt-here { display: inline-block; }
.nt-table--grid tr.is-here .nt-muted { color: var(--muted-2); }

/* token list in document columns 1–5, section rhythm and radii in 6–9 beside it */
.nt-spacing { display: grid; grid-template-columns: repeat(var(--nt-cols), minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 32px; align-items: start; }
.nt-space { grid-column: 1 / span 5; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nt-space__row { display: grid; grid-template-columns: 5.5rem 3.5rem minmax(0, 1fr); align-items: center; gap: 12px; min-height: 28px; }
.nt-space__val { font-family: var(--mono); font-size: .8125rem; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.nt-space__bar { height: 14px; max-width: 100%; border-radius: 2px; background: var(--tomato); }
.nt-rhythm { grid-column: 6 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.nt-rhythm > div { display: grid; gap: 8px; align-content: start; padding-top: 14px; border-top: 1px solid var(--rule); }
.nt-rhythm__k { font-family: var(--mono); font-size: var(--t-meta); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2); }
.nt-rhythm__v { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: .8125rem; }
.nt-radius { display: inline-block; width: 30px; height: 30px; background: var(--paper-3); box-shadow: inset 0 0 0 1.5px var(--ink); }
.nt-radius-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; margin-right: 10px; }
.nt-radius--pill { width: 44px; height: 24px; border-radius: var(--r-pill); }

/* ================================================================= 05 Components */
.nt-req { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); border-top: 1px solid var(--rule); }
.nt-req__item { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 10px; align-content: start; padding: 11px 0 12px; border-bottom: 1px solid var(--rule); }
.nt-req__icon { width: 16px; height: 16px; margin-top: 2px; color: var(--ok); stroke-width: 2.4; }
.nt-req__t { font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.nt-req__w { grid-column: 2; font-family: var(--mono); font-size: .75rem; letter-spacing: .01em; color: var(--fg-2); }
.nt-req__w .text-link { color: var(--fg); }

.nt-spec { border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--rule); background: var(--paper); }
.nt-spec__canvas {
  padding: clamp(20px, 2.8vw, 40px);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 10%, transparent) 1px, transparent 1.2px); background-size: 16px 16px; background-position: -8px -8px;
}
.nt-spec__canvas--flush { padding: clamp(16px, 2vw, 28px) clamp(16px, 2.4vw, 32px) 8px; }
.nt-spec__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px var(--gutter); padding: 22px clamp(20px, 2.8vw, 40px); border-top: 1px solid var(--rule); }
.nt-spec__live { padding: 22px clamp(20px, 2.8vw, 40px) 24px; border-top: 1px solid var(--rule); display: grid; gap: 14px; }
.nt-spec__k { font-family: var(--mono); font-size: var(--t-meta); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2); }
.nt-spec__foot { padding: 14px clamp(20px, 2.8vw, 40px) 16px; border-top: 1px solid var(--rule); background: var(--paper-2); --fg-2: var(--muted-2); font-size: .875rem; line-height: 1.5; color: var(--muted-2); text-wrap: pretty; }
/* The fill stays full width; the end padding grows so the text column never runs past 32em (the reading measure). */
.nt-spec__foot { --nt-foot-pad: clamp(20px, 2.8vw, 40px); padding-inline-end: max(var(--nt-foot-pad), 100% - var(--nt-foot-pad) - 32em); }
.nt-spec__foot .nt-code { color: var(--ink); }
.nt span.btn { pointer-events: none; cursor: default; }
.nt-state-tag {
  display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
  font-family: var(--mono); font-size: .71875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2);
}
.nt-state-tag::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: currentColor; }
.nt-state-tag--err { color: var(--error); }
.nt-state-tag--inline { display: inline-flex; margin: 0 0 0 10px; vertical-align: 2px; }
.nt-na { font-family: var(--mono); font-size: .75rem; color: var(--fg-2); white-space: nowrap; }

/* simulated states for the static matrix (the live row below uses the real :hover/:focus) */
.nt .nt-sim-hover.btn--primary { background: var(--btn-hover-bg); color: var(--btn-hover-fg); }
.nt .nt-sim-hover.btn--secondary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.nt .nt-sim-hover.btn--ghost { text-decoration: underline; text-underline-offset: .2em; }
.nt .nt-sim-hover .icon--right { transform: translateX(3px); }
.nt .nt-sim-hover .icon--left { transform: translateX(-3px); }
.nt .nt-sim-press { transform: scale(.98); }
.nt .nt-sim-focus { outline: 2px solid var(--focus); outline-offset: 3px; }
.nt-matrix { min-width: 720px; }
.nt-matrix thead th { padding: 0 12px 12px 0; }
.nt-matrix tbody th, .nt-matrix td { vertical-align: middle; padding: 18px 12px 18px 0; }
.nt-matrix tbody th { width: 1%; padding-right: 24px; }
.nt-matrix tbody tr:last-child > * { border-bottom: 0; }
.nt-matrix .is-loading::after { animation-play-state: paused; }
.nt-sizes { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; }
.nt-size { display: grid; gap: 8px; justify-items: start; }
.nt-size__k { font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; color: var(--fg-2); }
.nt-oningk { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; border-radius: 12px; }

.nt-links { display: grid; gap: 14px; }
.nt-links .body { max-width: 34em; }
.nt-links__row { display: flex; flex-wrap: wrap; gap: 4px 32px; }

.nt-rels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--gutter); }
.nt-rel { display: grid; gap: 8px; align-content: start; }
.nt-rel__chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.nt-rel__ink { display: inline-flex; padding: 6px; border-radius: 8px; }
.nt-rel__shape { font-weight: 640; font-size: .9375rem; }
.nt-rel__note { font-size: .875rem; line-height: 1.45; color: var(--fg-2); }
.nt-tags { display: flex; flex-wrap: wrap; gap: 16px 36px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
.nt-tags__item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.nt-tags__k { font-size: .875rem; color: var(--fg-2); display: inline-flex; align-items: center; gap: 6px; }

.nt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--gutter); align-items: start; }
.nt-cards__item { min-width: 0; }
.nt-cards .work-card__media:has(.work-card__failed) img { visibility: hidden; }
.nt-card-fail__media { cursor: default; }
.nt-card-fail__mark { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-on-ink); }
.nt-card-fail__mark .icon { width: 40px; height: 40px; stroke-width: 1.4; }

/* player chrome mock */
.nt-pmwrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr); gap: 28px var(--gutter); align-items: start; }
.nt-pmfig { margin: 0; display: grid; gap: 12px; }
.nt-pmfig__cap { font-size: .875rem; line-height: 1.45; color: var(--fg-2); }
.nt-pm { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-media); overflow: hidden; isolation: isolate; background: var(--ink-2); color: var(--paper); }
.nt-pm.is-missing img { visibility: hidden; }
.nt-pm__scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 2; background: linear-gradient(to top, color-mix(in srgb, var(--ink) 82%, transparent), transparent); }
.nt-pm__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 2px; padding: 8px; }
.nt-pm__ctl { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.nt-pm__ctl .icon { width: 22px; height: 22px; }
.nt-pm__cc { font-family: var(--mono); font-size: .75rem; font-weight: 500; border: 1.5px solid currentColor; border-radius: 3px; padding: 2px 4px; line-height: 1; }
.nt-pm__time { position: relative; flex: none; display: flex; align-items: center; height: 44px; padding: 0 6px; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.nt-pm__seek { position: relative; flex: 1; min-width: 40px; height: 44px; display: flex; align-items: center; }
.nt-pm__vol { position: relative; flex: none; width: 64px; height: 44px; display: flex; align-items: center; }
.nt-pm__track { position: relative; display: block; width: 100%; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--paper) 25%, transparent); }
.nt-pm__buf { position: absolute; inset: 0 auto 0 0; width: 62%; border-radius: inherit; background: color-mix(in srgb, var(--paper) 55%, transparent); }
.nt-pm__pct { position: absolute; inset: 0 auto 0 0; width: 34%; border-radius: inherit; background: var(--tomato); }
.nt-pm__pct--full { width: 100%; background: var(--paper); }
.nt-pm__thumb { position: absolute; left: 34%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--paper); }
.nt-pm__pin {
  position: absolute; left: 50%; top: -22px; transform: translateX(-50%); z-index: 2;
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--tomato); color: var(--ink);
  font-family: var(--mono); font-size: .6875rem; font-weight: 500; line-height: 1; box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 55%, transparent);
}
.nt-pm__thumb .nt-pm__pin { top: -37px; }
.nt-keys { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.nt-keys li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 40px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: .875rem; line-height: 1.35; }
.nt-keys__n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--tomato); color: var(--ink); font-family: var(--mono); font-size: .6875rem; font-weight: 500; }
.nt-keys__k { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: .75rem; color: var(--fg-2); white-space: nowrap; }
.nt kbd {
  display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 5px; border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 18%, transparent);
  background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: .71875rem; font-weight: 500; line-height: 1;
}
.nt-pstates { list-style: none; margin: 0; padding: 22px clamp(20px, 2.8vw, 40px) 26px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px var(--gutter); border-top: 1px solid var(--rule); }
.nt-pstate { display: grid; gap: 6px; align-content: start; min-width: 0; }
.nt-pstate__tile {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; gap: 8px; margin-bottom: 6px; padding: 10px;
  border-radius: 10px; overflow: hidden; background: var(--ink-2); color: var(--paper);
}
.nt-pstate__tile--dim { background: color-mix(in srgb, var(--ink) 92%, var(--paper)); }
.nt-pstate__play { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); color: var(--ink); }
.nt-pstate__play .icon { width: 20px; height: 20px; margin-left: 3px; }
.nt-pstate__lbl { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-family: var(--mono); font-size: .6875rem; letter-spacing: .04em; }
.nt-pstate__pill {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px 0 8px;
  border-radius: var(--r-pill); background: color-mix(in srgb, var(--ink) 80%, transparent); font-family: var(--mono); font-size: .6875rem; letter-spacing: .03em; white-space: nowrap;
}
.nt-pstate__pill .icon { width: 12px; height: 12px; }
.nt-pstate__spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--paper) 35%, transparent); border-top-color: var(--paper); }
.nt-pstate__fail { display: grid; gap: 8px; justify-items: start; max-width: 92%; padding: 10px 11px; border-radius: 6px; background: var(--ink); font-size: .75rem; line-height: 1.3; box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 60%, transparent); }
.nt-pstate__fail strong { font-weight: 650; }
.nt-pstate__end { display: grid; gap: 6px; justify-items: center; }
.nt-pstate__chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 26px; max-width: 100%; padding: 4px 10px; border-radius: 13px;
  border: 1px solid color-mix(in srgb, var(--paper) 60%, transparent); font-size: .6875rem; font-weight: 600; line-height: 1.2; text-align: center;
}
.nt-pstate__chip .icon { width: 11px; height: 11px; }
.nt-pstate__fail .nt-pstate__chip, .nt-pstate__chip--on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.nt-pstate__t { font-weight: 650; font-size: .9375rem; }
.nt-pstate__d { font-size: .8125rem; line-height: 1.45; color: var(--fg-2); }

.nt-acc { padding-block: clamp(8px, 1vw, 16px); }
.nt .acc-item h4 { margin: 0; font: inherit; }
.nt-acc .acc-panel__inner { color: var(--fg); }

.nt-form { display: grid; gap: 32px; }
.nt-esum { margin-bottom: 0; max-width: 46rem; }
.nt-esum:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.nt-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gutter); }
.nt-form__col { display: grid; gap: 4px; align-content: start; }
.nt-form__col .field + .nt-state-tag { margin-top: 24px; }
.nt-form__choices legend { display: flex; flex-wrap: wrap; align-items: center; }

.nt-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 64px); }
.nt-steps__ol { margin-bottom: 0; }

.nt-notices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px var(--gutter); }
.nt .notice h4 { font-size: 1.0625rem; font-weight: 680; margin-bottom: 4px; line-height: 1.3; }
.nt .notice p { font-size: .9375rem; }

/* ================================================================= 06 Motion */
.nt-curve-tag { display: block; margin-top: 4px; font-family: var(--mono); font-size: .6875rem; font-weight: 400; letter-spacing: .03em; color: var(--fg-2); }
.nt-src--sub { display: block; margin-top: 6px; font-weight: 400; font-size: .71875rem; line-height: 1.4; overflow-wrap: break-word; }
.nt-motion2 { display: grid; grid-template-columns: repeat(var(--nt-cols), minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; }
.nt-easing { grid-column: 1 / span 5; }
.nt-reduce { grid-column: 6 / -1; }
.nt-easing__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.nt-ease { margin: 0; display: grid; gap: 12px; align-content: start; }
.nt-curve { width: 100%; max-width: 168px; height: auto; overflow: visible; }
.nt-curve__box { fill: color-mix(in srgb, var(--ink) 3%, transparent); stroke: var(--rule); stroke-width: 1; }
.nt-curve__handle { fill: none; stroke: var(--fg-2); stroke-width: 1; stroke-dasharray: 3 3; }
.nt-curve__path { fill: none; stroke: var(--tomato); stroke-width: 3; stroke-linecap: round; }
.nt-curve__pt { fill: var(--ink); }
.nt-ease figcaption { display: grid; gap: 4px; justify-items: start; font-size: .875rem; line-height: 1.4; }
.nt-ease__v { font-family: var(--mono); font-size: .71875rem; color: var(--fg-2); }
.nt-easing > .nt-note { margin-top: 18px; }
.nt-reduce__now { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--paper-2); color: var(--muted-2); }
.nt-reduce__now .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--ink); }
.nt-reduce__now strong { color: var(--ink); }

.nt-bench { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--gutter); }
.nt-bench__item { display: grid; gap: 6px; align-content: start; justify-items: start; }
.nt-bench__item .btn { margin-top: 10px; }
.nt-bench__item .btn .icon { width: 14px; height: 14px; }
.nt-bench__stage {
  position: relative; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 8px; overflow: hidden; border-radius: 10px; background: var(--paper-2);
  display: grid; align-content: center; justify-items: start; gap: 9px; padding: 0 16%;
}
.nt-bench__name { font-weight: 650; font-size: .9375rem; }
.nt-bench__spec { font-family: var(--mono); font-size: .75rem; color: var(--fg-2); }
.nt-bench__line { display: block; width: 86%; height: 11px; border-radius: 3px; background: var(--ink); }
.nt-bench__line:nth-child(2) { width: 64%; }
.nt-bench__line--s { width: 44%; background: var(--tomato); }
.nt-bench__head { display: block; width: 70%; height: 18px; border-radius: 3px; background: var(--ink); }
.nt-bench__stage--reveal .nt-bench__line { width: 90%; height: 8px; background: color-mix(in srgb, var(--ink) 40%, transparent); }
.nt-bench__stage--settle, .nt-bench__stage--viewer { justify-items: center; padding: 0; }
.nt-bench__frame { display: block; width: 38%; aspect-ratio: 4 / 5; border-radius: 6px; background: var(--ink); box-shadow: 0 14px 24px -14px color-mix(in srgb, var(--ink) 70%, transparent); position: relative; }
.nt-bench__frame::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--tomato); }
.nt-bench__stage--viewer::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 55%, transparent); }
.nt-bench__dialog { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 5px; width: 70%; aspect-ratio: 16 / 10; padding: 5px; border-radius: 6px; background: var(--ink); }
.nt-bench__dialog span { border-radius: 3px; background: var(--ink-3); }
.nt-bench__dialog::after { content: ""; border-radius: 3px; background: color-mix(in srgb, var(--paper) 12%, transparent); }
.nt-bench__stage--intro.is-play .nt-bench__line { animation: rise 560ms var(--ease-out) both; }
.nt-bench__stage--intro.is-play .nt-bench__line:nth-child(2) { animation-delay: 50ms; }
.nt-bench__stage--intro.is-play .nt-bench__line:nth-child(3) { animation-delay: 100ms; }
.nt-bench__stage--settle.is-play .nt-bench__frame { animation: settle 640ms 120ms var(--ease-out) both; }
.nt-bench__stage--reveal.is-play > * { animation: rise 420ms var(--ease-out) both; }
.nt-bench__stage--viewer.is-play::before { animation: fade 220ms var(--ease) both; }
.nt-bench__stage--viewer.is-play .nt-bench__dialog { animation: viewer-in 220ms var(--ease-out) both; }

/* ================================================================= 07 Responsive */
.nt-ruler { padding: 40px 14px 46px; border-radius: 12px; background: var(--paper-2); --fg-2: var(--muted-2); margin-bottom: 16px; }
.nt-ruler__track { position: relative; height: 2px; background: var(--ink); }
.nt-ruler__tick { position: absolute; top: -4px; width: 1px; height: 10px; background: var(--ink); }
.nt-ruler__tick.is-major { top: -7px; height: 16px; width: 2px; margin-left: -.5px; }
.nt-ruler__tick b { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .6875rem; font-weight: 400; color: var(--fg-2); white-space: nowrap; }
.nt-ruler__tick.is-major b { color: var(--ink); font-weight: 500; top: 19px; }
.nt-ruler__tick:nth-child(even) b { top: 30px; }
.nt-ruler__tick:first-child b { transform: none; left: 0; }
.nt-ruler__tick:nth-child(10) b { transform: translateX(-100%); left: auto; right: 0; }
.nt-ruler__you { position: absolute; top: -30px; width: 2px; height: 30px; margin-left: -1px; background: var(--tomato); }
.nt-ruler__you b {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 2px; padding: 3px 6px; border-radius: 3px;
  background: var(--tomato); color: var(--ink); font-family: var(--mono); font-size: .6875rem; font-weight: 500; white-space: nowrap;
}

/* ================================================================= 08 Accessibility */
.nt-checks { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.nt-check { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 4.6fr) minmax(0, 2.2fr); gap: 6px var(--gutter); align-items: baseline; padding: 14px 0 15px; border-bottom: 1px solid var(--rule); }
.nt-check__t { font-weight: 640; font-size: .9375rem; line-height: 1.35; }
.nt-check__d { display: grid; gap: 8px; max-width: 31em; font-size: .9375rem; line-height: 1.5; color: var(--fg); text-wrap: pretty; }
.nt-check__live { font-size: .8125rem; line-height: 1.6; color: var(--fg-2); }
.nt-check__live .nt-code { font-size: .6875rem; padding: .05em .35em; }
.nt-check__s { justify-self: end; }

/* ================================================================= 09 Content model */
.nt-types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--gutter); }
.nt-type { display: grid; gap: 6px; align-content: start; padding-top: 14px; border-top: 1px solid var(--rule); }
.nt-type__k { font-family: var(--mono); font-size: var(--t-meta); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2); }
.nt-type__v { font-size: 1.5rem; font-weight: 720; line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "wdth" 84; }
.nt-type__d { font-size: .875rem; line-height: 1.45; color: var(--fg-2); text-wrap: pretty; }
.nt-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--gutter); margin-bottom: 18px; }
.nt-who__item { display: grid; gap: 8px; align-content: start; padding: 20px 20px 22px; border-radius: 12px; background: var(--paper-2); --fg-2: var(--muted-2); }
.nt-who__q { font-size: 1.1875rem; font-weight: 680; line-height: 1.2; letter-spacing: -0.012em; font-variation-settings: "wdth" 90; }
.nt-who__d { font-size: .9375rem; line-height: 1.5; color: var(--fg-2); }
.nt-who__ex { margin-top: 6px; padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--ink) 25%, transparent); font-size: .875rem; line-height: 1.45; }
.nt-field { display: block; margin-top: 4px; font-weight: 400; }
.nt-grp {
  display: inline-block; padding: 4px 7px; border-radius: 3px; font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2;
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); white-space: nowrap;
}
.nt-grp--required { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nt-grp--strategy { border-color: var(--tomato-deep); color: var(--tomato-deep); }
.nt-grp--build { border-style: dashed; color: var(--fg-2); }
.nt-cov { display: block; width: 44px; height: 3px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.nt-cov i { display: block; height: 100%; background: var(--ink); }
.nt-ex { font-size: .8125rem; line-height: 1.45; color: var(--fg-2); }
.nt-table--fields tr.is-missing > * { background: color-mix(in srgb, var(--ink) 2.5%, transparent); }

/* ================================================================= 10 Assets */
.nt-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-file { display: block; font-family: var(--mono); font-size: .78125rem; font-weight: 500; letter-spacing: 0; overflow-wrap: break-word; }
.nt-kind { display: block; margin-top: 3px; font-size: .8125rem; font-weight: 400; color: var(--fg-2); }
.nt-table--assets tbody th { width: 30%; min-width: 13.5rem; }
.nt-table--assets td:nth-child(3) { width: 30%; min-width: 9.5rem; }
.nt-owner { font-size: .8125rem; line-height: 1.4; }
.nt-table--assets tbody th, .nt-table--assets td { padding-block: 11px; padding-right: 16px; }
.nt-table--assets thead th { padding-right: 16px; white-space: normal; }
.nt-aset > th { padding: 26px 0 10px !important; border-bottom: 1px solid var(--ink) !important; }
.nt-table--assets tbody:first-of-type .nt-aset > th { padding-top: 14px !important; }
/* the set header stays in view while the table scrolls sideways: as wide as the document column, pinned left */
.nt-aset__in { position: sticky; left: 0; width: 100cqi; max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.nt-aset__t { font-size: 1rem; font-weight: 680; letter-spacing: -0.008em; }
.nt-aset__n { margin-left: auto; font-family: var(--mono); font-size: var(--t-meta); font-weight: 400; color: var(--fg-2); }
.nt-table--assets tbody[hidden] { display: none; }
.nt-spec-cell { white-space: nowrap; }
.nt-used { display: block; font-size: .8125rem; line-height: 1.4; }
.nt-used + .nt-used { margin-top: 3px; }
.nt-alt { display: inline-flex; align-items: flex-start; gap: 6px; font-size: .8125rem; line-height: 1.4; }
.nt-alt .icon { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--ok); stroke-width: 2.4; }
.nt-alt--no { color: var(--error); font-weight: 560; }
.nt-alt--no .icon { color: var(--error); stroke-width: 2; }
.nt-table--assets tr[hidden] { display: none; }

/* ================================================================= 11 Journeys */
.nt-journeys { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px var(--gutter); }
.nt-journey { display: grid; gap: 12px; align-content: start; justify-items: start; padding-top: 16px; border-top: 1.5px solid var(--ink); }
.nt-journey__n { font-family: var(--mono); font-size: var(--t-meta); font-weight: 500; color: var(--tomato-deep); letter-spacing: .04em; }
.nt-journey__t { font-size: clamp(1.1875rem, 1.1rem + .35vw, 1.4375rem); font-weight: 680; line-height: 1.2; letter-spacing: -0.014em; font-variation-settings: "wdth" 88; text-wrap: balance; }
.nt-journey__path { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-family: var(--mono); font-size: .78125rem; line-height: 1.4; color: var(--fg); }
.nt-journey__path li { display: inline-flex; align-items: center; }
.nt-journey__path li + li::before { content: "→"; margin: 0 8px; color: var(--tomato-deep); }
.nt-journey__check { font-size: .9375rem; line-height: 1.5; color: var(--fg); text-wrap: pretty; }
.nt-journey__check .label { margin-right: 6px; }
.nt-journey__go { margin-top: 4px; }

.nt-screens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); border-top: 1px solid var(--rule); }
.nt-screen {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 4px 14px; min-height: 56px; padding: 10px 6px 10px 0;
  border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; transition: background-color 160ms var(--ease);
}
.nt-screens li:nth-last-child(-n+2) .nt-screen { border-bottom-color: var(--rule); }
.nt-screen:hover { background: var(--paper-2); }
.nt-screen:hover .nt-screen__t { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.nt-screen__t { font-size: .9375rem; font-weight: 600; line-height: 1.35; padding-left: 2px; }
.nt-screen__r { font-family: var(--mono); font-size: .75rem; color: var(--fg-2); }
.nt-screen__icon { width: 16px; height: 16px; transition: transform 160ms var(--ease); }
.nt-screen:hover .nt-screen__icon { transform: translate(2px, -2px); }

/* ================================================================= 12 Acceptance */
.nt-score { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.nt-score__bar { display: flex; gap: 3px; height: 10px; }
.nt-score__seg { min-width: 6px; border-radius: 2px; }
.nt-score__seg--met { background: var(--ok); }
.nt-score__seg--half { background: repeating-linear-gradient(135deg, var(--ink) 0 2px, var(--paper-3) 2px 5px); }
.nt-score__seg--open { background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--ink); }
.nt-score__seg--test { background: radial-gradient(var(--ink) 1px, transparent 1.4px) 0 0 / 4px 4px, var(--paper-2); box-shadow: inset 0 0 0 1px var(--ink); }
.nt-accept { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); counter-reset: nt-acc; }
.nt-accept__item {
  counter-increment: nt-acc; display: grid; grid-template-columns: 2rem minmax(0, 4.4fr) minmax(0, 2fr) minmax(0, 3fr); gap: 6px var(--gutter);
  align-items: baseline; padding: 15px 0 16px; border-bottom: 1px solid var(--rule);
}
.nt-accept__item::before { content: counter(nt-acc, decimal-leading-zero); font-family: var(--mono); font-size: var(--t-meta); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.nt-accept__t { font-size: .9375rem; font-weight: 600; line-height: 1.42; text-wrap: pretty; }
.nt-accept__n { font-size: .875rem; line-height: 1.45; color: var(--fg-2); text-wrap: pretty; }
.nt-cps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--gutter); }
.nt-cp { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; justify-items: start; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.nt-cp::before { content: ""; position: absolute; left: 0; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--tomato); }
.nt-cp__n { font-family: var(--mono); font-size: var(--t-meta); font-weight: 500; color: var(--tomato-deep); }
.nt-cp__t { font-size: 1.0625rem; font-weight: 680; line-height: 1.25; letter-spacing: -0.008em; }
.nt-cp__d { font-size: .875rem; line-height: 1.5; color: var(--fg-2); text-wrap: pretty; }
.nt-cp__links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .875rem; font-weight: 560; }
.nt-cp__links.nt-muted { font-weight: 400; }
.nt-cp__s { margin-top: 6px; max-width: 100%; }
/* a quarter-width column at enlarged text: the chip's words wrap inside it rather than pushing past the page */
.nt-cp__s .nt-state { white-space: normal; line-height: 1.2; }

/* ================================================================= 13 Decisions + end */
.nt-table--dec td .text-link { font-weight: 540; }
.nt-dec__n { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: var(--t-meta); font-weight: 400; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.nt-dec__t { display: block; }
.nt-dec__s { display: block; margin-top: 10px; font-weight: 400; }
.nt-cell-chip { display: block; margin-bottom: 8px; }
.nt-inline-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; margin: -11px 0; border: 0; background: none; text-align: left; font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
.nt-inline-btn:hover { text-decoration-color: currentColor; }
.nt-end {
  display: grid; gap: 16px; justify-items: start; margin-top: clamp(64px, 2.6rem + 4vw, 112px);
  padding: clamp(28px, 4vw, 56px); border-radius: 18px; background: var(--paper-2); --fg-2: var(--muted-2);
}
.nt-end__t { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.5rem); font-weight: 740; line-height: 1; letter-spacing: -0.032em; font-variation-settings: "wdth" 78; }
.nt-end__d { font-size: var(--t-lead); line-height: 1.5; max-width: 30em; color: var(--fg); text-wrap: pretty; }
.nt-end .btn-row { margin-top: 10px; }

/* ================================================================= Responsive */
@media (min-width: 1024px) {
  .nt-main > .nt-sec:first-child { padding-top: 0; }
}
@media (max-width: 1199px) {
  .nt-head__copy { grid-column: 1 / span 7; }
  .nt-facts { grid-column: 8 / -1; }
  .nt-wm__hero { grid-column: 1 / span 5; }
  .nt-wm__vars { grid-column: 6 / -1; }
  .nt-req { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-pstates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nt-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-cps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-bench { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-easing, .nt-reduce { grid-column: 1 / -1; }
  .nt-check { grid-template-columns: minmax(0, 2fr) minmax(0, 4.4fr) auto; }
  .nt-accept__item { grid-template-columns: 2rem minmax(0, 1fr) auto; }
  .nt-accept__n { grid-column: 2 / -1; }
  .nt-pmwrap { grid-template-columns: minmax(0, 1fr); }
  .nt-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
}
@media (max-width: 1023px) {
  .nt { --nt-cols: var(--cols); }
  .nt-head__copy, .nt-facts { grid-column: 1 / -1; }
  .nt-facts { max-width: 40rem; }
  .nt-main { grid-column: 1 / -1; }
  .nt-rail { grid-column: 1 / -1; position: static; max-height: none; overflow: visible; margin-left: 0; padding-left: 0; }
  .nt-rail__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); margin-left: 0; padding-right: 0; }
  .nt-rail__btn { padding-left: 0; border-radius: 0; border-bottom: 1px solid var(--rule); color: var(--fg); font-weight: 560; }
  .nt-rail__btn:hover { background: transparent; text-decoration: underline; text-underline-offset: .2em; }
  .nt-rail__btn::before, .nt-rail__top { display: none; }
  .nt-rail__btn[aria-current="true"] { font-weight: 560; }
  .nt-rail__btn[aria-current="true"] .nt-rail__n { color: var(--fg-2); }
  .nt-sec__foot { display: flex; }
  .nt-moments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-faces { grid-template-columns: minmax(0, 1fr); }
  .nt-wm__hero, .nt-wm__vars { grid-column: 1 / -1; }
  .nt-wm__vars { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .nt-ctx__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); }
  .nt-rels { grid-template-columns: minmax(0, 1fr); }
  .nt-rel { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); column-gap: var(--gutter); }
  .nt-rel__chips { grid-row: 1 / span 2; }
  .nt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-who { grid-template-columns: minmax(0, 1fr); }
  .nt-journeys { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .nt-head { padding-top: 24px; }
  .nt-head__actions .btn { flex: 1 1 auto; }
  .nt-facts dt { flex-basis: 6.5rem; }
  .nt-rail__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-rail__btn { grid-template-columns: 2rem minmax(0, 1fr); font-size: .9375rem; }
  .nt-sec { padding-top: 72px; }
  .nt-sec__bar { flex-wrap: wrap; }
  .nt-moments { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .nt-pillars { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .nt-ladder__row { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .nt-swatches, .nt-swatches--big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .nt-swatches--big .nt-sw:first-child { grid-column: 1 / -1; }
  .nt-sw__chip { height: 96px; }
  .nt-face { grid-template-columns: minmax(0, 1fr); }
  .nt-axis__ctl { grid-template-columns: minmax(0, 1fr); }
  .nt-preset { min-height: 56px; padding: 9px 10px 10px; }
  .nt-wm__vars { grid-template-columns: minmax(0, 1fr); }
  .nt-ctx__grid { grid-template-columns: minmax(0, 1fr); }
  .nt-gds { flex-direction: column; align-items: stretch; gap: 20px; }
  .nt-gd { flex: none; }
  .nt-gd__frame { height: 84px; }
  .nt-gd__cols b { display: none; }
  .nt-space, .nt-rhythm { grid-column: 1 / -1; }
  .nt-req { grid-template-columns: minmax(0, 1fr); }
  .nt-spec__row { flex-direction: column; align-items: flex-start; }
  .nt-rel { grid-template-columns: minmax(0, 1fr); }
  .nt-rel__chips { grid-row: auto; }
  .nt-cards { grid-template-columns: minmax(0, 1fr); }
  .nt-cards__item { max-width: 22rem; }
  .nt-pm__vol { display: none; }
  .nt-pm__vol + .nt-pm__ctl { margin-left: auto; }
  .nt-keys { grid-template-columns: minmax(0, 1fr); }
  .nt-pstates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-form__grid, .nt-steps, .nt-notices { grid-template-columns: minmax(0, 1fr); }
  .nt-easing__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .nt-bench { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .nt-ruler__tick:not(.is-major):not(:first-child):not(:last-child) b { display: none; }
  .nt-ruler__tick:nth-child(even) b { top: 16px; }
  .nt-ruler__tick.is-major b { top: 19px; }
  .nt-check { grid-template-columns: minmax(0, 1fr); }
  .nt-check__s { justify-self: start; margin-top: 4px; }
  .nt-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .nt-accept__item { grid-template-columns: 1.75rem minmax(0, 1fr); }
  .nt-accept__s, .nt-accept__n { grid-column: 2; }
  .nt-cps { grid-template-columns: minmax(0, 1fr); }
  .nt-screens { grid-template-columns: minmax(0, 1fr); }
  .nt-screen { grid-template-columns: minmax(0, 1fr) 18px; }
  .nt-screen__r { grid-column: 1; grid-row: 2; }
  .nt-screen__icon { grid-column: 2; grid-row: 1 / span 2; }
  .nt-end .btn-row { width: 100%; }
  .nt-end .btn { flex: 1 1 auto; }
}
/* ---------- Tables → labelled cards when the document column is narrow ----------
   A container query on .nt-main, because the column's width does not follow the window: it is 702–857px at
   1024–1199 (beside the rail) but 836–959px at 900–1023 (rail on top). Text tables stack under 820px; the motion
   table, which reads well as a table down to 600px, stacks under that. Each card is a header row and then its
   labelled facts in as many columns as fit. */
@container nt-main (max-width: 819px) {
  .nt-table--stack thead, .nt-table--contrast thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nt-table--stack tbody, .nt-table--contrast tbody { display: block; }
  .nt-table--stack tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 14px var(--gutter); padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
  .nt-table--stack tbody tr:first-child, .nt-table--contrast tbody tr:first-child { border-top: 1.5px solid var(--ink); }
  .nt-table--stack tbody th, .nt-table--stack td { display: block; width: auto !important; padding: 0 !important; border: 0; }
  .nt-table--stack tbody th { grid-column: 1 / -1; font-size: 1.0625rem; line-height: 1.3; }
  .nt-table--stack td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 3px;
    font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2);
  }
  /* contrast: sample and pair, then ratio · verdict on one line, then what the pair is used for */
  .nt-table--contrast tr {
    display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "sw pair pair" "sw ratio res" "use use use";
    gap: 8px 14px; align-items: center; padding: 16px 0 18px; border-bottom: 1px solid var(--rule);
  }
  .nt-table.nt-table--contrast tr > * { display: block; width: auto !important; min-width: 0 !important; padding: 0 !important; border: 0; }
  .nt-table--contrast .nt-ct__sw { grid-area: sw; align-self: start; }
  .nt-table--contrast .nt-ct__pair { grid-area: pair; }
  .nt-table--contrast .nt-ct__ratio { grid-area: ratio; font-size: .875rem; font-weight: 500; }
  .nt-table--contrast .nt-ct__res { grid-area: res; justify-self: start; }
  .nt-table--contrast .nt-ct__use { grid-area: use; font-size: .875rem; line-height: 1.5; }
  .nt-table--contrast .nt-pair { flex-wrap: wrap; white-space: normal; row-gap: 4px; }
  /* numeric tables that scroll here keep their first column in view */
  .nt-table--assets tbody th[scope="row"], .nt-table--fields tbody th, .nt-table--titles tbody th {
    position: sticky; left: 0; z-index: 1; background: var(--paper); box-shadow: 10px 0 12px -10px color-mix(in srgb, var(--ink) 30%, transparent);
  }
  .nt-table--fields tr.is-missing th { background: color-mix(in srgb, var(--ink) 2.5%, var(--paper)); }
  .nt-table--titles tr.is-flagged > th { background: color-mix(in srgb, var(--error) 5%, var(--paper)); }
}
@container nt-main (max-width: 599px) {
  .nt-table--stack-sm thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nt-table--stack-sm tbody { display: block; }
  .nt-table--stack-sm tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 14px var(--gutter); padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
  .nt-table--stack-sm tbody tr:first-child { border-top: 1.5px solid var(--ink); }
  .nt-table--stack-sm tbody th, .nt-table--stack-sm td { display: block; width: auto !important; padding: 0 !important; border: 0; }
  .nt-table--stack-sm tbody th { grid-column: 1 / -1; font-size: 1.0625rem; line-height: 1.3; }
  .nt-table--stack-sm td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 3px;
    font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2);
  }
}
@media (max-width: 480px) {
  .nt-wm__word { display: none; }
  .nt-wm__var { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
  .nt-wm__var > span:last-child { text-align: left; }
}
@media (max-width: 420px) {
  .nt-pm__time--dur { display: none; }
  .nt-pstate__pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nt-pstate__pill { padding: 0 9px; }
  .nt-pstate__play { width: 40px; height: 40px; margin-top: -14px; }
  .nt-pstate__lbl { bottom: 8px; }
  .nt-pm__ctl { width: 36px; height: 36px; }
  .nt-pm__bar { padding: 6px; }
  .nt-pstates { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 12px; }
  .nt-pstate__fail { font-size: .6875rem; }
  .nt-tally__n { margin-right: 6px; }
}
@media (max-width: 359px) {
  .nt-rail__list { grid-template-columns: minmax(0, 1fr); }
  .nt-types, .nt-bench, .nt-easing__row { grid-template-columns: minmax(0, 1fr); }
  .nt-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}

/* Reduced motion: the global rule removes movement; the rail marker and specimens simply change state. */
@media (prefers-reduced-motion: reduce) {
  .nt-rail__btn::before { transition: none; }
}
