/* GTA Club theme stylesheet. Tokens mirror brand/brand.json (see design/home/design-tokens.css).
   Lime is a fill and always carries ink text. Links on light use forest. Red only for spoilers and warnings. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-latin-var.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; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/space-grotesk-latin-var.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; }
:root {
  /* --- Brand palette (never change here without changing brand.json) --- */
  --gc-ink: #0E1210;
  --gc-ink-soft: #2B332E;
  --gc-lime: #B8F13A;
  --gc-lime-deep: #8FC41F;
  --gc-forest: #14532D;
  --gc-paper: #F6F8F2;
  --gc-card: #FFFFFF;
  --gc-line: #E1E7DA;
  --gc-signal: #FF3B4E;
  --gc-sun: #FFC53D;

  /* --- Semantic colours: light --- */
  --bg: var(--gc-paper);
  --surface: var(--gc-card);
  --surface-2: #ECF1E4;            /* quiet fills: chips, table heads, placeholders */
  --text: var(--gc-ink);
  --text-muted: #4D5952;           /* 7.0:1 on paper */
  --border: var(--gc-line);        /* decorative dividers and card edges */
  --border-strong: #C3CDB9;
  --border-control: #6E7C72;       /* inputs, checkboxes: 3:1 against the surface */
  --link: var(--gc-forest);
  --link-hover: #0B3A1D;
  --accent: var(--gc-lime);        /* fill only */
  --accent-hover: #A9E425;
  --on-accent: var(--gc-ink);
  --accent-graphic: var(--gc-forest); /* bars, progress, icons that must read on light */
  --accent-wash: #EAF7C8;          /* pale lime tint behind ink text */
  --warn: var(--gc-signal);        /* fill only, ink text on top */
  --on-warn: var(--gc-ink);
  --warn-text: #B4142A;            /* red as text on light, 6.4:1 */
  --warn-wash: #FFECEE;
  --sun: var(--gc-sun);            /* rumour / unverified flags, ink text on top */
  --on-sun: var(--gc-ink);
  --focus: var(--gc-forest);

  /* --- "Slab": the ink panel used for hero, tracker teaser and footer.
         It stays dark in both themes. --- */
  --slab-bg: var(--gc-ink);
  --slab-surface: #171D19;
  --slab-text: #F1F5EC;
  --slab-muted: #A9B5AC;
  --slab-line: #2B332E;

  /* --- Typography --- */
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-2xs: 0.6875rem;  /* 11  labels, plate text */
  --fs-xs: 0.75rem;     /* 12 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md: 1.125rem;    /* 18 */
  --fs-lg: 1.25rem;     /* 20 */
  --fs-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.35rem + 1.8vw, 2.625rem);
  --fs-3xl: clamp(2.375rem, 1.5rem + 4vw, 4.5rem);

  --lh-tight: 1.05;
  --lh-snug: 1.25;
  --lh-body: 1.6;
  --tracking-display: -0.025em;
  --tracking-label: 0.08em;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* --- Spacing (4 px base) --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-gap: clamp(3rem, 2rem + 4vw, 5.5rem);

  /* --- Layout --- */
  --wrap: 77.5rem;      /* 1240 px content width */
  --gutter: clamp(1rem, 0.5rem + 2.2vw, 2rem);
  --tap: 2.75rem;       /* 44 px minimum touch target */

  /* --- Radius --- */
  --r-xs: 0.375rem;
  --r-sm: 0.625rem;
  --r-md: 0.875rem;
  --r-lg: 1.25rem;
  --r-xl: 1.75rem;
  --r-pill: 999px;

  /* --- Shadows --- */
  --shadow-1: 0 1px 2px rgba(14, 18, 16, 0.06);
  --shadow-2: 0 6px 20px -8px rgba(14, 18, 16, 0.18), 0 1px 2px rgba(14, 18, 16, 0.06);
  --shadow-pop: 0 24px 48px -16px rgba(14, 18, 16, 0.28), 0 2px 6px rgba(14, 18, 16, 0.08);
  --shadow-key: 0 3px 0 var(--gc-ink);   /* the hard "keycap" edge on primary buttons */

  /* --- Motion --- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 160ms;

  color-scheme: light;
}

/* --- Semantic colours: dark (OS preference) --- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1210;
    --surface: #171D19;
    --surface-2: #1F2722;
    --text: #F1F5EC;
    --text-muted: #A9B5AC;
    --border: #2B332E;
    --border-strong: #3C4740;
    --border-control: #7A887E;
    --link: #B8F13A;
    --link-hover: #D2FA78;
    --accent-graphic: #B8F13A;
    --accent-wash: #232E14;
    --warn-text: #FF8894;
    --warn-wash: #2B1518;
    --focus: #B8F13A;
    --slab-bg: #171D19;
    --slab-surface: #1F2722;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 6px 20px -8px rgba(0, 0, 0, 0.6);
    --shadow-pop: 0 24px 48px -16px rgba(0, 0, 0, 0.75);
    --shadow-key: 0 3px 0 #5E8610;
    color-scheme: dark;
  }
}

/* --- Semantic colours: dark (explicit toggle). Keep in sync with the block above. --- */
:root[data-theme="dark"] {
  --bg: #0E1210;
  --surface: #171D19;
  --surface-2: #1F2722;
  --text: #F1F5EC;
  --text-muted: #A9B5AC;
  --border: #2B332E;
  --border-strong: #3C4740;
  --border-control: #7A887E;
  --link: #B8F13A;
  --link-hover: #D2FA78;
  --accent-graphic: #B8F13A;
  --accent-wash: #232E14;
  --warn-text: #FF8894;
  --warn-wash: #2B1518;
  --focus: #B8F13A;
  --slab-bg: #171D19;
  --slab-surface: #1F2722;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 6px 20px -8px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 24px 48px -16px rgba(0, 0, 0, 0.75);
  --shadow-key: 0 3px 0 #5E8610;
  color-scheme: dark;
}
/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-display);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); }
img, svg { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--sp-4); top: -4rem; z-index: 100; background: var(--accent); color: var(--on-accent); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); font-weight: var(--fw-semibold); text-decoration: none; }
.skip-link:focus { top: var(--sp-3); color: var(--on-accent); }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 1.75rem; height: 1.75rem; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--tap); padding: 0 var(--sp-5);
  border: 1.5px solid var(--gc-ink); border-radius: var(--r-sm);
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-base); letter-spacing: -0.01em;
  text-decoration: none; box-shadow: var(--shadow-key);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur);
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--gc-ink); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--text); box-shadow: none; }
.btn--secondary:hover { background: var(--surface-2); color: var(--text); }
.btn--ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--link); padding-inline: var(--sp-3); }
.btn--ghost:hover { background: var(--surface-2); color: var(--link-hover); }
.btn--warn { background: var(--warn); color: var(--on-warn); }
.btn--warn:hover { background: #FF5767; color: var(--on-warn); }
.btn--sm { min-height: 2.25rem; padding-inline: var(--sp-3); font-size: var(--fs-sm); box-shadow: 0 2px 0 var(--gc-ink); }
.btn--sm.btn--secondary, .btn--sm.btn--ghost { box-shadow: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.icon-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--text); }
.icon-btn:hover { background: var(--surface-2); }
[data-theme-toggle] .icon-sun, [data-theme-toggle][aria-pressed="true"] .icon-moon { display: none; }
[data-theme-toggle][aria-pressed="true"] .icon-sun { display: block; }
.more { display: inline-flex; align-items: center; gap: var(--sp-1); font-weight: var(--fw-semibold); font-size: var(--fs-sm); text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.more .icon { transition: transform var(--dur) var(--ease); }
.more:hover .icon { transform: translateX(3px); }

/* ---------- Chips, tags, plates ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.1875rem 0.625rem; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--text);
  font-size: var(--fs-xs); font-weight: var(--fw-medium); line-height: 1.5; white-space: nowrap; text-decoration: none;
  border: 1px solid transparent;
}
a.chip:hover { border-color: var(--text); color: var(--text); }
.chip--outline { background: transparent; border-color: var(--border-strong); }
.chip--accent { background: var(--accent); color: var(--on-accent); }
.chip--verified { background: var(--accent-wash); color: var(--text); }
.chip--spoiler, .chip--missable { background: var(--warn); color: var(--on-warn); font-weight: var(--fw-semibold); }
.chip--rumour { background: var(--sun); color: var(--on-sun); font-weight: var(--fw-semibold); }
.chip .icon { width: 0.875rem; height: 0.875rem; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
/* Toggleable filter chip (button) */
button.chip { min-height: 2.25rem; padding-inline: var(--sp-3); font-size: var(--fs-sm); border-color: var(--border-strong); background: var(--surface); }
button.chip:hover { border-color: var(--text); }
button.chip[aria-pressed="true"] { background: var(--gc-ink); color: #F1F5EC; border-color: var(--gc-ink); }
:root[data-theme="dark"] button.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) button.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); } }

