/* rotascale.com — the layout grammar.
 *
 * subhadipmitra@: Rules, alignment and tabular figures. Rewritten in
 * September 2026 for the "engineered authority" direction, light only. The
 * argument is unchanged from the first version of this file: the page claims
 * this product produces records a stranger can check, and a record is set as
 * ruled columns with figures that line up — not as a soft-cornered tile
 * floating over a background. Everything below is downstream of that.
 *
 * What changed and why, in one place:
 *   - One sans (Libre Franklin) for display and reading, at 450–600 for
 *     headings. The serif is gone: two voices on one page read as a document
 *     with a marketing insert.
 *   - The magenta is spent on four things only: primary actions, keyboard
 *     focus, the selected gate in the exhibit, and the small rule that opens
 *     a kicker. Headings, bars and decoration get none of it.
 *   - Two rule strengths. `--rule` organises space; `--rule-hard` (the
 *     control border) is for controls and for lines a diagram depends on.
 *   - Rules are INSET to the content column, never full-bleed. `.wrap` keeps
 *     the padding; the rule is drawn by a pseudo-element inside it.
 *   - Labels are sentence case at 12–13px. The uppercase mono label survives
 *     only where a value is being quoted as it appears in a record.
 *   - Transitions 160ms, colour and border only. No motion that hides text.
 *
 * Every class the templates use is styled here; the token names are in
 * tokens.css. Additive edits to this file only — see the note at the bottom
 * about the python replace that once deleted 816 lines of it.
 */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--rs-bg);
  color: var(--rs-text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; }

/* subhadipmitra@: `background-color`, not the shorthand, and no `color` — see
   the original note: on some browsers only the colour of the shorthand landed,
   so selecting text darkened the letters and painted nothing behind them. */
::selection { background-color: var(--rs-selection); }
::-moz-selection { background-color: var(--rs-selection); }

.wrap { max-width: var(--rs-wrap); margin: 0 auto; padding: 0 var(--rs-inset); }

/* Anything that can scroll sideways does so inside its own box. The page body
   never does. */
.scroll-x { overflow-x: auto; }
.scroll-x + .note, .scroll-x + .limit { margin-top: 30px; }
.defs + .note, .defs + .limit, .claims + .note, .claims + .limit { margin-top: 30px; }

a { color: inherit; }
a, button { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }

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

.skip {
  position: absolute; left: -9999px; top: 12px;
  background: var(--rs-text); color: var(--rs-surface);
  padding: 12px 18px; z-index: 100; font-size: 14px; text-decoration: none;
}
.skip:focus { left: var(--rs-inset); }

/* --- type ---------------------------------------------------------------- */

h1, h2, h3 { text-wrap: balance; }

h1 {
  font-size: clamp(38px, 4.3vw, 60px);
  line-height: 1.06;
  font-weight: 470;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  max-width: 20ch;
}
/* The old serif emphasis. Kept as a weight change, never a colour. */
h1 em { font-style: normal; font-weight: 470; color: var(--rs-text-display-muted); }

h2 {
  font-size: clamp(27px, 2.4vw, 34px);
  line-height: 1.16;
  font-weight: 470;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 26ch;
}

h3 { font-size: 16.5px; font-weight: 600; margin: 0; letter-spacing: -0.008em; line-height: 1.35; }

.lead {
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: -0.012em;
  color: var(--rs-text);
  max-width: 56ch;
  margin: 0;
}
.lead b, .lead strong { font-weight: 600; }
.lead a { text-decoration-color: var(--rs-rule); text-underline-offset: 4px; }
.lead a:hover { text-decoration-color: var(--rs-accent); }

/* The kicker: a 22px accent rule and a short label. It opens every page head
   and the home hero. */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; line-height: 1.5; font-weight: 500;
  color: var(--rs-text-secondary);
  margin: 0 0 26px;
  letter-spacing: 0; text-transform: none;
}
.kicker::before { content: ""; width: 22px; flex: none; border-top: 1px solid var(--rs-accent); }
.kicker b { color: var(--rs-text); font-weight: 600; }
.kicker a { text-decoration: none; }
.kicker a:hover { color: var(--rs-text); }

/* A numbered section label: "01  Before execution". The index is the one
   place mono and the accent meet outside a control. */
.slabel {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 12.5px; line-height: 1.5; color: var(--rs-text-secondary); margin: 0;
}
.slabel .index { font-family: var(--mono); font-size: 12px; color: var(--rs-accent); }
.slabel + h2 { margin-top: 12px; }

.note { font-size: 13.5px; line-height: 1.6; color: var(--rs-text-secondary); margin: 26px 0 0; max-width: 66ch; }
.note a { text-underline-offset: 3px; }
.note a:hover { color: var(--rs-text); }

/* --- the claim mark ------------------------------------------------------
 *
 * The organising idea of this site: every claim carries the product's own
 * three-state discipline. `observed` links to the thing itself; `asserted`
 * says plainly that there is nothing here a reader can check from outside.
 */
.mark {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 3px 8px;
  white-space: nowrap;
  border: 1px solid currentColor;
  border-radius: var(--rs-radius);
  display: inline-block;
  line-height: 1.4;
}
.mark--observed { color: var(--rs-success); }
.mark--asserted { color: var(--rs-text-secondary); }
a.mark { text-decoration: none; }
a.mark:hover { background: var(--rs-success); color: var(--rs-surface); border-color: var(--rs-success); }

/* --- controls ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 22px;
  min-height: 46px; padding: 0 20px;
  font: 500 14px/1.2 var(--sans);
  text-decoration: none; cursor: pointer;
  background: var(--rs-accent); color: var(--rs-on-accent);
  border: 1px solid var(--rs-accent); border-radius: var(--rs-radius);
  white-space: nowrap;
}
.btn:hover { background: var(--rs-accent-hover); border-color: var(--rs-accent-hover); color: var(--rs-on-accent); }
.btn:disabled, .btn[disabled] { opacity: 0.55; cursor: default; }
.btn:disabled:hover { background: var(--rs-accent); border-color: var(--rs-accent); }

/* The secondary action: charcoal, with a fine magenta rule beneath. Used
   beside a primary, or alone where the action is a page rather than a
   commitment. */
.btn--ghost, .text-link {
  background: none; color: var(--rs-text);
  border: 0; border-bottom: 1px solid var(--rs-accent); border-radius: 0;
  padding: 10px 0; min-height: 44px; gap: 28px; justify-content: space-between;
}
.btn--ghost:hover, .text-link:hover { background: none; color: var(--rs-accent); border-color: var(--rs-accent); }
.text-link { display: inline-flex; align-items: center; font: 500 14px/1.2 var(--sans); text-decoration: none; }
.text-link--quiet { border-bottom-color: var(--rs-rule); }
.text-link--quiet:hover { border-bottom-color: var(--rs-accent); }

/* Equal-weight choices — the consent banner, the mobile menu's actions. */
.btn--outline {
  background: var(--rs-surface); color: var(--rs-text);
  border: 1px solid var(--rs-control-border);
}
.btn--outline:hover { background: var(--rs-surface); color: var(--rs-text); border-color: var(--rs-text); }

.arr { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; }

.acts { display: flex; gap: 12px 28px; margin: 32px 0 0; align-items: center; flex-wrap: wrap; }
.acts--tight { margin-top: 20px; }

/* --- masthead ------------------------------------------------------------ */

.mast { position: relative; background: var(--rs-bg); }
.mast > .wrap {
  position: relative;
  --mast-pad-b: 0px;
  display: flex; align-items: center; gap: 28px;
  min-height: 96px;
}
/* The rule is inset to the content column, like every other rule here. */
.mast > .wrap::after {
  content: ""; position: absolute; left: var(--rs-inset); right: var(--rs-inset); bottom: 0;
  border-top: 1px solid var(--rs-rule);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 20px; width: auto; vertical-align: middle; }
.brand .word { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; align-self: center; color: var(--rs-text); }

.mast__nav { margin-left: auto; display: flex; gap: 0; flex-shrink: 1; min-width: 0; align-self: stretch; }

.navitem { position: static; display: flex; }

.navitem__btn {
  display: inline-flex; align-items: center; gap: 7px; align-self: stretch; position: relative;
  font: 500 14px/1 var(--sans); color: var(--rs-text-secondary);
  background: none; border: 0; padding: 0 13px; cursor: pointer; min-height: 44px;
}
.navitem__btn svg { transition: transform 160ms ease; opacity: .6; }
.navitem__btn:hover, .navitem__btn[aria-expanded="true"] { color: var(--rs-text); }
.navitem__btn[aria-expanded="true"] svg { transform: rotate(180deg); opacity: 1; }
.navitem__btn:focus-visible { outline-offset: -3px; }
/* The current section: a 2px accent rule sitting on the masthead's rule. */
.navitem__btn[data-current="true"] { color: var(--rs-text); }
.navitem__btn[data-current="true"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 2px;
  background: var(--rs-accent);
}
@media (prefers-reduced-motion: reduce) { .navitem__btn svg { transition: none; } }

/* Full-bleed under the masthead: a ruled panel, not a card. */
.panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--rs-surface);
  border-top: 1px solid var(--rs-rule);
  border-bottom: 1px solid var(--rs-control-border);
  z-index: 40;
}
.panel[hidden] { display: none; }

.panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
  justify-content: start; align-items: start;
  gap: 0; padding-top: 28px; padding-bottom: 34px;
}
.panel__col { padding-right: 28px; border-right: 1px solid var(--rs-rule); }
.panel__col:last-child { border-right: 0; padding-right: 0; }
.panel__col:has(+ .panel__feature) { border-right: 0; padding-right: 0; }
.panel__col + .panel__col { padding-left: 28px; }

.panel__label {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--rs-text-secondary); margin-bottom: 10px;
}
.panel ul, .mobilenav ul { list-style: none; margin: 0; padding: 0; }
.panel li { margin-bottom: 2px; }
.panel a { display: block; text-decoration: none; padding: 7px 0; font-size: 14px; line-height: 1.4; color: var(--rs-text); }
.panel a:hover { color: var(--rs-accent); }
.panel a[aria-current="page"] { font-weight: 600; }
.panel__note { display: block; font-size: 12.5px; color: var(--rs-text-secondary); margin-top: 1px; max-width: 30ch; font-weight: 400; }

