/* ==========================================================================
   gserp.co 1.0.0 · the GSERP standard
   Swomi's family language (swomi.com v1.1 tokens: the ribbon, navy-tinted
   neutrals, Syne for display at 24 px and up, DM Sans for everything read,
   DM Mono for the machine's voice), set as a technical standard: numbered
   sections, criterion ids, levels and verdicts as information, one figure.
   No JavaScript. Fonts are served from this site.
   ========================================================================== */

@font-face { font-family: "Syne"; src: url("/assets/fonts/syne-latin-wght-normal.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dm-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --navy: #00204d; --petrol: #005b79; --teal: #008b9c; --aqua: #00bebb; --jade: #48d591; --citron: #ccc639; --gold: #feba00;
  --ribbon: linear-gradient(180deg, #00204d 0%, #005b79 18%, #008b9c 34%, #00bebb 48%, #48d591 62%, #8dd26c 72%, #ccc639 84%, #feba00 100%);
  --ribbon-h: linear-gradient(90deg, #00204d 0%, #005b79 18%, #008b9c 34%, #00bebb 48%, #48d591 62%, #8dd26c 72%, #ccc639 84%, #feba00 100%);
  --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-text: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --display-l: clamp(2.375rem, 1.75rem + 2.6vw, 3.75rem);
  --h1: clamp(2.125rem, 1.7rem + 1.8vw, 3rem);
  --h2: clamp(1.625rem, 1.45rem + 0.8vw, 2.125rem);
  --h3: clamp(1.5rem, 1.42rem + 0.35vw, 1.625rem);
  --h4: clamp(1.125rem, 1.1rem + 0.12vw, 1.1875rem);
  --lead: clamp(1.1875rem, 1.13rem + 0.25vw, 1.3125rem);
  --body: clamp(1rem, 0.975rem + 0.12vw, 1.0625rem);
  --small: 0.9375rem; --caption: 0.8125rem;
  --measure: 66ch;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --maxw: 76rem;
  --r-chip: 6px; --r-btn: 12px; --r-ui: 12px; --r-card: 20px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1); --dur-2: 200ms;
}

:root {
  color-scheme: light;
  --paper: #ffffff; --paper-2: #f3f6f9; --paper-3: #e7edf3; --card: #ffffff;
  --ink: #0b1b33; --ink-2: #46566c; --ink-3: #5c6b80;
  --line: #d3dce6; --field-line: #76889e;
  --accent: #006a7a; --accent-hover: #00505d;
  --cta: #00788a; --cta-ink: #ffffff; --cta-hover: #006273;
  --focus: #00788a; --tint: #e3f4f6;
  --head-ink: #00204d;
  --ok: #17734c; --ok-bg: #e4f5ec;
  --warn: #a04a00; --warn-bg: #fff0db;
  --err: #b42318; --err-bg: #fdecea;
  --band: #06101f; --band-2: #0c1a2e; --band-ink: #edf2f7; --band-ink-2: #aab8ca; --band-line: #22344d; --band-accent: #5cd3db;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #06101f; --paper-2: #0c1a2e; --paper-3: #13243b; --card: #0a1628;
    --ink: #edf2f7; --ink-2: #aab8ca; --ink-3: #91a1b6;
    --line: #22344d; --field-line: #5f7593;
    --accent: #5cd3db; --accent-hover: #8ae0e6;
    --cta: #2ec4cf; --cta-ink: #03141f; --cta-hover: #5cd3db;
    --focus: #2ec4cf; --tint: #0b2a33;
    --head-ink: #edf2f7;
    --ok: #6be0a6; --ok-bg: #0d2c21;
    --warn: #ffb066; --warn-bg: #33210a;
    --err: #ff9f94; --err-bg: #3d1a1a;
    --band: #030a14;
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); scroll-padding-top: 6rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-text); font-size: var(--body); line-height: 1.62;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4 { margin: 0; color: var(--head-ink); }
h1, h2 { overflow-wrap: break-word; }
p, ul, ol, dl, dd, figure, table { margin: 0; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
code, samp, kbd { font-family: var(--font-mono); font-size: 0.86em; }
code { background: var(--paper-2); border: 1px solid var(--line); border-radius: 5px; padding: 0.04em 0.32em; overflow-wrap: anywhere; }
samp { overflow-wrap: anywhere; }
strong { font-weight: 650; }
::selection { background: var(--tint); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--cta); color: var(--cta-ink); padding: 0.75rem 1rem; border-radius: var(--r-btn); font-weight: 600; text-decoration: none; }
.skip:focus { top: 0.75rem; }

/* -------------------------------------------------------------- masthead */
.masthead { position: relative; z-index: 50; background: var(--paper); }
.masthead::after { content: ""; display: block; height: 3px; background: var(--ribbon-h); }
.mast { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; min-height: 4.25rem; padding-block: 0.5rem; }
.brand { display: inline-flex; align-items: baseline; gap: 0.55rem; color: var(--head-ink); text-decoration: none; padding: 0.25rem 0; border-radius: 6px; }
.brand:hover { color: var(--head-ink); }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
.brand-ver { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-chip); padding: 0.1rem 0.4rem; line-height: 1.3; }
.brand-by { font-size: var(--caption); color: var(--ink-2); font-weight: 500; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.15rem; }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.65rem; border-radius: var(--r-btn); font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; position: relative; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0.65rem; right: 0.65rem; bottom: 0.4rem; height: 2px; border-radius: 2px; background: var(--cta); }
@media (max-width: 47.99rem) {
  .nav { margin-left: -0.65rem; width: calc(100% + 0.65rem); }
  .nav a { padding: 0 0.6rem; font-size: 0.9375rem; }
}
@media (min-width: 64rem) {
  .masthead { position: sticky; top: 0; background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
}

.crumbs { border-bottom: 1px solid var(--line); }
.crumbs ol { list-style: none; margin: 0; padding: 0.6rem 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0; font-size: var(--caption); color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin: 0 0.5rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------ page heads */
.page-head { padding-top: clamp(2.25rem, 1.5rem + 3vw, 4.5rem); padding-bottom: clamp(1.75rem, 1rem + 2.5vw, 3rem); }
.page-head h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--h1); line-height: 1.08; letter-spacing: -0.025em; max-width: 24ch; text-wrap: balance; }
.k-home .page-head h1 { font-size: clamp(2.125rem, 1.45rem + 2.7vw, 3.5rem); line-height: 1.05; letter-spacing: -0.028em; max-width: 21ch; }
.lede { margin-top: 1.1rem; font-size: var(--lead); line-height: 1.55; color: var(--ink-2); max-width: 40em; text-wrap: pretty; }
.docmeta { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); display: grid; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 60rem; }
.docmeta > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: var(--small); }
.docmeta > div:first-child { border-top: 0; }
.docmeta dt { color: var(--ink-2); font-weight: 600; }
.docmeta dd { color: var(--ink); }
@media (max-width: 35.99rem) { .docmeta > div { grid-template-columns: 1fr; gap: 0.1rem; } }
/* the principle (0.2): the same words on Home and at the top of the standard */
.principle { margin-top: clamp(1.25rem, 1rem + 1vw, 1.75rem); max-width: 60rem; display: grid; grid-template-columns: calc(9.5rem - 4px) minmax(0, 1fr); gap: 0.35rem 1rem; padding: 1rem 1.15rem 1.05rem 0; border-left: 4px solid var(--accent); background: var(--tint); border-radius: 0 var(--r-ui) var(--r-ui) 0; }
.principle-h { grid-row: 1 / span 2; padding-left: 1rem; font-family: var(--font-text); font-size: var(--small); font-weight: 650; line-height: 1.5; letter-spacing: 0; color: var(--ink-2); }
.principle p { grid-column: 2; font-size: var(--body); line-height: 1.55; color: var(--ink); max-width: 62ch; text-wrap: pretty; }
@media (max-width: 35.99rem) { .principle { grid-template-columns: 1fr; padding-left: 1rem; } .principle-h { grid-row: auto; padding-left: 0; } .principle p { grid-column: 1; } }

