/* ─────────────────────────────────────────────────────────────
   guide.css — shared styles for GamesOMG guide / lookup pages
   (setup guides, "where to find X", explainers, reference pages).
   Pairs with main.css. Mirrors the proven Satisfactory-guide layout
   plus an answer box (snippet capture) and location cards.
   ───────────────────────────────────────────────────────────── */

/* Hero */
.ref-hero { padding: 3rem 2rem 1.5rem; text-align: center; position: relative; overflow: hidden; }
.ref-hero::before { content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%); width: 700px; height: 400px; background: radial-gradient(ellipse, rgba(240,128,0,0.08) 0%, transparent 65%); pointer-events: none; }
.ref-hero-inner { max-width: 820px; margin: 0 auto; position: relative; }
.ref-breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.25rem; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ref-breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.ref-breadcrumb a:hover { color: var(--orange-ink); }
.ref-breadcrumb-sep { opacity: 0.4; }
.ref-hero-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--orange-dim); border: 1px solid var(--orange-border); color: var(--orange-ink); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 0.35rem 1rem; border-radius: 100px; margin-bottom: 1.25rem; }
.ref-hero h1 { font-family: 'Manrope', sans-serif; font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; color: var(--text); margin-bottom: 1rem; }
.ref-hero h1 em { font-style: normal; color: var(--orange-ink); }
/* Hero copy on --text-soft, not --text-muted: muted measured 5.7:1 and read grey in the thin body face;
   soft is 11.2:1 dark / 7.1:1 silver. His "readability is rough", 2026-10-03. */
.ref-hero .lede { font-size: 1.02rem; color: var(--text-soft); line-height: 1.7; }
/* .ref-verified (the "verified" stamp) lives in main.css since 2026-09-17. */

/* Jump nav — sticky strip pinned under the 64px site nav so it's reachable from
   anywhere on a long page.
   DESKTOP: chips WRAP (flex-wrap:wrap). There is NO overflow container, so the
   mouse wheel always reaches the document — this kills the scroll-trap at the root.
   MOBILE (<=680px): one-row horizontal swipe (the familiar filter-chip pattern) so
   the bar stays ~one chip-row tall regardless of chip count and never eats the phone.
   Full labels kept everywhere (full accessible link names). Zero JS. */
.ref-jump { position: static; margin: 0 0 1.6rem; padding: 0.5rem 2rem; background: transparent; border-bottom: 1px solid var(--border); }
.ref-jump-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: baseline; gap: 0.85rem; background: none; border: none; border-radius: 0; padding: 0; }
.ref-jump-label { flex: 0 0 auto; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 0; white-space: nowrap; }
/* Desktop default: WRAP, no overflow -> no wheel trap. */
.ref-jump-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.ref-jump-chip { flex: 0 0 auto; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 100px; color: var(--text-muted); font-size: 0.82rem; font-weight: 600; padding: 0.35rem 0.85rem; transition: border-color 0.15s, color 0.15s, background 0.15s; white-space: nowrap; }
.ref-jump-chip:hover { border-color: var(--orange); color: var(--orange-ink); }
.ref-jump-chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Jump-target offset is page-aware via :has(). Base (above) = 80px, which clears just
   the 64px header on pages with no jump bar. Pages that HAVE the sticky .ref-jump bar
   need to clear BOTH bars, and the bar wraps to ~3 rows on desktop / 1 row on mobile —
   so a jumped-to heading lands just below it instead of tucked underneath. */
body:has(.ref-jump) :is(.ref-section, .step, .ref-faq, .rec-section, .mm-overview, .mm-flag) { scroll-margin-top: 200px; }

/* Mobile: one-row horizontal scroll (familiar filter-chip swipe). Stays ~one row
   tall no matter how many chips. Right-edge mask fades the last chip = "more ->".
   scroll-padding keeps a keyboard-focused chip clear of the fade. */
@media (max-width: 680px) {
  .ref-jump { padding-left: 1.2rem; padding-right: 1.2rem; }
  .ref-jump-inner { gap: 0.6rem; }
  .ref-jump-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline-end: 28px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  }
  .ref-jump-chips::-webkit-scrollbar { display: none; }
  .ref-jump-chip { scroll-snap-align: start; }
}

/* Answer box — the "quick answer" for snippet capture (top of lookup pages) */
.answer-box { max-width: 900px; margin: 0 auto 2rem; padding: 0 2rem; }
.answer-box-inner { background: var(--orange-dim); border: 1px solid var(--orange-border); border-radius: var(--radius-md); padding: 1.2rem 1.5rem; }
.answer-box-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 0.5rem; }
.answer-box-main { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(1.3rem, 3.5vw, 1.7rem); color: var(--text); line-height: 1.25; letter-spacing: -0.01em; }
.answer-box-main .hl { color: var(--orange-ink); }
.answer-box-sub { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-top: 0.55rem; }
.answer-box-sub a { color: var(--orange-ink); }
.answer-box-sub strong { color: var(--text); }
.answer-code { display: inline-flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.4rem; }
.answer-code .digit { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(1.6rem, 6vw, 2.4rem); color: var(--orange-ink); background: var(--bg); border: 1px solid var(--orange-border); border-radius: var(--radius-sm); padding: 0.2rem 0.9rem; letter-spacing: 0.12em; }

/* Info callout (blue) */
.setup-callout { max-width: 900px; margin: 0 auto 2rem; padding: 0 2rem; }
.setup-callout-inner { background: var(--bg-card); border: 1px solid var(--blue-border); border-radius: var(--radius-md); padding: 1.2rem 1.5rem; display: flex; align-items: flex-start; gap: 16px; }
.setup-callout-icon { flex-shrink: 0; width: 38px; height: 38px; background: var(--blue-dim); border: 1px solid var(--blue-border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.setup-callout-body { flex: 1; }
.setup-callout-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1rem; color: var(--blue); margin-bottom: 0.4rem; }
.setup-callout-text { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }
.setup-callout-text a { color: var(--orange-ink); }
.setup-callout-text a:hover { text-decoration: underline; }

/* Sections */
.ref-sections { max-width: 900px; margin: 0 auto; padding: 0 2rem 3rem; }

/* Desktop (>=901px): let DATA-TABLE pages reclaim the empty side-margins. Only sections (and
   the recommended-baseline section) that actually contain a .ref-table widen to ~1140px; their
   prose stays clamped to a readable ~74ch so the reading measure doesn't change. Prose-only
   pages, the FAQ, and the 18 page-2col pages are left untouched (the latter via the
   higher/later .page-2col > .ref-sections{max-width:none} rule). Removing td.def/td.rec nowrap
   above is what kills the overflow; this just stops wasting the freed width. */
@media (min-width: 901px) {
  :is(.ref-sections, .rec-section):has(.ref-table) { max-width: min(1140px, 100%); }
  /* FAQ matches the widened sections on the SAME page (within-page consistency), but only on
     single-column table pages. page-2col guides are excluded — their FAQ sits below a ~876px
     content track, so 1140 would overhang it. */
  body:has(.ref-table):not(:has(.page-2col)) .ref-faq { max-width: min(1140px, 100%); }
  .ref-sections:has(.ref-table) :is(.ref-section-intro, .ref-prose, .ref-list, .ref-tip, .ref-warn),
  body:has(.ref-table):not(:has(.page-2col)) .ref-faq .ref-faq-body { max-width: 74ch; }
}
.ref-section { margin-bottom: 2.5rem; scroll-margin-top: 80px; }
.ref-section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--orange-dim); flex-wrap: wrap; }
.ref-section-header h2 { font-family: 'Manrope', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text); letter-spacing: -0.015em; }
/* A .ref-section can also be headed by an h3 — a page that repeats one section shape many times
   (sixteen cave interiors, say) makes each one a sub-section of the h2 above it rather than
   sixteen more h2s. Same component, one step down. Without this they fall through to the body
   font, which is what heading-audit blocks on. */
.ref-section-header h3 { font-family: 'Manrope', sans-serif; font-size: 1.08rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.ref-section-header .icon { width: 30px; height: 30px; background: var(--orange-dim); border: 1px solid var(--orange-border); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }

/* ── SUB-HEADINGS INSIDE A SECTION ──────────────────────────────────────────────
   ⛔⛔ THERE IS NO BARE `h2`/`h3` RULE ANYWHERE IN assets/css, and there never was.
   Every heading rule is scoped to a wrapper (.ref-section-header h2, .loc-card h3,
   .rail-links h3, .cave-detail h3, .boss-detail h3, .seo-block h3 …). So an <h3>
   dropped straight into a .ref-section matched NOTHING and inherited the body font:
   measured 2026-08-17 at **Urbanist 33.93px/700** against an intended Manrope, on 48
   headings across 10 pages. The <h2> twin of this is already in CLAUDE.md.
   ⛔ No gate could see it — asset-guard resolves refs, seo-lint reads tags, layout-lint
   reads structure. All of them verify things EXIST; none asks whether a rule APPLIES.
   ▶ `node tools/heading-audit/check.mjs --gate` is the back-pressure. It drives real
   Chrome and reads getComputedStyle, because that is the only thing that can answer this.

   🪤 WHY `>` AND NOT A DESCENDANT SELECTOR. `.ref-section h3` would also match the h3
   inside a .loc-card / .step-body / .hub-card that happens to sit in a section — and at
   (0,1,1) it ties with `.loc-card h3`, so source order alone would decide which wins.
   Direct-child scoping cannot reach into those components at all, so the tie never exists.
   ⭐ Measured before shipping: all 48 offenders are DIRECT children of .ref-section, so
   the narrow selector is sufficient as well as safer.

   🪤 AND WHY THERE IS NO BORDER OR PADDING HERE. The first attempt at this fix added a
   class with `border-left` + `padding-left` and applied it by regex, which also classed
   ~101 headings living inside .rail-links / .loc-card / .hub-card / .step-body. Those
   already had a font rule but no border, so the decoration would have painted itself over
   every card title and rail heading on the site. Font, size, weight, colour, margin —
   nothing that draws. A rule that only ever sets type cannot deface a component it
   reaches by mistake. */
/* ⛔⛔ `.collapse-body` IS NOT OPTIONAL HERE — THE RUNTIME DOM IS NOT THE MARKUP.
   `collapsible.js` moves everything after a section header into a `<div class="collapse-body">`
   (collapsible.js:46), so on any section carrying `data-collapse` an h3 that is
   `.ref-section > h3` in the source becomes `.ref-section > .collapse-body > h3` in the browser.
   🪤 THIS SHIPPED GREEN LOCALLY AND RED LIVE. `--local` renders over file://, where the page's
   root-absolute `/assets/js/...` 404s, so collapsible.js never runs and the source shape is the
   only shape local ever sees. That is the SAME false-green mechanism table-audit documents for
   JS-built tables (0 at 390px local vs 189 live) — different tool, identical trap, and it was the
   live run that caught it. 10 pages carry `data-collapse`. */
.ref-section > h3,
.ref-section > .collapse-body > h3 { font-family: 'Manrope', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text); letter-spacing: -0.015em; margin: 1.5rem 0 0.6rem; }
/* Rail notes are the compact aside component; their heading follows the rail idiom
   (small, uppercase, muted) rather than the section idiom — same defect, different answer.
   12 of these were unstyled, all reading "Jump to" / "All journal series". */