.panel__feature {
  grid-column: span 2; justify-self: end; width: 100%; max-width: 340px;
  padding-left: 30px; border-left: 1px solid var(--rs-rule);
}
.panel__statement {
  margin: 10px 0 0; font-size: 21px; line-height: 1.3; letter-spacing: -0.025em;
  font-weight: 470; color: var(--rs-text); text-wrap: balance;
}
.panel__feature-note { margin: 11px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--rs-text-secondary); }
.panel__more {
  display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 500;
  color: var(--rs-text); text-decoration: none; padding-bottom: 6px;
  border-bottom: 1px solid var(--rs-accent);
}
.panel__more:hover { color: var(--rs-accent); }
.panel__grid:has(.panel__col:nth-of-type(3)) .panel__feature { grid-column: span 1; max-width: 250px; padding-left: 22px; }
.panel__grid:has(.panel__col:nth-of-type(3)) .panel__statement { font-size: 19px; line-height: 1.25; }

/* One height for every control in the masthead. */
.mast > .wrap { --mast-control: 44px; }

.mast__acts { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.mast__search {
  display: grid; place-items: center;
  width: var(--mast-control); height: var(--mast-control);
  color: var(--rs-text-secondary); text-decoration: none; flex-shrink: 0;
  border: 1px solid transparent; border-radius: var(--rs-radius);
}
.mast__search:hover { color: var(--rs-text); border-color: var(--rs-rule); }

.mast .cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--mast-control); padding: 0 18px;
  font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; flex-shrink: 0;
  background: var(--rs-accent); color: var(--rs-on-accent);
  border: 1px solid var(--rs-accent); border-radius: var(--rs-radius);
}
.mast .cta:hover { background: var(--rs-accent-hover); border-color: var(--rs-accent-hover); }
.mast .cta--quiet {
  background: none; color: var(--rs-text-secondary); border-color: transparent; padding: 0 4px;
}
.mast .cta--quiet:hover { color: var(--rs-text); background: none; border-color: transparent; }

/* --- mobile -------------------------------------------------------------- */

.mast__burger {
  display: none; background: none; border: 1px solid var(--rs-control-border); border-radius: var(--rs-radius);
  color: var(--rs-text); width: 44px; height: 44px; cursor: pointer; place-items: center; margin-left: auto;
}
.mast__burger[aria-expanded="true"] { border-color: var(--rs-text); }
.mobilenav {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
  background: var(--rs-surface); border-bottom: 1px solid var(--rs-control-border);
  max-height: 80vh; overflow-y: auto;
}
.mobilenav[hidden] { display: none; }
.mobilenav__acts {
  display: grid; grid-template-columns: 1fr; gap: 8px;
  padding: 18px 0 22px; border-bottom: 1px solid var(--rs-rule);
}
.mobilenav__acts .btn { justify-content: center; }
.mobilenav__sec { border-bottom: 1px solid var(--rs-rule); }
.mobilenav__sec > summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 0; cursor: pointer; list-style: none;
  font: 500 16px/1 var(--sans); color: var(--rs-text); min-height: 48px;
}
.mobilenav__sec > summary::-webkit-details-marker { display: none; }
.mobilenav__sec > summary svg { transition: transform 160ms ease; color: var(--rs-text-secondary); }
.mobilenav__sec[open] > summary svg { transform: rotate(180deg); }
.mobilenav__sec > summary:focus-visible { outline-offset: -2px; }
.mobilenav__group { padding: 0 0 14px; }
.mobilenav__sec .panel__label { margin-top: 6px; }
.mobilenav__group a {
  display: block; padding: 10px 0 10px 14px; font-size: 15px; line-height: 1.4;
  text-decoration: none; color: var(--rs-text-secondary);
  border-left: 1px solid var(--rs-rule);
}
.mobilenav__group a:hover { color: var(--rs-text); }
.mobilenav__group a[aria-current="page"] { color: var(--rs-text); font-weight: 600; border-left-color: var(--rs-accent); }
@media (prefers-reduced-motion: reduce) { .mobilenav__sec > summary svg { transition: none; } }

@media (max-width: 1100px) {
  .mast__nav, .mast__acts { display: none; }
  .mast__burger { display: grid; }
  .navitem__btn[data-current="true"]::after { display: none; }
  .panel__feature { display: none; }
}
@media (max-width: 640px) {
  .mast > .wrap { min-height: 78px; }
  .brand img { height: 18px; }
  .brand .word { font-size: 18px; }
}

/* --- the announcement strip ----------------------------------------------
 *
 * subhadipmitra@: Light, ruled, and above the masthead. It was an ink band —
 * the one dark surface on the site — and the redesign has no dark sections,
 * so it is now a strip on the canvas with a 7px accent square as its only
 * mark. It has to be noticed once and then ignored, which a rule does better
 * than a bar.
 */
/* The rule runs full-bleed on the strip itself, not inset with the content:
   the strip is a band across the page, and a rule that stopped at the
   insets read as a stray line under the text. */
.announce { background: var(--rs-surface-muted); border-bottom: 1px solid var(--rs-rule); }
.announce__in {
  display: flex; align-items: center; gap: 16px;
  padding-top: 10px; padding-bottom: 10px;
}
.announce__text {
  margin: 0; flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13.5px; line-height: 1.45; color: var(--rs-text);
}
.announce__mark { width: 7px; height: 7px; background: var(--rs-accent); flex: none; }
.announce__cta {
  color: var(--rs-text); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--rs-accent); padding-bottom: 1px; white-space: nowrap;
}
.announce__cta:hover { color: var(--rs-accent); }
.announce__x {
  appearance: none; background: none; border: 0; color: var(--rs-text-secondary);
  font-size: 22px; line-height: 1; width: 36px; height: 36px; cursor: pointer; flex: none;
  display: grid; place-items: center; border-radius: var(--rs-radius);
}
.announce__x:hover { color: var(--rs-text); }
@media (max-width: 620px) {
  .announce__text { font-size: 13px; gap: 7px; }
  .announce__mark { display: none; }
  .announce__in { align-items: flex-start; }
}

/* --- page heads and sections --------------------------------------------- */

.hero { padding: 72px 0 64px; }
.hero .lead { margin-top: 0; }
.hero .acts { margin-top: 34px; }

.sec { padding: 0; }
.sec > .wrap { padding-top: 0; padding-bottom: 72px; }
/* The rule, drawn inside the padding so it is inset to the content column. */
.sec > .wrap::before { content: ""; display: block; border-top: 1px solid var(--rs-rule); margin-bottom: 60px; }
.sec--plain > .wrap::before { display: none; }
.sec--tight > .wrap { padding-bottom: 56px; }
.sec--tight > .wrap::before { margin-bottom: 44px; }

/* subhadipmitra@: `:not()` because this rule was silently winning against the
   utility classes — `.sec > .wrap > p` scores 0,2,1 and `.note` scores 0,1,0.
   The list is long, which is the tell that the shape is wrong rather than the
   entries; kept because every page's rhythm depends on it. */
.sec > .wrap > p:not(.note):not(.limit):not(.lead):not(.legend):not(.sub__fine):not(.ladder__note):not(.kicker):not(.slabel):not(.dx__caption):not(.dx__real):not(.sec-head__aside) {
  font-size: 17px; line-height: 1.7; color: var(--rs-text-secondary); max-width: 62ch; margin: 0;
}
.sec > .wrap > p + p { margin-top: 18px !important; }
.sec > .wrap > .lead { color: var(--rs-text); }

/* A section head with the label above and an aside on the right. */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; padding-bottom: 28px; }
.sec-head h2 { margin: 12px 0 0; max-width: 40ch; }
.sec-head__aside { font-size: 12.5px; line-height: 1.8; text-align: right; color: var(--rs-text-secondary); }
.sec-head__aside span { display: block; }
@media (max-width: 820px) {
  .sec-head { display: block; }
  .sec-head__aside { text-align: left; margin-top: 14px; }
  .sec-head__aside span { display: inline; }
  .sec-head__aside span + span::before { content: " · "; }
}

/* Two columns, weighted to the argument. */
.split { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 84px; align-items: start; }
.split h2 { margin-top: 16px; font-size: clamp(30px, 2.9vw, 40px); line-height: 1.14; letter-spacing: -0.036em; max-width: 22ch; }
.split__aside { padding-top: 30px; }
.split__aside p { color: var(--rs-text-secondary); font-size: 16px; line-height: 1.7; max-width: 34ch; margin: 0 0 14px; }
.split__aside .text-link { min-width: 205px; }
@media (max-width: 1040px) { .split { gap: 52px; } .split h2 { font-size: 35px; } }
@media (max-width: 820px) { .split { grid-template-columns: 1.5fr 1fr; gap: 40px; } }
@media (max-width: 640px) { .split { display: block; } .split h2 { font-size: 32px; } .split__aside { padding-top: 22px; } .split__aside p { max-width: 45ch; } }

/* Ruled rows of claim: title, argument, mark. */
.claims { margin: 32px 0 0; border-top: 1px solid var(--rs-control-border); }
.claim {
  display: grid; grid-template-columns: 230px 1fr 108px; gap: 32px;
  align-items: start; padding: 20px 0; border-bottom: 1px solid var(--rs-rule);
}
.claim p { font-size: 15px; line-height: 1.65; color: var(--rs-text-secondary); margin: 0; max-width: 60ch; }
.claim h3 a { text-decoration: none; box-shadow: inset 0 -1px 0 var(--rs-rule); }
.claim h3 a:hover { color: var(--rs-accent); box-shadow: inset 0 -1px 0 var(--rs-accent); }

.legend { margin: 30px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--rs-text-secondary); max-width: 66ch; }
.legend .mark { margin-right: 5px; }

