/* chrome-platform-showcase — design language ported from aifoc.us and the
 * shared-worker-test dashboard. Editorial / print: ivory paper, black ink,
 * Joan serif display, Lora body, JetBrains Mono for code, hard flat shadows,
 * sharp 2px borders, no gradient nonsense.
 */

/* --- BEGIN vendored @font-face — generated, do not edit by hand --- */
/* Source: https://fonts.googleapis.com/css2?family=Joan&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap
 * Regenerate: npm run vendor-fonts
 * Subsets kept: latin, latin-ext (the full css2 response carries 49 rules across
 * cyrillic/cyrillic-ext/greek/vietnamese/math/symbols/latin/latin-ext = 29 KB; inlining all of
 * them would more than triple this render-blocking sheet). Every weight and style is kept.
 * Vendored so the sheet no longer fetches a second origin on the critical path (gendn-3fa).
 * Blank line + subset comment + @font-face per rule. */

/* JetBrains Mono */
/* latin-ext */
  @font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPx7cwhsk.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
/* latin */
  @font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxDcwg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
/* latin-ext */
  @font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPx7cwhsk.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
/* latin */
  @font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxDcwg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

/* Joan */
/* latin-ext */
  @font-face {
  font-family: 'Joan';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/joan/v12/ZXupe1oZsqWRXR5N8E1p.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
/* latin */
  @font-face {
  font-family: 'Joan';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/joan/v12/ZXupe1oZsqWRXRBN8A.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

/* Lora */
/* latin-ext */
  @font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/lora/v37/0QI8MX1D_JOuMw_hLdO6T2wV9KnW-MoFoqF2nOeZ.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
/* latin */
  @font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/lora/v37/0QI8MX1D_JOuMw_hLdO6T2wV9KnW-MoFoq92nA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
/* latin-ext */
  @font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/lora/v37/0QIvMX1D_JOuMwT7I-NP.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
/* latin */
  @font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/lora/v37/0QIvMX1D_JOuMwr7Iw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
/* latin-ext */
  @font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/lora/v37/0QIvMX1D_JOuMwT7I-NP.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
/* latin */
  @font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/lora/v37/0QIvMX1D_JOuMwr7Iw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
/* latin-ext */
  @font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/lora/v37/0QIvMX1D_JOuMwT7I-NP.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
/* latin */
  @font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/lora/v37/0QIvMX1D_JOuMwr7Iw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
/* latin-ext */
  @font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/lora/v37/0QIvMX1D_JOuMwT7I-NP.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
/* latin */
  @font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/lora/v37/0QIvMX1D_JOuMwr7Iw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

/* --- END vendored @font-face --- */

:root {
  /* Palette — theme-aware (gendn-u2oo, modern-web-guidance `dark-mode`).
     Structure per the guide: raw LIGHT/DARK pairs, then semantic tokens with a
     prefers-color-scheme fallback (same dark values, for browsers without light-dark()),
     then an @supports upgrade to light-dark() (which also honors any manual
     color-scheme override), and color-scheme: light dark so native UI (scrollbars, form
     controls, the canvas) follows the user's preference.
     Dark values keep the editorial ivory-paper character — warm near-blacks, ink inverted
     to warm off-white — with contrast audited in-browser (SC 1.4.3 4.5:1 text, 1.4.11 3:1
     borders; evidence on the bead). */
  --bg-ivory-light: #fdfcf8;
  --bg-ivory-dark: #131210;
  --bg-stone-light: #f4f3ee;
  --bg-stone-dark: #1f1d19;
  --bg-paper-light: #ffffff;
  --bg-paper-dark: #191813;

  --text-black-light: #000000;
  --text-black-dark: #f4f1e8;
  --text-charcoal-light: #2d2d2d;
  --text-charcoal-dark: #c9c5ba;
  --text-muted-light: #666666;
  --text-muted-dark: #a29c8e;

  --border-black-light: #000000;
  --border-black-dark: #e8e4da;
  --border-subtle-light: rgba(0, 0, 0, 0.14);
  --border-subtle-dark: rgba(232, 228, 218, 0.18);
  --border-rule-light: rgba(0, 0, 0, 0.28);
  --border-rule-dark: rgba(232, 228, 218, 0.3);
  --bg-code-light: #efede5;
  --bg-code-dark: #25231e;
  --bg-hover-light: rgba(0, 0, 0, 0.03);
  --bg-hover-dark: rgba(255, 255, 255, 0.04);

  --accent-blue-light: #0022ff;
  --accent-blue-dark: #8f9dff;
  --accent-emerald-light: #0a8f5c;
  --accent-emerald-dark: #57d99c;
  --accent-rose-light: #d11a2a;
  --accent-rose-dark: #ff7a82;
  --accent-amber-light: #b87b00;
  --accent-amber-dark: #ffc554;

  /* Semantic tokens: light by default (also the non-dark-preference answer) */
  --bg-ivory: var(--bg-ivory-light);
  --bg-stone: var(--bg-stone-light);
  --bg-paper: var(--bg-paper-light);
  --bg-code: var(--bg-code-light);
  --bg-hover: var(--bg-hover-light);

  --text-black: var(--text-black-light);
  --text-charcoal: var(--text-charcoal-light);
  --text-muted: var(--text-muted-light);
  --border-black: var(--border-black-light);
  --border-subtle: var(--border-subtle-light);
  --border-rule: var(--border-rule-light);

  --accent-blue: var(--accent-blue-light);
  --accent-emerald: var(--accent-emerald-light);
  --accent-rose: var(--accent-rose-light);
  --accent-amber: var(--accent-amber-light);

  /* Automatically adapt native UI to the user's system preference */
  color-scheme: light dark;
}

/* Fallback for browsers without light-dark(): the SAME dark values via media query
   (the guide's mandatory fallback shape). Browsers that DO support light-dark() get the
   @supports upgrade below, which additionally honors any manual color-scheme override.
   TODO(baseline/light-dark): Remove this media-query fallback and the @supports wrapper;
   assign the semantic tokens with light-dark() directly in :root. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-ivory: var(--bg-ivory-dark);
    --bg-stone: var(--bg-stone-dark);
    --bg-paper: var(--bg-paper-dark);
    --bg-code: var(--bg-code-dark);
    --bg-hover: var(--bg-hover-dark);
    --text-black: var(--text-black-dark);
    --text-charcoal: var(--text-charcoal-dark);
    --text-muted: var(--text-muted-dark);
    --border-black: var(--border-black-dark);
    --border-subtle: var(--border-subtle-dark);
    --border-rule: var(--border-rule-dark);
    --accent-blue: var(--accent-blue-dark);
    --accent-emerald: var(--accent-emerald-dark);
    --accent-rose: var(--accent-rose-dark);
    --accent-amber: var(--accent-amber-dark);
  }
}

@supports (color: light-dark(white, black)) {
  :root {
    --bg-ivory: light-dark(var(--bg-ivory-light), var(--bg-ivory-dark));
    --bg-stone: light-dark(var(--bg-stone-light), var(--bg-stone-dark));
    --bg-paper: light-dark(var(--bg-paper-light), var(--bg-paper-dark));
    --bg-code: light-dark(var(--bg-code-light), var(--bg-code-dark));
    --bg-hover: light-dark(var(--bg-hover-light), var(--bg-hover-dark));
    --text-black: light-dark(var(--text-black-light), var(--text-black-dark));
    --text-charcoal: light-dark(var(--text-charcoal-light), var(--text-charcoal-dark));
    --text-muted: light-dark(var(--text-muted-light), var(--text-muted-dark));
    --border-black: light-dark(var(--border-black-light), var(--border-black-dark));
    --border-subtle: light-dark(var(--border-subtle-light), var(--border-subtle-dark));
    --border-rule: light-dark(var(--border-rule-light), var(--border-rule-dark));
    --accent-blue: light-dark(var(--accent-blue-light), var(--accent-blue-dark));
    --accent-emerald: light-dark(var(--accent-emerald-light), var(--accent-emerald-dark));
    --accent-rose: light-dark(var(--accent-rose-light), var(--accent-rose-dark));
    --accent-amber: light-dark(var(--accent-amber-light), var(--accent-amber-dark));
  }
}

:root {
  /* Typography */
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-display: "Joan", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* font-size-adjust aspect values — MEASURED at float precision, not quoted (gendn-2tx): a
     1ex probe at font-size:100px in headless Chrome against the exact vendored faces above,
     read via getBoundingClientRect after document.fonts.ready — Lora 400 = 50.000px (0.5),
     Joan 400 = 45.594px (0.456), JetBrains Mono 400 = 55.000px (0.55). An integer-rounded
     first measurement read Joan as 0.46 and inflated every heading ~0.9% — the values below
     are the float measurements. (The serif fallback measures 0.46 against Lora's 0.5: the
     swap-window shift is real.) Applied on the CONSUMING rules below, never inside the
     generated @font-face block, and deliberately NOT `from-font`: during the swap window the
     first available font is the fallback, so from-font would size to the fallback and
     re-introduce the shift this prevents. */
  --adjust-serif: 0.5; /* Lora */
  --adjust-display: 0.456; /* Joan */
  --adjust-mono: 0.55; /* JetBrains Mono */

  /* Editorial shadows (hard, offset, no blur) */
  --flat-shadow: 4px 4px 0px var(--border-black);
  --flat-shadow-hover: 6px 6px 0px var(--border-black);
  --flat-shadow-active: 1px 1px 0px var(--border-black);
  --thin-shadow: 2px 2px 0px var(--border-black);

  /* Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --transition: all 0.15s ease-in-out;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }

body {
  background-color: var(--bg-ivory);
  color: var(--text-black);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) var(--space-8);
}

@media (max-width: 640px) {
  main {
    padding: var(--space-5) var(--space-4) var(--space-7);
  }
}

/* Top site utility bar on SSR index/release/catalogue/conformance pages */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  font-size: 0.78rem;
}
.site-nav-brand {
  font-family: var(--font-display);
  font-size-adjust: var(--adjust-display);
  font-size: 1.15rem;
  color: var(--text-black);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-nav-brand:hover { color: var(--accent-blue); }
.site-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}
.site-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.2rem 0;
}
.site-nav-links a:hover,
.site-nav-links a[aria-current="page"] {
  color: var(--text-black);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Horizontal-overflow guard (gendn-z5w, same defect as gendn-uce). Two measured sources of
   overflow at narrow widths: long unbreakable tokens (API names, identifiers) and wide data
   tables. `min-inline-size: 0` lets flex and grid children shrink rather than forcing the page
   wide; the wrap rule keeps inline code and cell text from setting the page's width - the
   harness measured that td/th/links inside cells, not just code inside them, were the actual
   overflow on two real pages.
   HOW THE TABLE RULE ACTUALLY WORKS, stated precisely because an earlier version of this
   comment claimed otherwise: most existing tables are `<table class="doc-table">` with NO
   `.table-wrap` around them, so for those pages it is `td, th { overflow-wrap: anywhere }` -
   not a scroller - that stops the table forcing the viewport wide. `.table-wrap` is the
   scroll container for the tables that DO have one, and this rule gives it the behaviour those
   wrappers previously got from per-page inline styles.
   The trade-off is deliberate and worth naming: `overflow-wrap: anywhere` can break a long word
   mid-token inside a narrow table cell (an identifier or a ChromeStatus id), which is poorer
   typography than a scrollbar. It is still the right default here because the alternative on an
   unwrapped table is text clipped invisibly by `body { overflow-x: hidden }` - a reader can see
   a broken word, but cannot see a missing column. `table-layout: fixed` and `hyphens: auto` are
   NOT used corpus-wide, since both would silently change existing line breaking and text flow.
   The 158 page-scoped inline copies of a narrower version of this fix are now redundant rather
   than wrong; consolidating them is a separate change so it cannot confound this one's
   re-validation.
   Residual measured after that fix (gendn-9nf): five more selectors, four of them coverage gaps
   in this same list and one a genuinely new component class. `h2` is the `h1` rule that was
   never mirrored - a long identifier in a level-2 heading painted past its box on one page.
   `h3 code` and `li var` extend the code-token cases this list already covers for `p`/`li` to
   the heading and the `<var>` identifier tag (on three of the failing routes: four overflowing
   `h3` code tokens and one `li` var token). `li a` is the same long-link mechanism already
   accepted for `td a, th a`, applied to plain list links. The one new component is `.mdn-card`:
   the page-scoped MDN card (50 pages - 40 with a descendant title link, 10 where the anchor is
   the card) sits outside any cell, and none of those pages' inline styles set
   overflow-wrap/word-break on the card link, so the global rule applies without conflict. Each
   breaks a token only when it alone exceeds its line box - the same mid-token trade-off the
   `p code`/`td` rules already accept. */
main {
  min-inline-size: 0;
}
h1,
h2,
.lede {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
p code,
li code,
h3 code,
li var,
td,
th,
td a,
th a,
li a,
a.mdn-card,
.mdn-card a {
  overflow-wrap: anywhere;
}
.table-wrap {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  margin: var(--space-4) 0 var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  background: var(--bg-paper);
}
.table-wrap > .doc-table {
  margin: 0;
}
.table-wrap > .doc-table caption {
  padding: 0.65rem 0.85rem 0.45rem;
  background: var(--bg-paper);
}
.table-wrap > .doc-table tr:last-child th,
.table-wrap > .doc-table tr:last-child td {
  border-bottom: none;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-charcoal);
}
.doc-table caption {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: start;
  padding-bottom: 0.5rem;
}

:where(.warn-block),
.warn-block--common {
  border: 1px solid var(--border-rule);
  border-inline-start: 4px solid var(--accent-amber);
  border-radius: 2px;
  background: var(--bg-paper);
  padding: 0.95rem 1.2rem;
  margin: var(--space-4) 0 var(--space-5);
  box-shadow: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--text-charcoal);
}
:where(.warn-block) p,
.warn-block--common p {
  font-family: var(--font-sans);
  font-size-adjust: none;
  font-size: 0.9rem;
  line-height: 1.58;
  max-width: none;
}
:where(.warn-block) p:last-child,
.warn-block--common p:last-child {
  margin-bottom: 0;
}
:where(.warn-block) ul,
.warn-block--common ul {
  font-family: var(--font-sans);
  font-size-adjust: none;
  font-size: 0.88rem;
  line-height: 1.56;
  padding-inline-start: 1.3rem;
  margin: 0.5rem 0 0;
}
:where(.warn-block) li,
.warn-block--common li {
  margin-bottom: 0.35rem;
}
:where(.warn-block > strong) {
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  color: var(--text-black);
  display: block;
  margin-bottom: 0.45rem;
}