/* Plate: the numbered badge used for missions, steps and set numbers */
.plate {
  display: inline-grid; place-items: center; min-width: 3.25rem; padding: 0.25rem 0.5rem;
  background: var(--accent); color: var(--on-accent);
  border: 1.5px solid var(--gc-ink); border-radius: var(--r-xs);
  font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.04em; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.plate--quiet { background: var(--surface); color: var(--text); border-color: var(--border-strong); }

/* Freshness line: "Last checked" */
.checked { padding-left: 0.875rem; font-size: var(--fs-xs); color: var(--text-muted); }
.checked::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin: 0 0.375rem 0.0625rem -0.875rem; border-radius: 50%; background: var(--gc-lime-deep); vertical-align: middle; }
.checked a { color: inherit; }
.checked--stale::before { background: var(--sun); }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: relative; z-index: 50; }
.header-top { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo actions" "search search"; gap: var(--sp-3); align-items: center; padding-block: var(--sp-3); }
.logo { grid-area: logo; display: inline-flex; color: var(--text); text-decoration: none; justify-self: start; border-radius: var(--r-sm); }
.logo .logo-img { height: 2.6rem; width: auto; display: block; }
.logo .logo-img--dark { display: none; }
:root[data-theme="dark"] .logo .logo-img--light { display: none; }
:root[data-theme="dark"] .logo .logo-img--dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .logo-img--light { display: none; } :root:not([data-theme="light"]) .logo .logo-img--dark { display: block; } }
.header-actions { grid-area: actions; display: flex; gap: var(--sp-2); align-items: center; }
.header-actions .btn { display: none; }

form.search { grid-area: search; position: relative; }
.search__field { display: flex; align-items: center; gap: var(--sp-2); height: 3rem; padding: 0 var(--sp-3) 0 var(--sp-4); background: var(--surface); border: 1.5px solid var(--text); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.search__field:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.search__field .icon { color: var(--text-muted); }
.search__input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: var(--fs-base); }
.search__input::placeholder { color: var(--text-muted); opacity: 1; }
.search__input::-webkit-search-cancel-button { display: none; }
kbd { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 0.375rem; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: var(--r-xs); background: var(--surface-2); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }
.search__field kbd { display: none; }

.search-panel { position: absolute; z-index: 60; top: calc(100% + var(--sp-2)); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: var(--shadow-pop); overflow: hidden; }
.search-panel--static { position: static; box-shadow: var(--shadow-2); }
.search-group + .search-group { border-top: 1px solid var(--border); }
.search-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4) var(--sp-1); font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.search-group__head b { color: var(--text); font-weight: 700; }
.search-group__head a { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.search-hit { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-4); min-height: var(--tap); color: var(--text); text-decoration: none; }
.search-hit:hover, .search-hit.is-active { background: var(--accent-wash); color: var(--text); }
.search-hit.is-active { box-shadow: inset 3px 0 0 var(--accent-graphic); }
.search-hit__icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--r-xs); background: var(--surface-2); flex: none; }
.search-hit__title { font-weight: var(--fw-semibold); font-size: var(--fs-sm); display: block; }
.search-hit__meta { font-size: var(--fs-xs); color: var(--text-muted); display: block; }
.search-hit mark { background: var(--accent); color: var(--on-accent); border-radius: 2px; padding: 0 1px; }
.search-panel__foot { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); align-items: center; justify-content: space-between; padding: var(--sp-3) var(--sp-4); background: var(--surface-2); font-size: var(--fs-xs); color: var(--text-muted); border-top: 1px solid var(--border); }
.search-panel__keys { display: none; gap: var(--sp-3); align-items: center; }
.search-panel__keys span { display: inline-flex; gap: 0.25rem; align-items: center; }
.search-empty { padding: var(--sp-5) var(--sp-4); font-size: var(--fs-sm); color: var(--text-muted); }
.search-try { padding: var(--sp-4); }
.search-try p { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: var(--sp-2); }

/* Navigation */
.nav { border-top: 1px solid var(--border); display: none; }
html:not(.js) .nav, .nav.is-open { display: block; }
.nav__list { padding-block: var(--sp-2); }
.nav__btn { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-1); width: 100%; min-height: var(--tap); padding: 0 var(--sp-2); background: none; border: 0; border-radius: var(--r-xs); font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-md); color: var(--text); text-decoration: none; text-align: left; }
.nav__btn:hover { color: var(--text); background: var(--surface-2); }
.nav__btn .icon { transition: transform var(--dur) var(--ease); }
.nav__item.is-open > .nav__btn .icon { transform: rotate(180deg); }
.mega { display: none; padding: var(--sp-2) var(--sp-2) var(--sp-4); }
.nav__item.is-open > .mega, html:not(.js) .nav__item:focus-within > .mega { display: block; }
.mega__grid { display: grid; gap: var(--sp-5); }
.mega__title { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); font-weight: 400; margin-bottom: var(--sp-2); }
.mega__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-1); }
.mega__tile { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2); min-height: var(--tap); border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-weight: var(--fw-medium); font-size: var(--fs-sm); }
.mega__tile:hover { background: var(--accent-wash); color: var(--text); }
.mega__tile .icon { color: var(--accent-graphic); }
.mega__tile small { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-muted); }
.mega__links a { display: block; padding: var(--sp-2); min-height: 2.5rem; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.mega__links a:hover { background: var(--accent-wash); }
.mega__links a span { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--text-muted); }

@media (min-width: 40rem) {
  .search__field kbd { display: inline-grid; }
  .search-panel__keys { display: flex; }
  .mega__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 60rem) {
  .site-header { position: sticky; top: 0; }
  .header-top { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search actions"; gap: var(--sp-6); padding-block: var(--sp-3); }
  form.search { max-width: 40rem; width: 100%; justify-self: center; }
  .header-actions .btn { display: inline-flex; }
  .menu-toggle { display: none; }
  .nav, html:not(.js) .nav { display: block; position: relative; }
  .nav__list { display: flex; gap: var(--sp-1); padding-block: var(--sp-1); margin-inline: calc(var(--sp-3) * -1); }
  .nav__btn { width: auto; font-size: var(--fs-base); padding: 0 var(--sp-3); min-height: 2.5rem; }
  .nav__item.is-open > .nav__btn { background: var(--gc-ink); color: #F1F5EC; }
  :root[data-theme="dark"] .nav__item.is-open > .nav__btn { background: var(--accent); color: var(--on-accent); }
  .nav__item--end { margin-left: auto; }
  .mega { position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border-strong); border-top: 3px solid var(--gc-ink); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--shadow-pop); }
  .mega__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: var(--sp-6); }
  .mega__grid--even { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mega__tile { padding: var(--sp-3); }
}
@media (min-width: 60rem) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav__item.is-open > .nav__btn { background: var(--accent); color: var(--on-accent); }
}

/* ---------- Sections ---------- */
main > section { margin-top: var(--section-gap); }
main > section:first-child { margin-top: var(--sp-5); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-3) var(--sp-5); margin-bottom: var(--sp-5); }
.sec-head h2 { font-size: var(--fs-2xl); }
.sec-head p.lede { color: var(--text-muted); max-width: 44rem; margin-top: var(--sp-2); }
.eyebrow { display: flex; align-items: center; gap: var(--sp-2); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-2); }
.eyebrow::before { content: ""; width: 0.625rem; height: 0.625rem; background: var(--accent); border: 1.5px solid var(--gc-ink); border-radius: 2px; }

