/* Tare Standard — the published Code of Points.
   A Read surface in the Weights and Measures world: buff stock, ink, hairlines,
   one vermilion mark where it means something. No gradients, cards, shadows or
   rounded corners. */

:root {
  --stock: #e8e2d2;
  --ink: #20241f;
  --grn: #a8321e;
  --sage: #cbd3c0;
  --graphite: #3f4a52;
  --pass: #3f5d4a;
  --rule: rgba(32, 36, 31, 0.55);
  --hair: rgba(32, 36, 31, 0.34);
  --mute: rgba(32, 36, 31, 0.74);
  --display: "Archivo Narrow", "Archivo", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --frame: 1180px;
  /* A length, not a `ch`: `56ch` resolved in each element's own font, so the
     h2 rule and the blockquote ran wider than the prose they divide. 34rem is
     the same 544px column in the reading face. */
  --measure: 34rem;
}

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

html {
  background: var(--stock);
  color: var(--ink);
  color-scheme: light;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background: var(--stock);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.68;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

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

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

p,
li {
  text-wrap: pretty;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--rule);
}

a:hover {
  text-decoration-color: var(--ink);
}

.skip {
  position: absolute;
  top: 12px;
  left: -9999px;
  z-index: 10;
  background: var(--ink);
  color: var(--stock);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.skip:focus {
  left: 12px;
}

/* Masthead and running head ------------------------------------------------ */

.masthead {
  border-top: 4px solid var(--ink);
  border-bottom: 3px double var(--ink);
}

.masthead-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  max-width: var(--frame);
  margin: 0 auto;
  padding: 20px 32px 15px;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-name {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.wordmark-sub {
  border-left: 1px solid var(--hair);
  padding-left: 12px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  align-items: baseline;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding-block: 5px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 7px;
  background: transparent;
  vertical-align: 2px;
}

.site-nav a[aria-current="page"]::before {
  background: var(--grn);
}

.site-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-underline-offset: 0.3em;
}

.running-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--frame);
  margin: 0 auto;
  padding: 8px 32px 10px;
  border-top: 1px solid var(--hair);
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* The left slot carries the section being read, as a printed running head
   does; the dated version line stays on the right. */
.running-section {
  color: var(--ink);
  font-weight: 500;
}

/* The front page: a title page and a ruled contents table ------------------ */

.front {
  width: 100%;
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 32px;
}

/* A site-level reading page (the accessibility statement): the same document
   typography as a standard, one column, no rail. */
.statement {
  width: 100%;
  max-width: calc(var(--measure) + 64px);
  margin: 0 auto;
  padding: 0 32px;
}

.statement .document {
  padding: 44px 0 64px;
}

.statement .document h1 {
  max-width: 24ch;
}

.statement-meta {
  margin: 0 0 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.title-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
  padding: clamp(36px, 5vw, 64px) 0 32px;
  /* One rule closes the title page: the Contents h2 rule below. A second full
     rule here sat 57px above it and read as a doubled line. */
}

.title-block h1 {
  max-width: 12ch;
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(3.4rem, 7.2vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.94;
  text-wrap: balance;
}

.standfirst {
  max-width: 24ch;
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.14;
  text-wrap: balance;
}

.intro,
.intro-note {
  max-width: var(--measure);
}

.intro {
  margin: 0 0 18px;
}

.intro-note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  color: var(--mute);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.edition {
  /* The edition block ends on the title page's foot instead of leaving a
     234px empty gutter under it. */
  align-self: end;
  margin: 0;
  border-top: 1px solid var(--ink);
}

.edition div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--hair);
}