.rail-note > h3 { font-family: 'Manrope', sans-serif; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); font-weight: 800; margin: 0 0 6px; }
/* Dossier cards on the ARK island page: a card title, so it matches .loc-card h3's weight. */
.vcard-head > h3 { font-family: 'Manrope', sans-serif; font-size: 1.02rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem; }
.ref-section-intro { color: var(--text-muted); font-size: 0.94rem; line-height: 1.65; margin-bottom: 1.1rem; }
.ref-section-intro code, .ref-faq-body code, .setup-callout-text code, .step-body code, .ref-prose code, .loc-card code { background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-family: 'Courier New', monospace; font-size: 0.85em; color: var(--orange-ink); }
.ref-prose { color: var(--text-muted); font-size: 0.94rem; line-height: 1.7; margin-bottom: 1.1rem; }
/* The CONTAINER carried the margin and the paragraphs inside it carried none, so two or more <p>
   in one .ref-prose ran together as a wall — on the Conan RCON page that made the numbered points
   "1." and "2." read as a single paragraph. `p + p` only, so a one-paragraph block is untouched:
   scanned 2026-08-05, exactly 3 pages / 8 blocks on the whole site can be reached by this rule. */
.ref-prose p + p { margin-top: 0.85rem; }
.ref-prose strong { color: var(--text); font-weight: 600; }
.ref-prose a, .ref-section-intro a { color: var(--orange-ink); }
.ref-prose a:hover, .ref-section-intro a:hover { text-decoration: underline; }

/* Tables */
.ref-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* 0.82rem, down from 0.9rem (2026-08-24). At the 24px desktop root, 0.9rem rendered a data
   table at 21.6px — Jason: "sometimes simply making the font a bit smaller in the tables is
   the answer as well". It buys ~9% width on every column at once, which is cheaper than
   fighting each column budget, and a dense reference table reads fine smaller than prose. */
.ref-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.ref-table th, .ref-table td { padding: 0.8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.ref-table tr:last-child td { border-bottom: none; }
/* a row a link points at (a map card's "on the checklist" link: /conan-exiles-thralls/#beri) */
.ref-table tr:target td { background: var(--blue-dim); }
.ref-table tr:target td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.ref-table th { background: var(--bg-surface); color: var(--text); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }
.ref-table td { color: var(--text-muted); line-height: 1.55; }
.ref-table td strong { color: var(--text); }
.ref-table td.setting { font-family: 'Courier New', monospace; color: var(--orange-ink); font-size: 0.83rem; overflow-wrap: anywhere; }
.ref-table td.def { font-family: 'Courier New', monospace; font-size: 0.82rem; color: var(--text-muted); }
.ref-table td.rec { font-family: 'Courier New', monospace; font-size: 0.82rem; color:var(--code-value,#7ecfa0); }

/* Tips / warnings */
.ref-tip { background: color-mix(in srgb, var(--blue) 6%, transparent); border-left: 3px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0.85rem 1.15rem; margin: 1.2rem 0; font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }
.ref-tip strong { color: var(--blue); }
.ref-warn { background: rgba(240,128,0,0.06); border-left: 3px solid var(--orange); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0.85rem 1.15rem; margin: 1.2rem 0; font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }
.ref-warn strong { color: var(--orange-ink); }
.ref-tip code, .ref-warn code { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-family: 'Courier New', monospace; font-size: 0.88em; color: var(--orange-ink); }

/* Location cards — "where to find X" lists */
.loc-grid { display: grid; gap: 0.7rem; margin: 1.1rem 0; }
.loc-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--orange); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; }
.loc-card h3 { font-family: 'Manrope', sans-serif; font-size: 1.02rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.5rem; }
.loc-card .loc-tag { font-family: 'Manrope', sans-serif; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.12rem 0.45rem; border-radius: 4px; color:var(--code-value,#7ecfa0); background: rgba(126,207,160,0.12); border: 1px solid rgba(126,207,160,0.3); }
.loc-card .loc-tag.best { color: var(--orange-ink); background: var(--orange-dim); border-color: var(--orange-border); }

/* "verifying" tag — flags unconfirmed entries on Early-Access / in-flux pages */
.verify-tag { display: inline-block; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.12rem 0.45rem; border-radius: 4px; color: #e0a93a; background: rgba(224,169,58,0.12); border: 1px solid rgba(224,169,58,0.35); vertical-align: 2px; white-space: nowrap; }
.new-tag { display: inline-block; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.12rem 0.45rem; border-radius: 4px; color:var(--code-value,#7ecfa0); background: rgba(126,207,160,0.12); border: 1px solid rgba(126,207,160,0.35); vertical-align: 2px; white-space: nowrap; }

/* ── Rust puzzle cluster — keycard chips, tier badges, screenshot placeholders ── */
.kc { display: inline-block; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.1rem 0.45rem; border-radius: 4px; vertical-align: 1px; white-space: nowrap; }
.kc-green { color:var(--code-value,#7ecfa0); background: rgba(126,207,160,0.13); border: 1px solid rgba(126,207,160,0.4); }
.kc-blue { color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 42%, transparent); }
.kc-red { color: #f0726a; background: rgba(240,90,80,0.13); border: 1px solid rgba(240,90,80,0.42); }
.kc-fuse { color: #e0a93a; background: rgba(224,169,58,0.12); border: 1px solid rgba(224,169,58,0.38); }
.tier-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 0.35rem; border-radius: 6px; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 0.82rem; }
.tier-s { color: #ffd24a; background: rgba(255,210,74,0.14); border: 1px solid rgba(255,210,74,0.45); }
.tier-a { color:var(--code-value,#7ecfa0); background: rgba(126,207,160,0.13); border: 1px solid rgba(126,207,160,0.4); }
.tier-b { color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 42%, transparent); }
.tier-c { color: #585b54; background: rgba(159,176,191,0.12); border: 1px solid rgba(159,176,191,0.35); }
.shot-ph { display: flex; align-items: center; gap: 10px; background: var(--bg-surface); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 0.7rem 1rem; margin: 0.85rem 0; color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }
.shot-ph .shot-ico { font-size: 1.15rem; flex-shrink: 0; }

/* ── Command lookup tool (command-tool.js) — search box + copy buttons ── */
.cmd-search { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 0.7rem; flex-wrap: wrap; }
.cmd-search-input { flex: 1; min-width: 200px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.6rem 0.9rem; color: var(--text); font-family: 'Urbanist', sans-serif; font-size: 0.95rem; }
.cmd-search-input:focus { outline: none; border-color: var(--orange); }
/* Filter controls that sit in the same row as the search box (first use: /how-to-fish-fish-list/).
   A <select> styled like the input; chips as toggle buttons — blue = structure/state, orange stays for actions. */
.cmd-select { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.6rem 0.9rem; color: var(--text); font-family: 'Urbanist', sans-serif; font-size: 0.95rem; cursor: pointer; max-width: 100%; }
.cmd-select:focus { outline: none; border-color: var(--orange); }
button.ref-jump-chip { font-family: inherit; line-height: inherit; cursor: pointer; }
.ref-jump-chip.is-on, .ref-jump-chip.is-on:hover { border-color: var(--blue); color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); }
.cmd-count { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 0.6rem; }
/* ── id-picker combobox (assets/js/id-picker.js) — the same rules the ARK/VEIN item-ID pages carry inline, made shared
   2026-09-05 so a new tool page can mount a picker without pasting CSS. ── */
.picker { position: relative; }
.picker-field { position: relative; display: flex; align-items: center; }
.picker-input { width: 100%; font-family: 'Urbanist', sans-serif; font-size: .98rem; color: var(--text); background: var(--bg); border: 1px solid var(--border-hover, var(--border)); border-radius: var(--radius-md, 10px); padding: .65rem 2.2rem .65rem .8rem; outline: none; transition: border-color .15s; }
.picker-input:focus { border-color: var(--orange-border, var(--orange)); }
.picker-input::placeholder { color: var(--text-muted); }
.picker-clear { position: absolute; right: .45rem; width: 1.6rem; height: 1.6rem; border: none; cursor: pointer; border-radius: 50%; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-muted); font-size: .8rem; line-height: 1; }
.picker-clear:hover { background: color-mix(in srgb, var(--text) 14%, transparent); color: var(--text); }
.picker-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: 18rem; overflow-y: auto; list-style: none; background: var(--bg-card); border: 1px solid var(--border-hover, var(--border)); border-radius: var(--radius-md, 10px); box-shadow: 0 14px 36px rgba(0,0,0,.45); padding: .25rem; margin: 0; }
.picker-list li { display: flex; align-items: center; gap: .55rem; padding: .55rem .6rem; border-radius: var(--radius-sm, 8px); cursor: pointer; }
.picker-list li.active, .picker-list li:hover { background: var(--blue-dim); }
.picker-list .pn { flex: 1; font-weight: 600; }
.picker-list .pdex { font-size: .74rem; color: var(--text-muted); }
.picker-group { font-family: 'Manrope', sans-serif; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); padding: .45rem .6rem .2rem; cursor: default; }
.picker-empty { color: var(--text-muted); cursor: default; padding: .6rem; }
/* ── .tool — a picker → result-card widget (first use: the How to Fish bait tool and sell-price calculator) ── */
.tool { margin: 0 0 1rem; }
.tool-pick { max-width: 34rem; margin: 0 0 .8rem; }
.tool-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md, 10px); padding: 1rem 1.1rem; margin: .6rem 0 0; }
.tool-card h3 { font-family: 'Manrope', sans-serif; font-size: 1.05rem; font-weight: 800; margin: 0 0 .6rem; color: var(--text); }
.tool-big { color: var(--orange-ink, var(--orange)); font-size: 1.5rem; font-weight: 800; }
.tool-facts { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr)); gap: .35rem .9rem; font-size: .9rem; }
.tool-facts li { display: flex; justify-content: space-between; gap: .6rem; border-bottom: 1px dashed var(--border); padding: .25rem 0; }
.tool-facts li span { color: var(--text-muted); }
.tool-rows { display: flex; flex-direction: column; gap: .3rem; }
.tool-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) 5ch 7ch; gap: .6rem; align-items: center; font-size: .9rem; }
.tool-name { overflow-wrap: anywhere; }
.tool-bar { height: 8px; border-radius: 4px; background: var(--bg-surface); overflow: hidden; }
.tool-bar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.tool-pct { font-weight: 700; text-align: right; }
.tool-worth { color: var(--text-muted); text-align: right; }
.tool-sub { font-size: .85rem; color: var(--text-muted); margin: .4rem 0 .6rem; }
.tool-controls { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; margin: .6rem 0; }
.tool-ctl { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--text-muted); font-weight: 600; min-width: 0; }
.tool-ctl input[type=range] { width: 14rem; max-width: 100%; }
.tool-ctl output { color: var(--text); font-weight: 700; }
.tool-num { max-width: 8rem; }
.tool-chks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr)); gap: .3rem .8rem; margin: 0 0 .8rem; }
.tool-chk { font-size: .9rem; display: flex; gap: .45rem; align-items: center; cursor: pointer; }
.tool-chk small { color: var(--text-muted); }
.tool-math { font-size: .9rem; color: var(--text-muted); margin: .3rem 0 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .tool-row { grid-template-columns: minmax(0, 1fr) 5ch 7ch; }
  .tool-row .tool-bar { grid-column: 1 / -1; order: 9; }
}
/* ── A-Z jump bar ────────────────────────────────────────────────────────────────────────
   ⛔ THIS HAD NO CSS AT ALL. `command-tool.js` has injected `.az-bar`/`.az-btn` since it was
   written and not one rule existed in any stylesheet, so it rendered as a row of raw browser
   buttons. Same family as the bare-<h3> trap: the markup ships, no rule reaches it, and every
   gate stays green because every gate checks that things EXIST.
   Sized deliberately larger than a chip — on a 1,497-row table this is the primary navigation,
   not a decoration, and it is a touch target on a phone. */