/* ---------- Slab (ink panel) ---------- */
.slab { background: var(--slab-bg); color: var(--slab-text); border-radius: var(--r-xl); border: 1px solid var(--slab-line); --focus: var(--gc-lime); --text: var(--slab-text); --text-muted: var(--slab-muted); --border: var(--slab-line); --border-strong: #3C4740; --border-control: #7A887E; --surface: var(--slab-surface); --surface-2: #232B26; --link: var(--gc-lime); --link-hover: #D2FA78; --accent-graphic: var(--gc-lime); --accent-wash: #232E14; }
.slab .btn { border-color: var(--gc-lime); box-shadow: 0 3px 0 #5E8610; }
.slab .btn:active { box-shadow: none; }
.slab .btn--secondary { background: transparent; color: var(--slab-text); border-color: var(--slab-text); box-shadow: none; }
.slab .btn--secondary:hover { background: #232B26; }
.slab .eyebrow::before { border-color: var(--gc-lime); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); display: grid; gap: var(--sp-6); }
.hero::before { /* survey grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(241, 245, 236, 0.055) 1px, transparent 1px), linear-gradient(to bottom, rgba(241, 245, 236, 0.055) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  -webkit-mask-image: radial-gradient(120% 90% at 100% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(120% 90% at 100% 0%, #000 0%, transparent 70%);
}
.hero__contours { position: absolute; right: -6rem; bottom: -8rem; width: 38rem; max-width: none; color: var(--gc-lime); opacity: 0.16; pointer-events: none; }
.hero > :not(.hero__contours) { position: relative; }
.hero__copy { min-width: 0; align-self: center; }
.hero h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; background: var(--gc-lime); color: var(--gc-ink); padding: 0 0.12em; border-radius: 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__lede { font-size: var(--fs-md); color: var(--slab-muted); max-width: 34rem; margin-top: var(--sp-4); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.hero__counts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--sp-5); margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--slab-line); }
.hero__counts dt { font-size: var(--fs-xs); color: var(--slab-muted); }
.hero__counts dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); letter-spacing: -0.02em; }

/* Status board */
.status { background: var(--slab-surface); border: 1px solid var(--slab-line); border-radius: var(--r-lg); overflow: hidden; align-self: center; min-width: 0; }
.status__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--slab-line); }
.status__head h2 { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; font-weight: 400; color: var(--slab-muted); }
.status__pill { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.125rem 0.625rem; border-radius: var(--r-pill); background: var(--gc-lime); color: var(--gc-ink); font-size: var(--fs-xs); font-weight: 700; }
.status__pill::before { content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--gc-ink); }
.status__main { padding: var(--sp-5) var(--sp-4); }
.status__label { font-size: var(--fs-xs); color: var(--slab-muted); }
.status__big { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-2xl); letter-spacing: -0.03em; line-height: 1.1; margin-top: var(--sp-1); }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); margin-top: var(--sp-4); }
.countdown div { background: var(--gc-ink); border: 1px solid var(--slab-line); border-radius: var(--r-sm); padding: var(--sp-3) var(--sp-1); text-align: center; }
.countdown b { display: block; font-family: var(--font-mono); font-size: var(--fs-xl); font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--gc-lime); }
.countdown span { font-size: var(--fs-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--slab-muted); }
.status__rows { margin: 0; border-top: 1px solid var(--slab-line); }
.status__rows div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--slab-line); font-size: var(--fs-sm); }
.status__rows dt { color: var(--slab-muted); }
.status__rows dd { margin: 0; font-weight: var(--fw-semibold); text-align: right; }
.status__foot { padding: var(--sp-3) var(--sp-4); }
.status__foot.checked { padding-left: calc(var(--sp-4) + 0.875rem); }

@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: var(--sp-7); }
}