.citation {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  border-inline-start: 2px solid var(--border-subtle);
  padding-inline-start: 0.65rem;
  margin: 0.3rem 0 var(--space-5);
  display: block;
  max-width: 68ch;
}
.citation a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border-rule);
}
.citation a:hover {
  color: var(--accent-blue);
  text-decoration-color: currentColor;
}

.doc-table th,
.doc-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
.doc-table th {
  color: var(--text-black);
  font-weight: 600;
}
.doc-table thead th {
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-stone);
  border-bottom: 2px solid var(--border-rule);
}
.doc-table tbody tr:hover {
  background: var(--bg-hover);
}
@media (min-width: 641px) {
  .doc-table th[scope="row"] {
    overflow-wrap: break-word;
    min-width: 10.5rem;
  }
}
.mdn-card {
  border: 1px solid var(--border-rule);
  border-inline-start: 4px solid var(--accent-blue);
  border-radius: 2px;
  padding: 1rem 1.25rem;
  margin: var(--space-5) 0;
  background: var(--bg-paper);
}
/* v149 components (gendn-zdgm): all 29 roots inherit the shared .doc-table
   base/cells; six MDN stubs inherit this .mdn-card box. Keep the compact table
   margin/font size, 600-weight header, last-row border removal, flat table
   code, citation typography, and six stub .mdn-card a weights local. The
   selective-clipboard-format-read card is an anchor with a distinct paper,
   shadow, hover and pseudo-label treatment, so it stays local. No v149
   .table-wrap, .baseline-banner or .local-nav consumer exists. Guidance:
   modern-web-guidance responsive-table + css (@latest, 2026-10-10): preserve
   semantic tables and scope genuinely different component variants. */