.az-bar { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin: 0 0 0.9rem; }
.az-btn { min-width: 38px; padding: 0.45rem 0.6rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: 'Manrope', sans-serif; font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.az-btn:hover:not(:disabled) { border-color: var(--orange); color: var(--orange-ink); }
.az-btn.on { background: var(--orange-dim); border-color: var(--orange); color: var(--orange-ink); }
.az-btn:disabled { opacity: 0.28; cursor: default; }
@media (max-width: 680px) { .az-btn { min-width: 32px; padding: 0.4rem 0.45rem; font-size: 0.88rem; } }

/* ── Collapsible category groups inside one table (command-tool.js data-group-col) ───────
   Row-grouping rather than separate tables ON PURPOSE: one search box and one A-Z bar have to
   cover the whole set, and nine tables would mean nine of each. Closed by default so the page
   opens as a short list of headers instead of 1,497 rows. */
.cmd-grp > td { padding: 0 !important; background: transparent; border: 0; }
/* ⭐⭐ THE OPEN SECTION'S HEADER STICKS, so you can always shut it from where you are.
   Jason, 2026-08-17: "the first section opens, correctly so, but there is no accordian header to
   collapse it if you want to, and are still forced to scroll multiple times to get to the next
   section... to not be able to collapse that first section if you want is not cool since it is
   so long." Measured, and he was reading it exactly right: the header EXISTED and was clickable,
   but sat at y=1381 `position: static` while its 117 rows ran to y=11,739 — so from anywhere
   inside the section there were 7.9 SCREENS between the reader and the only control that could
   close it, and the next header was at the far end of that same run.
   ⭐ The pin goes BELOW the sticky `thead`, not over it: a reader deep in a long section still
   wants the column labels. The offset is the thead's real measured height, and it is NOT one
   number — the 680px breakpoint above drops table padding from 0.8rem to 0.6rem, so the thead
   measures 2.904rem at 2560, 2.905rem at 1280 and 2.512rem at 390. Hence a variable, re-declared
   at the same breakpoint that causes the difference. Both are derived from measurement.
   🪤 The sticky must go on the `> td`, NOT the `<tr>` — Chrome does not honour `position: sticky`
   on a table ROW, so putting it there fails silently and looks like the rule never loaded.
   🪤 `.cmd-grp > td` is `background: transparent` above, which is correct while it scrolls with
   the page and WRONG the moment it pins — rows would show through it. The button inside already
   paints `--bg-surface`, so the cell only needs to stop being see-through. */
/* ⛔⛔ AND THE WRAP MUST STOP BEING A SCROLL CONTAINER, OR NEITHER STICKY DOES ANYTHING.
   `.ref-table-wrap` (line 167) sets `overflow-x: auto`, and per CSS overflow §3 a non-`visible`
   value on ONE axis computes the other from `visible` to `auto` — so the wrap is a scroll
   container on BOTH axes. `position: sticky` pins to its nearest scrolling ancestor, which is
   therefore the wrap, and the wrap never scrolls vertically. Both stickies were inert.
   ⚠ THIS MEANS THE STICKY `thead` I SHIPPED EARLIER TODAY NEVER WORKED. While the max-height
   scroll box existed the wrap DID scroll vertically, so it worked in the box; removing the box
   silently killed it, and I reported it as an improvement without re-measuring. Measured now:
   deep in the section the thead sat at -1723px, i.e. scrolled clean off the page.
   ▶ Safe here specifically because THIS table is verified to fit: `table-audit` is a pre-commit
   gate AND a live gate, and reports 0 hidden columns at 2560 / 1280 / 390 after the column
   re-allocation. The horizontal scroll it removes is a safety net this table does not need.
   🪤 Scoped to `.stick-head` — the other 217 command tables keep the net. And `overflow-x: clip`
   is NOT the clever fix: it does not create a scroll container, but a too-wide table is then
   CUT OFF with no way to reach the rest, which is worse than either. */
.ref-table-wrap.stick-head { overflow: visible; --gomg-thead-h: 2.91rem; }
@media (max-width: 680px) { .ref-table-wrap.stick-head { --gomg-thead-h: 2.52rem; } }
.ref-table-wrap.stick-head .cmd-grp > td {
  position: sticky; top: calc(64px + var(--gomg-thead-h)); z-index: 3; background: var(--bg-surface);
}
/* ⭐ PHONE: THE GROUP COLUMN HIDES AND THE COMMAND GIVES BACK ITS FLOOR (2026-09-30). At a true 360
   the 26ch command floor in main.css took 190px of a 320px box and Category was crushed to ~36px,
   so one long description got ~120px: valheim-console-commands' confirmcheats row rendered 535px
   against a 48px median, ark-admin-commands' EnableSpectatorEX 507 — blown rows at 360 AND 390.
   · Category hides once the group headers exist (:has(tr.cmd-grp) — no JS, no headers, no hide).
     The header above the rows already names it; display:none keeps the cell in the DOM, in the
     search text and in cells[2] for the grouping.
   · The command floor drops to 20ch. Measured on all 41 grouped pages at 360/375/390: 0 hidden,
     0 blown, worst row 329px vs a 448px trip (22ch left it at 391).
   ⛔ Not data-group-sep: that cell carries detail the header does not (Stardew's "· Legendary").
   ⛔ Not .short-code: its floor is 0 on purpose (main.css), and 20ch would put one back. */
@media (max-width: 680px) {
  table.cmd-table[data-group-col="2"]:not([data-group-sep]):has(tr.cmd-grp) :is(th, td):nth-child(3) { display: none; }
  table.cmd-table[data-group-col="2"]:not([data-group-sep], .short-code):has(tr.cmd-grp) td.cmd-cell { min-width: 20ch; }
}
.cmd-grp-btn { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: var(--bg-surface); border: 0; border-top: 1px solid var(--border); color: var(--text); font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 700; padding: 0.75rem 0.9rem; cursor: pointer; }
.cmd-grp-btn:hover { background: var(--orange-dim); color: var(--orange-ink); }
.cmd-grp-chev { color: var(--orange-ink); font-size: 0.9rem; width: 12px; }
.cmd-grp-name { flex: 1; }
.cmd-grp-n { font-family: 'Manrope', sans-serif; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; padding: 0.1rem 0.6rem; }

/* ── A very long reference table keeps its HEADERS, not its own scrollbar ──────────────────
   ⛔⛔ THIS WAS A `max-height: 72vh; overflow-y: auto` SCROLL BOX AND THAT WAS WRONG.
   Jason, 2026-08-17: "we dont have scrollable sections inside the page anywhere, correct me if
   I am wrong... there are only 4 rows being hidden by the scroll, seems kinda like the bloat I
   dont like." He was right on both counts, and it is measurable:
     ▶ `.ref-table-wrap.tall` was used on exactly ONE page — the one it was written for.
     ▶ The only other vertical scrollers on the whole site are generator.css's code-output
       `<pre>` and its expandable output sheet (both TOOL OUTPUT, not content) and `.page-aside`
       (a sticky rail). There is NO precedent for scrolling reference CONTENT, and adding one
       page's worth of it is exactly the fragmentation the theme-lock doctrine exists to stop.
   ⭐ THE REAL ARGUMENT: the length problem was ALREADY solved by the collapsible category
   groups. A viewport cap on top of that solves the same problem twice, and what it buys is a
   nested scroll region — which on touch is a scroll trap, where a swipe over the table moves
   the inner box and the page appears frozen.
   ✅ What survives is the half that was genuinely earning its keep: the sticky header. Anchored
   to the VIEWPORT (below the 64px sticky `.nav`) instead of to a box, it now keeps the columns
   labelled across the whole table instead of only inside a 72vh window — strictly more useful
   than what it replaced. Worst case is the biggest group at 398 rows, or letter "S" at 210.
   🪤 Class renamed `tall` -> `stick-head` deliberately: a class called `tall` that no longer
   caps height is a trap for whoever reads it next. */
.ref-table-wrap.stick-head thead th { position: sticky; top: 64px; z-index: 2; background: var(--bg-surface); }

/* ── FACT STRIP ─ the quick facts as one long thin pill ──────────────────────────
   Jason pointed at the hero badge and the .ref-verified stamp and asked for "a long one of
   these, with bullet points separating… and act as a separator between the header and start".
   ⚠ THE POINT IS THAT THOSE TWO ARE SMALL AND QUIET. My first attempt kept the pill shape but
   scaled it up — 0.94rem text, a 1.08rem bold lead, orange fill — and it read as a banner, not
   a rule. "this looks terrible too". Sized off .ref-verified now (0.78rem, bg-card, --border)
   so it belongs to the same set: a thin line of facts, not a second hero.
   The ANSWER does not live here — it sits in the hero, left. This carries the quick facts. */
.fact-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 0.75rem;
  max-width: none; margin: 0 0 1.6rem; padding: 0.4rem 1.1rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px;
  color: var(--text-muted); font-size: 0.8rem; line-height: 1.7; }