/* ------------------------------------------------------------------ prose */
.prose { max-width: var(--measure); }
.wrap.prose { max-width: var(--maxw); }
.wrap.prose > * { max-width: var(--measure); }
.prose > * + *, .doc section > * + * { margin-top: 1rem; }
.prose h2, .doc h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--h2); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.doc h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--h3); line-height: 1.2; letter-spacing: -0.01em; }
.doc h3 + p, .doc h2 + p { margin-top: 0.75rem; }
.sec-n { font-family: var(--font-mono); font-weight: 400; font-size: 0.6em; letter-spacing: 0; color: var(--ink-2); margin-right: 0.6em; vertical-align: 0.18em; }
.doc section { margin-top: clamp(2.5rem, 2rem + 2vw, 3.75rem); scroll-margin-top: 6rem; }
.doc section:first-child, .doc > .notice + section, .doc > .empty + section { margin-top: 0; }
.doc > .notice, .doc > .empty { margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.doc section p, .doc section li, .doc section dd { max-width: var(--measure); }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.45rem; }
.doc h3 { margin-top: 2rem; scroll-margin-top: 6rem; }
q { quotes: "\201C" "\201D"; }

.band { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.band-mist { background: var(--paper-2); }
.band-figure { padding-top: clamp(0.5rem, 0.2rem + 1vw, 1rem); padding-bottom: clamp(0.5rem, 0.2rem + 1vw, 1.5rem); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem !important; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.25rem; border-radius: var(--r-btn); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.btn-primary { background: var(--cta); color: var(--cta-ink); border-color: var(--cta); }
.btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: var(--cta-ink); }
.btn-quiet { color: var(--ink); border-color: var(--field-line); background: transparent; }
.btn-quiet:hover { color: var(--ink); background: var(--paper-2); border-color: var(--ink-2); }

/* the definition lists */
.nots > div, .terms > div, .fit > div, .proposed > div { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.nots > div:last-child, .terms > div:last-child, .fit > div:last-child, .proposed > div:last-child { border-bottom: 1px solid var(--line); }
.nots dt, .terms dt, .fit dt, .proposed dt { font-weight: 650; color: var(--ink); }
.nots dd, .terms dd, .fit dd, .proposed dd { margin-top: 0.2rem; color: var(--ink-2); }
@media (min-width: 48rem) {
  .terms > div, .fit > div, .proposed > div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.5rem; }
  .terms dd, .fit dd, .proposed dd { margin-top: 0; }
}

/* ============================================================ Figure 1 */
.model { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(1.25rem, 0.75rem + 2vw, 2.5rem); }
.model-grid { display: grid; gap: 0.9rem; }
.m-col-head { font-size: var(--small); font-weight: 650; color: var(--ink-2); }
.m-band { position: relative; border: 1px solid var(--line); border-radius: var(--r-ui); padding: 1rem 1.15rem 1.05rem; background: var(--paper); }
.m-verb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.m-verb b { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.015em; line-height: 1.1; color: var(--head-ink); }
.m-verb span { font-size: var(--caption); color: var(--ink-2); }
.m-verb a { color: var(--ink-2); }
.m-items { list-style: none; padding: 0; margin-top: 0.7rem; display: grid; gap: 0.5rem; }
.m-items li { display: grid; gap: 0.15rem; }
.m-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.m-tags code { font-size: 0.8125rem; background: var(--paper-2); }
.m-q { font-size: var(--small); color: var(--ink-2); line-height: 1.45; }
.m-bus { height: 6px; border-radius: 3px; background: var(--ribbon-h); margin-block: 0.4rem; }
.m-readers ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-top: 0.6rem; }
.m-readers li { border: 1px solid var(--line); border-radius: var(--r-ui); padding: 0.75rem 0.9rem; background: var(--paper); }
.m-readers li b { display: block; font-weight: 650; color: var(--ink); line-height: 1.3; }
.m-readers li span { display: block; margin-top: 0.15rem; font-size: var(--caption); color: var(--ink-2); line-height: 1.4; }
.m-readers li.m-own { border-style: dashed; }
.model figcaption { margin-top: 1.25rem; font-size: var(--small); color: var(--ink-2); max-width: 62rem; }
.fig-n { font-weight: 650; color: var(--ink); }
@media (min-width: 60rem) {
  .model-grid { --wire: 6.5rem; grid-template-columns: minmax(0, 1.25fr) var(--wire) minmax(0, 0.8fr); grid-template-rows: auto repeat(3, auto); column-gap: 0; row-gap: 0.9rem; }
  .m-col-head.m-site-head { grid-column: 1; grid-row: 1; }
  .m-band { grid-column: 1; }
  .m-band-find { grid-row: 2; } .m-band-read { grid-row: 3; } .m-band-cite { grid-row: 4; }
  .m-band::after { content: ""; position: absolute; left: 100%; top: 50%; width: calc(var(--wire) - 6px); height: 2px; margin-top: -1px; background: var(--field-line); }
  .m-bus { grid-column: 2; grid-row: 2 / 5; justify-self: end; width: 6px; height: auto; margin: 0; background: var(--ribbon); }
  .m-readers { grid-column: 3; grid-row: 1 / 5; align-self: center; position: relative; margin-left: 2.25rem; }
  .m-readers::before { content: ""; position: absolute; left: -2.25rem; top: calc(50% + 0.9rem); width: 1.85rem; height: 6px; margin-top: -3px; border-radius: 0 3px 3px 0; background: var(--aqua); }
  .m-readers::after { content: ""; position: absolute; left: -0.5rem; top: calc(50% + 0.9rem); margin-top: -7px; border: 7px solid transparent; border-left: 8px solid var(--aqua); border-right: 0; }
  .m-readers ul { grid-template-columns: 1fr; }
}