/* v148's 34rem scroll tables are distinct from the 42rem DBSC and 36rem
   declarative-performance-observer tables. Scope this minimum to its milestone:
   an unscoped .table-wrap .doc-table would beat their narrower local selectors. */
body:has(.crumbs a[href="/v148/"]) .table-wrap .doc-table {
  min-width: 34rem;
}
/* v150 components (gendn-hyf0, residual gendn-stnd). All 27 .doc-table
   users now inherit the shared base/cells, four use the shared scroller, and
   four MDN stubs use the standard .mdn-card. The last three local copies
   (two speech routes and popover-hint-behavior-changes) were removed only
   after gendn-4y8l fixed the speech contracts and gendn-wxxy reviewed the
   popover desktop/mobile support. All retain compact table variants locally.
   The eight anchor-style MDN cards keep their paper/shadow/hover variant locally.
   Keep local compact table margin/font size, 600-weight headers, last-row border
   removal, flat table code, citations, caption styling, and first-column widths:
   Web Printing, DBSC and later milestones use distinct borders, code chips or
   table widths. v150 has no .local-nav consumer. Three full references use the
   banner below; its bottom-only margin differs from v147 and must be scoped.
   The paper-standard and paper-compact aliases below opt only matching banners
   into these existing rules; stone or unstyled banners do not opt in.
   Guidance: modern-web-guidance responsive-table + css (@latest, 2026-10-10):
   retain semantic tables and scrollers, and scope variant selectors to intent. */
