/* gravysp2mods.com. Colours come from the owner's palette (DESIGN.md): #090C08 #474056 #757083 #8A95A5 #B9C6AE.
   Every text pair below was run through contrast-check.py; see anti-slop/delivery-gate-002.md for the table. */

@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/FiraSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/FiraSans-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/FiraSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/FiraSans-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #F5F7F3;          /* sage tint of #B9C6AE */
  --surface: #FFFFFF;
  --sunken: #E6EBE2;      /* deeper sage tint: placeholders, table heads, code */
  --text: #090C08;
  --text-2: #474056;
  --muted: #68637A;       /* #757083 darkened: the raw value is 4.43:1 on --bg */
  --line: #D3D9CE;        /* decorative dividers only */
  --control: #757083;     /* input, chip and summary borders (3:1 or more) */
  --link: #474056;
  --focus: #474056;
  --accent: #B9C6AE;      /* sage: version tags and download buttons only */
  --on-accent: #090C08;
  --accent-edge: #474056;
  --accent-hover: #A7B79A;
  --brand: #474056;
  --brand-deep: #3A3447;
  --brand-soft: #5C5470;
  --ink: #090C08;
  --on-ink: #EEF1EA;
  --on-ink-2: #8A95A5;
  --hero-text: #F5F7F3;
  --hero-text-2: #D5DBCF;
  --r-s: 3px;
  --r-m: 6px;
  --r-l: 10px;
  --gutter: 16px;
  --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* Dark: follows the device unless the header toggle picked a theme (data-theme on <html>, saved in localStorage). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090C08;
    --surface: #17171C;   /* #474056 mixed into #090C08 */
    --sunken: #222128;
    --text: #EEF1EA;
    --text-2: #B9C6AE;
    --muted: #8A95A5;
    --line: #2E2D36;
    --control: #8A95A5;
    --link: #B9C6AE;
    --focus: #B9C6AE;
    --accent-edge: #B9C6AE;
    --accent-hover: #C9D4BF;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090C08;
  --surface: #17171C;   /* #474056 mixed into #090C08 */
  --sunken: #222128;
  --text: #EEF1EA;
  --text-2: #B9C6AE;
  --muted: #8A95A5;
  --line: #2E2D36;
  --control: #8A95A5;
  --link: #B9C6AE;
  --focus: #B9C6AE;
  --accent-edge: #B9C6AE;
  --accent-hover: #C9D4BF;
}
:root[data-theme="light"] { color-scheme: light; }

@media (min-width: 40rem) { :root { --gutter: 24px; } }
@media (min-width: 64rem) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  overflow-wrap: break-word;
}
@media (min-width: 48rem) { body { font-size: 1.0625rem; } }
img, video { display: block; max-width: 100%; height: auto; }
strong, b, th { font-weight: 600; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2rem, 1.45rem + 2.4vw, 2.875rem); letter-spacing: -0.015em; }
h2 { font-weight: 600; font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem); letter-spacing: -0.01em; }
h3 { font-weight: 600; font-size: 1.125rem; }
h4 { font-weight: 600; font-size: 1rem; }
p { margin: 0 0 1em; }
code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--sunken);
  padding: 0.1em 0.35em;
  border-radius: var(--r-s);
  overflow-wrap: anywhere;
}
pre {
  margin: 0 0 1em;
  padding: 12px 14px;
  overflow-x: auto;
  background: var(--sunken);
  border-radius: var(--r-m);
  font-size: 0.9375rem;
}
pre code { background: none; padding: 0; overflow-wrap: normal; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }

.vh, .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap { max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: var(--gutter); top: -200px; z-index: 10;
  padding: 10px 16px; background: var(--surface); color: var(--text); border: 2px solid var(--focus);
  border-radius: var(--r-m); font-weight: 600;
}
.skip:focus { top: 8px; }