/* --- the record ----------------------------------------------------------
 * Set as a ruled document because it IS one. White, because the thing you are
 * meant to inspect is the whitest thing on the page.
 */
.record { margin: 54px 0 0; background: var(--rs-surface); border: 1px solid var(--rs-rule); border-top-color: var(--rs-control-border); padding: 0 24px 6px; }
.record__head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 16px 0 14px; border-bottom: 1px solid var(--rs-rule);
  font-family: var(--mono); font-size: 12.5px;
}
.record__head .who { color: var(--rs-text-secondary); }
.record__state {
  margin-left: auto; font-size: 11px; letter-spacing: 0.02em;
  text-transform: none; padding: 3px 8px; border: 1px solid currentColor; border-radius: var(--rs-radius);
}
.record__state--deny { color: var(--rs-stop); }
.record__state--allow { color: var(--rs-success); }
.record__state--review { color: var(--rs-review); }

.rows { display: grid; grid-template-columns: 1fr 1fr; }
.rows > div { padding: 14px 0; border-bottom: 1px solid var(--rs-rule); }
.rows > div:nth-child(odd) { padding-right: 30px; border-right: 1px solid var(--rs-rule); }
.rows > div:nth-child(even) { padding-left: 30px; }
.rows > div:nth-last-child(-n+2):nth-child(odd), .rows > div:last-child { border-bottom: 0; }
.record .rows > div { border-bottom: 1px solid var(--rs-rule); }
.record .rows > div:nth-last-child(-n+2):nth-child(odd), .record .rows > div:last-child { border-bottom: 0; }

.k {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: var(--rs-text-secondary); margin-bottom: 4px;
}
label.k { display: block; margin-bottom: 8px; }
.v { font-family: var(--mono); font-size: 14px; }
.v--deny { color: var(--rs-stop); font-weight: 500; }
.muted-note { font-size: 13px; color: var(--rs-text-secondary); }
.rows p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; }

/* --- the gate rail ------------------------------------------------------- */
.rail { padding: 20px 0 0; }
.rail__k { font-size: 12.5px; font-weight: 500; color: var(--rs-text-secondary); margin-bottom: 11px; }
.rail__track { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; }
.rail__track span { height: 4px; background: var(--rs-success); }
.rail__track span.is-stop { background: var(--rs-stop); }
.rail__track span.is-off { background: var(--rs-rule); }
.rail__names {
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; margin-top: 9px;
  font-family: var(--mono); font-size: 10.5px; color: var(--rs-text-secondary); line-height: 1.3; word-break: break-word;
}
.rail__names b { color: var(--rs-stop); font-weight: 600; }
.rail__names i { font-style: normal; opacity: 0.55; }

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

.foot { padding: 0 0 36px; }
.foot > .wrap::before { content: ""; display: block; border-top: 1px solid var(--rs-rule); margin-bottom: 52px; }
.foot__grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 30px; }
.foot h4 { font-size: 13px; font-weight: 600; color: var(--rs-text); margin: 0 0 12px; letter-spacing: 0; text-transform: none; }
.foot ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.foot li { margin-bottom: 8px; }
.foot a { color: var(--rs-text-secondary); text-decoration: none; }
.foot a:hover { color: var(--rs-text); box-shadow: inset 0 -1px 0 var(--rs-accent); }
.foot__say { font-size: 14px; line-height: 1.55; color: var(--rs-text-secondary); max-width: 26ch; margin: 14px 0 0; }
.foot__group { margin-top: 22px; }
.foot__group .k { margin-bottom: 0; }
.foot__group ul { list-style: none; margin: 8px 0 0; padding: 0; }
.foot__group li { margin-bottom: 6px; font-size: 13.5px; }
.foot__group a { color: var(--rs-text); border-bottom: 1px solid var(--rs-rule); }
.foot__group a:hover { color: var(--rs-accent); border-color: var(--rs-accent); box-shadow: none; }
.foot__group span { font-size: 12.5px; color: var(--rs-text-secondary); margin-left: 6px; }
.foot__legal {
  display: flex; gap: 20px; flex-wrap: wrap; align-items: baseline;
  margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--rs-rule);
  font-size: 12.5px; color: var(--rs-text-secondary);
}
.foot__legal .spacer { margin-left: auto; }
.foot__legal a:hover { box-shadow: none; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .rows { grid-template-columns: 1fr; }
  .rows > div:nth-child(odd) { border-right: 0; padding-right: 0; }
  .rows > div:nth-child(even) { padding-left: 0; }
  .rows > div:nth-last-child(-n+2):nth-child(odd) { border-bottom: 1px solid var(--rs-rule); }
  .claim { grid-template-columns: 1fr; gap: 8px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .rail__names { font-size: 8px; }
  .hero { padding: 52px 0 48px; }
  .sec > .wrap { padding-bottom: 56px; }
  .sec > .wrap::before { margin-bottom: 44px; }
}
@media (max-width: 360px) { .foot__grid { grid-template-columns: 1fr; gap: 26px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* --- components the platform pages need ---------------------------------- */

/* A code sample: a white surface with a fine rule and one strong left edge. */
.code {
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
  background: var(--rs-surface); color: var(--rs-text); padding: 18px 20px; margin: 30px 0 0;
  overflow-x: auto; border: 1px solid var(--rs-rule); border-left: 2px solid var(--rs-control-border);
  border-radius: var(--rs-radius); tab-size: 4;
}
.code .c { color: var(--rs-text-secondary); }
.code .s { color: var(--rs-success); }
.code + .code { margin-top: 14px; }

/* Tables: a sentence-case head on a strong rule, fine rules between rows. */
.gates, .compare { width: 100%; border-collapse: collapse; margin: 32px 0 0; }
.gates th, .compare th {
  text-align: left; font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--rs-text-secondary); padding: 0 16px 10px 0; border-bottom: 1px solid var(--rs-control-border);
}
.gates td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rs-rule); vertical-align: top; font-size: 14.5px; line-height: 1.55; }
.gates td:first-child { font-family: var(--mono); font-size: 12.5px; color: var(--rs-text-secondary); width: 56px; }
.gates td:nth-child(2) { font-family: var(--mono); font-size: 13.5px; width: 168px; }
.gates td:nth-child(2) b { font-weight: 500; }
.gates td:last-child { color: var(--rs-text-secondary); padding-right: 0; }

.compare td { padding: 15px 16px 15px 0; border-bottom: 1px solid var(--rs-rule); vertical-align: top; font-size: 14.5px; line-height: 1.55; color: var(--rs-text-secondary); }
.compare td:first-child { color: var(--rs-text); font-weight: 500; width: 24%; }
.compare td:last-child, .compare th:last-child { padding-right: 0; }
.compare code, .gates code { font-family: var(--mono); font-size: 13px; }
.compare a { text-underline-offset: 3px; text-decoration-color: var(--rs-rule); }
.compare a:hover { text-decoration-color: var(--rs-accent); }

/* The enforcement ladder: four rungs in a row, and only two of them refuse. */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 32px 0 0;
  background: var(--rs-rule); border: 1px solid var(--rs-rule); border-top-color: var(--rs-control-border); }
.ladder > div { background: var(--rs-surface); padding: 18px 20px 20px; }
.ladder h4 { font-family: var(--mono); font-size: 13px; font-weight: 500; margin: 0 0 8px; }
.ladder p { font-size: 13.5px; line-height: 1.6; color: var(--rs-text-secondary); margin: 0; }
.ladder .is-enforcing h4 { color: var(--rs-stop); }
.ladder .is-watching h4 { color: var(--rs-review); }
.ladder__note { font-size: 13.5px; line-height: 1.6; color: var(--rs-text-secondary); margin: 26px 0 0; max-width: 66ch; }

/* Two-column definition rows: term on the left, what it means on the right. */
.defs { margin: 32px 0 0; border-top: 1px solid var(--rs-control-border); }
.def { display: grid; grid-template-columns: 230px 1fr; gap: 32px; padding: 18px 0; border-bottom: 1px solid var(--rs-rule); }
.def dt { font-weight: 600; font-size: 15px; line-height: 1.5; }
.def dt a { text-decoration: none; box-shadow: inset 0 -1px 0 var(--rs-rule); }
.def dt a:hover { color: var(--rs-accent); box-shadow: inset 0 -1px 0 var(--rs-accent); }
.def dd { margin: 0; font-size: 15px; line-height: 1.65; color: var(--rs-text-secondary); max-width: 64ch; }
.def dd b, .def dd strong { color: var(--rs-text); font-weight: 600; }
.def dd code, .def dt code { font-family: var(--mono); font-size: 13px; color: var(--rs-text); }
.def dd a { text-underline-offset: 3px; text-decoration-color: var(--rs-rule); }
.def dd a:hover { color: var(--rs-text); text-decoration-color: var(--rs-accent); }
.def dd .mark { margin-left: 4px; vertical-align: 1px; }

/* A stated limit. Used where the honest answer is "we do not do that". */
.limit { border-left: 2px solid var(--rs-review); padding: 4px 0 4px 20px;
  margin: 34px 0 0; font-size: 15px; line-height: 1.65; color: var(--rs-text-secondary); max-width: 64ch; }
.limit b { color: var(--rs-text); font-weight: 600; }
.limit a { text-underline-offset: 3px; }

/* Page navigation between siblings: white cells, fine rules. */
.siblings { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--rs-rule); border: 1px solid var(--rs-rule); border-top-color: var(--rs-control-border); margin: 0; }
.siblings a { background: var(--rs-surface); padding: 18px 20px; text-decoration: none; display: block; min-height: 44px; }
.siblings a:hover { background: var(--rs-surface-muted); }
.siblings a:hover span { color: var(--rs-accent); }
.siblings .k { margin-bottom: 5px; }
.siblings span { font-size: 15px; font-weight: 600; }
h2 + .siblings { margin-top: 28px; }

@media (max-width: 900px) {
  .ladder { grid-template-columns: 1fr; }
  .def { grid-template-columns: 1fr; gap: 6px; }
  .gates td:nth-child(2) { width: auto; }
  .compare td:first-child { width: auto; }
}