/* groups index (home) */
.groups { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.groups li { border-bottom: 1px solid var(--line); }
.groups a { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 0.15rem 1rem; padding: 1rem 0.25rem; color: var(--ink); text-decoration: none; }
.groups a:hover { background: var(--paper-2); }
.g-n { grid-row: span 3; font-family: var(--font-mono); font-size: 0.9375rem; color: var(--ink-2); padding-top: 0.15rem; }
.g-name { font-weight: 650; font-size: 1.0625rem; }
.g-name code { margin-left: 0.4rem; font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); }
.g-sum { font-size: var(--small); color: var(--ink-2); }
.g-count { font-size: var(--caption); color: var(--ink-3); }
@media (min-width: 60rem) {
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; border-top: 0; }
  .groups li:nth-child(-n+2) { border-top: 1px solid var(--line); }
}

/* steps: a real sequence */
.steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: 0.75rem; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin: 0 !important; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--head-ink); border: 1.5px solid var(--field-line); background: var(--paper); }

/* notices and the empty register */
.notice { border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-left: 4px solid var(--accent); background: var(--tint); border-radius: var(--r-ui); padding: 1.1rem 1.25rem; display: grid; gap: 0.9rem; max-width: 52rem; }
.empty { border: 1.5px dashed var(--field-line); border-radius: var(--r-card); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); display: grid; gap: 0.75rem; max-width: 52rem; }
.empty-count { display: flex; align-items: baseline; gap: 0.75rem; color: var(--ink-2); font-weight: 600; }
.empty-n { font-family: var(--font-text); font-weight: 700; font-size: var(--display-l); line-height: 1; color: var(--head-ink); font-variant-numeric: tabular-nums; }