.fact-strip b, .fact-strip strong { color: var(--text); font-weight: 700; }
.fact-strip .fs-sep { color: var(--orange-ink); opacity: 0.6; }
.fact-strip a { color: var(--orange-ink); font-weight: 700; }
/* A 100px radius around a wrapped block looks broken; square it off once it stops being a line. */
@media (max-width: 900px) { .fact-strip { border-radius: 14px; justify-content: flex-start; padding: 0.55rem 0.9rem; gap: 0 0.5rem; } }

/* The hero's left panel carries the ANSWER on this page (Jason: "the big square… goes in the
   left of the hero"). .answer-box-inner keeps its own card styling; this just lets it fill the
   hero column instead of sitting in a narrow centred island below it. */
.ref-hero-panel > .answer-box-inner { background: var(--orange-dim); border: 1px solid var(--orange-border); border-radius: var(--radius-md); padding: 1.15rem 1.4rem; }
.ref-hero-panel > .answer-box-inner .answer-box-main { font-size: clamp(1.15rem, 2vw, 1.45rem); }

/* The zero-result state. A filter that empties the table gives the reader a definitive "no"
   in three seconds — faster and more final than scrolling a list ever would. This says so
   plainly, offers the way back to browsing, and gives them somewhere to send the miss. */
.cmd-miss { background: var(--bg-card); border: 1px solid var(--orange-border); border-radius: var(--radius-sm); padding: 0.85rem 1rem; margin: 0 0 1rem; color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }
.cmd-miss strong { color: var(--text); }
.cmd-miss a { color: var(--orange-ink); }
.cmd-miss-clear { background: var(--orange-dim); border: 1px solid var(--orange-border); color: var(--orange-ink); border-radius: 100px; padding: 0.25rem 0.8rem; font-family: 'Manrope', sans-serif; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.cmd-miss-clear:hover { border-color: var(--orange); }
.cmd-count { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.cmd-table td.cmd-cell { position: relative; padding-right: 4.2rem; overflow-wrap: break-word; }
.cmd-table td.cmd-cell .cmd-copy { position: absolute; top: 0.55rem; right: 0.8rem; }
/* Fix the command column so long commands wrap instead of stretching the table off-screen
   (clipping "What it does"). Cmd-tables are always 3-col: Command | What it does | Category.
   Mobile keeps auto layout + the wrap's horizontal scroll, since 3 cols can't fit a phone. */
@media (min-width: 640px) {
  .cmd-table { table-layout: fixed; }
  .cmd-table th:first-child, .cmd-table td.cmd-cell { width: 40%; }
  .cmd-table th:last-child, .cmd-table td:last-child { width: 22%; }
}
.cmd-copy { flex-shrink: 0; cursor: pointer; background: var(--orange-dim); border: 1px solid var(--orange-border); color: var(--orange-ink); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.28rem 0.7rem; border-radius: 6px; transition: all 0.15s; }
.cmd-copy:hover { background: var(--orange); color:var(--cta-ink,#1a1a1a); }
.cmd-copy.ok { background:var(--verified-dot,#7ecfa0); border-color:var(--code-value,#7ecfa0); color: #e7f2ec; }
/* Copy teleport (assets/js/tp-copy.js): one button, "Copy Teleport Command", and nothing else (his
   call 2026-09-30: no command box, no hint). The row chip rides after a POI's coordinates and may
   wrap to two lines on a phone, so it never widens the coordinate column; the popup restyles it
   dark in map-app.css, where it sits on map art, not on the page. */
.cmd-copy.tp-copy-row { margin-left: 0.45rem; padding: 0.14rem 0.45rem; font-size: 0.64rem; line-height: 1.25; vertical-align: 1px; }
.tp-copy { margin-top: 0.5rem; }
.loc-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }
.loc-card p strong { color: var(--text); }

/* Steps (how-to) */
.step { display: flex; gap: 16px; margin-bottom: 1.6rem; scroll-margin-top: 80px; }
.step-num { flex-shrink: 0; width: 34px; height: 34px; background: var(--orange-dim); border: 1px solid var(--orange-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1rem; color: var(--orange-ink); }
.step-body { flex: 1; min-width: 0; }
.step-body h3 { font-family: 'Manrope', sans-serif; font-size: 1.08rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.step-body p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.7; margin-bottom: 0.6rem; }
.step-body p:last-child { margin-bottom: 0; }
.step-body strong { color: var(--text); font-weight: 600; }
.step-body a { color: var(--orange-ink); }
.step-body ul { margin: 0.4rem 0 0.6rem; padding-left: 1.2rem; color: var(--text-muted); font-size: 0.94rem; line-height: 1.7; }
.step-body li { margin-bottom: 0.25rem; }

/* Bulleted list inside a ref-section (e.g. Lifmunk effigies "how it works") */
.ref-list { margin: 0.4rem 0 0.6rem; padding-left: 1.2rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.ref-list li { margin-bottom: 0.5rem; }
/* brand accent on the markers only — the text stays quiet (his call 2026-08-28) */
.ref-list li::marker { color: var(--orange-ink); }
/* the global reset zeroes list padding and .ref-list only re-adds its own, so nested
   sub-step lists rendered flush with their parents — the hollow marker was the sole cue */
.ref-list li > ul { padding-left: 1.3rem; margin-top: 0.5rem; }
.obj-pin { font-size: 0.88em; opacity: 0.75; }
.ref-list strong { color: var(--text); font-weight: 600; }
.ref-list a { color: var(--orange-ink); }
.ref-list a:hover { text-decoration: underline; }
/* /changelog/: the New / Updated / Fixed tag in front of each line (tools/changelog/add.mjs writes
   <li data-kind="…"><span class="pill">…</span>). Small and quiet, the .ref-verified family; the kind
   only tints it. Tokens only, so the silver light theme follows on its own. */
.ref-list li[data-kind] > .pill { display: inline-block; margin-right: 0.35rem; padding: 0 0.55rem; border: 1px solid var(--border); border-radius: 100px; background: var(--bg-card); color: var(--text); font-size: 0.74rem; font-weight: 700; line-height: 1.6; vertical-align: 0.08em; white-space: nowrap; }
.ref-list li[data-kind="New"] > .pill { background: var(--orange-dim); border-color: var(--orange-border); }
.ref-list li[data-kind="Updated"] > .pill { background: var(--blue-dim); border-color: var(--blue-border); }
.ref-list li[data-kind="Fixed"] > .pill { background: var(--green-dim); border-color: var(--green-border); }
/* a line may carry a token with no break in it (a Windows path, 11-23's %LOCALAPPDATA%\Icarus\Saved\PlayerData):
   it broke the page sideways by 32px at 320 (page-overflow, 2026-11-28). Break inside such a token only. */
.ref-list li[data-kind] { overflow-wrap: anywhere; }
/* prose + table links on ref pages were inheriting body ink (invisible as links) — Jason's call
   2026-08-27: these use THE blue, the one number in main.css, not the orange the CTAs own */
.ref-section p a, .ref-table td a, .ref-quote a { color: var(--blue); }
.ref-section p a:hover, .ref-table td a:hover { color: var(--link-hover-ink); text-decoration: underline; }
/* LIGHT: body links are a lighter ORANGE, no underline — Jason's call, 2026-09-14. The light --blue
   (#195f6b) looked exactly like the text, and a lighter blue + underline still "looked the same, just
   underlined". #b46000 (the brand orange at 75%) reads as a link at a glance and is 4.55:1 on the white
   card. Prose/intro links included so every body link in light mode is the same orange. Dark untouched. */
:root[data-theme="light"] .ref-section p a, :root[data-theme="light"] .ref-table td a, :root[data-theme="light"] .ref-quote a,
:root[data-theme="light"] .ref-prose a, :root[data-theme="light"] .ref-section-intro a { color: color-mix(in srgb, var(--orange) 75%, #000); }
/* Links in a PLAIN <ul>/<ol> inside a .ref-section inherited body ink (main.css `a { color: inherit }`), so they read as text
   (Games Dispatch 11-12). :where() keeps these at the global `a` rule's weight: they only beat that reset, never a list
   or link that styles its own links (.ref-list, .step-body, .pal-link chips). Same colours as `.ref-section p a`. */
:where(.ref-section :is(ul,ol):not([class])) a { color: var(--blue); }
:where(.ref-section :is(ul,ol):not([class])) a:hover { color: var(--link-hover-ink); text-decoration: underline; }
:where(:root[data-theme="light"] .ref-section :is(ul,ol):not([class])) a { color: color-mix(in srgb, var(--orange) 75%, #000); }
/* The numbered steps (`ol.steps`) have a class, so the rule above skips them and their links read as plain text: the SML
   release link on /satisfactory-teleport-mod/ (Jason 2026-11-23 "there should be a link for this"), and the other mod
   install pages' steps. Classless links only, same colours as `.ref-section p a`. */
ol.steps > li a:not([class]) { color: var(--blue); }
ol.steps > li a:not([class]):hover { color: var(--link-hover-ink); text-decoration: underline; }
:root[data-theme="light"] ol.steps > li a:not([class]) { color: color-mix(in srgb, var(--orange) 75%, #000); }

/* Region jump chips (Lifmunk effigies) */
.region-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.region-nav a { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 100px; color: var(--text-muted); font-size: 0.82rem; font-weight: 600; padding: 0.35rem 0.85rem; transition: all 0.15s; }
.region-nav a:hover { border-color: var(--orange); color: var(--orange-ink); }
.region-nav a b { color: var(--orange-ink); font-weight: 700; }

/* Status badges (Once Human codes — confidence flags) */
.status-ok { color:var(--code-value,#7ecfa0); font-weight: 700; white-space: nowrap; }
.status-warn { color: #e0b84a; font-weight: 700; white-space: nowrap; }

/* Tier badges (Once Human deviants tier list)
   🔴 THESE MUST STAY SCOPED TO `.tier`. There are TWO badge systems in this file and they share
   the tier-s/a/b/c class names:
     · line ~158 — `.tier-badge` + `.tier-X`: tinted TEXT on a translucent tint  (rust-monument-puzzles)
     · here      — `.tier`       + `.tier-X`: white text on a SOLID fill          (once-human-deviants)
   Unscoped, these four rules are single-class and come LATER, so their opaque backgrounds landed on
   the other system's matching text colour. Measured 2026-08-05 on rust-monument-puzzles:
     tier-a  #7ecfa0 text on #7ecfa0 fill  -> 1.00:1, INVISIBLE
     tier-c  #585b54 text on #585b54 fill  -> 1.00:1, INVISIBLE
     tier-s / tier-b                        -> low contrast
   It shipped that way because nothing here is wrong in isolation — each rule is fine, and the bug
   only exists in the join. ⚠ Never add a bare `.tier-X` rule to this file; qualify it with the
   system it belongs to. Found by the colour audit for the theme convergence, not by a gate. */
.tier-table td:first-child { width: 56px; text-align: center; vertical-align: middle; }
.tier { display: inline-block; min-width: 2rem; padding: 0.25rem 0.55rem; border-radius: 6px; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.05rem; color: #ffffff; text-align: center; }
.tier.tier-s { background: #f0a020; }
.tier.tier-a { background:var(--verified-dot,#7ecfa0); }
.tier.tier-b { background: #5aa6e0; }
.tier.tier-c { background: #585b54; }

/* TL;DR strip */
.guide-tldr { max-width: 900px; margin: 0 auto 2rem; padding: 0 2rem; }
.guide-tldr-inner { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.9rem 1.2rem; font-size: 0.93rem; color: var(--text-muted); line-height: 1.6; }
.guide-tldr-inner strong { color: var(--text); }

/* More tools / related footer */
.more-tools { max-width: 900px; margin: 0 auto 2.5rem; padding: 0 2rem; }
.more-tools-inner { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.3rem 1.5rem; }
.more-tools h2 { font-family: 'Manrope', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.more-tools p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.9rem; }
.more-tools-links { display: flex; gap: 8px; flex-wrap: wrap; }
.more-tools-link { display: inline-flex; align-items: center; gap: 7px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 100px; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; padding: 0.4rem 0.95rem; transition: all 0.15s; }
.more-tools-link:hover { border-color: var(--orange); color: var(--orange-ink); }

/* FAQ */
.ref-faq { max-width: 900px; margin: 0 auto 4rem; padding: 0 2rem; scroll-margin-top: 80px; }
.ref-faq h2 { font-family: 'Manrope', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 1.2rem; letter-spacing: -0.015em; }
.ref-faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.6rem; overflow: hidden; }
.ref-faq-item summary { padding: 0.9rem 1.1rem; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 0.96rem; color: var(--text); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ref-faq-item summary::-webkit-details-marker { display: none; }
.ref-faq-item summary::after { content: '+'; color: var(--orange-ink); font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.ref-faq-item[open] summary::after { content: '\2212'; }
.ref-faq-body { padding: 0 1.1rem 1.1rem; color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }
.ref-faq-body a { color: var(--orange-ink); }
.ref-faq-body a:hover { text-decoration: underline; }

/* Hub grid (cluster landing pages) */
.hub-grid { max-width: 900px; margin: 0 auto 2.5rem; padding: 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.8rem; }
.hub-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.1rem 1.2rem; transition: all 0.15s; }
.hub-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.hub-card h3 { font-family: 'Manrope', sans-serif; font-size: 1.02rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.hub-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }
.hub-card .hub-card-tag { font-size: 0.7rem; font-weight: 700; color: var(--orange-ink); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Checklist tracker (collectible check-off; mirrors the ARK explorer-notes tracker) ── */
.nt { background: linear-gradient(180deg, var(--orange-dim), rgba(240,128,0,.03)); border: 1px solid var(--orange-border); border-radius: 14px; padding: 0.9rem 1.1rem; margin: 0 0 0.9rem; }
.nt-top { display: flex; align-items: center; gap: .5rem .8rem; flex-wrap: wrap; }
.nt-title { font-family: 'Manrope', sans-serif; font-weight: 800; color: var(--orange-ink); font-size: .98rem; }
.nt-count { font-family: 'Manrope', sans-serif; font-weight: 600; color: #585b54; font-size: .92rem; }
.nt-count b { color: var(--orange-ink); }
.nt-reset { margin-left: auto; cursor: pointer; background: transparent; border: 1px solid rgba(0,0,0,.12); color: #585b54; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .8rem; padding: .32rem .8rem; border-radius: 999px; }
.nt-reset:hover { border-color: var(--orange); color: var(--orange-ink); }
.nt-track { height: 9px; background: rgba(0,0,0,.06); border-radius: 999px; overflow: hidden; margin: .65rem 0 0; }
.nt-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), #ff9d3a); border-radius: 999px; transition: width .3s ease; }
.nt-hint { font-size: .78rem; color: #585b54; line-height: 1.5; margin-top: .5rem; }
.nt-save { display: flex; align-items: center; gap: .42rem; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .82rem; color: var(--orange-ink); margin-top: .6rem; transition: color .25s ease; }
.nt-save-ic { font-size: .92rem; }
.nt-save.is-flash { color: #46d27e; }
table.checklist tbody tr.nt-row { cursor: pointer; }
table.checklist tbody tr.nt-row:hover { background: rgba(240,128,0,.06); }
.nt-cb { display: inline-block; width: 15px; height: 15px; border: 2px solid var(--orange); border-radius: 4px; margin-right: .55rem; vertical-align: -2px; position: relative; }
table.checklist tbody tr.nt-done .nt-cb { background: var(--orange); }
table.checklist tbody tr.nt-done .nt-cb::after { content: '\2713'; position: absolute; inset: 0; color:var(--ink-inverse,#fff); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; line-height: 1; }
table.checklist tbody tr.nt-done td { color: #585b54; text-decoration: line-through; }
table.checklist tbody tr.nt-done td:first-child { text-decoration: none; }

/* rowlink mode — the row opens a page; only the checkbox ticks "cleared" */
table.checklist[data-rowlink] td:first-child a { color: var(--orange-ink); text-decoration: none; font-weight: 700; }
table.checklist[data-rowlink] td:first-child a:hover { text-decoration: underline; }
table.checklist[data-rowlink] td:first-child a::after { content: ' ›'; font-weight: 800; }
table.checklist[data-rowlink] .nt-cb { cursor: pointer; }
table.checklist[data-rowlink] .nt-cb:hover { border-color:var(--ink-inverse,#fff); background: rgba(240,128,0,.25); }

@media (max-width: 680px) {
  .ref-table { font-size: 0.83rem; }
  body:has(.ref-jump) :is(.ref-section, .step, .ref-faq, .rec-section, .mm-overview, .mm-flag) { scroll-margin-top: 120px; }
  .ref-table th, .ref-table td { padding: 0.6rem 0.7rem; }
  .ref-table td.setting, .ref-table td.def, .ref-table td.rec { font-size: 0.76rem; }
  .ref-hero { padding: 2.2rem 1.2rem 1rem; }
  .ref-sections, .ref-faq, .answer-box, .more-tools, .setup-callout, .guide-tldr, .hub-grid { padding-left: 1.2rem; padding-right: 1.2rem; }
}

/* ── Two-column layout with sticky sidebar rail (opt-in: wrap content in .page-2col) ──
   Long collectible/guide pages: main content + a sticky rail carrying the table of
   contents, a contextual AcidNodes card, and a corrections/spotters note. Mobile
   collapses to one column (rail above content, TOC reflows to chips). */
.page-2col { max-width: 1600px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; }
.page-2col > .ref-sections { grid-column: 1; grid-row: 1; max-width: none; margin: 0; padding: 0 0 3rem; }
.page-2col > .ref-sections :is(.ref-section-intro, .ref-prose, .ref-list) { max-width: 72ch; }
.page-aside { grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; display: flex; flex-direction: column; gap: 0.85rem; }

/* ── 2-column HERO (ref-hero-split) + full-width 70/30 body (page-2col.full-70) ──
   The site standard, verbatim from the settings-guides pages (the-front / humanitz
   settings-explained) so guide.css pages share ONE source of truth. The hero is the
   2-column part (text left, a card right); the rail lives BELOW the hero, beside the
   body content — NEVER at the top. Full page width, thin 2.5vw gutters. ── */
.ref-hero-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 2.6rem; align-items: center; max-width: none; margin: 0; padding: 2.3rem 2.5vw 1.2rem; text-align: left; }
/* ⭐ PHOTO HEROES TOP-ALIGN. The gap above the breadcrumb was never padding — it was
   `align-items: center` across two columns of very different heights. Measured on the live LOST
   page: photo column 803px, copy column 349px, so the copy was centred against the taller one
   and carried (803-349)/2 = 227px of dead space above it. The 2.3rem padding was 41px of a
   268px gap.
   ⛔⛔ AND THE ALIGNMENT MUST BE SET ON `.ref-hero-inner`, NOT ON `.ref-hero-split`. The first
   attempt put it on the section and changed nothing: on a photo page the section has ONE child
   and computes to `display:block`, so align-items is inert there. Two markup families share
   `.ref-hero-split` and the grid is on a different element in each — main.css:1731 makes
   `.ref-hero-inner:has(> .ref-hero-copy)` the grid for the photo family. The padding change
   landed and the alignment silently did not, which looked like a partial fix rather than a
   wrong selector. ⭐ Read `display` off the live element before setting align-items on it.
   Card heroes (.ref-hero-panel) keep centring — their right column is short, so there is no gap
   to remove and centring is what makes them sit level. The families do not overlap: 555 pages
   carry .ref-hero-photo, 1,095 carry .ref-hero-panel, intersection zero. */
.ref-hero-split:has(.ref-hero-photo) { padding-top: 1.1rem; }
.ref-hero-split .ref-hero-inner:has(> .ref-hero-copy):has(.ref-hero-photo) { align-items: start; }
/* ⚠ Two split-hero markup families share this class. The CARD pages (Windrose/Astro-style
   settings-explained) put two children directly in the section — .ref-hero-inner (copy) +
   .ref-hero-panel (card) — and want the section itself to be the grid (the rule above).
   The PHOTO pages (effigy, ARK spawn, cave heroes) predate it: ONE child (.ref-hero-inner)
   that runs its own 2-col grid inside. The section grid squeezed those into column 1 —
   quarter-width hero photos sitewide from 2026-07-20 until Jason spotted it 2026-08-01.
   No .ref-hero-panel = not a card page = the section stays a plain block. */
.ref-hero-split .ref-hero-inner { max-width: none; margin: 0; }
.ref-hero-split .ref-breadcrumb { justify-content: flex-start; }
.ref-hero-split .ref-hero-badge { margin-bottom: 1rem; }
.ref-hero-split h1 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); margin-bottom: 0.8rem; }
.ref-hero-split .lede { font-size: 0.98rem; }
.ref-hero-split .ref-verified { margin-top: 1rem; }
/* C52: a map HUB's "Map data: v…" line (no map bar there to adopt it) wears the hero stamp's pill, without the
   freshness dot: on BG3 / DOS2 it replaced a .ref-verified stamp and sat bare at full text size under the lede. */
.ref-hero .map-version { display: inline-flex; margin: 1rem 0 0; font-size: 0.78rem; color: var(--text-muted); background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 1.6em; padding: 0.3rem 0.9rem; }
/* Hero right-column "quick facts" card (content pages) */
/* .hero-facts, .ref-hero-panel and the split fallback now live in main.css (the base) — every
   page loads it, guide.css does not. Duplicating them here is how an override becomes a base. */
.hero-panel-img { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg-card); }
.hero-panel-img img { display: block; width: 100%; height: auto; max-height: clamp(300px, 15.5vw, 420px); object-fit: cover; object-position: top center; }
.hero-panel-img .hpi-cap { font-size: 0.78rem; color: var(--text-muted); text-align: center; padding: 8px 10px 10px; }
@media (max-width: 900px) { .ref-hero-split { grid-template-columns: minmax(0,1fr); gap: 1.5rem; } }

.page-2col.full-70,
.page-2col.full-80 { display: grid; grid-template-columns: minmax(0,70fr) minmax(0,30fr); gap: 2.5rem; align-items: start; max-width: none; margin: 0; padding: 0 2.5vw; }
/* ...and full-80 is that layout with a wider body, for a page whose content is a wide table
   rather than prose (HumanitZ item IDs: four columns). His call 2026-09-22. */
.page-2col.full-80 { grid-template-columns: minmax(0, 80fr) minmax(0, 20fr); gap: 2rem; }
.page-2col.full-70 > .sg-body,
.page-2col.full-80 > .sg-body { grid-column: 1; grid-row: 1; min-width: 0; }
.page-2col.full-70 .sg-body > *,
.page-2col.full-80 .sg-body > * { max-width: none; margin-left: 0; margin-right: 0; }
.page-2col.full-70 .ref-sections,
.page-2col.full-80 .ref-sections { max-width: none; margin: 0; padding: 0 0 1rem; }
/* ⭐ .ref-section > p was the ONE prose element in here with no measure cap — .ref-list,
   .ref-faq-body and .ref-section-intro all had one. Measured on the live LOST page at a
   24px root: capped siblings 75ch, bare <p> 117ch. Dropping the root to 18px stretches
   the same 1646px column to ~156ch, because the column is sized in vw and does not shrink
   with the text. Checked before adding: of 6,324 <p> on full-70 pages, none carries an
   img/iframe/video/button/table, so a ch cap squeezes nothing but words. */
.page-2col.full-70 .ref-section-intro, .page-2col.full-70 .ref-prose, .page-2col.full-70 .ref-tip, .page-2col.full-70 .ref-faq-body, .page-2col.full-70 .ref-section > p, .page-2col.full-70 .reqs-list li > span:last-child,
/* ⭐ .ref-section > p was the ONE prose element in here with no measure cap — .ref-list,
   .ref-faq-body and .ref-section-intro all had one. Measured on the live LOST page at a
   24px root: capped siblings 75ch, bare <p> 117ch. Dropping the root to 18px stretches
   the same 1646px column to ~156ch, because the column is sized in vw and does not shrink
   with the text. Checked before adding: of 6,324 <p> on full-80 pages, none carries an
   img/iframe/video/button/table, so a ch cap squeezes nothing but words. */
.page-2col.full-80 .ref-section-intro, .page-2col.full-80 .ref-prose, .page-2col.full-80 .ref-tip, .page-2col.full-80 .ref-faq-body, .page-2col.full-80 .ref-section > p, .page-2col.full-80 .reqs-list li > span:last-child { max-width: 74ch; }
.page-2col.full-70 .ref-faq,
.page-2col.full-80 .ref-faq { max-width: none; margin: 0 0 2rem; padding: 0; }
.page-2col.full-70 .more-tools,
.page-2col.full-80 .more-tools { max-width: none; margin: 0 0 1rem; padding: 0; }
.rail-links { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px 15px; }
.rail-links h3 { font-family: 'Manrope', sans-serif; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); font-weight: 800; margin: 0 0 6px; }
.rail-links a { display: block; padding: 7px 0; font-size: 0.82rem; font-weight: 600; color: var(--text); text-decoration: none; border-top: 1px solid var(--border); }
.rail-links a:first-of-type { border-top: 0; }
.rail-links a:hover { color: var(--orange-ink); }
/* ⛔ full-80 was missing from the display:block here until 2026-09-30, so both full-80 pages stayed
   an 80/20 grid on a phone: a 271px body beside a 68px rail at 390, and /humanitz-item-ids/
   scrolled the whole page sideways (674px wide). Every full-70 rule names full-80 — this one too. */
@media (max-width: 900px) { .page-2col.full-70,
.page-2col.full-80 { display: block; padding: 0 1.2rem; } .page-2col.full-70 > .page-aside,
.page-2col.full-80 > .page-aside { margin-top: 1.6rem; } }

/* ── Consolidated from the build-script inline CSS (settings-guides + mod-map-guides),
   so guide.css is the single source of truth and those pages can link it instead of
   inlining a duplicate copy. ── */

/* Settings-guide: per-section source-file tag */
.ref-file { display: inline-block; font-family: 'Courier New', monospace; font-size: 0.7rem; color: var(--text-muted); background: var(--bg-surface); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; margin-left: auto; }
.ref-file b { color: var(--orange-ink); font-weight: 600; }

/* Recommended-baseline section + CTA buttons (settings-guides #recommended, mod-map related) */
.rec-section { max-width: 900px; margin: 0 auto 2.5rem; padding: 0 2rem; scroll-margin-top: 80px; }
.rec-cta-row { margin-top: 1.1rem; display: flex; gap: 10px; flex-wrap: wrap; }
.rec-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color:var(--cta-ink,#1a1a1a); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.9rem; padding: 0.7rem 1.2rem; border-radius: var(--radius-sm); transition: background 0.2s; }
.rec-cta:hover { background:var(--orange-hover-alt,#ff8c00); }
.rec-cta.ghost { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.rec-cta.ghost:hover { border-color: var(--orange); color: var(--orange-ink); background: var(--bg-card); }

/* Mod-map: overview fact grid */
.mm-overview { max-width: 900px; margin: 0 auto 2rem; padding: 0 2rem; scroll-margin-top: 80px; }
.mm-overview-grid { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.3rem 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1rem 1.8rem; }
.mm-fact { font-size: 0.9rem; line-height: 1.55; }
.mm-fact .k { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 3px; }
.mm-fact .v { color: var(--text-muted); }
.mm-fact .v code, .ref-table code { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-family: 'Courier New', monospace; font-size: 0.85em; color: var(--orange-ink); }

/* Mod-map: table item/loc/note cells + confidence badges */
.ref-table td.item { font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--text); font-size: 0.88rem; }
.ref-table td .loc { display: block; margin-top: 4px; color: var(--text-muted); font-size: 0.83rem; }
.ref-table td .note { display: block; margin-top: 4px; color: var(--text-muted); font-size: 0.8rem; font-style: italic; opacity: 0.9; }
.ref-table td.conf-cell { white-space: nowrap; }
.conf { display: inline-block; font-size: 0.67rem; font-weight: 700; letter-spacing: 0.02em; padding: 2px 8px; border-radius: 100px; white-space: nowrap; }
.conf-high { background: rgba(126,207,160,0.14); color:var(--code-value,#7ecfa0); border: 1px solid rgba(126,207,160,0.32); }
.conf-med  { background: rgba(230,180,80,0.13); color: #e6b450; border: 1px solid rgba(230,180,80,0.32); }
.conf-low  { background: rgba(232,136,136,0.13); color: #e88; border: 1px solid rgba(232,136,136,0.32); }

/* Mod-map: "what to double-check" flag box */
.mm-flag { background: rgba(230,180,80,0.06); border: 1px solid rgba(230,180,80,0.25); border-left: 3px solid #e6b450; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1.1rem 1.4rem; margin: 0 auto 2rem; max-width: 900px; scroll-margin-top: 80px; }
.mm-flag h2 { font-family: 'Manrope', sans-serif; font-size: 1.05rem; color: #e6b450; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 8px; }
.mm-flag p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 0.6rem; }
.mm-flag ul { margin: 0; padding-left: 1.1rem; }
.mm-flag li { color: var(--text-muted); font-size: 0.87rem; line-height: 1.6; margin-bottom: 0.35rem; }

/* Mod-map: recently-changed, sources, related */
.mm-changed { max-width: 900px; margin: 0 auto 2rem; padding: 0 2rem; }
.mm-changed .ref-tip { margin: 0; }
.mm-changed ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.mm-changed li { margin-bottom: 0.3rem; }
.mm-sources { max-width: 900px; margin: 0 auto 3rem; padding: 0 2rem; }
.mm-sources h2 { font-family: 'Manrope', sans-serif; font-size: 1.05rem; color: var(--text); margin-bottom: 0.8rem; }
.mm-sources ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.mm-sources li { font-size: 0.84rem; color: var(--text-muted); line-height: 1.5; }
.mm-sources a { color: var(--orange-ink); }
.mm-related { max-width: 900px; margin: 0 auto 2.5rem; padding: 0 2rem; }
.mm-related h2 { font-family: 'Manrope', sans-serif; font-size: 1.05rem; color: var(--text); margin-bottom: 0.75rem; }

.rail-label { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.55rem; }
.rail-toc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.9rem 1rem; }
.rail-toc-links { display: flex; flex-direction: column; gap: 1px; }
.rail-toc-links a { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.4rem 0.55rem; border-radius: 7px; border-left: 2px solid transparent; color: var(--text-muted); font-size: 0.87rem; font-weight: 600; line-height: 1.3; transition: all 0.15s; }
.rail-toc-links a:hover { color: var(--orange-ink); background: var(--bg-surface); border-left-color: var(--orange); }
.rail-toc-links a b { color: var(--orange-ink); font-weight: 700; font-size: 0.8rem; }

/* ⭐ .rail-vn IS THE ACIDNODES CROSS-PROMO RAIL — "VN" is the legacy VanillaNodes name. It was
   painting itself periwinkle (rgba(120,160,250) / #9db8fa), a blue that matched neither site. Of
   everything on GamesOMG this is the one block that MUST carry the AcidNodes blue, because it is
   the hand-off to AcidNodes. Now derived from the one token, so it tracks the brand by
   construction. guide.css is loaded by both dark (main.css) and light (cave) pages, so these
   resolve per-context automatically — that is the whole point of deriving instead of hardcoding. */
.rail-vn { background: color-mix(in srgb, var(--blue) 7%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 32%, transparent); border-radius: var(--radius-md); padding: 0.95rem 1rem; font-size: 0.85rem; line-height: 1.55; color: var(--text-muted); }
.rail-vn-head { font-family: 'Manrope', sans-serif; font-weight: 800; color: var(--text); font-size: 0.93rem; margin-bottom: 0.4rem; }
.rail-vn strong { color: var(--text); }
.rail-vn-cta { display: inline-block; margin-top: 0.65rem; background: color-mix(in srgb, var(--blue) 14%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 42%, transparent); color: var(--blue); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.82rem; padding: 0.4rem 0.85rem; border-radius: 8px; transition: all 0.15s; }
.rail-vn-cta:hover { background: color-mix(in srgb, var(--blue) 22%, transparent); color: var(--link-hover-ink, var(--blue)); }
.rail-vn-disc { font-size: 0.72rem; color: var(--text-muted); opacity: 0.8; margin-top: 0.5rem; }

.rail-note { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.8rem 0.95rem; font-size: 0.79rem; line-height: 1.55; color: var(--text-muted); }
.rail-note strong { color: var(--text); }
.rail-note a { color: var(--orange-ink); }
.rail-note a:hover { text-decoration: underline; }

/* ── Palworld-cluster rail standard (2026-07-12): bigger/blue info cards + a ghost jump button + the interactive AcidNodes hosting ad. Additive — the .rail-toc/.rail-vn/.rail-note pages above are untouched. Sizes match the ruins page Jason signed off on. ── */
.rail-jump { display: block; text-align: center; background: rgba(240,128,0,.1); color: var(--orange-ink); border: 1px solid rgba(240,128,0,.5); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px; padding: 11px 14px; border-radius: 10px; }
.rail-jump:hover { background: rgba(240,128,0,.18); }
.rail-card { background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 13%, transparent), color-mix(in srgb, var(--blue) 5%, transparent)); border: 1px solid color-mix(in srgb, var(--blue) 42%, transparent); border-radius: 15px; padding: 20px 22px; font-size: 17.5px; line-height: 1.8; color: var(--text-muted); }
.rail-card h3 { font-family: 'Manrope', sans-serif; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin: 0 0 12px; }
.rail-card strong { color: var(--text); }
/* Dark + acid-lime, unified with .rail-oc (relit 2026-07-14; was light+yellow). */
.rail-ad { --acid: #A6E22E; background: linear-gradient(180deg,#1b222b,#161b22); border: 1px solid #2a323c; border-radius: 15px; padding: 19px 21px 20px; font-family: 'Manrope', sans-serif; color: #ECE3D1; }
.rail-ad .roc-head { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: var(--acid); letter-spacing: -.2px; }
.rail-ad .roc-head svg { width: 19px; height: 20px; flex: none; }
.rail-ad .roc-sub { color: #8a949f; font-size: 13.5px; margin: 5px 0 15px; line-height: 1.5; }
.rail-ad .roc-lab { display: flex; justify-content: space-between; align-items: baseline; }
.rail-ad .roc-k { font-family: 'Courier New', monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8a949f; }
.rail-ad .roc-lab b { font-size: 21px; font-weight: 800; }
.rail-ad .roc-lab small { color: #8a949f; font-weight: 600; font-size: 13px; }
.rail-ad .roc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 7px; border-radius: 99px; background: linear-gradient(90deg, var(--acid) var(--pct,0%), #2a323c var(--pct,0%)); outline: none; margin: 11px 0 5px; }
.rail-ad .roc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--acid); border: 4px solid #0d0f0e; box-shadow: 0 0 0 1px var(--acid); cursor: pointer; }
.rail-ad .roc-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--acid); border: 4px solid #0d0f0e; cursor: pointer; }
.rail-ad .roc-ends { display: flex; justify-content: space-between; font-family: 'Courier New', monospace; font-size: 12px; color: #8a949f; }
.rail-ad .roc-price { display: flex; align-items: flex-end; gap: 8px; margin: 15px 0 1px; }
.rail-ad .roc-big { font-weight: 800; font-size: 37px; line-height: 1; letter-spacing: -1px; color: #ECE3D1; }
.rail-ad .roc-per { color: #8a949f; font-size: 14px; padding-bottom: 4px; }
.rail-ad .roc-founder { color: var(--blue); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.rail-ad .roc-order { display: block; text-align: center; background: var(--acid); color: #16130D; font-weight: 800; font-size: 16px; padding: 14px; border-radius: 12px; }
.rail-ad .roc-order:hover { background: #8fce1e; }
.rail-ad .roc-fine { text-align: center; color: #8a949f; font-size: 12.5px; margin-top: 11px; line-height: 1.5; }

/* coord-finder search widget — on-brand button so it reads clearly as a search box; tidy width in the content flow */
.cfind .cfind-btn { background: var(--orange); color: #ffffff; }
.cfind .cfind-in:focus { outline: none; border-color: var(--orange); }
.page-2col > .ref-sections .cfind { margin-bottom: 1.6rem; }

/* Collapsible list sections (collapsible.js) — header is the toggle; body hides until open */
.ref-section.collapsible > .ref-section-header { cursor: pointer; }
.ref-section.collapsible:not(.is-open) > .ref-section-header { margin-bottom: 0; border-bottom-color: var(--border); }
.ref-section.collapsible > .ref-section-header .collapse-count { margin-left: auto; font-family: 'Manrope', sans-serif; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.ref-section.collapsible > .ref-section-header .collapse-count.is-complete { color:var(--code-value,#7ecfa0); }
.ref-section.collapsible > .ref-section-header .collapse-chevron { margin-left: 0.55rem; color: var(--orange-ink); transition: transform 0.2s ease; flex-shrink: 0; }
.ref-section.collapsible.is-open > .ref-section-header .collapse-chevron { transform: rotate(180deg); }
.ref-section.collapsible > .ref-section-header:hover .collapse-chevron { opacity: 0.8; }
.ref-section.collapsible > .collapse-body { display: none; }
.ref-section.collapsible.is-open > .collapse-body { display: block; }

@media (max-width: 900px) {
  .page-2col { display: block; max-width: 900px; padding: 0 2rem; }
  .page-2col > .ref-sections { padding: 0 0 2rem; }
  .page-aside { position: static; max-height: none; overflow: visible; margin-bottom: 1.6rem; gap: 0.7rem; }
  .rail-toc-links { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .rail-toc-links a { border-left: none; border: 1px solid var(--border); border-radius: 100px; padding: 0.32rem 0.8rem; background: var(--bg-surface); justify-content: flex-start; }
  .rail-toc-links a:hover { border-color: var(--orange); border-left: 1px solid var(--orange); }
}
@media (max-width: 680px) {
  .page-2col { padding: 0 1.2rem; }
}

/* ── Small-config pattern: 60/40 two-col + editable config rail (2026-07-19, first use: Astro Colony) ──
   For games whose whole server surface fits one page: settings explained in the main
   column, a prefilled EDITABLE config in the rail (copy/download) instead of a generator.
   Rail is ~40% at laptop widths, clamped at 620px so ultrawide doesn't balloon it. */
.page-2col.full-6040 { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 34vw, 620px); gap: 2.5rem; align-items: start; max-width: none; margin: 0; padding: 0 2.5vw; }
/* No rail, no reserved track. footer.js removes a .page-aside that ends up with nothing in it,
   and this is what reclaims the width — one column, full envelope.
   ⚠ body-scoped so it outranks .page-2col.full-70 in BOTH guide.css and effigy.css; a bare
   .page-2col:not(:has(…)) ties on specificity and loses to whichever stylesheet loads last. */
body .page-2col:not(:has(> .page-aside)),
/* No rail, no reserved track. footer.js removes a .page-aside that ends up with nothing in it,
   and this is what reclaims the width — one column, full envelope.
   ⚠ body-scoped so it outranks .page-2col.full-80 in BOTH guide.css and effigy.css; a bare
   .page-2col:not(:has(…)) ties on specificity and loses to whichever stylesheet loads last. */
body .page-2col:not(:has(> .page-aside)) { grid-template-columns: minmax(0, 1fr); }
.page-2col.full-6040 > .pg-body { grid-column: 1; grid-row: 1; min-width: 0; }
.page-2col.full-6040 .pg-body > * { max-width: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.page-2col.full-6040 .ref-section-intro, .page-2col.full-6040 .ref-prose, .page-2col.full-6040 .ref-tip, .page-2col.full-6040 .ref-faq-body { max-width: 74ch; }
.rail-config { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px 16px; }
.rail-config h3 { font-family: 'Manrope', sans-serif; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); font-weight: 800; margin: 0 0 8px; }
.rail-config textarea { width: 100%; min-height: 340px; resize: vertical; font-family: Consolas, 'SF Mono', Menlo, monospace; font-size: 0.76rem; line-height: 1.6; color: var(--text); background: var(--bg-card-solid, #fff); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; box-sizing: border-box; }
.rail-config textarea:focus { outline: none; border-color: var(--border-hover); }
.rail-config .rc-btns { display: flex; gap: 8px; margin-top: 10px; }
.rail-config .rc-btns button { flex: 1; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.78rem; padding: 0.5rem 0.6rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card-solid, #fff); color: var(--text); cursor: pointer; transition: border-color 0.15s; }
.rail-config .rc-btns button:hover { border-color: var(--border-hover); }
.rail-config .rc-btns .rc-primary { background: var(--orange, #f08000); border-color: var(--orange, #f08000); color:var(--cta-ink,#1a1a1a); }
.rail-config .rc-note { font-size: 0.7rem; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }
@media (max-width: 900px) { .page-2col.full-6040 { display: block; padding: 0 1.2rem; } }

/* Code block inside setup steps (used by dedicated-server-setup guides) */
.step-body pre { background: #1d2127; color: #d8dee9; border-radius: 9px; padding: 12px 14px; font-family: Consolas, 'SF Mono', Menlo, monospace; font-size: 0.8rem; line-height: 1.6; overflow-x: auto; margin: 0.5rem 0 0.7rem; }

/* ── Rail card: AdSense unit. (.rail-links is defined once in the layout section above; a byte-identical duplicate that lived here was removed 2026-07-21.) ── */
.rail-adsense { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px 12px; text-align: center; }
.rail-adsense-label { display: block; font-family: 'Manrope', sans-serif; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 700; margin-bottom: 6px; opacity: 0.75; }
.rail-adsense ins { display: block; }
.rail-adsense:has(ins[data-ad-status="unfilled"]) { display: none; }


/* ── Field shots + run clip (hand-built guide pages) ───────────────────────────
   .shot-strip  a row of small in-game thumbnails; each is a REAL <img> in the HTML
                (indexable, alt text) and opens full size via img-zoom.js (img.zoomable).
   .run-clip    our own footage, self-hosted on video.gamesomg.com, preload="none"
                so the page costs nothing until someone presses play.
   First used on /icarus-potshot-mission/ (2026-09-23). */
.shot-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.9rem 0 0.2rem; }
.shot-strip figure { margin: 0; width: 148px; }
.shot-strip img { display: block; width: 148px; height: 83px; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: zoom-in; background: var(--bg-surface); }
.shot-strip img:hover { border-color: var(--orange); }
.shot-strip figcaption { margin-top: 0.3rem; font-size: 0.78rem; line-height: 1.3; color: var(--text-muted); }
.ref-hero-photo .shot-strip { margin-top: 0.6rem; }
.run-clip { margin: 0.4rem 0 0; }
.run-clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: var(--radius-md); background: #0c0e0d; }
.run-clip figcaption { margin-top: 0.45rem; font-size: 0.85rem; color: var(--text-muted); }

/* ── Mod pages: /mods/ and each /<game>-teleport-mod/ (2026-11-20) ──
   The download card is the hero panel (the answer on a mod page). Steps are numbered one action each, the number in a
   blue disc so a reader can say "I'm on step 6". Built at 320 px first: nothing here sets a width a phone can't hold. */
.dl-card { display: flex; flex-direction: column; gap: 0.75rem; }
.dl-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; min-height: 56px;
  padding: 0.8rem 1rem; border-radius: var(--radius-md); background: var(--orange); color: var(--cta-ink);
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.05rem; text-align: center; text-decoration: none; }
.dl-btn:hover { background: var(--orange-hover); color: var(--cta-ink); }
.dl-btn small { font-weight: 600; font-size: 0.78rem; opacity: 0.85; }
.dl-btn.dl-soon { background: transparent; color: var(--text-soft); border: 1px dashed var(--orange-border); cursor: default; }
.dl-btn.dl-soon:hover { background: transparent; color: var(--text-soft); }
.dl-card .sha code, .mod-card .sha code { display: block; font-size: 0.72rem; line-height: 1.45; overflow-wrap: anywhere; word-break: break-all; }
.dl-links { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.88rem; }
.ai-line { margin: 0; padding: 0.6rem 0.75rem; border-left: 3px solid var(--blue); background: var(--blue-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.85rem; line-height: 1.5; color: var(--text-soft); }
.ref-hero-inner .ai-line { margin: 0.9rem 0 0; max-width: 74ch; font-size: 0.92rem; }
ol.steps { list-style: none; counter-reset: step; margin: 0.5rem 0 1.1rem; padding: 0; max-width: 74ch; }
ol.steps > li { counter-increment: step; position: relative; margin: 0.55rem 0; padding: 0.1rem 0 0 2.5rem; line-height: 1.6; min-height: 1.9rem; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.85rem; height: 1.85rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--blue-dim); border: 1px solid var(--blue);
  color: var(--blue); font: 800 0.92rem 'Manrope', sans-serif; }
ol.steps > li.ok::before { content: "✓"; background: color-mix(in srgb, var(--green) 14%, transparent); border-color: var(--green); color: var(--green); }
.steps-h { margin: 1.3rem 0 0.2rem; font: 800 1.02rem 'Manrope', sans-serif; color: var(--text); }
.need-list { list-style: none; margin: 0.4rem 0 1rem; padding: 0; max-width: 74ch; }
.need-list li { position: relative; margin: 0.45rem 0; padding-left: 1.6rem; line-height: 1.6; }
.need-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.need-list li.no::before { content: "✗"; color: var(--text-muted); }
.sg-body code { overflow-wrap: anywhere; }
.keys-tbl td:first-child { white-space: nowrap; font-weight: 800; }
.keys-tbl td:first-child small { display: block; font-weight: 600; font-size: 0.78rem; color: var(--text-soft); }
.fix { margin: 1.2rem 0 0; max-width: 74ch; }
.fix h3 { margin: 0 0 0.25rem; font: 800 1rem 'Manrope', sans-serif; color: var(--text); }
.fix p { margin: 0.3rem 0; line-height: 1.6; }
.limits { max-width: 74ch; padding-left: 1.2rem; }
.limits li { margin: 0.5rem 0; line-height: 1.6; }
.mod-shot { margin: 0.4rem 0 1.2rem; max-width: 900px; }
.mod-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: #0c0e0d; }
.mod-shot figcaption { margin-top: 0.45rem; font-size: 0.85rem; color: var(--text-muted); }
/* Panel crops (2026-11-22) are portrait and 480 px wide at capture: two up where there's room, one per row on a phone,
   never wider than 320 px, so nothing upscales and no panel runs 1,000 px tall on a phone. */
.mod-shots { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.4rem 0 1.2rem; }
.mod-shots .mod-shot { flex: 0 1 320px; min-width: 0; margin: 0; }
.mod-shot.is-panel { max-width: 320px; }
.mod-shot.is-mid { max-width: 640px; }
/* "Release notes and older versions" under a mod's Download button: the button is the one-click zip, this is the release page. */
.dl-rel { margin-top: -0.35rem; font-size: 0.85rem; text-align: center; }
/* Install steps inside the download card, under the button (Satisfactory, 2026-11-23: the answer is the button AND the
   three moves after it). .hero-facts li is the card's fact row (flex, a rule on top), which would split a step's bold
   lead from its text, so a step here is a block. Paths in code wrap rather than push a 320 px phone sideways. */
.dl-card ol.steps { margin: 0; }
.dl-card ol.steps > li { display: block; border-top: 0; margin: 0.45rem 0; padding: 0.05rem 0 0 2.3rem; font-size: 0.9rem; line-height: 1.5; color: var(--text-soft); }
.dl-card ol.steps > li strong { color: var(--text); }
.dl-card code { overflow-wrap: anywhere; }
.dl-note { margin: 0; font-size: 0.85rem; line-height: 1.5; color: var(--text-soft); }
.dl-note a { color: var(--blue); }
/* /mods/: one card per mod, the download on the card itself */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; margin: 0.6rem 0 1.4rem; }
.mod-card { display: flex; flex-direction: column; gap: 0.6rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.1rem 1.2rem; min-width: 0; }
.mod-card .mod-game { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue); }
.mod-card h3 { margin: 0; font: 800 1.15rem 'Manrope', sans-serif; color: var(--text); }
.mod-card h3 a { color: inherit; text-decoration: none; }
.mod-card h3 a:hover { text-decoration: underline; }
.mod-card > p { margin: 0; line-height: 1.55; color: var(--text-soft); }
.mod-card ul { list-style: none; margin: 0; padding: 0; font-size: 0.86rem; }
.mod-card ul li { display: flex; gap: 0.6rem; padding: 0.3rem 0; border-top: 1px solid var(--border); min-width: 0; }
.mod-card ul li > span:first-child { flex: 0 0 5.2rem; color: var(--text-muted); font-weight: 700; }
.mod-card ul li > span:last-child { min-width: 0; }
.mod-card .mod-guide { font-weight: 800; font-family: 'Manrope', sans-serif; }
/* Cards line up across a row (Jason 2026-11-22 17:25, "make all this even"): each card is a subgrid of the row's
   tracks, and the fact list a subgrid inside it, so every Download button, each fact row and the links sit at one
   height across the row however many lines a description runs to. One column on a phone: nothing moves there.
   ⚠ THE CARD'S CHILDREN MUST STAY IN THIS ORDER, ONE EACH: .mod-game, h3, p, a.dl-btn, ul, .dl-links, a.mod-guide,
   and the ul holds FIVE li (Version, Keys, Game, Loader, SHA-256). 6 children + 5 li = span 11. A sixth fact row
   means 11 → 12 and 5 → 6 here, on every card at once.
   Spacing inside a card is margins: the card's row-gap 0 overrides the grid's 1rem gap between its own rows (the
   grid keeps it between cards), so nothing leaks in. Measured 11-22: 0 px moved on a phone, 0 px spread across a row.
   Browsers without subgrid keep the flex column above. */
@supports (grid-template-rows: subgrid) {
  .mod-card { display: grid; grid-row: span 11; grid-template-rows: subgrid; row-gap: 0; }
  .mod-card > :not(:first-child) { margin-top: 0.6rem; }   /* (0,2,0): has to beat .mod-card h3 / > p / ul { margin: 0 } */
  .mod-card ul { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
}
@media (max-width: 760px) { .dl-btn { font-size: 1rem; } ol.steps > li { padding-left: 2.3rem; } }

/* .reqs-list: label + answer rows (<li><span class="req-k">Label</span><span>answer</span></li>).
   Until 2026-11-22 the rule lived only inline on seven server-setup pages, and fifteen pages (the Windrose guides,
   Enshrouded's flame-shrine page) used the class with no rule at all, so a label ran into its text on a phone
   ("The questDoctor Galen"). The inline copies are the same block and still win on their own pages. */
.reqs-list { list-style: none; padding: 0; margin: 0; }
.reqs-list li { display: flex; gap: 10px; padding: 0.55rem 0; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 0.93rem; line-height: 1.55; }
.reqs-list li:last-child { border-bottom: none; }
.reqs-list .req-k { flex-shrink: 0; width: 130px; font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--text); }
@media (max-width: 680px) { .reqs-list .req-k { width: 100px; } }

/* Group maps (#928): the line under a game hub's lede, written by tools/static-lists/group.mjs (the block group-line) */
p.group-line { margin: 0.6rem 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--text-muted); max-width: 74ch; }
p.group-line b { color: var(--text); }
p.group-line a { color: var(--blue); }