/* --- forms and the verifier ---------------------------------------------- */

.vinput {
  width: 100%; font-family: var(--mono); font-size: 13.5px; line-height: 1.6;
  background: var(--rs-surface); color: var(--rs-text);
  border: 1px solid var(--rs-control-border); border-radius: var(--rs-radius);
  padding: 12px 14px; resize: vertical; min-height: 46px;
}
input.vinput, select.vinput { font-family: var(--sans); font-size: 15px; }
.vinput:hover { border-color: var(--rs-text); }
.vinput:focus-visible { outline: 2px solid var(--rs-accent); outline-offset: 2px; border-color: var(--rs-accent); }
.vinput::placeholder { color: var(--rs-text-secondary); opacity: 0.8; }
.vinput:disabled { background: var(--rs-surface-muted); color: var(--rs-text-secondary); }
label.k + .vinput { margin-top: 0; }
.field-hint { font-size: 12.5px; color: var(--rs-text-secondary); margin: 6px 0 0; }
.field-error { font-size: 13px; color: var(--rs-stop); margin: 6px 0 0; }

.vout:not(:empty) { margin: 30px 0 0; border-top: 1px solid var(--rs-control-border); }
.vrow { display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--rs-rule); }
.vrow b { font-size: 15px; font-weight: 600; }
.vdetail { font-size: 14px; line-height: 1.6; color: var(--rs-text-secondary); margin-top: 5px; max-width: 62ch; }
.vdetail code { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.vstate { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; text-transform: none;
  padding: 3px 7px; border: 1px solid currentColor; border-radius: var(--rs-radius); display: inline-block; }
.vstate--passed { color: var(--rs-success); }
.vstate--failed { color: var(--rs-stop); }
.vstate--unknown { color: var(--rs-review); }
@media (max-width: 900px) { .vrow { grid-template-columns: 1fr; gap: 8px; } }

/* --- long-form ----------------------------------------------------------- */

.prose { max-width: 68ch; font-size: 17px; line-height: 1.7; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: 28px; line-height: 1.2; font-weight: 470; letter-spacing: -0.028em;
  margin: 2em 0 0; max-width: 26ch; padding-top: 0.7em; border-top: 1px solid var(--rs-rule);
  scroll-margin-top: 24px;
}
.prose h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 1.8em 0 0; line-height: 1.35; }
.prose h4 { font-size: 16px; font-weight: 600; margin: 1.5em 0 0; color: var(--rs-text-secondary); }
.prose a { color: var(--rs-text); box-shadow: inset 0 -1px 0 var(--rs-control-border); text-decoration: none; }
.prose a:hover { color: var(--rs-accent); box-shadow: inset 0 -1px 0 var(--rs-accent); }
.prose ul, .prose ol { margin: 1.1em 0 0; padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li > ul, .prose li > ol { margin-top: 0.45em; }
.prose blockquote { margin: 1.6em 0 0; padding: 2px 0 2px 20px; border-left: 2px solid var(--rs-control-border); color: var(--rs-text-secondary); }
.prose li p, .prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: 0.8em; }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--rs-surface-muted); padding: 1px 5px; border-radius: var(--rs-radius); }
.prose pre {
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
  background: var(--rs-surface); border: 1px solid var(--rs-rule); border-left: 2px solid var(--rs-control-border);
  border-radius: var(--rs-radius); padding: 16px 18px; overflow-x: auto; margin: 1.5em 0 0;
}
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0 0; font-size: 15px; }
.prose th { text-align: left; font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--rs-text-secondary); padding: 0 14px 9px 0; border-bottom: 1px solid var(--rs-control-border); }
.prose td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rs-rule); vertical-align: top; }
.prose hr { border: 0; border-top: 1px solid var(--rs-rule); margin: 2.4em 0 0; }
.prose img { display: block; margin: 1.6em 0 0; }
.prose strong { font-weight: 600; }
.prose .mermaid { margin: 1.8em 0 0; text-align: center; overflow-x: auto; }
.prose .mermaid svg { max-width: 100%; height: auto; }
/* A table wider than the column scrolls inside its own box. */
.prose .highlighter-rouge, .prose > table { max-width: 100%; }

/* Syntax highlighting, Rouge classes, one light scheme.
   subhadipmitra@: `.k` is ALSO this site's label class, so a keyword span
   inside a code block was inheriting a 12.5px label style. Everything under
   .highlight is reset first, then coloured. No magenta here — the accent is
   for actions and selection, and a page of magenta strings would spend it. */
.highlight span { font: inherit; text-transform: none; letter-spacing: 0; margin: 0; display: inline; color: inherit; }
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cp, .highlight .cs { color: var(--rs-text-secondary); font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kt, .highlight .kc, .highlight .ow { color: var(--rs-text); font-weight: 600; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sa, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .se, .highlight .sh, .highlight .si, .highlight .sx, .highlight .sr, .highlight .ss, .highlight .dl { color: var(--rs-success); }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .mo, .highlight .il { color: var(--rs-review); }
.highlight .nf, .highlight .nc, .highlight .nn, .highlight .nb, .highlight .nt, .highlight .nd { color: var(--rs-text); }
.highlight .na, .highlight .nv, .highlight .vi, .highlight .vg { color: var(--rs-text-secondary); }
.highlight .o, .highlight .p, .highlight .pi { color: var(--rs-text-secondary); }
.highlight .err { color: var(--rs-stop); }
.highlight .gh, .highlight .gu { font-weight: 600; }
.highlight .gd { color: var(--rs-stop); }
.highlight .gi { color: var(--rs-success); }

/* A legacy call-out that survives in one v1 post. */
.prose .blog-cta { margin-top: 2em; padding: 20px 22px; background: var(--rs-surface); border: 1px solid var(--rs-rule); border-left: 2px solid var(--rs-control-border); }
.prose .blog-cta p { margin: 0 0 14px; font-size: 15.5px; }
.prose .blog-cta .btn-primary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  background: var(--rs-accent); color: var(--rs-on-accent); border-radius: var(--rs-radius); box-shadow: none; font: 500 14px/1.2 var(--sans); text-decoration: none; }
.prose .blog-cta .btn-primary:hover { background: var(--rs-accent-hover); color: var(--rs-on-accent); }

/* --- post listing --------------------------------------------------------- */

.posts { margin: 40px 0 0; border-top: 1px solid var(--rs-control-border); list-style: none; padding: 0; }
.posts li { border-bottom: 1px solid var(--rs-rule); }
.posts a { display: grid; grid-template-columns: 118px 1fr; gap: 28px; padding: 20px 0; text-decoration: none; align-items: baseline; }
.posts a:hover h3 { color: var(--rs-accent); }
.posts time { font-family: var(--mono); font-size: 12.5px; color: var(--rs-text-secondary); }
.posts h3 { font-size: 17px; font-weight: 600; margin: 0 0 5px; max-width: 46ch; }
.posts p { font-size: 14.5px; line-height: 1.6; color: var(--rs-text-secondary); margin: 0; max-width: 62ch; }
.posts--tight a { grid-template-columns: 96px 1fr; gap: 20px; padding: 15px 0; }
.posts--tight h3 { margin: 0; font-size: 16.5px; }

.postmeta { font-family: var(--mono); font-size: 12px; color: var(--rs-text-secondary); letter-spacing: 0.01em; margin: 0 0 30px; }

/* The article head, in the body column. */
.post { padding-top: 64px; padding-bottom: 64px; }
.post__title { max-width: 24ch; font-size: clamp(32px, 4.2vw, 50px); }
.post .kicker a { color: inherit; text-decoration: none; }

/* --- the section index on a post ----------------------------------------- */
.post:has(.toc) { display: grid; grid-template-columns: 212px minmax(0, 1fr); gap: 0 56px; }
.post__body { min-width: 0; }
.toc { position: sticky; top: 28px; align-self: start; max-height: calc(100vh - 56px); overflow-y: auto;
  border-top: 1px solid var(--rs-control-border); padding-top: 14px; }
.toc__label { font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--rs-text-secondary); margin: 0 0 12px; }
.toc__list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc__list li { counter-increment: toc; }
.toc__list a { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 6px 0; font-size: 13.5px; line-height: 1.4;
  color: var(--rs-text-secondary); text-decoration: none; text-wrap: pretty; }
.toc__list a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--rs-text-secondary); padding-top: 2px; }
.toc__list a:hover { color: var(--rs-text); }
.toc__list a:hover::before { color: var(--rs-accent); }
.toc__list a[aria-current="true"] { color: var(--rs-text); font-weight: 600; }
.toc__list a[aria-current="true"]::before { color: var(--rs-accent); }
.toc__head { display: flex; align-items: baseline; gap: 10px; }
.toc__head .toc__label { flex: 1 1 auto; }
.toc__toggle { flex: 0 0 auto; appearance: none; background: none; cursor: pointer;
  border: 1px solid var(--rs-rule); border-radius: var(--rs-radius); padding: 0; width: 28px; height: 28px;
  display: grid; place-items: center; color: var(--rs-text-secondary); line-height: 0; }
.toc__toggle:hover { border-color: var(--rs-control-border); color: var(--rs-text); }
.toc__toggle span { position: relative; width: 9px; height: 9px; display: block; }
.toc__toggle span::before, .toc__toggle span::after { content: ""; position: absolute; background: currentColor; }
.toc__toggle span::before { left: 0; right: 0; top: 4px; height: 1px; }
.toc__toggle span::after { top: 0; bottom: 0; left: 4px; width: 1px; transform: scaleY(0); transition: transform 160ms ease; }
.toc__toggle[aria-expanded="false"] span::after { transform: scaleY(1); }
.toc.is-collapsed .toc__list { display: none; }
.toc.is-collapsed { padding-bottom: 2px; }
@media (max-width: 1080px) {
  .post:has(.toc) { display: block; }
  .toc { position: static; max-height: none; overflow: visible; background: var(--rs-surface);
    border: 1px solid var(--rs-rule); border-top-color: var(--rs-control-border); padding: 16px 18px; margin-bottom: 40px; }
  .toc__list { columns: 2; column-gap: 32px; }
  .toc__list li { break-inside: avoid; }
}
@media (max-width: 560px) { .toc__list { columns: 1; } }
@media (max-width: 900px) { .prose { font-size: 16.5px; } .posts a { grid-template-columns: 1fr; gap: 6px; } .post { padding-top: 44px; padding-bottom: 52px; } }