/* ---------- Cards (shared shell) ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: border-color var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur); }
.card:hover { border-color: var(--text); box-shadow: var(--shadow-2); }
.card__body { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4); flex: 1; }
.card__kicker { display: flex; align-items: center; gap: var(--sp-2); font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.card__kicker .icon { width: 0.875rem; height: 0.875rem; color: var(--accent-graphic); }
.card__title { font-size: var(--fs-md); line-height: 1.25; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.card__title a:hover { text-decoration: underline; }
.card:has(.card__title a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.card__title a:focus-visible { outline: none; }
.card__text { font-size: var(--fs-sm); color: var(--text-muted); }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-2); }
.card .chips, .card .spoiler-btn { position: relative; z-index: 1; }
.card--row { flex-direction: row; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); }
.card--row .card__body { padding: 0; gap: 0.125rem; min-width: 0; }
.tile-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-sm); background: var(--surface-2); color: var(--accent-graphic); flex: none; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0.125rem var(--sp-3); margin: 0; font-size: var(--fs-sm); }
.facts dt { color: var(--text-muted); }
.facts dd { margin: 0; font-weight: var(--fw-medium); text-align: right; }
.price { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Placeholder media block. In the theme this becomes <img> with the same ratio classes. */
.ph { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; color: rgba(241, 245, 236, 0.75); overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px), linear-gradient(160deg, #1F6B3B 0%, #14532D 45%, #0E1210 100%); }
.ph--b { background: repeating-linear-gradient(45deg, rgba(14, 18, 16, 0.07) 0 2px, transparent 2px 14px), linear-gradient(200deg, #D8F98A 0%, #B8F13A 40%, #8FC41F 100%); color: rgba(14, 18, 16, 0.7); }
.ph--c { background: repeating-linear-gradient(135deg, rgba(14, 18, 16, 0.07) 0 2px, transparent 2px 14px), linear-gradient(170deg, #FFE08A 0%, #FFC53D 50%, #8FC41F 130%); color: rgba(14, 18, 16, 0.7); }
.ph--d { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 14px), linear-gradient(150deg, #2B332E 0%, #171D19 55%, #14532D 140%); }
.ph--e { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px), linear-gradient(20deg, #0E1210 0%, #14532D 55%, #8FC41F 130%); }
.ph--sq { aspect-ratio: 1; }
.ph--43 { aspect-ratio: 4 / 3; }
.ph--tall { aspect-ratio: 3 / 4; }
.ph--wide { aspect-ratio: 21 / 9; }
.ph .icon { width: 2rem; height: 2rem; opacity: 0.8; }
.ph__label { position: absolute; left: var(--sp-2); bottom: var(--sp-2); font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.04em; background: rgba(14, 18, 16, 0.72); color: #F1F5EC; padding: 0.125rem 0.375rem; border-radius: 3px; }
.ph__badge { position: absolute; left: var(--sp-2); top: var(--sp-2); }
.credit { font-size: var(--fs-2xs); color: var(--text-muted); }

/* Stat bars */
.stats { display: grid; gap: 0.375rem; margin: 0; }
.stat { display: grid; grid-template-columns: 5.5rem 1fr 2rem; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); }
.stat dt { color: var(--text-muted); }
.stat dd { margin: 0; display: contents; }
.bar { height: 0.375rem; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; width: calc(var(--v) * 1%); background: var(--accent-graphic); border-radius: inherit; }
.stat b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; font-weight: 700; }

/* ---------- Quick answers ---------- */
.answers { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.answer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); border-top: 3px solid var(--gc-ink); }
:root[data-theme="dark"] .answer { border-top-color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .answer { border-top-color: var(--accent); } }
.answer h3 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: var(--fw-medium); letter-spacing: 0; color: var(--text-muted); }
.answer__a { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); line-height: 1.2; letter-spacing: -0.02em; }
.answer__more { font-size: var(--fs-sm); color: var(--text-muted); }
.answer .checked { margin-top: auto; padding-top: var(--sp-2); }

/* ---------- Start here ---------- */
.steps { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); counter-reset: step; }
.step { counter-increment: step; }
.step .card__body { padding-top: var(--sp-5); }
.step__num { font-family: var(--font-display); font-weight: 700; font-size: 3.5rem; line-height: 0.9; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step:first-child { background: var(--accent); border-color: var(--gc-ink); --text: var(--gc-ink); --text-muted: #2B332E; --surface-2: rgba(14, 18, 16, 0.1); color: var(--gc-ink); --focus: var(--gc-ink); }
.step:first-child .step__num { color: var(--gc-ink); -webkit-text-stroke: 0; }

/* ---------- Missions ---------- */
.switch { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: var(--fw-medium); min-height: var(--tap); cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 2.75rem; height: 1.5rem; border-radius: var(--r-pill); background: var(--surface); border: 1.5px solid var(--border-control); position: relative; margin: 0; cursor: pointer; transition: background var(--dur); }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 1rem; height: 1rem; border-radius: 50%; background: var(--border-control); transition: transform var(--dur) var(--ease), background var(--dur); }
.switch input:checked { background: var(--warn); border-color: var(--gc-ink); }
.switch input:checked::after { transform: translateX(1.25rem); background: var(--gc-ink); }

.missions { display: grid; gap: var(--sp-2); }
.mission { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--sp-2) var(--sp-4); padding: var(--sp-3) var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); position: relative; transition: border-color var(--dur); }
.mission:hover { border-color: var(--text); }
.mission :is(h3, h4) { font-size: var(--fs-md); }
.mission :is(h3, h4) a { color: var(--text); text-decoration: none; }
.mission :is(h3, h4) a:hover { text-decoration: underline; }
.mission__meta { font-size: var(--fs-sm); color: var(--text-muted); }
.mission__chips { grid-column: 1 / -1; }
@media (min-width: 48rem) {
  .mission { grid-template-columns: auto minmax(0, 1fr) auto; }
  .mission__chips { grid-column: auto; justify-content: flex-end; }
}
.missions-layout { display: grid; gap: var(--sp-5); }
.chapter-rail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); align-self: start; }
.chapter-rail h3 { font-size: var(--fs-base); margin-bottom: var(--sp-3); }
.chapter-rail li a { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; min-height: 2.5rem; align-items: center; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.chapter-rail li a:hover { color: var(--link); text-decoration: underline; }
.chapter-rail li a span { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }
@media (min-width: 60rem) { .missions-layout { grid-template-columns: minmax(0, 1fr) 18rem; } }

/* ---------- Spoilers ---------- */
.spoiler { position: relative; border-left: 4px solid var(--warn); background: var(--warn-wash); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: var(--sp-3) var(--sp-4); }
.spoiler__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3); }
.spoiler__label { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--warn-text); }
.spoiler__content { margin-top: var(--sp-3); transition: filter var(--dur); }
html.js .spoiler:not(.is-revealed) .spoiler__content,
html.js .spoiler-inline:not(.is-revealed) { filter: blur(7px); user-select: none; pointer-events: none; }
html.js[data-spoilers="show"] .spoiler .spoiler__content,
html.js[data-spoilers="show"] .spoiler-inline { filter: none; user-select: auto; pointer-events: auto; }
.spoiler-btn { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.25rem; padding: 0 var(--sp-3); border: 1.5px solid var(--gc-ink); border-radius: var(--r-pill); background: var(--warn); color: var(--on-warn); font-size: var(--fs-xs); font-weight: 700; }
.spoiler-btn:hover { background: #FF5767; }
html:not(.js) .spoiler-btn { display: none; }

/* ---------- Featured vehicles / weapons ---------- */
.split { display: grid; gap: var(--sp-6); }
.split h3.split__title { font-size: var(--fs-lg); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.grid-2 { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.grid-3 { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.stack { display: grid; gap: var(--sp-2); }
.weapon { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-2) var(--sp-3); align-items: center; padding: var(--sp-3) var(--sp-4); }
.weapon .stats { grid-column: 1 / -1; }
.weapon__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); }
@media (min-width: 60rem) { .split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }

/* ---------- Collectibles tracker teaser ---------- */
.tracker { padding: clamp(1.5rem, 1rem + 3vw, 3rem); display: grid; gap: var(--sp-6); }
.tracker h2 { font-size: var(--fs-2xl); }
.tracker p.lede { color: var(--slab-muted); margin-top: var(--sp-3); max-width: 32rem; }
.sets { display: grid; gap: var(--sp-3); }
.set { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-1) var(--sp-3); align-items: center; font-size: var(--fs-sm); }
.set__name { font-weight: var(--fw-semibold); display: flex; align-items: center; gap: var(--sp-2); }
.set__count { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--slab-muted); }
.set .bar { grid-column: 1 / -1; height: 0.5rem; }
.try { background: var(--slab-surface); border: 1px solid var(--slab-line); border-radius: var(--r-lg); padding: var(--sp-4); }
.try__title { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--slab-muted); margin-bottom: var(--sp-2); font-weight: 400; }
.tick { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--tap); padding: var(--sp-1) 0; border-top: 1px solid var(--slab-line); font-size: var(--fs-sm); cursor: pointer; }
.tick input { appearance: none; -webkit-appearance: none; width: 1.375rem; height: 1.375rem; margin: 0; border: 1.5px solid var(--border-control); border-radius: var(--r-xs); background: transparent; display: grid; place-items: center; flex: none; cursor: pointer; }
.tick input:checked { background: var(--accent); border-color: var(--accent); }
.tick input:checked::after { content: ""; width: 0.6rem; height: 0.35rem; border-left: 2.5px solid var(--gc-ink); border-bottom: 2.5px solid var(--gc-ink); transform: rotate(-45deg) translate(1px, -1px); }
.tick input:checked + span { text-decoration: line-through; color: var(--text-muted); }
.tick small { margin-left: auto; font-family: var(--font-mono); color: var(--text-muted); }
@media (min-width: 60rem) { .tracker { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--sp-8); } }

/* ---------- Guides ---------- */
.guides { display: grid; gap: var(--sp-3); }
.guide-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3); align-items: start; }
@media (min-width: 60rem) { .guides { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .guides .card--feature { grid-row: span 4; } }
.card--feature .card__title { font-size: var(--fs-xl); }
.answer-box { background: var(--accent-wash); border-left: 4px solid var(--gc-lime-deep); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); color: var(--text); }
.answer-box b { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; display: block; margin-bottom: 0.125rem; }

/* ---------- Strips (gallery, video) ---------- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 20rem); gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: var(--sp-3); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.strip > * { scroll-snap-align: start; }
.strip figure { margin: 0; }
.strip figure .ph { border-radius: var(--r-md); }
.strip figcaption { margin-top: var(--sp-2); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.strip figcaption a { color: var(--text); text-decoration: none; }
.strip figcaption a:hover { text-decoration: underline; }
.strip figcaption .credit { display: block; font-weight: 400; }
.strip--video { grid-auto-columns: min(82%, 24rem); }
.play { position: absolute; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--gc-lime); color: var(--gc-ink); border: 1.5px solid var(--gc-ink); box-shadow: 0 3px 0 var(--gc-ink); }
.play .icon { fill: currentColor; stroke: none; width: 1.25rem; height: 1.25rem; opacity: 1; margin-left: 3px; }
.duration { position: absolute; right: var(--sp-2); bottom: var(--sp-2); font-family: var(--font-mono); font-size: var(--fs-2xs); background: rgba(14, 18, 16, 0.8); color: #F1F5EC; padding: 0.125rem 0.375rem; border-radius: 3px; }
@media (min-width: 60rem) { .strip { grid-auto-columns: 19rem; } .strip--video { grid-auto-columns: calc((100% - 3 * var(--sp-3)) / 4); } }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--section-gap); background: var(--slab-bg); color: var(--slab-text); border-radius: var(--r-xl) var(--r-xl) 0 0; border: 0; border-top: 1px solid var(--slab-line); }
.footer-grid { display: grid; gap: var(--sp-6); padding-block: var(--sp-7) var(--sp-6); }
.footer-brand .logo { color: var(--slab-text); }
.disclaimer { margin-top: var(--sp-4); font-weight: var(--fw-semibold); max-width: 26rem; }
.footer-brand p + p { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--slab-muted); max-width: 26rem; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.footer-cols h2 { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; font-weight: 400; color: var(--slab-muted); margin-bottom: var(--sp-2); }
.footer-cols a { display: inline-block; padding: 0.375rem 0; color: var(--slab-text); text-decoration: none; font-size: var(--fs-sm); }
.footer-cols a:hover { color: var(--gc-lime); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); align-items: center; justify-content: space-between; padding-block: var(--sp-4); border-top: 1px solid var(--slab-line); font-size: var(--fs-xs); color: var(--slab-muted); }
@media (min-width: 60rem) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ==========================================================================
   Components used on inner pages (see components.html)
   ========================================================================== */