body:has(.crumbs a[href="/v150/"]) .baseline-banner,
.baseline-banner--paper-compact,
body:has(.crumbs a[href="/v147/"]) .baseline-banner,
.baseline-banner--paper-standard {
  border: 1px solid var(--border-rule);
  border-inline-start: 4px solid var(--border-black);
  border-radius: 2px;
  background: var(--bg-paper);
  box-shadow: none;
  padding: 0.95rem 1.2rem;
  margin: var(--space-4) 0 var(--space-5);
  font-family: var(--font-sans);
}
.baseline-banner .baseline-status,
.baseline-banner--paper-compact .baseline-status,
.baseline-banner--paper-standard .baseline-status {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-black);
  margin: 0 0 0.6rem;
  max-width: none;
}
.baseline-banner .baseline-browsers,
.baseline-banner--paper-compact .baseline-browsers,
.baseline-banner--paper-standard .baseline-browsers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.65rem;
}
.baseline-banner .baseline-browsers li,
.baseline-banner--paper-compact .baseline-browsers li,
.baseline-banner--paper-standard .baseline-browsers li {
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  font-size: 0.74rem;
  line-height: 1.35;
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 0.22rem 0.55rem;
  background: var(--bg-stone);
  color: var(--text-black);
  margin: 0;
}
.baseline-banner .baseline-browsers li.limited,
.baseline-banner--paper-compact .baseline-browsers li.limited,
.baseline-banner--paper-standard .baseline-browsers li.limited {
  border-style: dashed;
  background: transparent;
  color: var(--text-muted);
}
.baseline-banner p,
.baseline-banner--paper-compact p,
.baseline-banner--paper-standard p {
  font-family: var(--font-sans);
  font-size-adjust: none;
  font-size: 0.87rem;
  line-height: 1.56;
  color: var(--text-charcoal);
  max-width: none;
  margin: 0;
}
.baseline-banner p + p,
.baseline-banner--paper-compact p + p,
.baseline-banner--paper-standard p + p {
  margin-top: 0.5rem;
}
.local-nav {
  container-type: inline-size;
  margin: var(--space-4) 0 var(--space-6);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  background: var(--bg-paper);
  padding: 0.7rem 0.95rem;
}
.local-nav-label {
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.45rem;
}
.local-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.local-nav li {
  margin: 0;
}
.local-nav a {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  font-size: 0.76rem;
  color: var(--text-charcoal);
  background: var(--bg-stone);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 0.25rem 0.6rem;
  text-decoration: none;
}
.local-nav a:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  background: var(--bg-paper);
}
@media (max-width: 640px), (pointer: coarse) {
  .local-nav a {
    min-block-size: 40px;
    padding: 0.35rem 0.7rem;
  }
}
/* Component layout fix (gendn-d83): wrap the button row on narrow viewports to prevent overflow. */
.demo-focusgroup {
  flex-wrap: wrap;
}