/* --- the subscribe block ------------------------------------------------- */
.sec--sub > .wrap::before { border-top-color: var(--rs-rule); }
.sec--sub h2 { margin: 10px 0 0; max-width: 22ch; }
.sub__lead { font-size: 16px; line-height: 1.7; color: var(--rs-text-secondary); max-width: 60ch; margin: 14px 0 0; }
.sub__form { align-items: flex-end; margin-top: 26px; gap: 12px 16px; }
.sub__field { flex: 1; max-width: 360px; }
.sub__fine { font-size: 12.5px; line-height: 1.6; color: var(--rs-text-secondary); margin: 18px 0 0; }
.sub__fine a { color: var(--rs-text-secondary); text-underline-offset: 3px; }
.sub__fine a:hover { color: var(--rs-accent); }
@media (max-width: 620px) {
  .sub__form { align-items: stretch; }
  .sub__field { max-width: none; }
  .sub__form .btn { width: 100%; }
}

.demo__form { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: end; }
.demo__form .sub__field { flex: none; max-width: none; }
.demo__form button[type="submit"] { justify-self: start; }
@media (min-width: 720px) {
  .demo__form { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .demo__form .sub__field:nth-of-type(3) { grid-column: 1 / -1; }
}

/* --- the region map ------------------------------------------------------ */
.map { margin: 40px 0 0; }
.map__frame { border: 1px solid var(--rs-rule); background: var(--rs-surface); padding: 22px 26px; }
.map__plot { position: relative; }
.map__land { display: block; width: 100%; height: auto; color: var(--rs-control-border); opacity: 0.35; }
.map__pin { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 7px; text-decoration: none; white-space: nowrap; }
.map__dot { width: 13px; height: 13px; border: 1.5px solid var(--rs-control-border); background: var(--rs-surface); flex: none; border-radius: 50%; }
.map__code { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--rs-text); }
.map__pin:hover .map__dot { border-color: var(--rs-text); }
.map__pin:hover .map__code { color: var(--rs-accent); }
.map__pin.is-active { z-index: 1; }
.map__pin.is-active .map__dot { width: 15px; height: 15px; background: var(--rs-accent); border-color: var(--rs-accent); box-shadow: 0 0 0 4px var(--rs-accent-soft); }
.map__pin.is-active .map__code { color: var(--rs-accent); font-weight: 600; }
.map figcaption { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--rs-text-secondary); max-width: 72ch; }
@media (max-width: 620px) {
  .map__frame { padding: 14px 10px; }
  .map__code { font-size: 11px; }
  .map__dot { width: 10px; height: 10px; }
  .map__pin.is-active .map__dot { width: 12px; height: 12px; }
  .map__pin.is-active .map__code { font-size: 11.5px; }
}

/* --- the record, given presence ------------------------------------------ */
.record--card { margin: 0; border: 1px solid var(--rs-rule); border-top-color: var(--rs-control-border); background: var(--rs-surface); padding: 16px 20px 20px; }
.record--card .record__head { border-bottom: 0; padding: 0 0 2px; align-items: center; }
.record__sub { font-family: var(--mono); font-size: 11.5px; color: var(--rs-text-secondary); padding-bottom: 13px; border-bottom: 1px solid var(--rs-rule); }
.rec { margin: 0; }
.rec > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--rs-rule); }
.rec dt { font-size: 12.5px; font-weight: 500; color: var(--rs-text-secondary); white-space: nowrap; }
.rec dd { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--rs-text); text-align: right; word-break: break-word; }
.rec dd b { font-weight: 600; }
.rec dd.v--deny { color: var(--rs-stop); font-weight: 500; }
.record--card .rail { padding-top: 16px; }
.record--card .rail__names { font-size: 9px; letter-spacing: 0; }
.record--card .rail__names > * { white-space: nowrap; overflow: visible; }
.record__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rs-rule); }
.record__tags span { font-family: var(--mono); font-size: 10.5px; color: var(--rs-text-secondary); border: 1px solid var(--rs-rule); padding: 3px 7px; background: var(--rs-surface); }
.record__cap { margin: 12px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--rs-text-secondary); }

/* --- the sequence: a real decision, rendered ------------------------------
 * Nine gates across, and it stops. Used on the sector pages for records read
 * out of the demo's database.
 */
.seq { margin: 46px 0 0; background: var(--rs-surface); border: 1px solid var(--rs-rule); border-top-color: var(--rs-control-border); padding: 0 22px 22px; }
.seq__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 14px 0 14px; border-bottom: 1px solid var(--rs-rule); font-family: var(--mono); font-size: 12.5px; }
.seq__id { color: var(--rs-text); }
.seq__who { color: var(--rs-text-secondary); }
.seq__state { margin-left: auto; font-size: 11px; letter-spacing: 0.02em; text-transform: none;
  color: var(--rs-stop); border: 1px solid var(--rs-stop); border-radius: var(--rs-radius); padding: 3px 9px; }
.seq__state--ok { color: var(--rs-success); border-color: var(--rs-success); }
.seq__gates { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; counter-reset: gate; }
.seq__gates li { counter-increment: gate; padding: 12px 0 0; border-top: 3px solid var(--rs-success); min-width: 0; }
.seq__gates li::before { content: counter(gate, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 10.5px; color: var(--rs-text-secondary); margin-bottom: 4px; }
.seq__gates b { display: block; font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--rs-text); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.seq__gates span { display: block; margin-top: 3px; font-size: 11px; color: var(--rs-success); }
.seq__gates li.is-stop { border-top-color: var(--rs-stop); }
.seq__gates li.is-stop b { color: var(--rs-stop); font-weight: 600; }
.seq__gates li.is-stop span { color: var(--rs-stop); }
.seq__gates li.is-stop::before { color: var(--rs-stop); }
.seq__gates li.is-off { border-top-color: var(--rs-rule); border-top-style: dashed; }
.seq__gates li.is-off b, .seq__gates li.is-off span, .seq__gates li.is-off::before { color: var(--rs-text-secondary); }
.seq__why { margin: 22px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--rs-text-secondary); max-width: 74ch; padding-top: 16px; border-top: 1px solid var(--rs-rule); }
.seq__why b { color: var(--rs-text); font-weight: 600; }
@media (max-width: 900px) {
  .seq__gates { grid-template-columns: repeat(3, 1fr); gap: 4px 10px; }
  .seq__gates li { padding-bottom: 12px; }
  .seq__state { margin-left: 0; }
}
.rec-lead { font-size: 18px; font-weight: 600; margin: 44px 0 0; letter-spacing: -0.008em; }
.seq--sector { margin-top: 16px; }

/* --- works with ---------------------------------------------------------- */
.works { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--rs-surface); border: 1px solid var(--rs-rule); border-top-color: var(--rs-control-border); }
.works__i { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-right: 1px solid var(--rs-rule); border-bottom: 1px solid var(--rs-rule); min-width: 0; }
.works__i:nth-child(4n) { border-right: 0; }
.works__m { width: 20px; height: 20px; flex: none; display: grid; place-items: center; color: var(--rs-text); }
.works__m svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.works__m b { width: 18px; height: 18px; display: grid; place-items: center; background: var(--rs-text); color: var(--rs-surface); font: 600 10px/1 var(--sans); border-radius: var(--rs-radius); }
.works__n { font-size: 14px; font-weight: 500; color: var(--rs-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.works__f { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--rs-text-secondary); white-space: nowrap; }
@media (max-width: 1000px) { .works { grid-template-columns: repeat(3, 1fr); } .works__i:nth-child(4n) { border-right: 1px solid var(--rs-rule); } .works__i:nth-child(3n) { border-right: 0; } }
@media (max-width: 720px)  { .works { grid-template-columns: repeat(2, 1fr); } .works__i:nth-child(3n) { border-right: 1px solid var(--rs-rule); } .works__i:nth-child(2n) { border-right: 0; } .works__f { display: none; } }
@media (max-width: 460px)  { .works { grid-template-columns: 1fr; } .works__i { border-right: 0 !important; } }

/* The compact cut for the home page: one ruled band, names and marks only. */
.works--band { display: flex; flex-wrap: wrap; gap: 0 34px; background: none; border: 0; border-top: 1px solid var(--rs-rule); border-bottom: 1px solid var(--rs-rule); }
.works--band .works__i { border: 0 !important; padding: 14px 0; gap: 10px; }
.works--band .works__m { width: 18px; height: 18px; }
.works--band .works__m b { width: 16px; height: 16px; font-size: 9.5px; }
.works--band .works__n { font-size: 13.5px; font-weight: 500; color: var(--rs-text-secondary); }

/* The instrument table. Numbers align, so they can be compared without reading. */
.instruments td, .instruments th { vertical-align: top; }
.instruments .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 13.5px; color: var(--rs-text); }
.instruments .ref { font-size: 12px; color: var(--rs-text-secondary); margin-top: 3px; font-weight: 400; }
.instruments .st { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; text-transform: none; border: 1px solid currentColor; border-radius: var(--rs-radius); padding: 2px 6px; white-space: nowrap; color: var(--rs-text-secondary); }
.instruments .st--in-force { color: var(--rs-success); }
.instruments .st--guidance, .instruments .st--voluntary { color: var(--rs-review); }

/* --- the architecture diagram --------------------------------------------
 *
 * subhadipmitra@: HTML and CSS, not SVG and not mermaid. It reflows on a
 * phone, a screen reader reads it as the ordered list of steps it is, and it
 * inherits the site's tokens. The environment boundary is the strong rule;
 * the decision path carries the one accent mark, because it is the object
 * this product exists to produce. Everything else is neutral linework.
 */