/* Header: wordmark, then the nav list with the pack button as its last item, so tab order follows the eye. */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; padding-block: 8px; }
.header-row .wordmark { margin-right: auto; }
.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 800; font-size: 1.3125rem; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: var(--r-m); color: var(--text); text-decoration: none; font-weight: 600;
}
.main-nav a:not(.btn):hover { background: var(--sunken); }
.main-nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.45em; }
.nav-cta { margin-left: 10px; }
/* Theme toggle: an icon button, the moon while light (switches to dark), the sun while dark. */
.theme-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--text); border: 1.5px solid var(--control); border-radius: var(--r-m); cursor: pointer;
}
.theme-toggle:hover { background: var(--sunken); }
.theme-icon--sun { display: none; }
.theme-toggle[aria-pressed="true"] .theme-icon--sun { display: block; }
.theme-toggle[aria-pressed="true"] .theme-icon--moon { display: none; }
@media (max-width: 31.99rem) {
  .theme-toggle { order: 1; }
  .main-nav { order: 2; flex-basis: 100%; }
  .main-nav ul { justify-content: space-between; }
  .main-nav a:not(.btn) { padding: 0 8px; }
  .nav-cta { margin-left: auto; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1.5px solid transparent; border-radius: var(--r-m);
  font: 600 1rem/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}
.btn-large { min-height: 52px; padding: 0 24px; font-size: 1.0625rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent-edge); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--text-2); border-color: currentColor; }
.btn-secondary:hover { background: var(--sunken); }
.btn[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--on-accent); }

/* The version tag: the one motif every listing carries. */
.ver {
  display: inline-flex; align-items: center; padding: 1px 7px;
  border-radius: var(--r-s); background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 0.8125rem; line-height: 1.5; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ver--none { background: var(--sunken); color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; padding: 1px 7px;
  border-radius: var(--r-s); background: var(--sunken); color: var(--text-2);
  font-weight: 600; font-size: 0.8125rem; line-height: 1.5;
}

/* Media placeholders: a title card that says what's missing. */
.slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; height: 100%; padding: 12px; text-align: center; background: var(--sunken);
}
.slot-title { font-weight: 800; font-size: 1.375rem; line-height: 1.15; color: var(--text-2); letter-spacing: -0.01em; }
.slot-note { font-size: 0.8125rem; color: var(--muted); }
.slot--small { aspect-ratio: 16 / 9; border-radius: var(--r-m); }