/* ----- Type ----- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-size-adjust: var(--adjust-display);
  font-weight: 400;
  color: var(--text-black);
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--border-black);
  margin: 0 0 var(--space-5);
}
h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  line-height: 1.25;
  margin: var(--space-7) 0 var(--space-4);
  border-bottom: 1px solid var(--border-rule);
  padding-bottom: var(--space-2);
  scroll-margin-top: 1.5rem;
}
h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: var(--space-6) 0 var(--space-3);
  font-family: var(--font-sans);
  font-size-adjust: none;
  font-weight: 650;
  scroll-margin-top: 1.5rem;
}
h1 code,
h2 code,
h3 code,
h4 code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.9em;
  font-weight: inherit;
}

h1, h3, h4, h5, h6 {
  text-wrap: balance;
}

p {
  font-family: var(--font-serif);
  font-size-adjust: var(--adjust-serif);
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--text-charcoal);
  max-width: 68ch;
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}
:where(main section ul, main section ol, main article ul, main article ol) {
  font-family: var(--font-serif);
  font-size-adjust: var(--adjust-serif);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-charcoal);
  max-width: 68ch;
  padding-inline-start: 1.45rem;
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}
:where(main section li, main article li) {
  margin-bottom: var(--space-2);
}
:where(main section li, main article li)::marker {
  color: var(--text-muted);
}
blockquote {
  margin: var(--space-4) 0 var(--space-5);
  padding: 0.85rem 1.15rem;
  border-inline-start: 3px solid var(--border-rule);
  background: var(--bg-stone);
  border-radius: 0 3px 3px 0;
  max-width: 66ch;
}
blockquote p {
  font-size: 0.96rem;
  line-height: 1.65;
}
blockquote p:last-child {
  margin-bottom: 0;
}
a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
  transition: var(--transition);
}
a:hover {
  color: var(--text-black);
  text-decoration-color: currentColor;
}

/* Visible focus (gendn-d7a): explicit :focus-visible ring so keyboard affordance matches the
 * design system instead of depending on UA-default outlines. We do not remove the UA outline —
 * this overrides it consistently with the existing accent token. Modern-web-guidance
 * (accessibility guide, "Visible Focus Indicators"): always style :focus-visible states
 * explicitly; overrides must keep sufficient contrast. MEASURED contrast for --accent-blue
 * against paper/ivory/stone: light (#0022ff) 7.86:1 / 7.65:1 / 7.07:1;
 * dark (#8f9dff) 7.14:1 / 7.52:1 / 6.76:1 — all above WCAG 2.1
 * SC 1.4.11 non-text contrast (3:1) and SC 1.4.3 text contrast (4.5:1). */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