.arch { margin: 34px 0 0; }
.arch__box { border: 1px solid var(--rs-control-border); background: var(--rs-surface); padding: 0 0 18px; border-radius: var(--rs-radius); }
.arch__label { font-size: 12.5px; font-weight: 500; color: var(--rs-text-secondary); padding: 12px 20px; border-bottom: 1px solid var(--rs-rule); background: var(--rs-surface-muted); }
.arch__flow { list-style: none; margin: 0; padding: 0; }
.arch__n { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 14px 20px; border-bottom: 1px solid var(--rs-rule); border-left: 2px solid transparent; }
.arch__k { font-family: var(--mono); font-size: 12.5px; color: var(--rs-text); }
.arch__d { font-size: 14px; line-height: 1.55; color: var(--rs-text-secondary); }
.arch__n.is-decide { border-left-color: var(--rs-accent); }
.arch__n.is-decide .arch__k { color: var(--rs-accent); }
.arch__n.is-evidence { border-left-color: var(--rs-control-border); }
.arch__store { display: grid; gap: 6px; padding: 16px 20px 0; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--rs-text-secondary); }
.arch__out { display: grid; gap: 6px; margin-top: 0; padding: 16px 20px 18px; border: 1px dashed var(--rs-control-border); border-top: 0; border-radius: 0 0 var(--rs-radius) var(--rs-radius); }
.arch__out b { font-size: 14px; font-weight: 600; }
.arch__cross { font-size: 12.5px; font-weight: 500; color: var(--rs-text-secondary); }
.arch__legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; font-size: 12.5px; color: var(--rs-text-secondary); }
.arch__legend span { display: inline-flex; align-items: center; gap: 8px; }
.arch__legend i { display: inline-block; width: 18px; border-top: 2px solid var(--rs-control-border); }
.arch__legend i.is-decide { border-top-color: var(--rs-accent); }
.arch__legend i.is-egress { border-top-style: dashed; border-top-width: 1px; }
.arch figcaption { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--rs-text-secondary); max-width: 74ch; }
@media (max-width: 700px) { .arch__n { grid-template-columns: 1fr; gap: 4px; } }

/* --- the enforcement ladder, as rungs ------------------------------------- */
.rungs { list-style: none; margin: 34px 0 0; padding: 0; counter-reset: rung; }
.rungs > li { counter-increment: rung; border-top: 1px solid var(--rs-rule); border-left: 2px solid var(--rs-rule); padding: 18px 0 20px 22px; }
.rungs > li:first-child { border-top: 1px solid var(--rs-control-border); }
.rungs > li.is-enforcing { border-left-color: var(--rs-stop); }
.rungs__head { display: flex; align-items: baseline; gap: 14px; }
.rungs__head::before { content: counter(rung, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--rs-text-secondary); }
.rungs__head code { font-family: var(--mono); font-size: 17px; font-weight: 600; color: var(--rs-text); }
.rungs__price { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; color: var(--rs-text-secondary); border: 1px solid var(--rs-rule); border-radius: var(--rs-radius); padding: 3px 8px; }
.is-enforcing .rungs__price { color: var(--rs-text); border-color: var(--rs-control-border); }
.rungs__what { margin: 11px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--rs-text); max-width: 68ch; }
.rungs__us { margin: 9px 0 0; font-size: 14px; line-height: 1.6; color: var(--rs-text-secondary); max-width: 68ch; }
@media (max-width: 620px) { .rungs > li { padding-left: 16px; } .rungs__price { margin-left: 0; } .rungs__head { flex-wrap: wrap; } }

/* Topic and sector chips. Square, ruled, carrying a count. */
.chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: baseline; gap: 7px; border: 1px solid var(--rs-rule); border-radius: var(--rs-radius);
  padding: 8px 12px; min-height: 36px; font-size: 13.5px; color: var(--rs-text); text-decoration: none; background: var(--rs-surface); }
.chips a span { font-family: var(--mono); font-size: 11px; color: var(--rs-text-secondary); font-variant-numeric: tabular-nums; }
.chips a:hover { border-color: var(--rs-control-border); }
.chips a:hover span { color: var(--rs-accent); }
.chips a[aria-current="page"] { border-color: var(--rs-text); font-weight: 600; }

/* --- sector use cases ----------------------------------------------------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 34px 0 0; background: var(--rs-rule); border: 1px solid var(--rs-rule); border-top-color: var(--rs-control-border); }
.case { background: var(--rs-surface); padding: 22px 24px 24px; }
.case__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.case__name { font-weight: 600; font-size: 16px; letter-spacing: -0.005em; flex: 1 1 auto; }
.case__gate { flex: 0 0 auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; color: var(--rs-text); border: 1px solid var(--rs-control-border); border-radius: var(--rs-radius); padding: 2px 7px; }
.case__does { font-size: 15px; color: var(--rs-text-secondary); margin: 0 0 16px; line-height: 1.6; }
.case__rows { margin: 0; display: grid; gap: 10px; }
.case__rows div { display: grid; grid-template-columns: 1fr; gap: 2px; }
.case__rows dt { font-size: 12.5px; font-weight: 500; color: var(--rs-text-secondary); }
.case__rows dd { margin: 0; font-size: 14px; line-height: 1.55; }
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; } }

.post__tags { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--rs-control-border); }
.post__tags .k { font-size: 12.5px; }
.post__tags .k + .chips { margin-top: 10px; }
.post__tags .chips + .k { margin-top: 22px; }

/* --- the sector call to action ------------------------------------------- */
.cta-block { display: grid; grid-template-columns: 1fr 300px; gap: 44px; border-top: 1px solid var(--rs-control-border); padding-top: 30px; }
.cta-block h2 { margin-top: 0; }
.cta-block p { font-size: 17px; line-height: 1.7; color: var(--rs-text-secondary); margin: 0; max-width: 60ch; }
.cta-block .note { margin-top: 18px; }
.cta-block__acts { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.cta-block__acts .btn { justify-content: center; }
.cta-block__acts .btn--ghost { justify-content: space-between; }
.cta-block__acts .mark { margin-top: 4px; align-self: center; }
@media (max-width: 860px) { .cta-block { grid-template-columns: 1fr; gap: 26px; } }
.cta-block__sales { align-self: flex-start; margin-top: 6px; font-size: 15px; color: var(--rs-text-secondary); text-decoration: none; box-shadow: inset 0 -1px 0 var(--rs-rule); }
.cta-block__sales:hover { color: var(--rs-accent); box-shadow: inset 0 -1px 0 var(--rs-accent); }

/* --- the nine gates, with this sector's lit ------------------------------- */
.gaterow { margin: 36px 0 0; }
.gaterow__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: 1px;
  background: var(--rs-rule); border: 1px solid var(--rs-rule); border-top-color: var(--rs-control-border); }
.gaterow__gate { background: var(--rs-surface); padding: 12px 10px 14px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gaterow__n { font-family: var(--mono); font-size: 10.5px; color: var(--rs-text-secondary); font-variant-numeric: tabular-nums; }
.gaterow__name { font-family: var(--mono); font-size: 11.5px; color: var(--rs-text-secondary); overflow-wrap: anywhere; line-height: 1.35; }
.gaterow__q { display: none; font-size: 12px; line-height: 1.45; color: var(--rs-text-secondary); margin-top: 4px; }
.gaterow__gate.is-hit { background: var(--rs-surface-muted); }
.gaterow__gate.is-hit .gaterow__name { color: var(--rs-text); font-weight: 600; }
.gaterow__gate.is-hit .gaterow__n { color: var(--rs-accent); }
.gaterow__gate.is-hit .gaterow__q { display: block; color: var(--rs-text); }
.gaterow figcaption { margin-top: 12px; font-size: 13.5px; color: var(--rs-text-secondary); line-height: 1.6; max-width: 74ch; }
@media (max-width: 1000px) { .gaterow__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gaterow__list { grid-template-columns: repeat(2, 1fr); } .gaterow__q { display: none !important; } }

/* --- the ways into the blog ---------------------------------------------- */
.filters { display: grid; gap: 26px; }
.filters__row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 0 24px; align-items: start; }
.filters__k { font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--rs-text-secondary); margin: 10px 0 0; padding: 0; border: 0; max-width: none; line-height: 1.4; }
.filters__row .chips { margin: 0; }
.filters__k--solo { margin: 0 0 18px; }
@media (max-width: 700px) { .filters__row { grid-template-columns: 1fr; gap: 10px; } .filters__k { margin-top: 0; } }

/* --- the enquiry forms ---------------------------------------------------- */
.eform { display: block; max-width: 620px; }
.eform .sub__field { max-width: none; margin-top: 18px; }
.eform__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.eform__pair .sub__field { margin-top: 0; }
.eform__msg { min-height: 128px; resize: vertical; line-height: 1.6; font-family: inherit; font-size: 15px; }
.eform select.vinput { appearance: none; background-image: none; }
.eform__verify { margin-top: 18px; }
.eform button[type="submit"] { margin-top: 22px; }
.vout--ok  { color: var(--rs-text); padding-top: 16px; }
.vout--bad { color: var(--rs-stop); padding-top: 16px; }
.vout--ok::before, .vout--bad::before { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; display: inline-block; margin-right: 10px; padding: 2px 7px; border: 1px solid currentColor; border-radius: var(--rs-radius); vertical-align: 1px; }
.vout--ok::before { content: "sent"; color: var(--rs-success); }
.vout--bad::before { content: "not sent"; }
@media (max-width: 620px) { .eform__pair { grid-template-columns: 1fr; } .eform__pair .sub__field + .sub__field { margin-top: 18px; } }

/* --- the cookie banner ----------------------------------------------------
 * Bottom of the viewport, ruled, not a modal and not a scrim. Both buttons
 * carry the same weight; the accept-is-loud pattern is a dark pattern and a
 * self-defeating one on a site selling evidence to people who spot them. */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--rs-surface); border-top: 1px solid var(--rs-control-border);
  padding-bottom: env(safe-area-inset-bottom, 0px); }