/* Breadcrumb */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); font-size: var(--fs-sm); }
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--sp-1); color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; color: var(--border-strong); font-family: var(--font-mono); }
.breadcrumb a { padding: 0.25rem 0.125rem; }
.breadcrumb [aria-current] { color: var(--text); font-weight: var(--fw-semibold); }

/* Filter bar */
.filterbar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); display: grid; gap: var(--sp-3); }
.filterbar__row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: end; }
.field { display: grid; gap: var(--sp-1); flex: 1 1 10rem; min-width: 0; }
.field--grow { flex: 3 1 14rem; }
.field label, .field__label { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-muted); }
.input, .select { height: var(--tap); width: 100%; padding: 0 var(--sp-3); background: var(--surface); border: 1.5px solid var(--border-control); border-radius: var(--r-sm); }
.select { appearance: none; -webkit-appearance: none; padding-right: 2.25rem; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 1.1rem) 50%, calc(100% - 0.8rem) 50%; background-size: 0.3rem 0.3rem; background-repeat: no-repeat; }
.segmented { display: inline-flex; border: 1.5px solid var(--border-control); border-radius: var(--r-sm); overflow: hidden; height: var(--tap); }
.segmented button { border: 0; background: var(--surface); padding: 0 var(--sp-3); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.segmented button + button { border-left: 1.5px solid var(--border-control); }
.segmented button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.segmented button:focus-visible { outline-offset: -3px; }
.filterbar__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--border); font-size: var(--fs-sm); }

/* Stat table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table caption { text-align: left; padding: var(--sp-3) var(--sp-4); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); }
.table th, .table td { padding: var(--sp-3) var(--sp-4); text-align: left; border-top: 1px solid var(--border); vertical-align: middle; }
.table thead th { background: var(--surface-2); font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; font-weight: 400; color: var(--text-muted); white-space: nowrap; }
.table tbody th { font-weight: var(--fw-medium); color: var(--text-muted); width: 34%; }
.table td.num, .table th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table .bar { min-width: 5rem; }
.table tbody tr:hover { background: var(--accent-wash); }
.table__sort { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; display: inline-flex; gap: 0.25rem; align-items: center; }
.table__sort[aria-pressed="true"] { color: var(--text); font-weight: 700; }

/* Pagination */
.pagination ul { display: flex; flex-wrap: wrap; gap: var(--sp-1); align-items: center; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: var(--tap); height: var(--tap); padding: 0 var(--sp-2); border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); text-decoration: none; font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 700; }
.pagination a:hover { border-color: var(--text); background: var(--surface-2); }
.pagination [aria-current="page"] { background: var(--accent); color: var(--on-accent); border-color: var(--gc-ink); }
.pagination .gap { border: 0; background: none; min-width: 1.5rem; }
.pagination .is-disabled { opacity: 0.45; }

/* FAQ accordion */
.faq { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-4); min-height: var(--tap); cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -3px; }
.faq summary::after { content: ""; flex: none; width: 0.625rem; height: 0.625rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details[open] summary { background: var(--accent-wash); }
.faq__a { padding: var(--sp-3) var(--sp-4) var(--sp-4); max-width: 46rem; }
.faq__a p:first-child { font-weight: var(--fw-semibold); }
.faq__a p + p { margin-top: var(--sp-2); color: var(--text-muted); }

/* Notice (missable / warning) */
.notice { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); background: var(--warn-wash); border: 1px solid var(--warn); font-size: var(--fs-sm); }
.notice .icon { color: var(--warn-text); margin-top: 0.125rem; }
.notice b { color: var(--warn-text); }

/* Cheat input keys */
.keys { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.keys kbd { min-width: 1.75rem; height: 1.75rem; font-weight: 700; color: var(--text); }

/* Trophy tiers (shape + label, not colour alone) */
.tier { display: inline-flex; align-items: center; gap: 0.375rem; font-size: var(--fs-xs); font-weight: 700; }
.tier::before { content: ""; width: 0.75rem; height: 0.75rem; border: 1.5px solid var(--text); transform: rotate(45deg); border-radius: 2px; }
.tier--gold::before { background: var(--sun); }
.tier--silver::before { background: var(--border-strong); }
.tier--bronze::before { background: #8A7A4A; }
.tier--platinum::before { background: var(--accent); }

/* Compare promo (dashed call-out card) */
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4); border: 1.5px dashed var(--border-control); border-radius: var(--r-md); }
.callout h4 { font-size: var(--fs-md); }
.callout p { font-size: var(--fs-sm); color: var(--text-muted); }

/* ==========================================================================
   Theme additions: inner pages (ported from design/pages/pages.css onto the tokens above)
   ========================================================================== */
body { overflow-x: clip; }
main { display: block; min-height: 50vh; }
img { height: auto; }
.header-actions .icon-btn { cursor: pointer; }
.hero__counts { grid-template-columns: repeat(2, auto); }
@media (min-width: 40rem) { .hero__counts { grid-template-columns: repeat(4, auto); } }
.mega__all { display: inline-flex; margin-top: var(--sp-3); }

/* Breadcrumb (own markup and Rank Math's) */
.breadcrumb { padding-top: var(--sp-4); }
.rank-math-breadcrumb p { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); font-size: var(--fs-sm); color: var(--text-muted); }
.rank-math-breadcrumb .separator { color: var(--border-strong); font-family: var(--font-mono); }
.rank-math-breadcrumb .last { color: var(--text); font-weight: var(--fw-semibold); }

/* Page head */
.page-head { padding: var(--sp-4) 0 var(--sp-5); }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; }
.page-head .lede { font-size: var(--fs-md); max-width: 62ch; margin-top: var(--sp-3); }
.tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-3); }
.tag { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.5625rem; border-radius: var(--r-xs); background: var(--surface-2); color: var(--text); border: 1px solid var(--border); font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; text-decoration: none; }
a.tag:hover { border-color: var(--text); color: var(--text); }
.tag .icon { width: 0.875rem; height: 0.875rem; }
.tag--lime { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
a.tag--lime:hover { color: var(--on-accent); border-color: var(--gc-ink); }
.tag--warn { background: var(--warn); color: var(--on-warn); border-color: var(--warn); }
.meta-line { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--text-muted); }
.meta-line span { display: inline-flex; gap: 0.375rem; align-items: center; }
.meta-line a { color: inherit; }

/* Layout */
.layout { display: grid; gap: var(--sp-6); }
.layout > * { min-width: 0; }
@media (min-width: 65rem) {
  .layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--sp-7); align-items: start; }
  .side-sticky { position: sticky; top: 7.5rem; max-height: calc(100vh - 8.5rem); overflow: auto; scrollbar-width: thin; }
}
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); }
.side-card + .side-card { margin-top: var(--sp-4); }
.side-card h2 { font-size: var(--fs-base); margin-bottom: var(--sp-2); }
.side-card .k { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.toc { border-left: 2px solid var(--border); }
.toc a { display: block; padding: 0.4375rem 0.75rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; font-size: var(--fs-sm); }
.toc a:hover { border-left-color: var(--gc-lime-deep); background: var(--surface-2); }
.linklist a { display: flex; justify-content: space-between; gap: var(--sp-3); align-items: center; min-height: 2.5rem; padding: var(--sp-2) 0; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.linklist a:hover { color: var(--link); text-decoration: underline; }
.linklist a[aria-current] { font-weight: 700; box-shadow: inset 3px 0 0 var(--gc-lime-deep); padding-left: var(--sp-3); }
.linklist .n { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); flex: none; }
.linklist a > span:first-child { display: flex; gap: var(--sp-3); min-width: 0; }

/* Short answer */
.shortanswer { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); overflow: hidden; }
.shortanswer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.shortanswer .label { font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 400; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-1); }
.shortanswer p:last-child { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: var(--fs-md); line-height: 1.45; max-width: 64ch; }
.entry-media { margin: var(--sp-5) 0 0; }
.entry-media img { display: block; width: 100%; border-radius: var(--r-md); background: var(--surface-2); }
.entry-media figcaption { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--text-muted); }
.perf { margin-top: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); }
.perf h2 { font-size: var(--fs-md); margin-bottom: var(--sp-3); }
.perf .stat { grid-template-columns: 7rem 1fr 2.5rem; font-size: var(--fs-sm); }
.perf .bar { height: 0.625rem; }