.edition dt {
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.edition dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.standards h2 {
  margin: 56px 0 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
}

.standard-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(36px, 5vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.standard-entry {
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--hair);
}

/* The two standards are the book's two parts: a hairline between the columns,
   the same rule the catalogue prints between its rows. */
.standard-entry + .standard-entry {
  border-left: 1px solid var(--hair);
  padding-left: clamp(28px, 3vw, 48px);
}

.standard-entry-link {
  display: block;
  padding: 4px 0;
  color: var(--ink);
  text-decoration: none;
}

.standard-entry-link:hover .standard-name {
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-underline-offset: 0.16em;
}

.standard-name {
  display: block;
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.standard-claim {
  display: block;
  max-width: var(--measure);
  margin: 0 0 10px;
}

.standard-meta {
  display: block;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
}

.standard-version {
  color: var(--ink);
  font-weight: 500;
}

.standard-docs-label {
  margin: 18px 0 6px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standard-docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.standard-docs a {
  display: inline-block;
  padding: 5px 0;
  font-size: 0.9375rem;
}

/* The site's own note follows the catalogue; the choices come first. */
.site-note {
  max-width: var(--measure);
  margin: 36px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
}

.site-note .intro {
  margin-bottom: 16px;
}

/* The scope figure pairs with the Family table it counts: beside it on a wide
   page, under it on a narrow one. Six family bands, fifty cells, the four empty
   families visible. */
.tally {
  margin: 0 0 32px;
  max-width: var(--measure);
}

@media (min-width: 1360px) {
  .scope-pair {
    display: grid;
    grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin: 24px 0 30px;
  }

  .scope-pair .table-scroll,
  .scope-pair .tally {
    margin-top: 0;
    margin-bottom: 0;
  }

  /* The paired figure is narrower than the reading measure, so the family
     label sits above its cells and the count stays with them. */
  .scope-pair .tally-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .scope-pair .tally-grid {
    grid-template-columns: repeat(10, 1.25rem);
    gap: 4px;
  }

  .scope-pair .tally-caption {
    max-width: none;
  }
}

.tally-bands {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.tally-band {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.tally-band-label {
  margin: 0;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.tally-band-letter {
  color: var(--ink);
  font-weight: 600;
}

.tally-count {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.tally-grid {
  display: grid;
  grid-template-columns: repeat(10, 1.45rem);
  gap: 5px;
}

.tally-cell {
  aspect-ratio: 1;
  border: 1px solid var(--hair);
}

.tally-cell--with {
  border-color: var(--ink);
  background: var(--ink);
}

.tally-caption {
  max-width: 34rem;
  margin: 0;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .tally-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}
@media (max-width: 900px) {
  .standard-index {
    grid-template-columns: minmax(0, 1fr);
  }

  .standard-entry + .standard-entry {
    border-left: 0;
    padding-left: 0;
  }

  .standards h2 {
    margin-top: 36px;
  }
}


/* A fold-out table carries a 720px min-width, so below 768 it scrolls inside
   its own region. Say so where it is true: the cue is hidden above that, where
   the table fits, and it is never aria-hidden, so the promise is announced.
   Only a table that really can overflow gets the cue (the build checks the
   wide modifier, not the column count). */
.table-hint {
  display: none;
  margin: 26px 0 -10px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .table-hint {
    display: block;
  }
}

/* A document: margin rail, running contents, reading column ---------------- */

.doc-shell {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, var(--measure));
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

.doc-shell::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 252px;
  width: 1px;
  background: var(--hair);
}

.rail {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 44px 26px 40px 0;
}

.rail-title {
  margin: 0 0 14px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.toc-list {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.toc-list li {
  margin: 0 0 8px;
}

.toc-list a {
  display: inline-block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.28;
  text-decoration: none;
}

.toc-list a::before {
  content: "—";
  margin-right: 8px;
  color: var(--hair);
}

.toc-list a:hover {
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-underline-offset: 0.2em;
}

/* The rail cites the clause as §N; the heading prints the bare number. */
.toc-list .clause {
  margin-right: 2px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* The register's v2.2 group sits under its section, not in the clause list. */
.toc-list .toc-group {
  margin: 2px 0 10px 22px;
}

.toc-list .toc-group a {
  color: var(--mute);
  font-size: 0.8125rem;
  font-weight: 400;
}

.doc-meta {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
}

.doc-meta div {
  margin: 0 0 10px;
}

.doc-meta dt {
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doc-meta dd {
  margin: 2px 0 0;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* The right margin: citation apparatus on wide pages, absent below 1360.
   The rail's doc-meta and the colophon carry the same facts there. */
.margin {
  display: none;
  margin: 0;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  line-height: 1.55;
}

.margin p {
  margin: 0 0 12px;
}

.margin-citation {
  color: var(--ink);
  letter-spacing: 0.04em;
}

.margin-links a {
  display: inline-block;
  padding-block: 4px;
}

.document {
  min-width: 0;
  padding: 44px 0 64px;
}

.document h1 {
  max-width: 24ch;
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(2.45rem, 4.6vw, 3.55rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.02;
  text-wrap: balance;
}

/* One citation apparatus, at the top of every document: the sentence and the
   URLs it can be read as, folded away until a reader asks for them. It used to
   be a jump to the foot of the page, and the frozen-edition link lived only in
   the wide-screen margin. */
.doc-cite {
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-cite summary {
  display: inline-block;
  list-style: none;
  padding: 6px 0;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--hair);
  text-underline-offset: 3px;
}

.doc-cite summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
  color: var(--mute);
}

.doc-cite[open] summary::before {
  content: "▾";
  color: var(--ink);
}

.doc-cite summary:hover,
.doc-cite[open] summary {
  text-decoration-color: var(--ink);
}

.doc-cite[open] summary {
  margin-bottom: 12px;
}

.cite-body {
  padding: 2px 0 4px 14px;
  border-left: 1px solid var(--hair);
  color: var(--ink);
  font-size: 0.875rem;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

.cite-line {
  margin: 0 0 10px;
  user-select: all;
}

.cite-url {
  margin: 0 0 6px;
  overflow-wrap: break-word;
}

.cite-url-label {
  display: inline-block;
  min-width: 6.5rem;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cite-line time {
  white-space: nowrap;
}

.citation-url {
  overflow-wrap: normal;
  user-select: all;
}

/* The citation copy control: a printed button, not a rounded pill. The row
   stays in the flow, so the live message never shifts the page. */
.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 0;
}

.copy-button {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.copy-status {
  min-height: 1.4em;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* The changelog's Atom feed: one quiet line beside the citation apparatus. */
.doc-feed {
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-feed a {
  display: inline-block;
  padding-block: 4px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hair);
  text-underline-offset: 3px;
}

/* A phone keeps the dated line under the title; the rail that carries it on
   desktop is removed at 900. */
.doc-meta-line {
  display: none;
  margin: 0 0 20px;
  padding: 9px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.doc-contents {
  display: none;
  margin: 0 0 30px;
  padding-top: 10px;
  border-top: 1px solid var(--ink);
}

.doc-contents summary {
  padding-block: 5px;
  color: var(--mute);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doc-contents-list {
  margin: 6px 0 4px;
  padding: 10px 0 0;
  border-top: 1px solid var(--hair);
  list-style: none;
}

.doc-contents-list li {
  margin: 0 0 8px;
}

.doc-contents-list a {
  display: inline-block;
  padding-block: 3px;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.28;
  text-decoration: none;
}

.doc-contents-list a::before {
  content: "—";
  margin-right: 8px;
  color: var(--hair);
}

/* One dated line per document, in one grammar. It used to be five grammars
   in five documents and 90 characters of 12px capitals: an apparatus that is
   not standardised teaches the reader the apparatus is decoration. */
.document .doc-kicker {
  display: block;
  margin: 0 0 1.4em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-transform: none;
}

/* A kicker that quotes a file path is prose, not a label: upper-casing a path
   turns one line into four on a phone. */
.document .doc-kicker--code {
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  line-height: 1.6;
  text-transform: none;
}

.document h2 {
  margin: 56px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.008em;
  line-height: 1.12;
  scroll-margin-top: 24px;
  text-wrap: balance;
}

.document h3 {
  margin: 36px 0 10px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  scroll-margin-top: 24px;
  text-wrap: balance;
}

/* Clause numbers sit beside the heading, in the display face, never inside
   the heading's accessible name (the span is aria-hidden). */
.document .clause {
  margin-right: 0.4em;
  color: var(--mute);
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.document p {
  margin: 0 0 1.1em;
  overflow-wrap: break-word;
}

.document a {
  overflow-wrap: anywhere;
}

.document ul,
.document ol {
  margin: 0 0 1.3em;
  padding-left: 1.35em;
}

.document li {
  margin: 0 0 0.45em;
  padding-left: 0.15em;
}

.document li::marker {
  color: var(--mute);
}

.document strong {
  font-weight: 600;
}

.document code {
  padding: 0.08em 0.3em;
  background: rgba(32, 36, 31, 0.055);
  font-family: var(--mono);
  font-size: 0.86em;
  font-variant-numeric: tabular-nums;
}

.document pre {
  margin: 22px 0 28px;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.55;
}

.document pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

.document blockquote {
  margin: 32px 0;
  padding: 18px 0 20px;
  border-top: 1px solid var(--grn);
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.25;
  text-wrap: balance;
}

.document blockquote p {
  margin: 0;
}

.document blockquote em,
.document blockquote strong {
  font-style: normal;
  font-weight: 600;
}

/* Ruled tables ------------------------------------------------------------- */

.table-scroll {
  margin: 24px 0 30px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.table-scroll:focus-visible {
  outline-offset: -3px;
}

.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

/* Only a table of five columns or more folds out. A two- or three-column
   table sizes to the reading column; it must not become a 640px ribbon. */
.document .table-scroll--wide table {
  min-width: 720px;
}

/* A real column plan for the reference tables, so a clause is not poured into
   a 148px "Must not" box and an argument is not set as a ribbon. */
.table--register table,
.table--mapping table,
.table--coverage table,
.table--coverage-glance table,
.table--checks table,
.table--levels table,
.table--anchors table {
  table-layout: fixed;
}

.table--register th:nth-child(1) {
  width: 10%;
}

.table--register th:nth-child(2) {
  width: 17%;
}

.table--register th:nth-child(3) {
  width: 5%;
}

.table--register th:nth-child(4) {
  width: 18%;
}

.table--register th:nth-child(5) {
  width: 17%;
}

/* "housekeeping_dispatch" is 13 characters before its break opportunity;
   12% overflowed into the Anchor cell at 768. */
.table--register th:nth-child(6) {
  width: 15%;
}

/* The Anchor column is where a reader looks up the vendor or procedure a job
   is judged against; 10% broke "Stayntouch" into "Stayntouc h" at 1440. */
.table--register th:nth-child(7) {
  width: 18%;
}

/* The four v2.2 attack jobs are one group in the register: a ruled subhead in
   ink, not a tint and not a badge. It spans the table, so it reads at 390
   inside the scroll region. */
.table--register .register-group th {
  position: static;
  padding: 11px 10px 9px;
  border-top: 1px solid var(--ink);
  border-right: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: left;
  text-transform: none;
}

.table--mapping th:nth-child(1) {
  width: 12%;
}

.table--mapping th:nth-child(2) {
  width: 17%;
}

.table--mapping th:nth-child(3) {
  width: 13%;
}

.table--mapping th:nth-child(4) {
  width: 28%;
}

.table--mapping th:nth-child(5) {
  width: 15%;
}

.table--mapping th:nth-child(6) {
  width: 15%;
}

.table--coverage th:nth-child(1) {
  width: 24%;
}

.table--coverage th:nth-child(2) {
  width: 8%;
}

.table--coverage th:nth-child(3) {
  width: 22%;
}

.table--coverage th:nth-child(4) {
  width: 22%;
}

.table--coverage th:nth-child(5) {
  width: 24%;
}

/* The two four-column argument tables. Their last column carries the sentence
   doing the work, so it takes the width the ribbon used to waste. */
.table--coverage-glance th:nth-child(1) {
  width: 22%;
}

.table--coverage-glance th:nth-child(2) {
  width: 10%;
}

.table--coverage-glance th:nth-child(3) {
  width: 26%;
}

.table--coverage-glance th:nth-child(4) {
  width: 42%;
}

.table--checks th:nth-child(1) {
  width: 22%;
}

.table--checks th:nth-child(2) {
  width: 8%;
}

.table--checks th:nth-child(3) {
  width: 8%;
}

.table--checks th:nth-child(4) {
  width: 62%;
}

/* Four-column prose tables that fold out on a wide page and scroll at 640 on
   a phone; the plan keeps a long anchor name and a sentence from sharing a
   90px ribbon. */
.table--levels th:nth-child(1) {
  width: 18%;
}

.table--levels th:nth-child(2) {
  width: 34%;
}

.table--levels th:nth-child(3) {
  width: 20%;
}

.table--levels th:nth-child(4) {
  width: 28%;
}

.table--anchors th:nth-child(1) {
  width: 22%;
}

.table--anchors th:nth-child(2) {
  width: 24%;
}

.table--anchors th:nth-child(3) {
  width: 20%;
}

.table--anchors th:nth-child(4) {
  width: 34%;
}

.table-scroll th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  border-right: 1px solid rgba(232, 226, 210, 0.22);
  background: var(--ink);
  color: var(--stock);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
  vertical-align: bottom;
}

.table--register th,
.table--mapping th,
.table--coverage th,
.table--coverage-glance th,
.table--checks th {
  padding: 9px 10px;
}

.table-scroll th:last-child {
  border-right: 0;
}

.table-scroll td {
  padding: 11px 12px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}

.table--register td,
.table--mapping td,
.table--coverage td,
.table--coverage-glance td,
.table--checks td {
  padding: 9px 10px;
}

/* An id, a URL or a gate token may break anywhere; a prose cell may not.
   Breaking "reservation" into "reservatio n" makes the record unquotable. */
.table-scroll code {
  overflow-wrap: anywhere;
}

/* The id self-link is a jump target, so it gets a 24×24 hit area without
   changing type: 8px of padding cancelled by an 8px negative margin, which
   keeps the row's line rhythm and stays inside the cell's own padding. */
.table-scroll .row-id {
  display: inline-block;
  margin: -8px;
  padding: 8px;
  text-decoration-color: var(--hair);
  white-space: nowrap;
}

.table-scroll td:last-child {
  border-right: 0;
}

.table-scroll tbody tr:last-child td {
  border-bottom: 0;
}

.table-scroll td em {
  color: var(--mute);
}

/* Every document ends with its own citation: a ruled line, one selectable
   string, no copy button and no script. */
.citation {
  max-width: var(--measure);
  margin: 56px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  scroll-margin-top: 24px;
}

.citation-label {
  margin: 0 0 8px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.citation-line {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  overflow-wrap: break-word;
  user-select: all;
}

/* A date or a URL is one string a reader copies; never break inside it. */
.citation-line time,
.citation-url,
.margin-citation time,
.doc-meta-line time,
.standard-meta time,
.doc-meta-time time,
.colophon-version time {
  white-space: nowrap;
}

/* The dated line is one string; the running head and the colophon wrap only
   between words, never inside the date. On a phone the whole line wraps at the
   "·" groups instead of painting past the viewport. */
.running-version,
.colophon-version {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .running-version,
  .colophon-version {
    white-space: normal;
  }

  .running-version time,
  .colophon-version time {
    white-space: nowrap;
  }
}

/* On a phone the metadata line prints the dated line and the source on two
   rows, so a wrapped line never ends on a dangling separator. */
.doc-meta-line a {
  display: block;
  margin-top: 2px;
}

.doc-end {
  margin: 56px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Not found ---------------------------------------------------------------- */

.not-found {
  max-width: 62rem;
  padding: clamp(64px, 10vw, 128px) 0 clamp(72px, 12vw, 144px);
}

.not-found h1 {
  max-width: 20ch;
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}

.not-found-code {
  display: block;
  margin: 0 0 14px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.not-found p {
  max-width: 58ch;
  margin: 0 0 1.1em;
}

.not-found-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px clamp(32px, 5vw, 64px);
  margin: 34px 0 8px;
}

.not-found-group h2 {
  margin: 0 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.not-found-group h2 a {
  text-decoration: none;
}

.not-found-group h2 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-underline-offset: 0.16em;
}

.not-found-version {
  display: block;
  margin-top: 5px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.not-found-docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.not-found-docs a {
  display: inline-block;
  padding: 5px 0;
  font-size: 0.9375rem;
}

.not-found-moved {
  margin: 26px 0 4px;
}

.not-found-moved h2 {
  margin: 0 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
}

.not-found-moved ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.8;
}

.not-found-moved code {
  font-size: 0.75rem;
}

.not-found-home {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .not-found-groups,
  .not-found-moved ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Colophon ----------------------------------------------------------------- */

.colophon {
  flex-shrink: 0;
  margin-top: 64px;
  border-top: 3px double var(--ink);
}

.colophon-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 14px 64px;
  width: 100%;
  max-width: var(--frame);
  margin: 0 auto;
  padding: 28px 32px 42px;
}

.colophon p {
  margin: 0;
}

.colophon-wordmark {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.colophon-split {
  max-width: 42ch;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
}

.colophon-claims,
.colophon-status,
.colophon-licence,
.colophon-version,
.colophon-links {
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.colophon-claims,
.colophon-status {
  margin-bottom: 8px;
  max-width: 66ch;
}

.colophon-licence {
  margin-bottom: 8px;
}

.colophon-version {
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

/* Mid-width pages: the rail stays, and the column widens enough for the wide
   tables to fold out instead of scrolling inside the reading measure. */
@media (min-width: 1040px) and (max-width: 1359px) {
  .doc-shell {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 40px;
    max-width: 1028px;
  }

  .document > p,
  .document > ul,
  .document > ol,
  .document > blockquote,
  .document > pre,
  .document > h2,
  .document > h3,
  .document > .doc-end,
  .document > .doc-cite,
  .document > .doc-meta-line,
  .document > .doc-contents {
    max-width: var(--measure);
  }

  .document .table-scroll {
    max-width: var(--measure);
  }

  .document .table-scroll--wide {
    max-width: none;
  }

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

/* Wide pages: the article column widens so a reference table folds out past
   the reading measure, and the right margin carries the dated citation.
   Prose keeps its 56ch measure; the reading column never shrinks. */
@media (min-width: 1360px) {
  /* The right margin carries the dated line from here up; the rail keeps only
     what the margin does not (Part of, Source), so the record prints twice. */
  .doc-meta-time {
    display: none;
  }

  :root {
    --frame: 1400px;
  }

  .doc-shell {
    grid-template-columns: 180px minmax(0, 1fr) 180px;
    gap: 40px;
    max-width: 1400px;
  }

  .doc-shell::before {
    left: 212px;
  }

  /* The margin is a column, not a floating note: a hairline separates it from
     the fold-out tables that stop short of it. */
  .doc-shell::after {
    content: "";
    position: absolute;
    top: 0;
    right: 212px;
    bottom: 0;
    width: 1px;
    background: var(--hair);
  }

  .document > p,
  .document > ul,
  .document > ol,
  .document > blockquote,
  .document > pre,
  .document > h2,
  .document > h3,
  .document > .doc-end,
  .document > .doc-cite,
  .document > .doc-meta-line,
  .document > .doc-contents {
    max-width: var(--measure);
  }

  /* A two- or three-column table stays on the reading measure; only the wide
     reference tables fold out into the article column. */
  .document .table-scroll {
    max-width: var(--measure);
  }

  .document .table-scroll--wide {
    max-width: none;
  }

  .margin {
    display: block;
    position: sticky;
    top: 24px;
    align-self: start;
    padding: 44px 0 40px 12px;
  }

  /* The wide tables fit this column, so the wrapper is not a scrollport and
     `thead th { position: sticky }` can hold the header against the viewport
     while the job register scrolls. */
  .table-scroll {
    overflow-x: visible;
  }
}

/* Narrow pages: the rail is removed below 1040 so a fold-out table keeps the
   column it was designed for instead of being cut inside a 544px measure. The
   shell is one column, the prose keeps its 544px measure, and only a wide table
   uses the full column. Below 768 the table is a scrollport again, and that is
   the only range where the build prints the scroll cue. */
@media (max-width: 1039px) {
  .doc-shell {
    display: block;
    max-width: 768px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .doc-shell::before {
    display: none;
  }

  .rail {
    display: none;
  }

  .doc-contents,
  .doc-meta-line {
    display: block;
  }

  .document > p,
  .document > ul,
  .document > ol,
  .document > blockquote,
  .document > pre,
  .document > h2,
  .document > h3,
  .document > .doc-end,
  .document > .doc-cite,
  .document > .doc-meta-line,
  .document > .doc-contents {
    max-width: var(--measure);
  }

  .document .table-scroll {
    max-width: var(--measure);
  }

  .document .table-scroll--wide {
    max-width: none;
  }

  /* The small mono links get their 24px from block padding, not bigger type. */
  .doc-cite a,
  .doc-meta-line a,
  .doc-end a,
  .colophon-links a {
    display: inline-block;
    padding-block: 4px;
  }
}

/* Small screens ------------------------------------------------------------ */

@media (max-width: 900px) {
  /* The phone prints the dated line under the title already; the kicker is the
     same line a second time, 300px later. */
  .document .doc-kicker {
    display: none;
  }

  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 24px 14px;
  }

  .running-head {
    gap: 6px 24px;
    padding: 8px 24px 10px;
  }

  .front {
    padding-right: 24px;
    padding-left: 24px;
  }

  /* Every pixel of side padding is a pixel the 720px table loses when a
     platform still draws a classic 15px scrollbar; 16px keeps the table
     fitting at 768. */
  .doc-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .title-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 20px;
  }

  /* The edition prints as one ruled row on a narrow page; three stacked rows
     pushed the second standard off the first screen. */
  .edition {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    max-width: none;
    padding-top: 8px;
  }

  .edition div {
    display: flex;
    gap: 6px;
    padding: 2px 0;
    border-bottom: 0;
  }

  .edition dd {
    font-size: 0.6875rem;
    text-align: left;
  }

  .standards h2 {
    margin-top: 24px;
  }

  .document {
    padding-top: 36px;
  }

  .colophon-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 26px 24px 36px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .masthead-inner {
    padding: 16px 18px 12px;
  }

  .wordmark {
    gap: 9px;
  }

  .wordmark-name {
    font-size: 1.2rem;
  }

  .site-nav {
    gap: 4px 10px;
  }

  .site-nav a {
    font-size: 0.6875rem;
  }

  .running-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 8px 18px 10px;
    font-size: 0.6875rem;
  }

  .front,
  .doc-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .statement {
    padding-right: 18px;
    padding-left: 18px;
  }

  .title-page {
    padding-top: 28px;
    padding-bottom: 20px;
    border-bottom: 0;
  }

  .title-block h1 {
    margin-bottom: 12px;
    font-size: clamp(2.4rem, 12vw, 3.2rem);
  }

  .standfirst {
    margin-bottom: 16px;
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .standards h2 {
    margin-top: 16px;
  }

  .standard-entry {
    padding: 10px 0 12px;
  }

  .standard-name {
    margin-bottom: 2px;
  }

  .standard-claim {
    margin-bottom: 4px;
    line-height: 1.4;
    font-size: 0.9375rem;
  }

  /* The six-document label is scaffolding on a phone; the list is links, and
     dropping the label brings the second standard into the first screen. */
  .standard-docs-label {
    display: none;
  }

  .standard-docs {
    margin-top: 6px;
  }

  .standard-docs a {
    padding: 1px 0;
  }

  .document h1 {
    font-size: clamp(2.1rem, 9.6vw, 2.8rem);
  }

  .document h2 {
    margin-top: 44px;
  }

  .document .table-scroll--wide table {
    min-width: 640px;
    font-size: 0.84375rem;
  }

  /* A 34-character check id is wider than the phone's 354px column. Allow the
     break visually (the text itself is untouched, so copy still returns one
     string) rather than turning a three-column table into a scrollport with no
     cue, which would promise an interaction the reader cannot see. */
  .table-scroll code {
    overflow-wrap: anywhere;
  }

  /* At 390 the register is a scroll region; give the scenario name the room
     it needs and let the gate tokens break. */
  .table--register th:nth-child(2) {
    width: 19%;
  }

  .table--register th:nth-child(3) {
    width: 7%;
  }

  .table--register th:nth-child(4) {
    width: 25%;
  }

  .table--register th:nth-child(6) {
    width: 13%;
  }

  .table--register th:nth-child(7) {
    width: 9%;
  }

  /* At the phone width the register is a catalogue, not a matrix. Seven
     columns in 676px can never show Must beside Must not, so each job becomes
     one entry with its own labels: the head is hidden and every cell prints
     the column it came from. The table keeps its semantics; only the display
     changes, and the scroll cue goes with the scroll. */
  .document .table-scroll--wide.table--register table,
  .table--register table {
    min-width: 0;
    table-layout: auto;
    font-size: 0.9375rem;
  }

  .table--register thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .table--register tbody,
  .table--register tr,
  .table--register td {
    display: block;
  }

  .table--register tr {
    padding: 14px 0 16px;
  }

  .table--register tr + tr {
    border-top: 1px solid var(--hair);
  }

  /* Sev is one character wide; a label above it costs a whole line per job. */
  .table--register td:nth-child(3)::before {
    display: inline;
    margin-right: 7px;
  }

  .table--register td {
    padding: 3px 0;
    border: 0;
  }

  .table--register td::before {
    content: attr(data-label);
    display: block;
    color: var(--mute);
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    line-height: 1.6;
    text-transform: uppercase;
  }

  /* The id and the scenario name carry the entry; their labels would only
     repeat what the value already says. */
  .table--register td:first-child::before,
  .table--register td:nth-child(2)::before {
    display: none;
  }

  .table--register td:first-child {
    padding-bottom: 0;
  }

  .table--register td:nth-child(2) {
    padding-top: 0;
    font-family: var(--display);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
  }

  .table--register .register-group th {
    padding: 14px 0 8px;
  }

  /* The group draws its own two rules; a hairline on either side of them
     reads as a doubled line. */
  .table--register tr.register-group,
  .table--register .register-group + tr {
    border-top: 0;
  }

  .table--register .register-group + tr {
    padding-top: 8px;
  }

  .table-hint--register {
    display: none;
  }

  .table-scroll {
    margin-right: -18px;
    margin-left: -18px;
    padding-left: 18px;
    border-right: 0;
    border-left: 0;
  }

  .document .table-scroll {
    padding-right: 18px;
  }

  .doc-end {
    font-size: 0.6875rem;
  }

  /* The label and a URL cannot share a 354px line; stack them. */
  .cite-url-label {
    display: block;
    min-width: 0;
    margin-bottom: 2px;
  }

  .not-found {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .colophon {
    margin-top: 48px;
  }
}

/* Print: the rulebook on paper -------------------------------------------- */

@page {
  margin: 18mm 16mm;
}

@media print {
  html,
  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
  }

  .skip,
  .site-nav,
  .rail,
  .margin,
  .doc-contents,
  .doc-shell::before,
  .doc-shell::after,
  .doc-end,
  .doc-cite,
  .doc-feed,
  .copy-row,
  .table-hint,
  .colophon-links {
    display: none;
  }

  .masthead {
    border-color: #000;
  }

  .masthead-inner,
  .running-head,
  .front,
  .doc-shell,
  .colophon-inner {
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }

  .doc-shell {
    display: block;
    max-width: none;
  }

  .document {
    padding-top: 18pt;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .table-scroll {
    overflow: visible;
  }

  .document .table-scroll table {
    min-width: 0;
  }

  /* Seven columns on A4: at 10.5pt the anchor column broke words in half
     ("Stayntou/ch"). A point size smaller fits the column without breaking a
     word, and paper has no scroll to hide the overflow. */
  .document .table-scroll--wide table {
    font-size: 8pt;
  }

  /* The head repeats on every page of a long register; a rule, a row or a
     quote never splits across a page break. */
  thead {
    display: table-header-group;
  }

  tr,
  blockquote,
  .citation {
    break-inside: avoid;
  }

  h1,
  h2,
  h3 {
    break-after: avoid;
  }

  .table-scroll th {
    background: #000;
    color: #fff;
  }

  .colophon {
    border-top-color: #000;
    page-break-inside: avoid;
  }
}


/* Generated at build time: the rail marks the section at :target. */
.doc-shell:has(#the-claim:target) .rail a[href="#the-claim"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-claim:target) .rail a[href="#the-claim"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#conformance:target) .rail a[href="#conformance"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#conformance:target) .rail a[href="#conformance"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-the-scan-settles:target) .rail a[href="#what-the-scan-settles"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-the-scan-settles:target) .rail a[href="#what-the-scan-settles"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#who-this-is-for:target) .rail a[href="#who-this-is-for"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#who-this-is-for:target) .rail a[href="#who-this-is-for"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-this-standard-is-not:target) .rail a[href="#what-this-standard-is-not"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-this-standard-is-not:target) .rail a[href="#what-this-standard-is-not"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-pages:target) .rail a[href="#the-pages"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-pages:target) .rail a[href="#the-pages"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-29-jobs:target) .rail a[href="#the-29-jobs"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-29-jobs:target) .rail a[href="#the-29-jobs"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-four-attack-jobs:target) .rail a[href="#the-four-attack-jobs"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-four-attack-jobs:target) .rail a[href="#the-four-attack-jobs"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#cross-cutting-checks:target) .rail a[href="#cross-cutting-checks"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#cross-cutting-checks:target) .rail a[href="#cross-cutting-checks"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#mapping-from-the-pilot:target) .rail a[href="#mapping-from-the-pilot"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#mapping-from-the-pilot:target) .rail a[href="#mapping-from-the-pilot"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#gate-capabilities:target) .rail a[href="#gate-capabilities"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#gate-capabilities:target) .rail a[href="#gate-capabilities"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-this-suite-settles:target) .rail a[href="#what-this-suite-settles"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-this-suite-settles:target) .rail a[href="#what-this-suite-settles"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#editions:target) .rail a[href="#editions"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#editions:target) .rail a[href="#editions"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#attack-jobs:target) .rail a[href="#attack-jobs"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#attack-jobs:target) .rail a[href="#attack-jobs"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-rule:target) .rail a[href="#the-rule"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-rule:target) .rail a[href="#the-rule"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#how-a-score-is-computed:target) .rail a[href="#how-a-score-is-computed"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#how-a-score-is-computed:target) .rail a[href="#how-a-score-is-computed"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-a-grade-is:target) .rail a[href="#what-a-grade-is"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-a-grade-is:target) .rail a[href="#what-a-grade-is"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-a-grade-is-not:target) .rail a[href="#what-a-grade-is-not"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-a-grade-is-not:target) .rail a[href="#what-a-grade-is-not"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#where-it-is-printed:target) .rail a[href="#where-it-is-printed"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#where-it-is-printed:target) .rail a[href="#where-it-is-printed"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-this-rule-does-not-do-yet:target) .rail a[href="#what-this-rule-does-not-do-yet"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-this-rule-does-not-do-yet:target) .rail a[href="#what-this-rule-does-not-do-yet"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#versioning:target) .rail a[href="#versioning"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#versioning:target) .rail a[href="#versioning"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#how-to-read-the-table:target) .rail a[href="#how-to-read-the-table"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#how-to-read-the-table:target) .rail a[href="#how-to-read-the-table"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-map:target) .rail a[href="#the-map"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-map:target) .rail a[href="#the-map"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#coverage-at-a-glance:target) .rail a[href="#coverage-at-a-glance"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#coverage-at-a-glance:target) .rail a[href="#coverage-at-a-glance"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#scope-what-this-suite-does-and-does-not-test:target) .rail a[href="#scope-what-this-suite-does-and-does-not-test"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#scope-what-this-suite-does-and-does-not-test:target) .rail a[href="#scope-what-this-suite-does-and-does-not-test"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-this-mapping-does-not-prove:target) .rail a[href="#what-this-mapping-does-not-prove"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-this-mapping-does-not-prove:target) .rail a[href="#what-this-mapping-does-not-prove"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#how-to-cite-this:target) .rail a[href="#how-to-cite-this"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#how-to-cite-this:target) .rail a[href="#how-to-cite-this"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#anchors-used:target) .rail a[href="#anchors-used"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#anchors-used:target) .rail a[href="#anchors-used"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#sources:target) .rail a[href="#sources"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#sources:target) .rail a[href="#sources"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-counts:target) .rail a[href="#the-counts"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-counts:target) .rail a[href="#the-counts"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-rule:target) .rail a[href="#the-rule"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-rule:target) .rail a[href="#the-rule"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-seven-checks:target) .rail a[href="#the-seven-checks"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-seven-checks:target) .rail a[href="#the-seven-checks"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-required-steps-by-job:target) .rail a[href="#the-required-steps-by-job"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-required-steps-by-job:target) .rail a[href="#the-required-steps-by-job"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-same-suite-six-denominators:target) .rail a[href="#the-same-suite-six-denominators"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-same-suite-six-denominators:target) .rail a[href="#the-same-suite-six-denominators"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-this-is-not:target) .rail a[href="#what-this-is-not"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-this-is-not:target) .rail a[href="#what-this-is-not"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#how-the-counts-are-made:target) .rail a[href="#how-the-counts-are-made"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#how-the-counts-are-made:target) .rail a[href="#how-the-counts-are-made"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#cite-this:target) .rail a[href="#cite-this"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#cite-this:target) .rail a[href="#cite-this"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#2026-11-14-tare-agent-standard-v1-0:target) .rail a[href="#2026-11-14-tare-agent-standard-v1-0"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#2026-11-14-tare-agent-standard-v1-0:target) .rail a[href="#2026-11-14-tare-agent-standard-v1-0"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#how-a-release-happens:target) .rail a[href="#how-a-release-happens"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#how-a-release-happens:target) .rail a[href="#how-a-release-happens"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-standard-version-and-the-suite-version:target) .rail a[href="#the-standard-version-and-the-suite-version"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-standard-version-and-the-suite-version:target) .rail a[href="#the-standard-version-and-the-suite-version"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#sample-10-bots:target) .rail a[href="#sample-10-bots"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#sample-10-bots:target) .rail a[href="#sample-10-bots"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#six-scenarios-to-run-first-critical-high-only:target) .rail a[href="#six-scenarios-to-run-first-critical-high-only"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#six-scenarios-to-run-first-critical-high-only:target) .rail a[href="#six-scenarios-to-run-first-critical-high-only"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-to-capture:target) .rail a[href="#what-to-capture"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-to-capture:target) .rail a[href="#what-to-capture"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#scoring:target) .rail a[href="#scoring"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#scoring:target) .rail a[href="#scoring"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#pass-criteria-for-the-test-itself:target) .rail a[href="#pass-criteria-for-the-test-itself"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#pass-criteria-for-the-test-itself:target) .rail a[href="#pass-criteria-for-the-test-itself"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#ethics-and-scope:target) .rail a[href="#ethics-and-scope"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#ethics-and-scope:target) .rail a[href="#ethics-and-scope"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#output:target) .rail a[href="#output"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#output:target) .rail a[href="#output"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#status:target) .rail a[href="#status"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#status:target) .rail a[href="#status"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-claim:target) .rail a[href="#the-claim"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-claim:target) .rail a[href="#the-claim"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#conformance:target) .rail a[href="#conformance"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#conformance:target) .rail a[href="#conformance"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-four-capabilities:target) .rail a[href="#the-four-capabilities"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-four-capabilities:target) .rail a[href="#the-four-capabilities"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-two-cross-cutting-checks:target) .rail a[href="#the-two-cross-cutting-checks"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-two-cross-cutting-checks:target) .rail a[href="#the-two-cross-cutting-checks"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#who-this-is-for:target) .rail a[href="#who-this-is-for"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#who-this-is-for:target) .rail a[href="#who-this-is-for"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-this-standard-is-not:target) .rail a[href="#what-this-standard-is-not"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-this-standard-is-not:target) .rail a[href="#what-this-standard-is-not"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-pages:target) .rail a[href="#the-pages"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-pages:target) .rail a[href="#the-pages"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-ladder:target) .rail a[href="#the-ladder"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-ladder:target) .rail a[href="#the-ladder"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-grade:target) .rail a[href="#the-grade"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-grade:target) .rail a[href="#the-grade"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-pair:target) .rail a[href="#the-pair"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-pair:target) .rail a[href="#the-pair"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-profile:target) .rail a[href="#the-profile"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-profile:target) .rail a[href="#the-profile"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-2-2-is-the-cover-not-the-engine:target) .rail a[href="#the-2-2-is-the-cover-not-the-engine"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-2-2-is-the-cover-not-the-engine:target) .rail a[href="#the-2-2-is-the-cover-not-the-engine"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-a-level-is-not:target) .rail a[href="#what-a-level-is-not"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-a-level-is-not:target) .rail a[href="#what-a-level-is-not"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#find:target) .rail a[href="#find"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#find:target) .rail a[href="#find"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#act:target) .rail a[href="#act"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#act:target) .rail a[href="#act"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#confirm:target) .rail a[href="#confirm"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#confirm:target) .rail a[href="#confirm"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#recover:target) .rail a[href="#recover"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#recover:target) .rail a[href="#recover"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#disclose:target) .rail a[href="#disclose"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#disclose:target) .rail a[href="#disclose"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#admit:target) .rail a[href="#admit"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#admit:target) .rail a[href="#admit"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-chain:target) .rail a[href="#the-chain"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-chain:target) .rail a[href="#the-chain"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-three-classes:target) .rail a[href="#the-three-classes"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-three-classes:target) .rail a[href="#the-three-classes"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-visitor-layer:target) .rail a[href="#the-visitor-layer"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-visitor-layer:target) .rail a[href="#the-visitor-layer"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-consent-boundary:target) .rail a[href="#the-consent-boundary"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-consent-boundary:target) .rail a[href="#the-consent-boundary"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#admission-is-per-layer:target) .rail a[href="#admission-is-per-layer"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#admission-is-per-layer:target) .rail a[href="#admission-is-per-layer"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#a-receipt-in-the-guests-inbox-is-not-a-missing-receipt:target) .rail a[href="#a-receipt-in-the-guests-inbox-is-not-a-missing-receipt"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#a-receipt-in-the-guests-inbox-is-not-a-missing-receipt:target) .rail a[href="#a-receipt-in-the-guests-inbox-is-not-a-missing-receipt"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-private-receipt-rule:target) .rail a[href="#the-private-receipt-rule"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-private-receipt-rule:target) .rail a[href="#the-private-receipt-rule"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-the-scan-will-not-do:target) .rail a[href="#what-the-scan-will-not-do"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-the-scan-will-not-do:target) .rail a[href="#what-the-scan-will-not-do"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-is-kept:target) .rail a[href="#what-is-kept"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-is-kept:target) .rail a[href="#what-is-kept"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-the-jobs-are-anchored-to:target) .rail a[href="#what-the-jobs-are-anchored-to"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-the-jobs-are-anchored-to:target) .rail a[href="#what-the-jobs-are-anchored-to"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#find:target) .rail a[href="#find"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#find:target) .rail a[href="#find"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#act:target) .rail a[href="#act"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#act:target) .rail a[href="#act"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#confirm:target) .rail a[href="#confirm"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#confirm:target) .rail a[href="#confirm"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#recover:target) .rail a[href="#recover"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#recover:target) .rail a[href="#recover"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-a-level-requires:target) .rail a[href="#what-a-level-requires"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-a-level-requires:target) .rail a[href="#what-a-level-requires"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-this-shelf-does-not-test:target) .rail a[href="#what-this-shelf-does-not-test"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-this-shelf-does-not-test:target) .rail a[href="#what-this-shelf-does-not-test"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-it-covers:target) .rail a[href="#what-it-covers"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-it-covers:target) .rail a[href="#what-it-covers"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-it-does-not-cover:target) .rail a[href="#what-it-does-not-cover"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-it-does-not-cover:target) .rail a[href="#what-it-does-not-cover"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-anchors:target) .rail a[href="#the-anchors"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-anchors:target) .rail a[href="#the-anchors"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#what-the-anchors-do-not-give:target) .rail a[href="#what-the-anchors-do-not-give"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#what-the-anchors-do-not-give:target) .rail a[href="#what-the-anchors-do-not-give"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#how-to-cite-this-standard:target) .rail a[href="#how-to-cite-this-standard"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#how-to-cite-this-standard:target) .rail a[href="#how-to-cite-this-standard"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#2026-11-14-tare-shopfront-standard-v1-0:target) .rail a[href="#2026-11-14-tare-shopfront-standard-v1-0"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#2026-11-14-tare-shopfront-standard-v1-0:target) .rail a[href="#2026-11-14-tare-shopfront-standard-v1-0"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#2026-11-15-clarification-no-version-change:target) .rail a[href="#2026-11-15-clarification-no-version-change"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#2026-11-15-clarification-no-version-change:target) .rail a[href="#2026-11-15-clarification-no-version-change"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#how-a-release-happens:target) .rail a[href="#how-a-release-happens"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#how-a-release-happens:target) .rail a[href="#how-a-release-happens"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}

.doc-shell:has(#the-standard-version-and-an-implementations-version:target) .rail a[href="#the-standard-version-and-an-implementations-version"] {
  color: var(--ink);
  font-weight: 600;
}

.doc-shell:has(#the-standard-version-and-an-implementations-version:target) .rail a[href="#the-standard-version-and-an-implementations-version"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--grn);
  vertical-align: 0.32em;
}