code, pre { font-family: var(--font-mono); font-size-adjust: var(--adjust-mono); font-size: 0.88rem; }
code {
  background-color: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 0.06em 0.34em;
  font-size: 0.84em;
  color: var(--text-black);
}
a code {
  color: inherit;
  border-color: transparent;
}
main pre,
pre {
  background-color: var(--bg-stone);
  border: 1px solid var(--border-rule);
  border-inline-start: 3px solid var(--border-black);
  border-radius: 3px;
  box-shadow: none;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  line-height: 1.6;
  font-size: 0.85rem;
  margin: var(--space-4) 0 var(--space-5);
  tab-size: 2;
}
main pre code,
pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: inherit;
  color: var(--text-black);
}

/* ----- Lede ----- */

.lede-block { margin-bottom: var(--space-6); }
.eyebrow {
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-charcoal);
  background: var(--bg-stone);
  margin: 0 0 var(--space-3);
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border-rule);
  border-radius: 2px;
}
.lede {
  font-family: var(--font-serif);
  font-size-adjust: var(--adjust-serif);
  font-style: normal;
  font-size: 1.12rem;
  line-height: 1.64;
  color: var(--text-charcoal);
  max-width: 64ch;
  border-inline-start: 3px solid var(--border-rule);
  padding-inline-start: var(--space-4);
  margin: var(--space-4) 0 var(--space-4);
}