/* Prose: editor content and the blocks the plugin appends */
.prose { margin-top: var(--sp-5); font-size: 1.0625rem; overflow-wrap: break-word; }
.prose > * { max-width: 70ch; }
.prose > table, .prose > figure, .prose > .gc-prevnext, .prose > .wp-block-table, .prose > .gc-faq { max-width: none; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose table, .prose pre { margin: 0 0 1.15em; }
.prose h2 { font-size: var(--fs-xl); margin: 2em 0 0.6em; scroll-margin-top: 8rem; }
.prose h3 { font-size: var(--fs-lg); margin: 1.6em 0 0.5em; }
.prose h4 { font-size: var(--fs-md); margin: 1.4em 0 0.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--text-muted); }
.prose img { border-radius: var(--r-sm); }
.prose figcaption { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--sp-2); }
.prose blockquote { border-left: 4px solid var(--gc-lime-deep); padding: var(--sp-2) var(--sp-4); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose iframe { max-width: 100%; border: 0; border-radius: var(--r-md); }
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: var(--fs-sm); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.prose table tbody, .prose table thead { display: table; width: 100%; }
.prose th, .prose td { padding: var(--sp-3) var(--sp-4); text-align: left; border-top: 1px solid var(--border); vertical-align: top; }
.prose tr:first-child > * { border-top: 0; }
.prose thead th, .prose table:not(.gc-facts) tr:first-child th { background: var(--surface-2); font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; font-weight: 400; color: var(--text-muted); }
.prose .gc-facts th { width: 34%; font-weight: var(--fw-medium); color: var(--text-muted); }
.prose .gc-facts td { font-family: var(--font-display); font-weight: var(--fw-semibold); }
.gc-spoiler { display: block; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); background: var(--warn-wash); border: 1px solid var(--warn); font-size: var(--fs-sm); max-width: none !important; }
.gc-spoiler strong { color: var(--warn-text); }
.gc-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: var(--tap); padding: 0 var(--sp-5); border: 1.5px solid var(--gc-ink); border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-key); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur); }
.gc-btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.gc-btn:active { transform: translateY(3px); box-shadow: none; }
.gc-faq { border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); margin: 0 0 var(--sp-2); }
.gc-faq summary { position: relative; list-style: none; cursor: pointer; padding: var(--sp-3) 2.875rem var(--sp-3) var(--sp-4); min-height: var(--tap); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); line-height: 1.35; border-radius: var(--r-sm); }
.gc-faq summary::-webkit-details-marker { display: none; }
.gc-faq summary::after { content: ""; position: absolute; right: 1.125rem; top: 50%; width: 0.5625rem; height: 0.5625rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform var(--dur) var(--ease); }
.gc-faq[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.gc-faq[open] summary { background: var(--accent-wash); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.gc-faq p { margin: 0; padding: var(--sp-3) var(--sp-4) var(--sp-4); max-width: 70ch; }
.prose .gc-sources { list-style: decimal; font-size: var(--fs-sm); border-top: 3px solid var(--text); padding-top: var(--sp-3); max-width: none; }
.gc-sources a { overflow-wrap: anywhere; }
.gc-verified { display: inline-flex; padding: var(--sp-2) var(--sp-3); background: var(--surface-2); border-radius: var(--r-sm); }
.gc-verified small { font-size: var(--fs-sm); }
.gc-verified small::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.5rem; border-radius: 50%; background: var(--gc-lime-deep); vertical-align: middle; }
.gc-disclaimer { color: var(--text-muted); border-top: 1px solid var(--border); padding-top: var(--sp-3); max-width: none !important; }
.gc-disclaimer small { font-size: var(--fs-xs); }
/* Mission pager: the two links the plugin prints, as large previous / next cards */
.gc-prevnext { display: grid; gap: var(--sp-3); margin: var(--sp-7) 0 var(--sp-5); }
.gc-prevnext .gc-btn { display: grid; gap: var(--sp-1); justify-content: stretch; align-content: center; min-height: 6.5rem; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); font-size: var(--fs-xl); line-height: 1.15; letter-spacing: -0.02em; text-align: left; box-shadow: none; }
.gc-prevnext .gc-btn::before { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; }
.gc-prevnext [rel="prev"] { background: var(--surface); color: var(--text); border-color: var(--text); }
.gc-prevnext [rel="prev"]:hover { background: var(--surface-2); color: var(--text); }
.gc-prevnext [rel="prev"]::before { content: "Previous mission"; }
.gc-prevnext [rel="next"] { text-align: right; box-shadow: var(--shadow-key); }
.gc-prevnext [rel="next"]::before { content: "Next mission"; }
@media (min-width: 45rem) { .gc-prevnext { grid-template-columns: 1fr 1fr; } .gc-prevnext [rel="next"] { grid-column: 2; } }

/* Card media */
.card__media { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.card .ph .icon { width: 2.25rem; height: 2.25rem; }
.strip > .card { min-width: 0; }

/* Archive */
.filters { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.filters__row { display: grid; gap: var(--sp-2); }
.filters__label { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.filters details > summary { cursor: pointer; width: max-content; min-height: var(--tap); display: flex; align-items: center; gap: var(--sp-2); }
.filters details > summary::after { content: "+"; font-family: var(--font-mono); }
.filters details[open] > summary::after { content: "-"; }
a.chip { min-height: 2.25rem; padding-inline: var(--sp-3); font-size: var(--fs-sm); background: var(--surface); border-color: var(--border-strong); }
a.chip small { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-muted); }
a.chip[aria-current] { background: var(--accent); border-color: var(--gc-ink); color: var(--on-accent); font-weight: var(--fw-semibold); }
a.chip[aria-current] small { color: var(--on-accent); }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: end; padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.toolbar .count { margin-right: auto; align-self: center; font-family: var(--font-display); font-weight: var(--fw-semibold); }
.toolbar .count b { font-size: var(--fs-lg); }
.toolbar .field { flex: 1 1 12rem; max-width: 18rem; }
.group { margin-top: var(--sp-6); }
.group:first-of-type { margin-top: 0; }
.group-head { display: flex; align-items: baseline; gap: var(--sp-3); margin-bottom: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 2px solid var(--text); }
.group-head :is(h2, h3) { font-size: var(--fs-xl); }
.group-head .count { font-family: var(--font-mono); font-size: var(--fs-xs); background: var(--surface-2); border-radius: var(--r-pill); padding: 0.125rem 0.625rem; }
.group-head a { margin-left: auto; font-size: var(--fs-sm); font-weight: var(--fw-semibold); white-space: nowrap; }
.empty { padding: var(--sp-6) var(--sp-4); text-align: center; border: 1px dashed var(--border-control); border-radius: var(--r-md); color: var(--text-muted); }
.nav-links { display: flex; flex-wrap: wrap; gap: var(--sp-1); justify-content: center; margin-top: var(--sp-6); }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: var(--tap); height: var(--tap); padding: 0 var(--sp-3); border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); text-decoration: none; font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 700; }
.nav-links a.page-numbers:hover { border-color: var(--text); background: var(--surface-2); }
.nav-links .current { background: var(--accent); color: var(--on-accent); border-color: var(--gc-ink); }