/* Hero: always dark, it frames the showcase video. The scrim keeps text at 4.5:1 even over a white frame. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(28rem, 72svh, 44rem);
  background: #2B2833; color: var(--hero-text);
  --focus: #B9C6AE; --accent-edge: #B9C6AE; --accent-hover: #C9D4BF;
}
.hero-media { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.hero-slot {
  position: absolute; inset: 10px; z-index: -1;
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px 16px;
  border: 2px dashed rgba(245, 247, 243, 0.35); border-radius: var(--r-l);
}
.hero-slot-label { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--hero-text-2); }
/* As light as the text allows: on the brightest hero frames the lede stays at 5.0:1 (phone) and 5.9:1 (desktop). */
.hero-scrim { position: absolute; inset: 0; z-index: -2; background: rgba(9, 12, 8, 0.62); }
@media (min-width: 64rem) {
  .hero-scrim { background: linear-gradient(90deg, rgba(9, 12, 8, 0.62) 0%, rgba(9, 12, 8, 0.5) 62%, rgba(9, 12, 8, 0.1) 100%); }
}
.hero-inner { width: 100%; padding-block: 48px 64px; padding-inline: calc(var(--gutter) + 12px); }
@media (max-width: 29.99rem) { .hero-actions .btn { flex: 1 1 100%; } }
.hero h1 { max-width: 13ch; margin-bottom: 16px; font-size: clamp(2.375rem, 1.4rem + 4.2vw, 4.25rem); letter-spacing: -0.025em; line-height: 1.05; }
.hero-lede { max-width: 36rem; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.btn-ghost { background: transparent; color: var(--hero-text); border-color: var(--hero-text); }
.btn-ghost:hover { background: rgba(245, 247, 243, 0.12); }
.hero-note, .hero-facts { max-width: 36rem; margin: 0 0 4px; font-size: 0.9375rem; color: var(--hero-text-2); }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
@media (min-width: 48rem) { .hero-inner { padding-block: 72px 88px; } }

.home-faq { background: var(--surface); padding-block: 48px; border-bottom: 1px solid var(--line); }
.home-faq-grid, .disclaimer-grid { display: grid; gap: 20px 48px; }
@media (min-width: 56rem) {
  .home-faq-grid, .disclaimer-grid { grid-template-columns: minmax(13rem, 1fr) 3fr; }
  .home-faq { padding-block: 64px; }
}
.home-faq-head h2 { margin-bottom: 8px; }
.link-strong { font-weight: 600; }
.qa-grid { display: grid; gap: 28px 40px; }
@media (min-width: 40rem) { .qa-grid { grid-template-columns: 1fr 1fr; } }
.qa-item h3 { margin-bottom: 6px; }
.qa-item p { margin: 0; color: var(--text-2); }
.qa-item p a { font-weight: 600; white-space: nowrap; }

.home-top { padding-block: 48px 56px; }
@media (min-width: 56rem) { .home-top { padding-block: 64px 72px; } }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--text-2); }
.more { margin: 28px 0 0; }