/* ======================================================== the standard */
.doc-wrap { padding-bottom: clamp(3rem, 2rem + 4vw, 5rem); }
.std-layout { display: grid; gap: 2rem; }
.toc { font-size: var(--small); }
.toc-h { font-weight: 650; color: var(--ink); margin-bottom: 0.5rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc > ol { display: grid; gap: 0.1rem; }
.toc a { display: flex; gap: 0.6rem; padding: 0.3rem 0.4rem; border-radius: 6px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { background: var(--paper-2); color: var(--ink); }
.toc .t-n { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-3); min-width: 2.2rem; padding-top: 0.08rem; }
.toc ol ol { padding-left: 0.6rem; margin-bottom: 0.25rem; }
.toc ol ol a { font-size: var(--caption); padding-block: 0.18rem; }
@media (max-width: 63.99rem) {
  .toc { border: 1px solid var(--line); border-radius: var(--r-ui); padding: 1rem; }
  .toc ol ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
}
@media (min-width: 64rem) {
  .std-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 3.5rem; }
  .toc { position: sticky; top: 6rem; align-self: start; max-height: calc(100vh - 7rem); overflow-y: auto; padding-right: 0.5rem; }
}

/* levels and verdicts */
.lvl { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 650; line-height: 1.2; padding: 0.22rem 0.55rem; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.lvl-required { color: var(--head-ink); background: var(--tint); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.lvl-advised { color: var(--warn); background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.lvl-info { color: var(--ink-2); background: var(--paper-2); border-color: var(--line); }
.mode { display: inline-flex; font-size: 0.75rem; font-weight: 500; color: var(--ink-2); padding: 0.2rem 0.5rem; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.v { display: inline-block; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; line-height: 1.2; padding: 0.2rem 0.45rem; border-radius: var(--r-chip); white-space: nowrap; }
.v-pass { color: var(--ok); background: var(--ok-bg); }
.v-warn { color: var(--warn); background: var(--warn-bg); }
.v-fail { color: var(--err); background: var(--err-bg); }
.v-none { color: var(--ink-2); background: var(--paper-2); }

/* tables */
.table-scroll { overflow-x: auto; max-width: 100%; margin-top: 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: var(--small); }
caption { caption-side: top; text-align: left; font-weight: 650; color: var(--ink); padding-bottom: 0.6rem; font-size: var(--small); }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--line); }
thead th { font-weight: 650; color: var(--ink-2); font-size: var(--caption); border-bottom: 1.5px solid var(--field-line); }
tbody th { font-weight: 600; }
td code, th code { font-size: 0.8125rem; }
.doc section table { margin-top: 1.25rem; }
.index td:first-child a { font-family: var(--font-mono); font-size: 0.8125rem; white-space: nowrap; }
.index .g-row th { padding-top: 1.1rem; font-weight: 650; color: var(--ink); border-bottom: 1px solid var(--field-line); }
@media (max-width: 40rem) { .index .c-modes { display: none; } }

/* criterion groups */
.group { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); scroll-margin-top: 6rem; }
.group-head { border-top: 3px solid var(--head-ink); padding-top: 0.9rem; }
.group-head h3 { margin-top: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.group-head h3 code { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.group-sum { margin-top: 0.5rem; color: var(--ink-2); }
.group-count { margin-top: 0.25rem !important; font-size: var(--caption); color: var(--ink-3); }

.crit { margin-top: 1rem; border: 1px solid var(--line); border-left: 4px solid var(--lvl-edge, var(--line)); border-radius: var(--r-ui); background: var(--card); padding: 1.05rem clamp(1rem, 0.75rem + 1vw, 1.4rem) 1.15rem; scroll-margin-top: 6rem; max-width: 56rem; }
.crit.l-required { --lvl-edge: var(--head-ink); }
.crit.l-advised { --lvl-edge: var(--warn); }
.crit.l-info { --lvl-edge: var(--field-line); border-left-style: dashed; }
.crit:target { box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 40%, transparent); }
.crit-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 1rem; align-items: start; }
.crit-id { font-family: var(--font-mono); font-size: 0.9375rem; }
.crit-id a { color: var(--ink); text-decoration: none; }
.crit-id a:hover { color: var(--accent); text-decoration: underline; }
.crit-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: flex-end; }
.crit-title { grid-column: 1 / -1; font-family: var(--font-text) !important; font-weight: 650; font-size: var(--h4) !important; line-height: 1.3 !important; letter-spacing: -0.005em !important; color: var(--ink) !important; margin-top: 0 !important; }
.crit-label { grid-column: 1 / -1; font-size: var(--caption); color: var(--ink-2); }
.crit-label code { font-size: 0.8125rem; }
.crit-body { margin-top: 0.9rem; border-top: 1px solid var(--line); }
.crit-body > div { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.crit-body > div:last-child { border-bottom: 0; padding-bottom: 0; }
.crit-body dt { font-size: var(--caption); font-weight: 650; color: var(--ink-2); }
.crit-body dd { margin-top: 0.15rem; font-size: var(--small); line-height: 1.6; max-width: none !important; }
@media (min-width: 40rem) {
  .crit-body > div { display: grid; grid-template-columns: 7.25rem minmax(0, 1fr); gap: 1rem; }
  .crit-body dd { margin-top: 0; }
  .crit-body dt { padding-top: 0.1rem; }
}
.verdicts { list-style: none; padding: 0 !important; display: grid; gap: 0.5rem; }
.verdicts li { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: 0.6rem; margin: 0 !important; }
.verdicts .v { justify-self: start; margin-top: 0.12rem; }
.verdicts samp { display: inline-block; margin-top: 0.25rem; font-size: 0.78rem; color: var(--ink-2); background: var(--paper-2); border-radius: 5px; padding: 0.1rem 0.4rem; }
.changed { color: var(--ink-2); }
.changed strong { color: var(--ink); }

.limits li strong, .changelog strong { color: var(--ink); }
.changelog { list-style: none; padding: 0 !important; display: grid; gap: 1.25rem; }
.changelog > li { border-left: 3px solid var(--line); padding-left: 1.1rem; margin: 0 !important; }
.changelog > li:first-child { border-left-color: var(--accent); }
.changelog > li > * + * { margin-top: 0.6rem; }
.changelog ul { padding-left: 1.25rem; }
.cl-head { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; align-items: baseline; }
.cl-v { font-weight: 650; color: var(--ink); }
.cl-head time { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-2); }