.consent__in { max-width: var(--rs-wrap); margin: 0 auto; padding: 18px var(--rs-inset);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; }
.consent__t { margin: 0; font-size: 14px; line-height: 1.6; color: var(--rs-text-secondary); max-width: 78ch; }
.consent__t b { color: var(--rs-text); font-weight: 600; }
.consent__t a { text-underline-offset: 3px; }
.consent__acts { display: flex; gap: 10px; flex-shrink: 0; }
.consent__acts .btn { white-space: nowrap; }
@media (max-width: 760px) { .consent__in { grid-template-columns: 1fr; gap: 14px; } .consent__acts .btn { flex: 1; } }

/* --- search --------------------------------------------------------------- */
.search__box { margin-top: 34px; max-width: 560px; }
.search__box .vinput { font-size: 17px; padding: 12px 14px; }
.search__list { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--rs-control-border); }
.search__list li { border-bottom: 1px solid var(--rs-rule); }
.search__list a { display: block; padding: 18px 0; text-decoration: none; }
.search__t { display: block; font-size: 17px; font-weight: 600; color: var(--rs-text); letter-spacing: -0.005em; }
.search__u { display: block; font-family: var(--mono); font-size: 12px; color: var(--rs-text-secondary); margin-top: 3px; }
.search__s { display: block; font-size: 14.5px; line-height: 1.6; color: var(--rs-text-secondary); margin-top: 7px; max-width: 76ch; }
.search__list a:hover .search__t { color: var(--rs-accent); }
.search__none { margin-top: 34px; font-size: 15.5px; color: var(--rs-text-secondary); }

/* --- the assistant, beside the search box -------------------------------- */
.ask { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.ask__go { font: 500 14px/1.2 var(--sans); cursor: pointer; text-align: left; background: var(--rs-surface); border: 1px solid var(--rs-control-border); border-radius: var(--rs-radius);
  color: var(--rs-text); padding: 0 16px; min-height: 44px; max-width: 100%; display: inline-flex; align-items: center; gap: 6px; }
.ask__go:hover { border-color: var(--rs-text); background: var(--rs-surface); color: var(--rs-text); }
.ask__go:disabled { opacity: 0.55; cursor: default; }
.ask__hint { font-size: 13px; color: var(--rs-text-secondary); max-width: 46ch; line-height: 1.5; }
.ask__out { flex: 1 1 100%; }
.ask__out:not(:empty) { margin-top: 20px; padding: 20px 0 22px; border-top: 1px solid var(--rs-control-border); border-bottom: 1px solid var(--rs-control-border); }
.ask__answer { font-size: 16.5px; line-height: 1.7; max-width: 68ch; margin: 0; }
.ask__k { font-size: 12.5px; font-weight: 500; color: var(--rs-text-secondary); margin-top: 22px; }
.ask__pages { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ask__pages a { display: inline-block; border: 1px solid var(--rs-rule); border-radius: var(--rs-radius); padding: 7px 10px; font-size: 13.5px; color: var(--rs-text); text-decoration: none; background: var(--rs-surface); }
.ask__pages a:hover { border-color: var(--rs-control-border); }
.ask__note { font-size: 13px; color: var(--rs-text-secondary); margin: 18px 0 0; max-width: 74ch; line-height: 1.6; }
.ask__out--bad { color: var(--rs-stop); }

/* The six outcomes, named where the page claims there are six. */
.outcomes { margin: 14px 0 26px !important; display: flex; flex-wrap: wrap; gap: 8px; }
.outcomes code { font-family: var(--mono); font-size: 12.5px; color: var(--rs-text); border: 1px solid var(--rs-control-border); border-radius: var(--rs-radius); padding: 4px 9px; background: var(--rs-surface); }

/* A console screenshot: a real capture, framed once. */
.shot { margin: 0; }
.shot__img { display: block; width: 100%; height: auto; border: 1px solid var(--rs-rule); border-radius: var(--rs-radius); background: var(--rs-surface); }
.shot figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: var(--rs-text-secondary); max-width: 74ch; }
.shot figcaption .mark { margin-left: 6px; vertical-align: 1px; }

/* --- the home page hero ---------------------------------------------------
 *
 * Two-thirds headline, one-third argument. The second line of the headline is
 * neutral grey, never magenta: the accent is for things a reader can act on.
 */
.hero--home { padding: 74px 0 78px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 2.04fr) minmax(0, 1fr); gap: 84px; }
.hero--home h1 { margin: 26px 0 0; font-size: clamp(56px, 6.35vw, 92px); line-height: 1.045; letter-spacing: -0.048em; font-weight: 470; max-width: none; }
.hero--home h1 span { display: block; color: var(--rs-text-display-muted); }
.hero__aside { padding-top: 50px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 30px; }
.hero__aside .hero__product { font-size: 12.5px; line-height: 1.5; letter-spacing: 0; font-weight: 600; color: var(--rs-text-secondary); margin: 0 0 17px; max-width: none; }
.hero__aside p { font-size: 19px; line-height: 1.62; letter-spacing: -0.015em; max-width: 345px; margin: 0; }
.hero__aside .text-link { min-width: 205px; }
@media (max-width: 1250px) {
  .hero--home { padding: 64px 0 66px; }
  .hero__grid { gap: 52px; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); }
  .hero--home h1 { font-size: clamp(54px, 6.4vw, 84px); }
  .hero__aside p { font-size: 18px; }
  .hero__aside { padding-top: 45px; }
}
@media (max-width: 1040px) {
  .hero__grid { gap: 40px; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
  .hero--home h1 { font-size: 58px; }
  .hero__aside p { font-size: 17px; }
}
@media (max-width: 820px) {
  .hero--home { padding: 52px 0 52px; }
  .hero__grid { display: block; }
  .hero--home h1 { font-size: clamp(48px, 8.6vw, 72px); max-width: 760px; }
  .hero__aside { display: flex; flex-direction: row; gap: 35px; align-items: flex-end; padding-top: 32px; }
  .hero__aside .hero__product { display: none; }
  .hero__aside p { max-width: 420px; }
  .hero__aside .text-link { flex-shrink: 0; min-width: 180px; }
}
@media (max-width: 640px) {
  .hero--home { padding: 44px 0 46px; }
  .hero--home h1 { margin-top: 21px; font-size: clamp(34px, 9.2vw, 56px); line-height: 1.09; letter-spacing: -0.044em; }
  .hero__aside { display: block; padding-top: 27px; }
  .hero__aside p { font-size: 17px; max-width: 450px; line-height: 1.65; }
  .hero__aside .text-link { margin-top: 20px; min-width: 195px; }
}
@media (max-width: 355px) { .hero--home h1 { font-size: 33px; } }

/* --- the decision exhibit -------------------------------------------------
 *
 * subhadipmitra@: One white frame around one meaningful record. Nine gates
 * as native buttons with aria-pressed; selecting one changes the explanation
 * and NOTHING else — the outcome summary and the evidence are static markup
 * that decision.js never touches, and a test holds that.
 *
 * Three states, drawn three ways so colour is never the only signal: a
 * passed gate is a ring with a dot, a stopped gate is a square, a gate that
 * never ran is an empty ring on a dashed connector. The selected gate carries
 * the accent as a 2px rule beneath its label — selection is not outcome.
 */
.dx-section > .wrap::before { margin-bottom: 26px; }
.dx-section { scroll-margin-top: 32px; }
.dx { background: var(--rs-surface); border: 1px solid var(--rs-rule); border-top-color: var(--rs-control-border); }
.dx__mast { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 0 32px; padding: 20px 0; border-bottom: 1px solid var(--rs-rule); font-size: 12.5px; }
.dx__ident { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 0; }
.dx__agent { font-family: var(--mono); font-size: 12.5px; color: var(--rs-text); }
.dx__divider { color: var(--rs-control-border); }
.dx__action { color: var(--rs-text-secondary); }
.dx__action code { font-family: var(--mono); font-size: 12px; color: var(--rs-text-secondary); }
.dx__outcome { display: flex; gap: 9px; align-items: center; color: var(--rs-stop); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.dx__outcome i { display: inline-block; width: 7px; height: 7px; background: var(--rs-stop); }
.dx__outcome code { font-family: var(--mono); font-size: 12px; font-weight: 400; margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--rs-rule); }

.dx__gates { list-style: none; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); margin: 0 32px; padding: 30px 0 0; }
.dx__gates > li { position: relative; min-width: 0; }
/* The connector: a rule from this node to the next. Dashed after the stop. */
.dx__gates > li::after { content: ""; position: absolute; top: 37px; left: 9px; right: -9px; border-top: 1px solid var(--rs-control-border); pointer-events: none; }
.dx__gates > li:last-child::after { display: none; }
.dx__gates > li.is-stopped::after { border-top-style: dashed; }
.dx__gate { display: block; width: 100%; background: none; border: 0; text-align: left; padding: 0 0 26px; min-height: 135px; position: relative; z-index: 1; border-radius: 0; cursor: pointer; font: inherit; color: inherit; }
.dx__gate:focus-visible { outline-offset: 4px; }
.dx__num { display: block; margin-bottom: 14px; line-height: 16px; font-family: var(--mono); font-size: 12px; color: var(--rs-text-secondary); }
.dx__node { display: block; width: 15px; height: 15px; margin-bottom: 18px; background: var(--rs-surface); border: 1px solid var(--rs-success); border-radius: 50%; outline: 5px solid var(--rs-surface); position: relative; }
.dx__node::after { content: ""; width: 5px; height: 5px; background: var(--rs-success); position: absolute; left: 4px; top: 4px; border-radius: 50%; }
.dx__name { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; color: var(--rs-text); }
.dx__state { display: block; font-size: 12px; line-height: 1.5; color: var(--rs-success); }
.is-stopped .dx__node { border-color: var(--rs-stop); border-radius: 2px; }
.is-stopped .dx__node::after { background: var(--rs-stop); border-radius: 0; }
.is-stopped .dx__state { color: var(--rs-stop); }
.is-unreached .dx__node { border-color: var(--rs-control-border); }
.is-unreached .dx__node::after { display: none; }
.is-unreached .dx__state { color: var(--rs-text-secondary); }
.dx__gate[aria-pressed="true"]::before { content: ""; position: absolute; bottom: 0; left: 0; width: 38px; height: 2px; background: var(--rs-accent); }
.dx__gate:hover .dx__name { color: var(--rs-accent); text-decoration: underline; text-underline-offset: 4px; }