/* Search page */
.big-search { display: flex; gap: var(--sp-2); max-width: 47.5rem; }
.big-search .search__field { flex: 1; min-width: 0; height: 3.5rem; }
.big-search .btn { padding-inline: var(--sp-4); }
.big-search .btn { min-height: 3.5rem; }
.results { display: grid; gap: var(--sp-2); }
@media (min-width: 54rem) { .results { grid-template-columns: 1fr 1fr; } }
.results .card__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Home extras */
.chapters { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.chapter-card { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--gc-ink); border-radius: var(--r-md); padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
:root[data-theme="dark"] .chapter-card { border-top-color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chapter-card { border-top-color: var(--accent); } }
.chapter-card h3 { font-size: var(--fs-lg); }
.chapter-card h3 a { color: var(--text); text-decoration: none; }
.chapter-card h3 a:hover { text-decoration: underline; }
.chapter-card .more { margin-top: auto; }
.mapteaser { position: relative; overflow: hidden; padding: clamp(1.5rem, 1rem + 3vw, 3rem); display: grid; gap: var(--sp-5); }
.mapteaser h2 { font-size: var(--fs-2xl); }
.mapteaser .lede { color: var(--slab-muted); margin-top: var(--sp-3); max-width: 34rem; }
.mapteaser > * { position: relative; }
.mapteaser .hero__contours { position: absolute; opacity: 0.22; right: -4rem; bottom: -10rem; }
.mapteaser .chips { align-content: center; }
.mapteaser a.chip { background: var(--slab-surface); color: var(--slab-text); border-color: var(--border-strong); }
.mapteaser a.chip:hover { border-color: var(--gc-lime); color: var(--slab-text); }
@media (min-width: 60rem) { .mapteaser { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; } }
.gallery { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.gallery img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { padding: var(--sp-2) var(--sp-3) var(--sp-3); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.gallery figcaption a { color: var(--text); }
.gallery figcaption .credit { display: block; font-weight: 400; }
.notfound { text-align: center; padding: var(--sp-8) 0 var(--sp-6); }
.notfound .plate { font-size: var(--fs-2xl); padding: var(--sp-2) var(--sp-4); }
.notfound h1 { margin-top: var(--sp-4); font-size: var(--fs-2xl); }
.notfound p { color: var(--text-muted); margin-top: var(--sp-2); }
.notfound .big-search { margin: var(--sp-5) auto 0; }
.notfound .chips { justify-content: center; margin-top: var(--sp-5); }
@media print { .site-header, .site-footer, aside, .filters, .toolbar { display: none !important; } }

/* Official screenshot galleries (added by media import) */
.gc-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin:16px 0 32px}
.gc-gallery figure{margin:0}
.gc-gallery img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:12px;display:block}
.gc-gallery figcaption{font-size:.75rem;opacity:.7;margin-top:4px}

/* ---- Home v2: image-led cards (2026-11-20) ---- */
.hero__mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--sp-3); min-height: 18rem; align-self: stretch; }
.mos { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg, 14px); background: #1c241f; border: 1px solid var(--slab-line); isolation: isolate; }
.mos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease, ease); z-index: -1; }
.mos::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(14,18,16,.82)); }
.mos span { position: absolute; left: .85rem; bottom: .7rem; z-index: 1; color: #fff; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.mos:hover img, .mos:focus-visible img { transform: scale(1.06); }
.mos--0 { grid-row: 1 / 3; }
@media (min-width: 60rem) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .hero__mosaic { min-height: 26rem; } }
@media (max-width: 40rem) { .hero__mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 12rem 8rem; } .mos--0 { grid-row: auto; grid-column: 1 / 3; } .mos--3 { display: none; } }

.tiles { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 10rem; padding: .9rem; overflow: hidden; border-radius: var(--r-md); background: var(--gc-forest); color: #fff; text-decoration: none; isolation: isolate; border: 1px solid var(--border); transition: transform var(--dur, .2s) var(--ease, ease), box-shadow var(--dur, .2s); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--ease, ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,18,16,0) 30%, rgba(14,18,16,.88)); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.tile:hover img { transform: scale(1.07); }
.tile__name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.1rem; line-height: 1.15; }
.tile__n { align-self: flex-start; margin-top: .35rem; padding: .1rem .55rem; border-radius: 999px; background: var(--gc-lime); color: var(--gc-ink); font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.chapter-card--img { padding-top: 0; overflow: hidden; }
.chapter-card__img { display: block; margin: 0 calc(var(--sp-4, 1.25rem) * -1) var(--sp-3); aspect-ratio: 16 / 7; overflow: hidden; }
.chapter-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease, ease); }
.chapter-card--img:hover .chapter-card__img img { transform: scale(1.05); }
.card__media { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* Whole box is clickable (stretched title link); inner links stay clickable above it. */
.chapter-card, .mission, .card--row { position: relative; }
.chapter-card h3 a::after, .mission h3 a::after, .mission h2 a::after, .card--row .card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.chapter-card .linklist a, .chapter-card .more, .mission .chips, .mission .chip, .card .chips a { position: relative; z-index: 1; }
.chapter-card, .mission, .card, .tile { cursor: pointer; }
.chapter-card:hover, .mission:hover { border-color: var(--text); }

/* Full logo: mark + wordmark in the header, complete emblem in the footer. */
.logo { align-items: center; gap: .55rem; }
.logo .logo-mark { height: 2.9rem; width: 2.9rem; display: block; }
.logo .logo-img { height: 2.1rem; }
.logo .logo-mark.logo-img--dark { display: none; }
:root[data-theme="dark"] .logo .logo-mark.logo-img--light { display: none; }
:root[data-theme="dark"] .logo .logo-mark.logo-img--dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .logo-mark.logo-img--light { display: none; } :root:not([data-theme="light"]) .logo .logo-mark.logo-img--dark { display: block; } }
.logo .logo-img--emblem { height: 9rem; width: auto; }
@media (max-width: 40rem) { .logo .logo-mark { height: 2.5rem; width: 2.5rem; } .logo .logo-img { height: 1.8rem; } }

/* Featured images carry a framed title bar in the bottom ~15%; crop it where the card already shows the title. */
.mos img, .tile img { height: 120%; object-position: center top; }
.chapter-card__img img { height: 120%; object-position: center top; }