/* ------------------------------------------------------------ citations */
sup.cite { font-size: 0.68em; line-height: 0; vertical-align: super; white-space: nowrap; }
sup.cite a { text-decoration: none; padding: 0 0.05em; font-weight: 600; }
sup.cite a:hover { text-decoration: underline; }
.references, .further-reading { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); background: var(--paper-2); }
.references h2, .further-reading h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--h3); color: var(--head-ink); }
.ref-intro { margin-top: 0.5rem; font-size: var(--small); color: var(--ink-2); max-width: var(--measure); }
.references ol { margin-top: 1.25rem; padding-left: 2rem; display: grid; gap: 0.6rem; font-size: var(--small); line-height: 1.55; max-width: 60rem; }
.references li { padding: 0.15rem 0.4rem; margin-left: -0.4rem; border-radius: 6px; scroll-margin-top: 6rem; }
.references li:target { background: var(--tint); outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.ref-back, .ref-back a { font-weight: 600; text-decoration: none; margin-right: 0.2rem; }
.ref-site, .ref-note { color: var(--ink-2); }
sup.cite a:target { background: var(--tint); border-radius: 3px; }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--band); color: var(--band-ink); position: relative; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ribbon-h); }
.site-foot a { color: var(--band-ink); text-decoration-color: color-mix(in srgb, var(--band-ink) 35%, transparent); }
.site-foot a:hover { color: #ffffff; }
.site-foot :focus-visible { outline-color: var(--band-accent); }
.foot { display: grid; gap: 2.25rem; padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem) 2.5rem; }
.foot .brand, .foot .brand:hover { color: #ffffff; }
.foot .brand-ver { color: var(--band-ink-2); border-color: var(--band-line); }
.foot .brand-by { color: var(--band-ink-2); }
.foot-brand p { margin-top: 0.9rem; color: var(--band-ink-2); max-width: 26rem; font-size: var(--small); }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 2.25rem; color: var(--band-ink-2); text-decoration: none; }
.foot-nav a:hover { color: var(--band-ink); text-decoration: underline; }
.foot-who p { color: var(--band-ink-2); font-size: var(--small); }
.foot-who p + p { margin-top: 0.4rem; }
.foot-who a { color: var(--band-ink); font-weight: 600; }
.foot-fine { border-top: 1px solid var(--band-line); padding-block: 1.25rem 1.75rem; color: var(--band-ink-2); font-size: var(--caption); }
@media (min-width: 48rem) { .foot { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) minmax(0, 1fr); gap: 3rem; } }

/* ------------------------------------------------------------- 404 page */
.golist { padding-left: 1.25rem; }

/* ----------------------------------------------------------------- print */
@media print {
  .masthead, .crumbs, .site-foot, .toc, .skip, .actions { display: none !important; }
  body { font-size: 10.5pt; background: #fff; color: #000; }
  .crit, .m-band, table { break-inside: avoid; }
  a { color: inherit; }
  .references { background: none; }
}

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