.dx__details { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); border-top: 1px solid var(--rs-rule); padding: 32px; gap: 64px; }
.dx__copy { min-height: 189px; }
.dx__panel[hidden] { display: none; }
.dx__index { font-size: 12.5px; color: var(--rs-text-secondary); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); }
.dx__index::before { content: ""; width: 12px; height: 1px; background: var(--rs-accent); }
.dx__title { font-size: clamp(26px, 2.5vw, 35px); line-height: 1.15; letter-spacing: -0.035em; font-weight: 470; margin: 0 0 17px; max-width: none; }
.dx__body { font-size: 16px; line-height: 1.72; color: var(--rs-text-secondary); max-width: 440px; margin: 0; }
.dx__body code { font-family: var(--mono); font-size: 13.5px; color: var(--rs-text); }
.dx__evidence { margin: 0; padding: 0; }
.dx__row { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rs-rule); }
.dx__row:first-child { padding-top: 0; }
.dx__row:last-child { border-bottom: 0; padding-bottom: 0; }
.dx__row dt { font-size: 13px; color: var(--rs-text-secondary); }
.dx__row dd { margin: 0; font-size: 15px; font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; color: var(--rs-text); }
.dx__row dd .cur { font-size: 11px; margin-right: 6px; color: var(--rs-text-secondary); }
.dx__row.is-remaining dd { color: var(--rs-stop); }
.dx__row .code { display: inline; background: none; border: 0; padding: 0; margin: 0; font-size: 12.5px; }
.dx__row dd.is-stop { color: var(--rs-stop); font-size: 12.5px; }
.dx__caption { display: flex; justify-content: space-between; gap: 24px; color: var(--rs-text-secondary); font-size: 12.5px; line-height: 1.65; padding: 15px 0 0; }
.dx__real { margin-top: 28px; font-size: 14px; line-height: 1.6; color: var(--rs-text-secondary); max-width: 70ch; }
.dx__real a { color: var(--rs-text); text-decoration: none; box-shadow: inset 0 -1px 0 var(--rs-accent); }
.dx__real a:hover { color: var(--rs-accent); }
.dx__noscript { padding: 15px 32px; font-size: 13px; color: var(--rs-text-secondary); border-top: 1px solid var(--rs-rule); margin: 0; }

@media (max-width: 1250px) {
  .dx__details { gap: 40px; }
  .dx__title { font-size: 31px; }
  .dx__name { font-size: 12px; }
}
@media (max-width: 1040px) {
  /* Vertical sequence beside the explanation. */
  .dx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .dx__mast { grid-column: 1 / -1; margin: 0 28px; }
  .dx__gates { display: block; margin: 22px 0 26px 28px; padding: 0; border-right: 1px solid var(--rs-rule); }
  .dx__gates > li::after { top: 31px; bottom: -25px; left: 41px; right: auto; border-top: 0; border-left: 1px solid var(--rs-control-border); }
  .dx__gates > li.is-stopped::after { border-left-style: dashed; }
  .dx__gate { min-height: 53px; display: grid; grid-template-columns: 21px 15px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 12px 22px 12px 0; }
  .dx__num, .dx__node, .dx__name { margin: 0; }
  .dx__name { font-size: 13px; }
  .dx__state { font-size: 12px; }
  .dx__gate[aria-pressed="true"]::before { width: 2px; height: auto; left: -12px; top: 12px; bottom: 12px; }
  .dx__details { display: flex; flex-direction: column; gap: 28px; border-top: 0; padding: 28px; }
  .dx__copy { min-height: 0; }
  .dx__title { font-size: 30px; }
  .dx__noscript { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .dx__ident { gap: 10px; }
  .dx { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dx__gates { margin-left: 22px; }
  .dx__gate { gap: 9px; padding-right: 15px; grid-template-columns: 21px 15px minmax(0, 1fr); }
  .dx__state { grid-column: 3; margin-top: -7px; }
  .dx__gates > li::after { left: 37px; bottom: -21px; top: 27px; }
  .dx__details { padding: 26px 22px; }
  .dx__row dt { font-size: 12.5px; }
  .dx__row dd { font-size: 13.5px; }
  .dx__row { gap: 16px; }
}
@media (max-width: 640px) {
  /* Stacked on a phone. Currency stays visible at every width. */
  .dx { display: block; }
  .dx__mast { margin-inline: 20px; padding: 17px 0; flex-wrap: wrap; gap: 10px; }
  .dx__divider { display: none; }
  .dx__ident { flex-direction: column; align-items: flex-start; gap: 6px; }
  .dx__gates { margin: 22px 20px 0; border-right: 0; padding-bottom: 22px; }
  .dx__gate { grid-template-columns: 21px 15px minmax(0, 1fr) auto; gap: 11px; padding: 15px 0; min-height: 54px; }
  .dx__state { grid-column: auto; margin: 0; font-size: 12px; }
  .dx__name { font-size: 13px; }
  .dx__gates > li::after { left: 39px; top: 33px; bottom: -20px; }
  .dx__gate[aria-pressed="true"]::before { left: -11px; }
  .dx__details { border-top: 1px solid var(--rs-rule); padding: 27px 20px; gap: 27px; }
  .dx__title { font-size: 29px; max-width: 310px; }
  .dx__row dd { font-size: 14px; }
  .dx__caption { display: block; font-size: 12.5px; padding-top: 13px; }
  .dx__caption span { display: block; }
  .dx__caption span + span { margin-top: 3px; }
  .dx__noscript { padding: 14px 20px; }
}
@media (max-width: 355px) {
  .dx__gate { gap: 8px; grid-template-columns: 18px 15px minmax(0, 1fr) auto; }
  .dx__gates > li::after { left: 33px; }
  .dx__name, .dx__state { font-size: 12px; }
  .dx__mast { margin-inline: 16px; }
  .dx__gates { margin-inline: 16px; }
  .dx__details { padding-inline: 16px; }
  .dx__title { font-size: 26px; }
}

/* Three facts a stranger can check, as a ruled row under an argument. */
.facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 30px; border-top: 1px solid var(--rs-rule); }
.facts li { display: flex; align-items: baseline; gap: 10px; padding: 13px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--rs-text-secondary); }
.facts__m { width: 7px; height: 7px; background: var(--rs-accent); flex: none; transform: translateY(-1px); }
@media (max-width: 780px) { .facts { grid-template-columns: 1fr; gap: 0; } }

/* Definition rows on the home page: the four tools and what each answers. */
.defs--terms .def { grid-template-columns: 200px 1fr; }
.defs--terms .def dt { font-family: var(--mono); font-size: 14px; font-weight: 500; }
.defs--terms .def dd { font-size: 16px; color: var(--rs-text); }
.defs--terms .def dd b { font-weight: 600; }
@media (max-width: 900px) { .defs--terms .def { grid-template-columns: 1fr; } }

@media (forced-colors: active) {
  .dx__gate[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: 1px; }
  .dx__node::after { background: CanvasText; }
  .btn, .mast .cta { border-color: ButtonText; }
  .navitem__btn[data-current="true"]::after, .kicker::before { background: CanvasText; border-color: CanvasText; }
}

@media print {
  .mast__nav, .mast__burger, .mast__acts, .announce, .consent, .skip { display: none !important; }
  .hero--home { padding: 32px 0; }
  .dx { break-inside: avoid; }
  a { text-decoration: none; }
}

/* subhadipmitra@: APPEND BELOW THIS LINE. A python string replace whose end
   anchor matched a `border-left` several hundred lines further down once
   deleted 816 lines of this file including every `.seq` rule, live, with the
   brace count still balanced. Additive edits only. */

/* --- small structural classes that replaced inline styles ---------------- */
.hero .record { margin-top: 44px; }
.record--flush { margin-top: 0; }
.subhead { margin: 34px 0 0; font-size: 17px; font-weight: 600; }
.subhead + .defs { margin-top: 18px; }
.later { margin-top: 52px; }
label.k.k--next { margin-top: 22px; }
.k .plain { font-weight: 400; }

/* Legacy post markup, migrated from inline styles. subhadipmitra@: nine v1
   posts carried hand-written HTML tables with hex greys and one gradient
   callout. The hexes are gone; a tinted row keeps its meaning as a class and
   shows it as a rule on the first cell, so it survives greyscale too. */
.hero .limit { margin-top: 40px; }
.prose .scroll-x { margin-top: 1.6em; }
.prose .scroll-x > table { margin-top: 0; }
.prose tr.is-stop > td:first-child { box-shadow: inset 2px 0 0 var(--rs-stop); padding-left: 12px; }
.prose tr.is-review > td:first-child { box-shadow: inset 2px 0 0 var(--rs-review); padding-left: 12px; }
.prose tr.is-success > td:first-child { box-shadow: inset 2px 0 0 var(--rs-success); padding-left: 12px; }
.prose .callout { margin-top: 1.8em; padding: 20px 22px; background: var(--rs-surface); border: 1px solid var(--rs-rule); border-left: 2px solid var(--rs-control-border); }
.prose .callout > :first-child { margin-top: 0; }
.prose .callout > * + * { margin-top: 0.8em; }
.prose .callout h3, .prose .callout h4 { margin-top: 0; }
.prose .chart-mount:empty { display: none; }

/* Identifiers and keys quoted inline can be longer than a phone is wide. */
.def code, .limit code, .note code, .claim code, .rows code, .lead code, .dx__body code, .vdetail code { overflow-wrap: anywhere; }

/* A markdown table cannot be wrapped in a scroll box at build time, so its
   cells must be allowed to break instead: one unbreakable token was enough to
   push a post 5px past a phone's edge. */
.prose td, .prose th { overflow-wrap: anywhere; }