/* ---------- Cast directory ---------- */
.cast-line { font-size: var(--fs-sm); color: var(--text-muted); position: relative; z-index: 1; margin: 0; }
.cast-line > span { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; margin-right: var(--sp-1); }
.cast-line a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.credit-badge { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); font-size: var(--fs-xs); font-weight: 600; color: var(--text); }
.credit-badge--confirmed { background: #E4F7B8; border-color: var(--gc-lime-deep); }
.credit-badge--listed { background: #FFF0C2; border-color: var(--gc-sun); }
.credit-badge--rumour { background: #FFDCE0; border-color: var(--gc-signal); }
.cast-box { margin: var(--sp-5) 0; padding: var(--sp-4); border: 1px solid var(--border-strong); border-left: 4px solid var(--gc-lime-deep); border-radius: var(--r-md); background: var(--surface); }
.cast-box__h { font-size: var(--fs-md); margin: 0 0 var(--sp-3); }
.cast-box__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.cast-box__item { display: flex; align-items: center; gap: var(--sp-3); }
.cast-box__img { flex: none; width: 4rem; height: 4rem; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.cast-box__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cast-box__role { display: block; font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.cast-box__name { font-weight: 700; color: var(--text); margin-right: var(--sp-2); }
.cast-box__badge { margin: var(--sp-3) 0 0; }
.gc-profiles { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.gc-profiles a { display: inline-block; padding: 0.3rem 0.8rem; border: 1px solid var(--border-strong); border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; }
.gc-profiles a:hover { border-color: var(--text); }
.mission-cast { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }

.chip .gc-pf { width: 1.05em; height: 1.05em; vertical-align: -.15em; margin-right: .3em; }

/* ===== 2026-11-21 polish: header note, hero page heads, image mega menu ===== */
.header-brand { grid-area: logo; display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.header-brand .logo { grid-area: auto; flex: none; }
.site-note { display: none; margin: 0; padding-left: var(--sp-3); border-left: 2px solid var(--accent-graphic); font-size: var(--fs-2xs); line-height: 1.35; color: var(--text-muted); max-width: 15rem; }
.site-note span { display: block; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text); font-weight: 600; }
@media (min-width: 40rem) { .site-note { display: block; } }
@media (min-width: 60rem) and (max-width: 75rem) { .site-note { max-width: 11rem; } }

.page-head--hero { position: relative; margin-top: var(--sp-2); padding: var(--sp-6) var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-lg); background: radial-gradient(60rem 14rem at 100% 0, var(--accent-wash), transparent 70%), var(--surface); overflow: hidden; }
.page-head--hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(var(--gc-lime), var(--gc-forest)); }
.page-head--hero .tags { margin-bottom: var(--sp-3); }
.prose--wide { max-width: none; }
.prose--wide > * { max-width: none; }
.gc-cl { max-width: none; margin: 0; }
.gc-cl table { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.gc-cl th { font-size: .72rem; }
.gc-cl .code { color: var(--link); }

/* Mega menu */
.mega__inner { display: grid; gap: var(--sp-4); }
.mega__badge { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-md); background: var(--gc-ink); color: var(--gc-lime); margin-bottom: var(--sp-2); }
.mega__badge .icon { width: 1.4rem; height: 1.4rem; }
.mega__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.15; margin: 0; }
.mega__blurb { margin: var(--sp-2) 0 0; color: var(--text-muted); font-size: var(--fs-sm); max-width: 28ch; }
.mega__browse .mega__title ~ .mega__title { margin-top: var(--sp-3); }
.mega__tile { border: 1px solid var(--border); background: var(--surface); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.mega__tile:hover { border-color: var(--accent-graphic); transform: translateY(-1px); }
.mega__tile span { flex: 1; min-width: 0; }
.mega__tile .gc-pf { width: 1.1em; height: 1.1em; flex: none; }
.mega__feat { display: none; }
.mega__cards { display: grid; gap: var(--sp-3); }
.mega__card { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/9; background: var(--surface-2); text-decoration: none; }
.mega__card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease); }
.mega__card:hover img { transform: scale(1.05); }
.mega__card span { position: absolute; inset: auto 0 0 0; padding: 1.6rem var(--sp-3) var(--sp-2); color: #fff; font-weight: 600; font-size: var(--fs-sm); line-height: 1.25; background: linear-gradient(transparent, rgba(8,12,10,.88)); }
@media (min-width: 60rem) {
  .mega { padding: var(--sp-5) var(--sp-6); }
  .mega__inner { grid-template-columns: 15rem minmax(0, 1fr) 19rem; gap: var(--sp-6); align-items: start; }
  .mega__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
  .mega__feat { display: block; }
  .mega__intro { padding-right: var(--sp-4); border-right: 1px solid var(--border); min-height: 100%; }
}

/* Cross-link + preview card */
a.gc-ref { text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--accent-graphic); }
a.gc-ref:hover { text-decoration-style: solid; }
.gc-peek { position: absolute; z-index: 90; width: 18rem; max-width: calc(100vw - 1rem); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: var(--shadow-pop); overflow: hidden; font-size: var(--fs-sm); }
.gc-peek img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.gc-peek__b { padding: var(--sp-3); display: grid; gap: .25rem; }
.gc-peek__t { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.gc-peek__b em { font-style: normal; color: var(--link); font-weight: 600; }
.gc-peek__b p { margin: 0; color: var(--text-muted); }
.gc-peek__a { display: flex; gap: var(--sp-3); margin-top: .25rem; font-weight: 600; }
.credit-why { color: var(--text-muted); margin-left: .35rem; }
.linklist__rich a { display: flex; align-items: center; gap: var(--sp-2); }
.linklist__img { width: 3.2rem; height: 3.2rem; border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--surface-2); }
.linklist__rich b { display: block; font-weight: 600; }
.linklist__rich em { display: block; font-style: normal; font-size: var(--fs-xs); color: var(--text-muted); }
.credit-badge--confirmed, .credit-badge--listed, .credit-badge--rumour { color: #14201A; }
.linklist__rich span { flex: 1; text-align: left; }

.toolstrip { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.toolcard { display: grid; gap: .25rem; padding: var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); text-decoration: none; color: var(--text); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.toolcard:hover { border-color: var(--accent-graphic); transform: translateY(-2px); }
.toolcard .icon { width: 1.6rem; height: 1.6rem; color: var(--accent-graphic); }
.toolcard b { font-family: var(--font-display); font-size: var(--fs-md); }
.toolcard span { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---- Songs: index list, listen block, played-on list ---- */
.song-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.song-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 2fr); gap: var(--sp-3); align-items: center; padding: var(--sp-3) var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); transition: border-color .15s ease, transform .15s ease; }
.song-row:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.song-row[hidden] { display: none; }
.song-row__main { display: grid; min-width: 0; }
.song-row__title { font-family: var(--font-display); font-weight: var(--fw-semibold); color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.song-row__title:hover { color: var(--link); text-decoration: underline; }
.song-row__artist, .song-row__album { color: var(--text-muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.song-row__meta { display: flex; gap: var(--sp-2); align-items: baseline; flex-wrap: wrap; min-width: 0; }
.song-row__year { font-variant-numeric: tabular-nums; font-weight: var(--fw-semibold); }
.song-row__stations { display: flex; flex-wrap: wrap; gap: var(--sp-1); justify-content: flex-end; }
.chip--sm { font-size: var(--fs-xs, .75rem); padding: 2px 8px; }
@media (max-width: 720px) {
	.song-row { grid-template-columns: 1fr; gap: var(--sp-1); }
	.song-row__stations { justify-content: flex-start; }
}
.gc-listen { margin: var(--sp-5) 0; padding: var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg, 16px); }
.gc-listen h2 { margin-top: 0; }
.gc-listen__grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.gc-listen__box iframe { width: 100%; display: block; }
.gc-listen__yt { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.gc-listen__yt iframe { position: absolute; inset: 0; height: 100%; }
.gc-listen__links { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-3) 0 0; }
.gc-played-on { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.gc-played-on li { padding: var(--sp-2) var(--sp-3); background: var(--surface-2); border-radius: var(--r-md); }
.gc-played-on small { color: var(--text-muted); margin-left: var(--sp-2); }

.gc-listen__hint { color: var(--text-muted); margin: 0 0 var(--sp-3); font-size: var(--fs-sm); }
.gc-listen__tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.gc-listen__tab { font: inherit; font-weight: var(--fw-semibold); padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border-control); background: var(--surface-2); color: var(--text); cursor: pointer; }
.gc-listen__tab:hover { border-color: var(--text); }
.gc-listen__tab.is-on, .gc-listen__tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.gc-listen__tab:focus-visible { outline: 3px solid var(--gc-lime); outline-offset: 2px; }
.gc-listen__panel[hidden] { display: none; }
.gc-listen__frame { width: 100%; display: block; }
.gc-listen__more { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); color: var(--text-muted); }

/* ---- On this page (entry table of contents) ---- */
.gc-toc { margin: var(--sp-5, 24px) 0; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.gc-toc__t { margin: 0 0 8px; font: 700 .78rem/1 "Space Grotesk", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.gc-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 2px 20px; }
.gc-toc li { counter-increment: toc; }
.gc-toc li::before { content: counter(toc, decimal-leading-zero); display: inline-block; min-width: 1.9em; color: var(--accent-graphic); font: 700 .75rem/1 "Space Grotesk", sans-serif; }
.gc-toc a { display: inline-block; padding: 5px 0; color: var(--text); text-decoration: none; }
.gc-toc a:hover { text-decoration: underline; }
.gc-toc .gc-toc__l3 { padding-left: 1.2em; font-size: .92em; }
h2[id], h3[id] { scroll-margin-top: 5.5rem; }

.chip--who { background: var(--surface-2); color: var(--text); }
.chip--optional { background: var(--accent-wash); color: #0E1210; }

/* Header sign-in link (JS swaps the label for the user's initial) */
.gc-auth-btn { display: inline-flex; align-items: center; justify-content: center; padding: .45em .95em; margin-right: .5rem; border: 1px solid var(--border-control); border-radius: 999px; color: var(--text); font: 600 var(--fs-sm) var(--font-body); text-decoration: none; white-space: nowrap; }
.gc-auth-btn:hover { background: var(--surface-2); }
.gc-auth-btn.is-in { width: 2.2em; height: 2.2em; padding: 0; border: 0; background: var(--accent); color: var(--on-accent); }

/* live search: hero + scroll */
.hero__search{position:relative}.search-panel{max-height:70vh;overflow:auto}.hero__search .search-panel{text-align:left}
.search-hit__img{width:56px;height:40px;object-fit:cover;border-radius:6px;flex:none;background:var(--surface-2)}
.search-hit__title{display:block}