/* ----- Crumbs ----- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-5);
  max-width: none;
}
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--text-black); text-decoration: underline; }
@media (max-width: 640px), (pointer: coarse) {
  .crumbs a {
    display: inline-flex;
    align-items: center;
    min-block-size: 40px;
  }
}

/* ----- Cards (used for releases on index and demos on a release page) ----- */

.release-list,
.demo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.release-card,
.demo-card {
  background: var(--bg-paper);
  border: 1.5px solid var(--border-black);
  border-radius: 2px;
  box-shadow: var(--flat-shadow);
  padding: var(--space-5);
  min-inline-size: 0;
  margin: 0;
  transition: var(--transition);
}
.release-card:not(:has([aria-disabled="true"])):hover,
.demo-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--flat-shadow-hover);
}
.release-card-link {
  display: block;
  text-decoration: none;
  color: var(--text-black);
}
.release-card-link:not([aria-disabled="true"]):hover { color: var(--accent-blue); }
.release-card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}
.release-label {
  font-family: var(--font-display);
  font-size-adjust: var(--adjust-display);
  font-size: 1.5rem;
}
.release-status {
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--text-black);
  color: var(--bg-ivory);
  padding: 0.2rem 0.5rem;
}
.release-note {
  display: block;
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  color: var(--text-muted);
  margin: var(--space-3) 0 0;
  font-size: 0.78rem;
}

.updated-line {
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: calc(-1 * var(--space-3)) 0 var(--space-5);
}
.updated-line code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.95em;
  color: var(--text-black);
}
.updated-line a { color: var(--text-black); text-decoration: underline; }
.updated-line a:hover { color: var(--accent-blue); }
.updated-line .updated-abs { color: var(--text-muted); opacity: 0.7; }

.demo-card h3 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-sans);
  font-size-adjust: none;
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.3;
}
.demo-card h3 a {
  color: var(--text-black);
  text-decoration: none;
}
.demo-card h3 a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}
.demo-card p {
  font-family: var(--font-sans);
  font-size-adjust: none;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-charcoal);
  margin: 0 0 var(--space-3);
  overflow-wrap: anywhere;
}
.demo-card .demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.demo-card .tag {
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-black);
  background: var(--bg-paper);
  border: 1px solid var(--border-black);
  padding: 0.15rem 0.5rem;
  text-decoration: none;
}
.demo-card .tag-live {
  background: var(--text-black);
  color: var(--bg-ivory);
  border-color: var(--text-black);
}
.demo-card .tag-live:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: var(--bg-ivory);
}
.demo-card .tag-pending {
  color: var(--text-muted);
  border-color: var(--text-muted);
  border-style: dashed;
}

/* ----- Group title (within a release page) ----- */

.group-title {
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: var(--space-7) 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-black);
  border-radius: 0;
  border-top: none;
  /* Boxed element (border-bottom + padding), so it opts out of the heading balance rule for
   * the same reason h2 does — balance would leave the end-of-container space visible inside
   * this box. Latent today because category titles are short single lines (gendn-b2p). */
  text-wrap: wrap;
}
.group-count { color: var(--text-muted); font-weight: 400; }

/* ----- How-it-works section ----- */

