:root {
  --bg: #fbfbfc; --surface: #f2f3f6; --surface-2: #e9ebf0;
  --ink: #1b1e26; --ink-soft: #5d6472; --ink-faint: #626977;
  --line: #e1e4ea; --line-strong: #c9cdd6; --line-ui: #7f8695;
  --accent: #2456c9; --accent-ink: #1a3f99; --accent-soft: #e6edfb;
  --note: #eef3ff; --mark: #fff1b8; --code-bg: #f2f3f6;
  --tk-k: #2456c9; --tk-s: #a0571b; --tk-c: #606876; --tk-n: #7b3fb5; --tk-f: #1b1e26; --tk-t: #0e7490; --tk-d: #7b3fb5;
  --focus: #2456c9; --success: #1f7134;
  --shadow: 0 12px 32px rgba(27, 30, 38, 0.12); --shadow-sm: 0 1px 2px rgba(27, 30, 38, 0.12); --scrim: rgba(27, 30, 38, 0.35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121419; --surface: #1a1d24; --surface-2: #22262f;
    --ink: #e5e7ec; --ink-soft: #a1a7b4; --ink-faint: #8f96a3;
    --line: #272b35; --line-strong: #3a404c; --line-ui: #737a89;
    --accent: #8fb0ff; --accent-ink: #b4caff; --accent-soft: #1d2a4a;
    --note: #182136; --mark: #5a4a12; --code-bg: #1a1d24;
    --tk-k: #8fb0ff; --tk-s: #e3a66e; --tk-c: #858c9b; --tk-n: #c9a3f0; --tk-f: #e5e7ec; --tk-t: #67c6dc; --tk-d: #c9a3f0;
    --focus: #8fb0ff; --success: #86d49a;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.5); --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --scrim: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121419; --surface: #1a1d24; --surface-2: #22262f;
  --ink: #e5e7ec; --ink-soft: #a1a7b4; --ink-faint: #8f96a3;
  --line: #272b35; --line-strong: #3a404c; --line-ui: #737a89;
  --accent: #8fb0ff; --accent-ink: #b4caff; --accent-soft: #1d2a4a;
  --note: #182136; --mark: #5a4a12; --code-bg: #1a1d24;
  --tk-k: #8fb0ff; --tk-s: #e3a66e; --tk-c: #858c9b; --tk-n: #c9a3f0; --tk-f: #e5e7ec; --tk-t: #67c6dc; --tk-d: #c9a3f0;
  --focus: #8fb0ff; --success: #86d49a;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.5); --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --scrim: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
:root {
  --font-text: 'Onest', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', Menlo, Consolas, monospace;
  --measure: 44rem; --radius: 10px;
  --head-h: 3.75rem; --bar-h: 3.25rem;
  --pair-body: var(--ink) var(--bg) text;
  --pair-soft: var(--ink-soft) var(--bg) text;
  --pair-faint: var(--ink-faint) var(--bg) text;
  --pair-faint-surface: var(--ink-faint) var(--surface) text;
  --pair-success: var(--success) var(--bg) text;
  --pair-link: var(--accent) var(--bg) text;
  --pair-link-note: var(--accent) var(--note) text;
  --pair-ink-note: var(--ink) var(--note) text;
  --pair-soft-note: var(--ink-soft) var(--note) text;
  --pair-accent-on-soft: var(--accent-ink) var(--accent-soft) text;
  --pair-soft-surface: var(--ink-soft) var(--surface) text;
  --pair-ink-mark: var(--ink) var(--mark) text;
  --pair-tk-k: var(--tk-k) var(--code-bg) text; --pair-tk-s: var(--tk-s) var(--code-bg) text; --pair-tk-c: var(--tk-c) var(--code-bg) text;
  --pair-tk-n: var(--tk-n) var(--code-bg) text; --pair-tk-f: var(--tk-f) var(--code-bg) text; --pair-tk-t: var(--tk-t) var(--code-bg) text; --pair-tk-d: var(--tk-d) var(--code-bg) text;
  --pair-focus: var(--focus) var(--bg) ui;
  --pair-line-ui: var(--line-ui) var(--bg) ui;
  --pair-brand-glyph: var(--bg) var(--accent) ui;
}

@font-face { font-family: 'Onest'; src: url('fonts/onest.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

/* base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, video { max-width: 100%; height: auto; }
code, pre, kbd { font-family: var(--font-mono); }
code { font-size: 0.86em; background: var(--surface); border: 1px solid var(--line); padding: 0.05em 0.35em; border-radius: 5px; }
pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem; overflow-x: auto; font-size: 0.82rem; line-height: 1.6; margin: 1.1rem 0; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.tk-k { color: var(--tk-k); font-weight: 500; } .tk-s { color: var(--tk-s); } .tk-c { color: var(--tk-c); } .tk-n { color: var(--tk-n); } .tk-f { color: var(--tk-f); } .tk-t { color: var(--tk-t); } .tk-d { color: var(--tk-d); }
.code-head { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--ink-faint); padding: 0.35rem 0.9rem; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--surface); }
.code-block pre { margin-top: 0; border-radius: 0 0 8px 8px; }
.lang { font-weight: 500; letter-spacing: 0.02em; }
mark { background: var(--mark); color: inherit; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* an anchor lands below the sticky header, with room for its block's shown toolbar above it (two more rows on a phone, below) */
[id] { scroll-margin-top: 5.2rem; }
[data-rdy="content"] { overflow-wrap: anywhere; }

/* skip link: out of sight until it takes focus, then a pill at the top left */
.skip { position: absolute; left: 0.75rem; top: 0.6rem; z-index: 100; transform: translateY(-300%); background: var(--bg); color: var(--ink); border: 1px solid var(--line-ui); border-radius: 999px; padding: 0.45rem 1rem; font-weight: 600; font-size: 0.9rem; text-decoration: none; box-shadow: var(--shadow); }
.skip:focus { transform: none; }

/* top bar */
.head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 0.6rem 1.25rem; min-height: 3.5rem; }
/* the brand and the pill size to their text; only a name longer than 24rem is cut */
.brand { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.98rem; white-space: nowrap; min-width: 0; max-width: 24rem; }
.brand svg { width: 22px; height: 22px; flex: none; }
.brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.version { grid-column: 2; grid-row: 1; justify-self: start; white-space: nowrap; min-width: 0; max-width: 100%; }
/* a long tag: the pill gives way and cuts its text (the 40 px rule below sets its floor on a phone) */
.pill { font-size: 0.72rem; font-weight: 500; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 0.15rem 0.6rem; white-space: nowrap; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.pill-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { font-size: 0.72rem; font-weight: 600; border-radius: 999px; padding: 0.15rem 0.5rem; white-space: nowrap; text-decoration: none; flex: none; }
.chip-since { color: var(--ink-soft); background: var(--surface-2); }
.chip-review { color: var(--accent-ink); background: var(--accent-soft); }
.head .search-wrap { grid-column: 3; grid-row: 1; }
.head-tools { grid-column: 4; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 0.75rem; }
.theme { display: inline-flex; background: var(--surface); border: 1px solid var(--line-ui); border-radius: 8px; padding: 2px; }
.theme button { font-size: 0.78rem; font-weight: 500; padding: 0.2rem 0.6rem; border-radius: 6px; color: var(--ink-soft); }
.theme button[aria-checked="true"] { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-sm); }
/* the drawer's own group: the header's is hidden on a phone and this one shows (O7); above 900px only the header's shows */
.theme-drawer { display: none; margin: 0 0 1.5rem; }
#menu { display: none; font-size: 0.85rem; font-weight: 500; border: 1px solid var(--line-ui); border-radius: 8px; padding: 0.3rem 0.7rem; background: var(--surface); }

/* frame */
.app { display: grid; grid-template-columns: 16rem minmax(0, 1fr) 14rem; gap: 2.5rem; max-width: 90rem; margin: 0 auto; padding: 0 1.25rem; min-height: 100vh; }
.sidenav { position: sticky; top: var(--head-h); align-self: start; max-height: calc(100vh - var(--head-h)); overflow-y: auto; padding: 1.5rem 0 2rem; }
.index { position: sticky; top: var(--head-h); align-self: start; max-height: calc(100vh - var(--head-h)); overflow-y: auto; padding: 5.3rem 0 2rem; }
.fold-summary { display: none; list-style: none; cursor: pointer; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.fold-summary::-webkit-details-marker { display: none; }
.fold-summary::after { content: ''; display: inline-block; width: 0.45rem; height: 0.45rem; margin-left: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.12rem) rotate(45deg); }
details[open] > .fold-summary::after { transform: translateY(0.05rem) rotate(-135deg); }
.crumbs { font-size: 0.82rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 1.6rem 0 1.4rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.crumb-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); display: inline-block; }
.content { min-width: 0; max-width: var(--measure); padding-bottom: 4rem; }
.page { max-width: var(--measure); }
.foot { margin-top: 2rem; font-size: 0.8rem; color: var(--ink-faint); }
.noscript { margin: 0; padding: 0.6rem 1.25rem; font-size: 0.82rem; color: var(--ink-soft); background: var(--surface); border-top: 1px solid var(--line); }

/* text */
.page-head { margin-bottom: 2rem; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.5rem; }
h1 { font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.9rem; text-wrap: balance; }
.lede { font-size: 1.1rem; color: var(--ink-soft); margin: 0; line-height: 1.6; }
h2 { font-weight: 600; font-size: 1.4rem; line-height: 1.25; letter-spacing: -0.015em; margin: 2.6rem 0 0.7rem; padding-top: 1.4rem; border-top: 1px solid var(--line); text-wrap: balance; }
h3 { font-weight: 600; font-size: 1.08rem; margin: 1.6rem 0 0.4rem; }
p { margin: 0 0 0.95rem; }
ol, ul { padding-left: 1.4rem; }
li { margin-bottom: 0.3rem; }
dfn { font-style: normal; font-weight: 600; }

/* tables and figures */
.table-wrap { overflow-x: auto; margin: 1.1rem 0 1.5rem; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 0.88rem; line-height: 1.5; }
th { text-align: left; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.03em; color: var(--ink-soft); padding: 0.6rem 0.9rem; background: var(--surface); border-bottom: 1px solid var(--line); }
td { vertical-align: top; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); }
/* a word never breaks inside a cell: the page's `overflow-wrap: anywhere` would shrink each cell's
   minimum width to a character and starve the narrow columns; long content scrolls in .table-wrap */
th, td { overflow-wrap: normal; word-break: normal; hyphens: manual; }
th { white-space: nowrap; }
.table-wrap code { overflow-wrap: normal; word-break: normal; }
td code, th code { white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
figcaption { font-size: 0.84rem; color: var(--ink-soft); margin-top: 0.5rem; }
.glossary dt { font-weight: 600; margin-top: 1rem; }
.glossary dd { margin: 0.15rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.glossary dd a { font-size: 0.82rem; margin-left: 0.3rem; }

#scrim { display: none; }

/* below 1200px the index leaves its column and precedes the page */
@media (max-width: 1200px) {
  .app { grid-template-columns: 15rem minmax(0, 1fr); }
  .index { order: -1; grid-column: 1 / -1; position: static; max-height: none; padding: 0.9rem 0 0; }
  .index .fold-summary { display: flex; align-items: center; }
  .index nav { margin-top: 0.5rem; }
}

/* below 900px: one column, the pages follow the content, the drawer replaces the column; the
   header has two rows: the brand, the version pill with its chips and the Menu button, then the
   search (D-42YMF); the brand gives way first, and the version menu opens under row one */
@media (max-width: 900px) {
  .head { grid-template-columns: minmax(0, 1fr) auto auto; padding: 0.55rem 16px; gap: 0.4rem 0.5rem; }
  .brand { grid-column: 1; grid-row: 1; font-size: 0.9rem; max-width: none; }
  .version { grid-column: 2; grid-row: 1; justify-self: end; }
  .head-tools { grid-column: 3; grid-row: 1; gap: 0.4rem; }
  .head .search-wrap { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .theme button { padding: 0.15rem 0.45rem; font-size: 0.74rem; }
  .head .theme { display: none; }
  .theme-drawer { display: inline-flex; margin: 1.25rem 0 0; }
  [id] { scroll-margin-top: 9.4rem; }
  #menu:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; }
  .app { grid-template-columns: minmax(0, 1fr); padding: 0 16px; gap: 0; }
  .sidenav { order: 2; position: static; max-height: none; overflow: visible; padding: 1rem 0 2rem; border-top: 1px solid var(--line); }
  .sidenav .fold-summary { display: flex; align-items: center; }
  .sidenav nav { margin-top: 0.5rem; }
  .app.nav-open .sidenav { position: fixed; inset: 0 auto 0 0; top: 0; width: min(20rem, 85vw); height: 100%; max-height: none; overflow-y: auto; background: var(--bg); z-index: 50; padding: 1.25rem 0.75rem; border-top: 0; border-right: 1px solid var(--line); transform: none; box-shadow: var(--shadow); animation: drawer-in 0.2s ease; }
  .app.nav-open .sidenav .fold-summary { display: none; }
  .nav-open #scrim { display: block; position: fixed; inset: 0; background: var(--scrim); z-index: 45; }
  /* every control a thumb has to hit is at least 40 by 40 */
  .head a, .head button, .head summary, .pill, .chip, .sidenav a, .sidenav button, .sidenav summary, .pager a, .pager button, .tools a, .tools button, .code-head button, #show-changes, #show-diff, .theme-drawer button, .vmenu a { min-height: 40px; min-width: 40px; }
  .head button, .tools button, .code-head button, #show-changes, #show-diff, .theme-drawer button { display: inline-flex; align-items: center; justify-content: center; }
  .vmenu a { display: inline-flex; align-items: center; }
  .sidenav a { display: flex; align-items: center; }
  /* the disagreements page: its links (a plain div.callout is that page's entry) and Show all */
  details.more-links summary { min-height: 40px; min-width: 40px; line-height: 40px; }
  div.callout > div > ul a, details.more-links a { display: inline-flex; align-items: center; min-height: 40px; min-width: 40px; }
}
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }

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

/* == nav == */
.sidenav nav { font-size: 0.9rem; }
.nav-root, .nav-root ul { list-style: none; margin: 0; padding: 0; }
.nav-group { position: relative; margin: 0 0 1.4rem; }
.nav-group-label { display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.35rem; padding: 0 0.6rem; }
.nav-item { margin: 0; }
.nav-item > a { display: block; padding: 0.3rem 0.6rem; border-radius: 6px; color: var(--ink); text-decoration: none; line-height: 1.4; overflow-wrap: anywhere; }
.nav-item > a:hover { background: var(--surface); }
.nav-item.on-path > a { font-weight: 600; }
.nav-item.is-active > a { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
/* a folder opens and closes in place (details and summary, with no script); the link to its own page is the arrow beside it, never inside the summary */
.nav-folder { position: relative; }
.nav-fold > summary { position: relative; display: block; list-style: none; cursor: pointer; }
.nav-fold > summary::-webkit-details-marker { display: none; }
.nav-fold > summary::before { content: ''; position: absolute; inset-inline-start: 0.35rem; top: 50%; width: 0.4rem; height: 0.4rem; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: translateY(-65%) rotate(-45deg); }
.nav-fold[open] > summary::before { transform: translateY(-65%) rotate(45deg); }
.nav-folder > .nav-fold > summary { padding: 0.3rem 2.2rem 0.3rem 1.3rem; border-radius: 6px; color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; }
.nav-folder > .nav-fold > summary:hover { background: var(--surface); }
.nav-item.on-path > .nav-fold > summary { font-weight: 600; }
.nav-item.is-active > .nav-fold > summary { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.nav-group > .nav-fold > summary { padding-inline-end: 2.2rem; }
.nav-group > .nav-fold > summary .nav-group-label { padding-inline-start: 1.3rem; }
.nav-group > .nav-fold > summary:hover .nav-group-label, .nav-group > .nav-go[aria-current] + .nav-fold .nav-group-label { color: var(--accent-ink); }
.nav-item > a.nav-go, .nav-group > a.nav-go { position: absolute; inset-inline-end: 0.2rem; top: 0; z-index: 1; padding: 0.3rem 0.5rem; background: transparent; color: var(--ink-soft); font-size: 0.85rem; font-weight: 400; line-height: 1.4; }
.nav-group > a.nav-go { top: -0.3rem; }
.nav-item > a.nav-go:hover, .nav-group > a.nav-go:hover, .nav-item > a.nav-go[aria-current], .nav-group > a.nav-go[aria-current] { background: transparent; color: var(--accent-ink); }
.nav-root .nav-sub { margin: 0.1rem 0 0.2rem; padding-inline-start: 0.875rem; }
.more > a { display: block; padding: 0.3rem 0.6rem; color: var(--ink-soft); font-size: 0.84rem; text-decoration: none; }
.more > a:hover { color: var(--accent-ink); text-decoration: underline; }
/* == /nav == */

/* == toc == */
.index nav { font-size: 0.85rem; }
.toc-label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.5rem; }
.index ul { list-style: none; margin: 0; padding: 0; }
.index li ul { margin-left: 0.75rem; }
.index li { margin: 0; }
.toc-link { display: block; padding: 0.2rem 0 0.2rem 0.75rem; border-left: 2px solid var(--line); color: var(--ink-soft); text-decoration: none; line-height: 1.4; overflow-wrap: anywhere; }
.toc-link:hover { color: var(--ink); }
.toc-link.is-active { border-left-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
/* == /toc == */

/* == search == */
.search-wrap { position: relative; max-width: 30rem; width: 100%; justify-self: center; }
#search { width: 100%; font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-ui); border-radius: 8px; padding: 0.45rem 0.8rem 0.45rem 2.2rem; }
#search::placeholder { color: var(--ink-faint); }
#search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--bg); }
.search-wrap svg { position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-faint); pointer-events: none; }
#results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); max-height: 24rem; overflow-y: auto; padding: 0.3rem; }
#results[hidden] { display: none; }
#results a { display: grid; gap: 0.1rem; padding: 0.55rem 0.7rem; text-decoration: none; color: var(--ink); font-size: 0.86rem; border-radius: 7px; }
#results a:hover, #results a:focus, #results a[aria-selected="true"] { background: var(--surface); }
.r-where { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.r-title { font-weight: 600; }
.r-snip { color: var(--ink-soft); font-size: 0.8rem; line-height: 1.4; }
.results-empty { margin: 0; padding: 0.6rem 0.7rem; font-size: 0.86rem; color: var(--ink-soft); }
/* == /search == */

/* == content == */
.block { position: relative; }
.id-anchor { position: absolute; top: 0; left: 0; width: 0; height: 0; overflow: hidden; }
.marker { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.25rem; }
.normative { margin: 1.2rem 0 1.4rem; padding: 1rem 1.2rem 0.9rem; background: var(--note); border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); border-radius: var(--radius); }
.normative > p { margin-bottom: 0.5rem; font-size: 0.95rem; }
.normative > p:last-child { margin-bottom: 0; }
.callout { margin: 1.2rem 0 1.4rem; padding: 0.9rem 1.1rem; background: var(--surface); border-left: 3px solid var(--line-strong); border-radius: 0 var(--radius) var(--radius) 0; }
.callout .marker { color: var(--ink-soft); }
.callout-question { background: var(--note); border-left-color: var(--accent); }
.callout-question .marker { color: var(--accent); }
.callout p:last-child, .callout div > p:last-child { margin-bottom: 0; }
.term { margin: 1rem 0; }
.term dt { font-weight: 600; }
.term dd { margin: 0.15rem 0 0; }
.entity { margin: 1.4rem 0; padding-left: 1rem; border-left: 2px solid var(--line); }
.entity-name, .flow-name { margin-top: 0; }
.entity-value { margin: 0 0 0.6rem; font-weight: 600; }
.entity-aliases { margin: 0 0 0.6rem; color: var(--ink-soft); }
.described-by { font-size: 0.88rem; color: var(--ink-soft); }
.flow { margin: 1.4rem 0; }
.ref.unresolved { text-decoration: underline dotted; color: var(--ink-soft); }
.table-wrap.normative { padding: 0; background: none; }
caption { caption-side: top; text-align: left; font-size: 0.84rem; color: var(--ink-soft); padding: 0.6rem 0.9rem 0; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
figure { margin: 1.2rem 0; }
.figure img { display: block; border-radius: var(--radius); }
.figure-missing, .download .meta { color: var(--ink-soft); }
.content code { overflow-wrap: anywhere; background: var(--surface); border-color: var(--line); color: var(--ink); }
.content a code { color: inherit; }
.content .lede code, .callout code { background: var(--surface-2); }
.block > ul, .block > ol, .normative > ul, .normative > ol, .callout div > ul, .callout div > ol, .term dd > ul, .term dd > ol, .entity > ul, .entity > ol { margin: 0 0 0.95rem; padding-left: 1.4rem; }
.block li > ul, .block li > ol { margin: 0.3rem 0 0; padding-left: 1.2rem; }
.block li > ul > li:last-child, .block li > ol > li:last-child { margin-bottom: 0; }
.normative > ul, .normative > ol { font-size: 0.95rem; margin-bottom: 0.5rem; }
.normative > ul:last-child, .normative > ol:last-child, .callout div > ul:last-child, .callout div > ol:last-child, .term dd > ul:last-child, .term dd > ol:last-child { margin-bottom: 0; }
.code-block { margin: 1.1rem 0; }
.code-head { align-items: center; }
.copy-code { font-size: 0.72rem; font-weight: 500; color: var(--ink-soft); }
.copy-code:hover { color: var(--accent); }
/* == /content == */

/* == diagram == */
/* a drawing is native disclosure: its summary is the preview; open, the same SVG takes the page's width in its own scroll wrapper */
figure.diagram .diagram-canvas > summary { display: block; list-style: none; cursor: zoom-in; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
figure.diagram .diagram-canvas > summary::-webkit-details-marker { display: none; }
figure.diagram .diagram-canvas > summary:hover { border-color: var(--line-strong); }
.diagram-scroll { display: block; overflow-x: auto; }
.diagram-svg { display: block; text-align: center; }
.diagram-svg svg { max-width: 100%; height: auto; }
figure.diagram .diagram-canvas[open] > summary { cursor: zoom-out; }
figure.diagram .diagram-canvas[open] .diagram-scroll { position: fixed; top: var(--head-h); left: 0; bottom: 0; width: 100vw; overflow: auto; z-index: 40; background: var(--bg); border-top: 1px solid var(--line); padding: 1.5rem 1.25rem; }
figure.diagram .diagram-canvas[open] .diagram-svg svg { width: 100%; }
.diagram-open { margin: 0.4rem 0 0; font-size: 0.84rem; }
figure.diagram figcaption { margin-top: 0.5rem; }
details.diagram-source { margin-top: 0.4rem; }
details.diagram-source summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; color: var(--ink-soft); font-weight: 500; font-size: 0.84rem; border-radius: 999px; padding: 0.15rem 0.6rem; margin-left: -0.6rem; }
details.diagram-source summary::-webkit-details-marker { display: none; }
details.diagram-source summary:hover { background: var(--accent-soft); color: var(--accent); }
details.diagram-source[open] summary { color: var(--accent-ink); }
details.more-links { margin-top: 0.4rem; }
details.more-links summary { cursor: pointer; color: var(--ink-soft); font-weight: 500; font-size: 0.84rem; }
details.more-links[open] summary { color: var(--accent-ink); }
/* == /diagram == */

/* == why == */
/* the toolbar sits just above the block's top-right corner, in the gap between blocks, so it covers none of the block's own text; shown by hover, a tap (copy.js), focus or a selection; at rest it takes no space and no taps */
.tools { position: absolute; top: 0; right: 0; transform: translateY(-100%); float: none; z-index: 2; display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: 0.35rem; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.block:hover .tools, .block:focus-within .tools, .block.tools-open .tools, .tools:hover, .tools:focus-within, .tools:has(.cite), .tools:has(+ .block:hover), .tools:has(+ .block:focus-within) { opacity: 1; pointer-events: auto; }
.tool { list-style: none; cursor: pointer; display: inline-flex; align-items: center; color: var(--accent); font-weight: 500; font-size: 0.78rem; line-height: 1.4; border-radius: 999px; padding: 0.1rem 0.6rem; }
.tool:hover { background: var(--accent-soft); }
.why { margin-top: 0.3rem; font-size: 0.9rem; }
.why summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; color: var(--accent); font-weight: 500; font-size: 0.84rem; border-radius: 999px; padding: 0.15rem 0.6rem; margin-left: -0.6rem; }
.why summary::-webkit-details-marker { display: none; }
.why summary::after { content: '?'; display: inline-grid; place-items: center; width: 1rem; height: 1rem; border-radius: 50%; border: 1px solid currentColor; font-size: 0.68rem; }
.why summary:hover { background: var(--accent-soft); }
.why[open] summary { color: var(--accent-ink); }
.why-body { margin-top: 0.6rem; padding-top: 0.7rem; border-top: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); color: var(--ink-soft); }
.why-body p { margin-bottom: 0.7rem; font-size: 0.92rem; }
.trail { list-style: none; padding: 0; margin: 0.4rem 0 0.2rem; }
.trail li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.75rem; padding: 0.5rem 0; margin: 0; border-top: 1px dashed var(--line-strong); }
.trail li.open .trail-when { color: var(--accent-ink); }
.trail-when { font-size: 0.78rem; font-weight: 600; color: var(--ink); padding-top: 0.1rem; }
.trail-what { font-size: 0.88rem; line-height: 1.5; }
@media (max-width: 900px) {
  .trail li { grid-template-columns: 1fr; gap: 0.15rem; }
}
/* == /why == */

/* == home == */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin: 0.6rem 0 1.6rem; }
.card { display: grid; gap: 0.3rem; align-content: start; padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; background: var(--bg); transition: border-color 0.15s, background 0.15s; }
.card strong { font-weight: 600; }
.card span { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; }
.card:hover { border-color: var(--accent); background: var(--surface); }
.versions { margin: 0.6rem 0 1.6rem; }
.versions dt { font-weight: 600; margin-top: 0.9rem; }
.versions dt .meta { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
.versions dd { margin: 0.1rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 900px) { .cards { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
/* == /home == */

/* == pager == */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-width: 0; }
.pager a:hover { border-color: var(--accent); }
.pager-next { grid-column: 2; text-align: right; align-items: flex-end; }
.pager-dir { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.pager-title { color: var(--accent-ink); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager-next { grid-column: auto; text-align: left; align-items: flex-start; }
}
/* == /pager == */

/* == version == */
/* the pill and its chips are one line that never wraps: they size to their text, and a pill
   too long for the row cuts its text (head section); on a phone they sit on the header's first row,
   between the brand and the Menu button */
.version { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 0.35rem; }
.pill, .chip { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; }
.version .lock { width: 12px; height: 12px; flex: none; }
.version .snapshot { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.colophon { margin: 0; }
/* the version menu (Task 8's markup): a panel under the pill, placed in the grid cell of the pill (a start and an end line, so the
   cell is its containing block); at 900px and below it spans the header's width, the header's padding giving the 16px gutters */
.vmenu-pop { position: absolute; z-index: 40; grid-column: 2 / 3; grid-row: 1 / 2; top: 100%; left: 0; width: max-content; min-width: 14rem; max-width: min(28rem, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; box-sizing: border-box; margin-top: 0.35rem; padding: 0.5rem 0.9rem 0.75rem; background: var(--bg); color: var(--ink); border: 1px solid var(--line-ui); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 0.9rem; line-height: 1.45; }
/* a list heading is a small label: none of the page h2's rule and strip above it, and none above the first */
.vmenu h2 { margin: 0.6rem 0 0.25rem; padding-top: 0; border-top: 0; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
.vmenu section:first-child h2 { margin-top: 0; }
.vmenu-list { list-style: none; margin: 0; padding: 0; }
/* the link and its words are flex items: words that wrap keep their own line height, not the 40 px link's */
.vmenu-list li { margin: 0; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.4rem; }
.vmenu-meta { min-width: 0; }
.vmenu a { display: inline-block; padding: 0.15rem 0; }
.vmenu a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.vmenu-meta, .vmenu-none { color: var(--ink-soft); font-size: 0.82rem; }
@media (max-width: 900px) {
  .vmenu-pop { grid-column: 1 / -1; grid-row: 1 / 2; left: 0; right: 0; width: auto; max-width: none; }
}
/* == /version == */

/* == review == */
/* a draft's changes: a bar and a word on what changed; the word carries the meaning, colour repeats it */
.has-chg { border-inline-start: 3px solid transparent; padding-inline-start: 0.75rem; }
.has-chg.chg-edited { border-inline-start-color: var(--accent); }
.has-chg.chg-new { border-inline-start-color: var(--success); }
.chg-label { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); user-select: none; -webkit-user-select: none; }
.block > .chg-label, .page-head > .chg-label { display: block; margin-bottom: 0.25rem; }
/* the line only: the home list's Removed word is a `chg-label chg-removed` like Edited and New */
details.chg-removed { margin: 0.6rem 0; padding-inline-start: 0.75rem; border-inline-start: 3px solid var(--line-ui); color: var(--ink-soft); font-size: 0.85rem; }
details.chg-removed > summary { cursor: pointer; color: var(--ink-soft); font-weight: 500; }
.chg-old { margin-top: 0.4rem; color: var(--ink-soft); text-decoration: none; overflow-wrap: anywhere; }
.nav-removed { padding: 0.3rem 0.6rem; color: var(--ink-soft); line-height: 1.4; overflow-wrap: anywhere; }
.nav-group .chg-label, .nav-item .chg-label { margin-inline-start: 0.4rem; }
/* the Edited word of the navigation leads to the doc's group on the change summary */
a.chg-label { text-decoration: none; user-select: auto; -webkit-user-select: auto; }
a.chg-label:hover { color: var(--accent-ink); text-decoration: underline; }
.changes { list-style: none; margin: 0 0 1rem; padding: 0; }
.changes li { margin: 0 0 0.35rem; overflow-wrap: anywhere; }
.changes .chg-label { margin-inline: 0.4rem; }
.changes .changes-count { margin-inline-start: 0.4rem; }
/* the review bar (sr7): under the header on a view or proposal page, it names what is reviewed
   and holds the Show changes and Show diff toggles at its end. Above 900px it is one sticky row,
   the title on the left (two lines at most) and the toggles on the right; at 900px and below the
   title is one line that truncates and the toggles sit on the next row. */
.review-bar { position: sticky; top: var(--head-h); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--bar-h); padding: 0.4rem 1.25rem; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.review-title { margin: 0; min-width: 0; font-size: 0.88rem; font-weight: 500; line-height: 1.3; color: var(--ink); overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.review-toggles { display: flex; align-items: center; gap: 0.5rem; flex: none; }
#show-changes, #show-diff { font-size: 0.78rem; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line-ui); border-radius: 8px; padding: 0.25rem 0.7rem; white-space: nowrap; }
/* the author rule `.head button { display: inline-flex }` at phone width would otherwise beat [hidden] */
#show-changes[hidden], #show-diff[hidden] { display: none; }
#show-changes[aria-pressed="false"], #show-diff[aria-pressed="false"] { font-weight: 400; color: var(--ink-soft); background: var(--bg); border-style: dashed; }
/* Show diff while the changes are hidden: unpressed and unavailable (it stays focusable) */
#show-diff[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
/* Show diff shows an edited block's diff in place of its text. With changes hidden the diff is
   hidden too (it is a `.chg`), so the text stays. */
:root[data-diff="shown"] .has-chg.chg-edited > .block-text { display: none; }
:root[data-changes="hidden"] .has-chg.chg-edited > .block-text { display: block; }
/* above 900px every bar, the Removed line's too, sits in the left gutter and the text column does not move;
   the sticky bar pushes the sticky columns and anchors down by its own height */
@media (min-width: 901px) {
  .has-chg, details.chg-removed { margin-inline-start: calc(-3px - 0.75rem); }
  .review-bar ~ .app .sidenav, .review-bar ~ .app .index { top: calc(var(--head-h) + var(--bar-h)); max-height: calc(100vh - var(--head-h) - var(--bar-h)); }
  :root:has(.review-bar) [id] { scroll-margin-top: calc(5.2rem + var(--bar-h)); }
}
/* at 900px and below the bar is not sticky: the title is one line, the toggles are on the next row,
   at the start; with changes hidden, a changed block keeps no indent */
@media (max-width: 900px) {
  .review-bar { position: static; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0.25rem; height: auto; padding: 0.4rem 16px; }
  .review-title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .review-toggles { justify-content: flex-start; flex-wrap: wrap; }
  :root[data-changes="hidden"] .has-chg { padding-inline-start: 0; border-inline-start-width: 0; }
}
:root[data-changes="hidden"] .chg { display: none; }
:root[data-changes="hidden"] .has-chg { border-inline-start-color: transparent; }
/* the word diff (RULING F6): a removed word is struck through and an added word underlined, each
   with a word that only a screen reader reads; colour only repeats them */
del { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--ink-soft); }
ins { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--success); text-underline-offset: 0.15em; }
.sr-word { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* a removed word and the word that replaces it never touch: a gap between them, outside the text */
del + ins, ins + del { margin-inline-start: 0.3em; }
.chg-diff { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Show diff: the diff in place of a block's text keeps that text's spacing (a paragraph's, a code block's) */
.chg-diff-inline > p.chg-diff { margin: 0 0 0.95rem; }
.chg-diff-inline > pre.chg-diff { margin: 1.1rem 0; }
/* a type change, in words, before the text's diff */
.chg-type { margin: 0 0 0.25rem; font-size: 0.85rem; color: var(--ink-soft); overflow-wrap: anywhere; }
/* an entry of a change summary: its word, where it is, a link to it in place, then its diff */
.chg-entry { margin: 0 0 1rem; padding-inline-start: 0.75rem; border-inline-start: 3px solid var(--line-ui); }
.chg-entry-edited { border-inline-start-color: var(--accent); }
.chg-entry-new { border-inline-start-color: var(--success); }
.chg-entry .chg-entry-head { margin: 0 0 0.25rem; font-size: 0.85rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.chg-entry .chg-label { margin-inline-end: 0.4rem; }
.chg-entry .chg-in-place { margin-inline-start: 0.4rem; }
@media (max-width: 900px) {
  .chg-entry .chg-in-place { display: inline-flex; align-items: center; min-height: 40px; }
}
/* == /review == */
/* == notices (hub D-YJ9TA) == a publication page holds one empty slot right after its main
   element; the hub writes its notices there. An empty slot is a comment and takes no space */
.rdy-notices { display: flex; flex-direction: column; gap: 0.5rem; margin: 0 0 1.2rem; }
.rdy-notices:empty { display: none; }
.rdy-notice { margin: 0; padding: 0.7rem 1rem; font-size: 0.92rem; color: var(--ink); background: var(--surface); border-left: 3px solid var(--line-strong); border-radius: 0 var(--radius) var(--radius) 0; overflow-wrap: anywhere; }
.rdy-notice p { margin: 0; }
.rdy-notice p + p { margin-top: 0.35rem; }
.rdy-notice a { color: var(--accent); }
.rdy-notice-yank { background: var(--mark); border-left-color: var(--ink); }
.rdy-notice-errata { background: var(--note); border-left-color: var(--accent); }
.rdy-notice-newer { border-left-color: var(--accent); }
.rdy-versions { margin: 0.4rem 0 0; padding-left: 1.2rem; font-size: 0.88rem; color: var(--ink-soft); }
.rdy-versions a { display: inline-flex; align-items: center; min-height: 40px; }
/* == /notices == */