.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 36rem) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 78rem) { .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 60rem) and (max-width: 77.99rem) { .card-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  transition: border-color 0.12s;
}
.card:hover { border-color: var(--control); }
/* The whole card is the link's target, so keyboard focus rings the card instead of the title text. */
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
@supports selector(:has(*)) {
  .card:focus-within { outline: 0; }
  .card:has(.card-title a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
  .card-title a:focus-visible { outline: 0; }
}
.card-media { aspect-ratio: 16 / 9; background: var(--sunken); }
.card-media .thumb { width: 100%; height: 100%; object-fit: cover; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.card-title { margin: 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.005em; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card-title a { text-decoration: underline; text-decoration-thickness: 2px; }
.card-summary { margin: 0; color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; }
.card-note { margin: 0; color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
.card-meta { margin: auto 0 0; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 0.8125rem; }
.card-online { color: var(--muted); }
.card--pack { background: var(--brand); border-color: var(--brand); }
.card--pack:hover { border-color: #B9C6AE; }
.card--pack .card-title a { color: #FFFFFF; }
.card--pack .card-summary { color: #E4E8DF; }
.card--pack .tag { background: var(--brand-soft); color: #FFFFFF; }
.card--pack .slot, .detail-media--pack .slot { background: var(--brand-deep); }
.card--pack .slot-title, .detail-media--pack .slot-title { color: #FFFFFF; }
.card--pack .slot-note, .detail-media--pack .slot-note { color: #B9C6AE; }

.page-head { padding-block: 36px 20px; }
@media (min-width: 56rem) { .page-head { padding-block: 52px 28px; } }
.page-head h1 { margin-bottom: 10px; }
.lede { max-width: 44rem; font-size: 1.125rem; color: var(--text-2); }
.lede p:last-child { margin-bottom: 0; }

.catalogue { padding-bottom: 56px; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 14px;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--control); border-radius: var(--r-m);
  font: 600 0.9375rem var(--font); cursor: pointer;
}
.chip:hover { background: var(--sunken); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.search { display: flex; flex-direction: column; gap: 4px; flex: 1 1 16rem; max-width: 22rem; }
.search label { font-weight: 600; font-size: 0.9375rem; }
.search input {
  width: 100%; min-height: 44px; padding: 0 12px;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--control); border-radius: var(--r-m);
  font: 1rem var(--font);
}
.search input::placeholder { color: var(--muted); opacity: 1; }
@media (max-width: 39.99rem) { .search { max-width: none; } }
.filter-status { min-height: 1.6em; margin: 0 0 16px; color: var(--muted); font-size: 0.9375rem; }
.empty { padding: 24px; border: 1.5px dashed var(--control); border-radius: var(--r-l); background: var(--surface); }

/* Mod and pack pages */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 6px; margin: 12px 0 8px; padding: 0; font-size: 0.9375rem; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.crumbs [aria-current] { color: var(--muted); }
.detail-head { display: grid; gap: 24px; align-items: start; margin-bottom: 36px; }
@media (min-width: 56rem) { .detail-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; } }
@media (min-width: 72rem) { .detail-head { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.detail-media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-l); background: var(--sunken); }
.detail-media .thumb { width: 100%; height: 100%; object-fit: cover; }
/* Looping clips (the trailer box and the clips in the text): no controls; a click or Enter/Space pauses them. */
.loop { display: block; width: 100%; background: var(--ink); cursor: pointer; }
.loop:focus-visible { outline-offset: -3px; }
.detail-media .trailer { height: 100%; object-fit: cover; }
/* Sound button on clips that have a sound track, top right over the picture. Fixed colours: it sits on video. */
.loop-wrap { position: relative; }
.detail-media .loop-wrap { height: 100%; }
.sound-toggle {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(9, 12, 8, 0.72); color: #F5F7F3; cursor: pointer;
}
.sound-toggle:hover { background: rgba(9, 12, 8, 0.9); }
.sound-toggle:focus-visible { outline: 2px solid #F5F7F3; outline-offset: 0; box-shadow: 0 0 0 5px #090C08; }
.sound-toggle[aria-pressed="false"] .sound-icon--on, .sound-toggle[aria-pressed="true"] .sound-icon--off { display: none; }
.install-link { margin: 10px 0 0; font-weight: 600; }
.detail-media .slot-title { font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.detail-info h1 { margin-bottom: 8px; }
.detail-info .lede { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 20px 0 24px; font-size: 0.9375rem; }
.facts div { display: contents; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.dl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; }
.dl-file { color: var(--muted); font-size: 0.875rem; }
.dl-pending { padding: 12px 14px; background: var(--surface); border: 1.5px dashed var(--control); border-radius: var(--r-m); }
.dl-pending p { margin: 0; }
/* Downloads before the zips are up: a visibly disabled button. */
.btn-soon, .btn-soon:hover { background: var(--sunken); color: var(--text-2); border: 1.5px dashed var(--control); cursor: not-allowed; }
.btn-soon--hero, .btn-soon--hero:hover { background: rgba(9, 12, 8, 0.55); color: var(--hero-text); border-color: var(--hero-text-2); }
.online-exp { display: block; color: var(--muted); font-size: 0.875rem; }
.note-experimental { padding: 10px 14px; background: var(--sunken); border-left: 3px solid var(--control); border-radius: var(--r-s); }

/* Screenshots, clips and sliders placed in the description where the README puts them. */
.inline-media { margin: 1.25em 0 1.5em; max-width: 52rem; }
.inline-media img, .inline-media .loop { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-m); background: var(--sunken); }
.inline-media figcaption { margin-top: 8px; font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
.zoom { display: block; border-radius: var(--r-m); cursor: zoom-in; }
.zoom:focus-visible { outline-offset: 3px; }
.prose li .inline-media { margin-block: 0.75em 1em; }

/* Larger view of a screenshot: a native dialog, so Escape closes it and focus goes back to the picture. */
.zoom-dialog { width: min(96vw, 1600px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: var(--r-l); background: var(--ink); color: var(--on-ink); }
.zoom-dialog::backdrop { background: rgba(9, 12, 8, 0.86); }
.zoom-dialog img { display: block; width: 100%; height: auto; max-height: calc(94vh - 52px); object-fit: contain; }
.zoom-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 4px 14px; }
.zoom-caption { margin: 0; font-size: 0.875rem; color: var(--on-ink-2); }
.zoom-close {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: transparent; color: var(--on-ink); border: 1.5px solid var(--on-ink-2); border-radius: var(--r-m);
  font: 800 1.375rem/1 var(--font); cursor: pointer; --focus: #B9C6AE;
}
.zoom-close:hover { background: rgba(245, 247, 243, 0.12); }

/* Before/after slider: the range input covers the picture, so dragging anywhere and the arrow keys both move it. */
.compare-frame { position: relative; overflow: hidden; border-radius: var(--r-m); background: var(--sunken); }
.compare-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-before img { height: 100%; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #F5F7F3; box-shadow: 0 0 0 1px rgba(9, 12, 8, 0.45); pointer-events: none; }
.compare-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border-radius: 50%; background: #F5F7F3; box-shadow: 0 1px 4px rgba(9, 12, 8, 0.45);
  background-image: linear-gradient(90deg, transparent 11px, #474056 11px 13px, transparent 13px 23px, #474056 23px 25px, transparent 25px);
}
.compare-label {
  position: absolute; bottom: 12px; padding: 3px 9px; border-radius: var(--r-s);
  background: rgba(9, 12, 8, 0.78); color: #F5F7F3; font-size: 0.8125rem; font-weight: 600; pointer-events: none;
}
.compare-label--a { left: 12px; }
.compare-label--b { right: 12px; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(.compare-range:focus-visible) .compare-frame { outline: 3px solid var(--focus); outline-offset: 3px; }
.compare:has(.compare-range:focus-visible) .compare-handle::after { box-shadow: 0 0 0 3px var(--focus); }

.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; padding-block: 6px; border-block: 1px solid var(--line); }
.jump-label { margin: 0; color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: var(--r-m); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.jump a:hover { background: var(--sunken); text-decoration: underline; }
.detail-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 48px; }
@media (min-width: 64rem) {
  .detail-body { grid-template-columns: 13rem minmax(0, 1fr); }
  .detail-body .jump { position: sticky; top: 16px; align-self: start; display: block; padding: 20px 0 0; border: 0; }
  .detail-body .jump-label { margin-bottom: 4px; }
  .detail-body .jump ul { flex-direction: column; }
  .detail-body .jump a { padding: 0 10px; margin-left: -10px; }
  .detail-body .part:first-child { padding-top: 20px; }
}
.part { padding-block: 28px 20px; border-bottom: 1px solid var(--line); }
.part:last-child { border-bottom: 0; }
.more--rest { margin-top: 4px; }
.part > h2 { scroll-margin-top: 12px; }
.back { margin: 28px 0 56px; font-weight: 600; }

/* Long text from the READMEs */
.prose > p, .prose > ul, .prose > ol, .prose > h3, .prose > h4, .prose > pre, .prose li { max-width: 72ch; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.35em; }
.prose li > ul, .prose li > ol { margin: 0.35em 0 0; }
.prose h3 { margin-top: 1.6em; }
.prose h4 { margin-top: 1.4em; }
.prose > :last-child { margin-bottom: 0; }
.steps { counter-reset: none; }
.steps li { padding-left: 4px; margin-bottom: 0.6em; }

.table-wrap { position: relative; overflow-x: auto; margin: 0 0 1.25em; max-width: 64rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { padding: 8px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--sunken); }
tbody tr:last-child > * { border-bottom: 0; }
.contents tr.sub > * { padding-top: 4px; padding-bottom: 4px; }
.contents .sub-name { display: inline-block; padding-left: 18px; font-weight: 400; }
@media (max-width: 40rem) {
  .table--stack table, .table--stack tbody, .table--stack tr, .table--stack th, .table--stack td { display: block; }
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table--stack tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack th, .table--stack td { padding: 2px 0; border: 0; }
  .table--stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
  .table--stack td[data-empty] { display: none; }
  .contents .sub-name { padding-left: 12px; }
}

/* Collapsed sections (settings, technical notes) */
details.more > summary, details.qa > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details.more > summary {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  background: var(--surface); color: var(--text-2);
  border: 1.5px solid var(--control); border-radius: var(--r-m); font-weight: 600;
}
details.more > summary:hover { background: var(--sunken); }
details.more > summary::before { content: "+"; font-weight: 800; }
details.more[open] > summary::before { content: "\2212"; }
details.more[open] > summary { margin-bottom: 18px; }
.when-open { display: none; }
details[open] > summary .when-open { display: inline; }
details[open] > summary .when-closed { display: none; }

.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 56px; }
@media (min-width: 60rem) {
  .faq-layout { grid-template-columns: 14rem minmax(0, 1fr); gap: 48px; }
  .faq-nav { position: sticky; top: 16px; align-self: start; }
  .faq-nav ul { flex-direction: column; align-items: stretch; }
}
.faq-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.faq-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  font-weight: 600; text-decoration: none;
}
.faq-nav a:hover { border-color: var(--control); text-decoration: underline; }
.faq-group { margin-bottom: 36px; scroll-margin-top: 12px; }
.faq-group h2 { margin-bottom: 4px; }
.qa { border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.qa > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 10px 0; }
.qa > summary h3 { margin: 0; font-size: 1.0625rem; }
.qa > summary:hover h3 { text-decoration: underline; }
.qa > summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px;
  border: 1.5px solid var(--control); border-radius: var(--r-s); color: var(--text-2); font-weight: 800;
}
.qa[open] > summary::after { content: "\2212"; }
.qa .answer { padding: 0 0 20px; }

.disclaimer { background: var(--brand); color: #FFFFFF; padding-block: 40px; --focus: #B9C6AE; --link: #FFFFFF; }
@media (min-width: 56rem) { .disclaimer { padding-block: 52px; } }
.disclaimer h2 { margin: 0; color: #B9C6AE; }
.disclaimer p { max-width: 62ch; }
.disclaimer p:last-child { margin-bottom: 0; }

/* Thank-you letter: a quiet band after the disclaimer, set like a short letter. */
.thanks { background: var(--surface); padding-block: 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 56rem) { .thanks { padding-block: 52px; } }
.thanks h2 { margin: 0; }
.thanks-letter p { max-width: 62ch; font-size: 1.0625rem; }
.thanks-letter .thanks-sign { margin: 1.25em 0 0; color: var(--text-2); font-style: italic; }

.about { padding-bottom: 56px; }
.mod-list { padding-left: 1.2em; }
.placeholder { padding: 14px 16px; background: var(--surface); border: 2px dashed var(--control); border-radius: var(--r-m); max-width: 72ch; }
.placeholder p { margin: 0; }
.placeholder-label { margin-bottom: 4px !important; font-weight: 600; font-size: 0.875rem; color: var(--text-2); }

.not-found { padding-bottom: 72px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { background: var(--ink); color: var(--on-ink); padding-block: 36px 24px; border-top: 1px solid #2E2D36; --focus: #B9C6AE; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 48px; }
.footer-brand p { margin: 0 0 4px; color: var(--on-ink-2); }
.footer-brand .wordmark--footer { min-height: 0; margin-bottom: 4px; color: var(--on-ink); }
.footer-version { display: flex; align-items: center; gap: 8px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--on-ink); font-weight: 600; }
.footer-nav a:hover { color: #B9C6AE; }
.footer-legal { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #2E2D36; color: var(--on-ink-2); font-size: 0.875rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media (forced-colors: active) {
  .chip[aria-pressed="true"] { outline: 2px solid CanvasText; }
  .ver, .tag { border: 1px solid CanvasText; }
}