.how ol {
  padding-left: 1.4rem;
  font-family: var(--font-serif);
  font-size-adjust: var(--adjust-serif);
  color: var(--text-charcoal);
  font-size: 1.05rem;
}
.how li { margin-bottom: var(--space-2); }
.how .note {
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: var(--space-4);
}
.note {
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ----- Buttons ----- */

button, .btn {
  font: inherit;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--text-black);
  color: var(--bg-ivory);
  border: 2px solid var(--border-black);
  padding: 0.55rem 1.1rem;
  box-shadow: var(--flat-shadow);
  cursor: pointer;
  transition: var(--transition);
}
button:hover, .btn:hover {
  background: var(--bg-paper);
  color: var(--text-black);
  transform: translate(-2px, -2px);
  box-shadow: var(--flat-shadow-hover);
}
button:active, .btn:active {
  transform: translate(1px, 1px);
  box-shadow: var(--flat-shadow-active);
}

/* ----- Skeleton (used inside demos) ----- */

.skeleton {
  background: linear-gradient(90deg, var(--bg-stone) 0px, var(--bg-paper) 40px, var(--bg-stone) 80px);
  background-size: 200px 100%;
  animation: shimmer 1.6s infinite linear;
  border: 1px solid var(--border-black);
  height: 1rem;
  margin: var(--space-2) 0;
}
.skeleton.lg { height: 1.6rem; width: 70%; }
.skeleton.sm { width: 40%; }
@keyframes shimmer {
  0% { background-position: -100px 0; }
  100% { background-position: 200px 0; }
}

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

.byline {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-black);
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}
.byline a {
  color: var(--text-black);
  text-decoration: underline;
}
.byline a:hover { color: var(--accent-blue); }

/* ----- Additive editorial & catalogue utilities ----- */
/* Guidance: modern-web-guidance `accessibility`, `forms`, `dark-mode`, `css`.
   All rules below are additive opt-ins or zero-specificity defaults using semantic tokens only,
   preserving existing computed styles across published reference pages. */

.sr-only:where(:not(:focus-within, :active)) {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.doc-table--compact {
  margin: 1rem 0;
  font-size: 0.85rem;
}
.doc-table--compact th {
  background: var(--bg-stone);
  font-weight: 600;
}
.doc-table--compact tr:last-child td {
  border-bottom: none;
}
.doc-table--compact code {
  background: transparent;
  border: none;
  padding: 0;
}

:where(.warn-block--common > strong) {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--text-charcoal);
  display: block;
  margin-bottom: 0.4rem;
}

.tag-stub {
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-charcoal);
  background: var(--bg-stone);
  border: 1px dashed var(--border-black);
  padding: 0.15rem 0.5rem;
  text-decoration: none;
}
a.tag-stub:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.tag-demo {
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-black);
  background: var(--bg-paper);
  border: 1px solid var(--border-black);
  border-inline-start: 3px solid var(--accent-emerald);
  padding: 0.15rem 0.5rem;
  text-decoration: none;
}

button.filter-clear,
.filter-clear {
  font-family: var(--font-mono);
  font-size-adjust: var(--adjust-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg-paper);
  color: var(--text-black);
  border: 2px solid var(--border-black);
  padding: 0.45rem 0.85rem;
  box-shadow: var(--thin-shadow);
  cursor: pointer;
  transition: var(--transition);
}
button.filter-clear:hover:not(:disabled),
.filter-clear:hover:not(:disabled) {
  background: var(--text-black);
  color: var(--bg-ivory);
  transform: translate(-1px, -1px);
  box-shadow: var(--flat-shadow);
}
button.filter-clear:active:not(:disabled),
.filter-clear:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: var(--flat-shadow-active);
}
button.filter-clear:disabled,
.filter-clear:disabled {
  color: var(--text-muted);
  border-color: var(--text-muted);
  background: var(--bg-stone);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 640px), (pointer: coarse) {
  button.filter-clear,
  .filter-clear {
    min-block-size: 44px;
    padding-inline: 1rem;
  }
}
