/* Lost World Reborn website.
   Look = the list's own logo: worn cream print on near-black, rust used sparingly (MO2 theme branding\LWR.qss).
   Fonts are self-hosted (SIL OFL, licences in /fonts): Barlow Condensed (headings), Barlow (text), IBM Plex Mono. */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(/fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/barlow-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(/fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(/fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --bg: #121310;
  --bg-deep: #0c0d0b;
  --panel: #1a1b17;
  --panel2: #22231e;
  --line: #2f302a;
  --line2: #46473f;
  --ink: #e9e2d0;          /* the logo's cream */
  --text: #d6d0c0;
  --muted: #9a9485;
  --rust: #c8452d;
  --rust-hi: #ff5a3c;
  --code: #1e1f1a;
  --display: "Barlow Condensed", "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Cascadia Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: clip;
  font: 17px/1.62 var(--body);
}
/* faint print grain over everything, like the logo's worn ink */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--rust); color: #fff; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust-hi); }

/* ------------------------------------------------------------------ header */
header.top { background: var(--bg-deep); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.top .wrap { display: flex; align-items: center; gap: 24px; max-width: 1200px; min-height: 60px; }
.logo { flex: none; line-height: 0; }
.logo img { height: 30px; width: auto; border: 0; border-radius: 0; }
nav.main { display: flex; gap: 2px; margin-left: auto; align-self: stretch; }
nav.main a {
  display: flex; align-items: center; padding: 0 11px; color: var(--muted); text-decoration: none;
  font: 600 15px/1 var(--display); letter-spacing: .07em; text-transform: uppercase;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
nav.main a:hover { color: var(--ink); }
nav.main a.on { color: var(--ink); border-bottom-color: var(--rust); }

/* ------------------------------------------------------------------ layout */
main.wrap { padding-top: 36px; padding-bottom: 64px; }
main.has-toc { max-width: 1200px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; align-items: start; }
article { min-width: 0; max-width: 900px; }

.toc { position: sticky; top: 92px; font-size: 14.5px; max-height: calc(100vh - 110px); overflow: auto; border-left: 1px solid var(--line); padding: 2px 0 2px 16px; }
.toc b { display: block; font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0 0 8px; line-height: 1.3; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ type */
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); font-weight: 600; scroll-margin-top: 84px; }
h1 { font-size: 46px; line-height: 1.05; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 22px; }
h1::after { content: ""; display: block; width: 56px; height: 3px; background: var(--rust); margin-top: 16px; }
h2 { font-size: 28px; line-height: 1.15; text-transform: uppercase; letter-spacing: .03em; margin: 52px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: .02em; margin: 34px 0 10px; }
h4 { font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 26px 0 8px; }
article > h1 + h2, article > h2:first-child { border-top: 0; padding-top: 0; margin-top: 8px; }
p { margin: 0 0 14px; }
strong, b { color: var(--ink); font-weight: 600; }
em { color: var(--ink); }
code {
  font: .84em/1.4 var(--mono); color: var(--ink); background: var(--code); border: 1px solid var(--line);
  border-radius: 2px; padding: 1px 5px; overflow-wrap: anywhere;
}
pre { background: var(--code); border: 1px solid var(--line); padding: 14px 16px; overflow-x: auto; }
pre code { border: 0; padding: 0; background: none; }
article img { max-width: 100%; height: auto; border: 1px solid var(--line2); display: block; margin: 10px 0 18px; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin: 4px 0; }
li::marker { color: var(--rust); }
ol > li::marker { font: 500 .9em var(--mono); color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

/* tables scroll inside themselves on a phone */
table { border-collapse: collapse; width: 100%; margin: 14px 0 22px; font-size: 15.5px; display: block; overflow-x: auto; }
th, td { border-bottom: 1px solid var(--line); padding: 9px 14px 9px 0; text-align: left; vertical-align: top; }
th { font: 500 11.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line2); padding-top: 4px; }
td:first-child { color: var(--ink); }

/* the guides' boxes: "stop here" (info) and warnings */
.stop, .warn { margin: 30px 0; padding: 16px 20px 4px; background: var(--panel); border: 1px solid var(--line2); border-left: 4px solid var(--rust); }
.stop > p:first-child > strong:first-child { font: 600 20px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); display: block; margin-bottom: 6px; }
.stop ul { padding-left: 20px; }
.warn { background: #241812; border-color: #5a2a1d; border-left-color: var(--rust-hi); }
.warn > p:first-child::before { content: "\26A0  "; color: var(--rust-hi); }
.warn strong { color: #fff; }

/* the "where things go" table: best place vs don't put it in */
table.where th { font: 700 13px/1.3 var(--mono); color: var(--ink); letter-spacing: .1em; }
table.where td:nth-child(2)::before { content: "\2713  "; color: #6fbf5a; font-weight: 700; }
table.where td:nth-child(3) { color: #ff6b52; }
table.where td:nth-child(3)::before { content: "\2717  "; color: #ff6b52; font-weight: 700; }
table.where td:nth-child(3) em { color: #ff6b52; }
table.where td:nth-child(3) code { color: #ff8a75; }

/* ------------------------------------------------------------------ buttons */
.button {
  display: inline-block; padding: 13px 26px 12px; background: var(--rust); color: #fff; text-decoration: none;
  font: 700 17px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--rust);
}
.button:hover { background: var(--rust-hi); border-color: var(--rust-hi); color: #fff; }

/* ------------------------------------------------------------------ home */
main.home { padding-top: 0; }
main.home article { max-width: none; }
.hero {
  position: relative; margin: 0 calc(50% - 50vw); min-height: min(76vh, 700px);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center;
  padding: 120px 20px 56px; overflow: hidden; isolation: isolate;
  background: url(/img/hero-emission.jpg) center 28% / cover no-repeat;
}
/* the reveal trailer behind the logo (desktop; phones / reduced motion keep the still above) */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; z-index: -2; border: 0; margin: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,19,16,.1) 0%, rgba(18,19,16,.28) 45%, rgba(18,19,16,.9) 86%, var(--bg) 100%);
}
.hero .mark { width: min(720px, 92%); height: auto; border: 0; margin: 0 0 18px; filter: drop-shadow(0 6px 24px rgba(0,0,0,.65)); }
.hero h1 { font-size: 24px; font-weight: 600; letter-spacing: .2em; color: var(--ink); margin: 0 0 14px; }
.hero h1::after { display: none; }
.hero p { max-width: 620px; margin: 0 auto 10px; color: var(--ink); font-size: 18px; text-shadow: 0 1px 12px rgba(0,0,0,.8); }
.hero p strong { color: #fff; }
.cta { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 22px !important; }
.cta .plain { font: 600 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.home-body { max-width: 920px; margin: 0 auto; }

/* "What it is": a spec sheet, not a bullet list */
.features ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.features li { margin: 0; padding: 18px 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.features li strong { display: block; font: 600 20px/1.15 var(--display); letter-spacing: .02em; color: var(--ink); margin-bottom: 4px; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 8px 0 18px; padding: 0; list-style: none; font: 500 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.specs li { margin: 0; }
.specs li::marker { content: none; }
.specs b { color: var(--ink); font-weight: 500; }

/* ------------------------------------------------------------------ home: banner text */
.hero .kicker { font: 500 12px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; text-shadow: none; }
.hero h1.lead { font: 700 32px/1.2 var(--display); text-transform: none; letter-spacing: .01em; color: var(--ink); max-width: 820px; margin: 0 auto 16px; text-shadow: 0 2px 16px rgba(0,0,0,.85); }
.statement { max-width: 840px; margin: 76px auto 10px; padding: 0 0 0 22px; border-left: 3px solid var(--rust); font: 600 30px/1.25 var(--display); color: var(--ink); letter-spacing: .01em; }

/* ------------------------------------------------------------------ home: feature rows */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.feat.flip .feat-text { order: 2; }
.feat h2, .showcase h2 { border: 0; padding: 0; margin: 6px 0 14px; font-size: 40px; line-height: 1.05; }
.feat-text p:not(.tag-line) { color: var(--text); font-size: 17.5px; }
.tag-line { font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--rust-hi); margin: 0 0 8px; }
.feat-art { position: relative; background: #161714; border: 1px solid var(--line2); padding: 22px; min-height: 270px; overflow: hidden; }
.feat-art::before, .feat-art::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--muted); }
.feat-art::before { top: 6px; left: 6px; border-top-width: 1px; border-left-width: 1px; }
.feat-art::after { bottom: 6px; right: 6px; border-bottom-width: 1px; border-right-width: 1px; }
.panel-head { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; margin-bottom: 18px; border-bottom: 1px solid var(--line2); }

/* 01 emission countdown, after the list's HUD timer */
.art-emission { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
.em-sky { position: absolute; inset: 0 0 auto 0; height: 62%; background: linear-gradient(180deg, #6e2518 0%, #a8402b 38%, rgba(120,40,24,.35) 75%, transparent 100%); opacity: .55; }
.em-box { position: relative; display: flex; flex-direction: column; align-items: center; padding: 10px 34px 8px; background: #0a0a09; border: 2px solid #3b3c37; box-shadow: inset 0 0 0 1px #1d1e1a, 0 8px 30px rgba(0,0,0,.6); }
.em-label { font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #c8452d; }
.em-time { font: 500 50px/1.1 var(--mono); color: var(--rust-hi); letter-spacing: .06em; text-shadow: 0 0 14px rgba(255,90,60,.35); }
.em-box.zero { background: #3a120b; border-color: var(--rust-hi); }
.em-steps { position: relative; display: flex; gap: 0; list-style: none; padding: 0; margin: 0; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.em-steps li { margin: 0; padding: 0 10px; border-left: 1px solid var(--line2); }
.em-steps li:first-child { border-left: 0; }
.em-steps li:last-child { color: var(--rust-hi); }

/* 02 detector trace + artifact belt */
.art-detector .trace { width: 100%; height: 130px; display: block; background:
  repeating-linear-gradient(0deg, transparent 0 25px, rgba(233,226,208,.06) 25px 26px),
  repeating-linear-gradient(90deg, transparent 0 39px, rgba(233,226,208,.06) 39px 40px); }
.trace path { fill: none; stroke: var(--rust-hi); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.belt { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.slot { width: 38px; height: 38px; border: 1px solid var(--line2); background: #10110e; position: relative; }
.slot.on::after { content: ""; position: absolute; inset: 9px; background: radial-gradient(circle at 40% 35%, #f0d9a8, #c8452d 55%, #4a160d); border-radius: 50% 44% 52% 40%; }
.belt em { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: 6px; font-style: normal; }

/* 03 night dial */
.art-dial { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dial { width: 220px; height: 220px; }
.dial .ring { fill: #10110e; stroke: var(--line2); stroke-width: 1.5; }
.dial .night { fill: rgba(200,69,45,.32); }
.dial .minor { fill: none; stroke: var(--muted); stroke-width: 6; stroke-dasharray: 1.2 22.36; opacity: .6; }
.dial .ticks line { stroke: var(--ink); stroke-width: 2; }
.dial .hand { stroke: var(--rust-hi); stroke-width: 2.5; }
.dial .hub { fill: var(--rust-hi); }
.dial .lbl { font: 500 11px var(--mono); fill: var(--muted); text-anchor: middle; }
.dial-note { margin: 14px 0 0; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dial-note b { color: var(--rust-hi); font-weight: 500; margin-right: 8px; }

/* 04 roster */
.roster, .standing { list-style: none; padding: 0; margin: 0; }
.roster li, .standing li { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; align-items: center; margin: 0 0 14px; font-size: 15px; color: var(--ink); }
.roster i { display: block; height: 6px; background: linear-gradient(90deg, var(--rust) var(--w), #26271f var(--w)); }
.roster .redacted span { color: #3b3c36; letter-spacing: -1px; }
.roster .redacted i { background: repeating-linear-gradient(135deg, #7a2416 0 6px, #3a120b 6px 12px); }

/* 05 PDA log, after the list's PDA window */
.art-pda { display: flex; align-items: center; }
.pda { width: 100%; background: #0e0f0d; border: 1px solid #3d3e38; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.pda-title { display: flex; justify-content: space-between; padding: 8px 12px; background: #1b1c18; border-bottom: 1px solid #3d3e38; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.pda-title span + span { color: var(--rust-hi); }
.pda p { margin: 0; padding: 10px 12px; border-bottom: 1px solid #23241f; font: 400 13px/1.45 var(--mono); color: #cfc8b6; }
.pda p:last-child { border-bottom: 0; }
.pda b { display: inline-block; font: 500 10px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 0 6px; margin-right: 8px; background: #2c2d27; color: var(--ink); }
.pda b.t-red { background: #8a2a1c; color: #fff; }
.pda b.t-amber { background: #6b4a12; color: #fff; }
.pda time { color: var(--muted); margin-right: 10px; font-size: 11px; }

/* 06 standing meters: fame right of the centre line, infamy left */
.standing i { position: relative; display: block; height: 8px; background: #22231e; }
.standing i::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--muted); }
.standing i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: calc(var(--v) * .5%); background: var(--ink); }
.standing .neg i::after { left: auto; right: 50%; background: var(--rust); }

/* 07 spec sheet */
.art-spec { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; }
.reticle { width: 150px; height: 150px; }
.reticle circle, .reticle line { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .8; }
.reticle .dot { fill: var(--rust-hi); stroke: none; opacity: 1; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font: 500 12.5px/1.3 var(--mono); }
.spec dt { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: 11px; padding-top: 1px; }
.spec dd { margin: 0; color: var(--ink); }
.spec .struck { color: var(--rust-hi); text-decoration: line-through; text-decoration-thickness: 2px; }

/* 04 survival needs, after the list's HP / AP / RAD box, + a trade ledger */
.art-needs { display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.hudbox { align-self: flex-start; min-width: 78%; padding: 12px 14px; background: #0c0d0b; border: 1px solid #3d3e38; border-radius: 3px; box-shadow: inset 0 0 0 1px #1a1b17; }
.hudbox p { display: grid; grid-template-columns: 4.5em 1fr 2.2em; gap: 12px; align-items: center; margin: 4px 0; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #c8452d; }
.hudbox i { display: block; height: 9px; background:
  repeating-linear-gradient(90deg, transparent 0 7px, #0c0d0b 7px 9px),
  linear-gradient(90deg, #d9d3c2 var(--w), #23241f var(--w)); }
.hudbox i.low { background: repeating-linear-gradient(90deg, transparent 0 7px, #0c0d0b 7px 9px), linear-gradient(90deg, var(--rust-hi) var(--w), #23241f var(--w)); }
.hudbox b { font-weight: 500; color: var(--ink); text-align: right; }
.ledger { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line2); }
.ledger li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 9px 0; border-bottom: 1px dashed var(--line2); font-size: 15px; color: var(--ink); }
.ledger b { font: 500 11px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ledger b.warn-txt { color: var(--rust-hi); }
.closer-line { max-width: 620px; margin: 0 auto 26px; font: 600 22px/1.3 var(--display); color: var(--ink); }
.closer-line a { white-space: nowrap; }
.closer-line.yours { max-width: 760px; text-align: center; margin: 0 auto; padding: 60px 0 4px; font-size: 26px; }

/* showcase video: a local thumbnail until clicked, then YouTube (no-cookie) */
.showcase { padding: 64px 0 10px; }
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line2); margin-top: 18px; }
.yt button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.yt img { width: 100%; height: 100%; object-fit: cover; border: 0; margin: 0; display: block; }
.yt .play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--rust); }
.yt .play::after { content: ""; position: absolute; left: 33px; top: 25px; border-style: solid; border-width: 17px 0 17px 26px; border-color: transparent transparent transparent #fff; }
.yt button:hover .play, .yt button:focus-visible .play { background: var(--rust-hi); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-note { font-size: 14px; color: var(--muted); margin-top: 10px; }
.closer { text-align: center; padding: 56px 0 20px; }
.closer .specs { justify-content: center; }

/* ------------------------------------------------------------------ install chooser */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; margin: 22px 0 26px; border: 1px solid var(--line2); }
.choice { display: block; padding: 22px 24px 24px; background: var(--panel); color: var(--text); text-decoration: none; border-left: 3px solid transparent; }
.choice + .choice { box-shadow: inset 1px 0 0 var(--line2); }
.choice:hover { background: var(--panel2); border-left-color: var(--rust); color: var(--text); }
.choice b { display: block; font: 700 38px/1 var(--display); color: var(--ink); letter-spacing: .02em; margin-bottom: 10px; }
.choice span { color: var(--muted); font-size: 15.5px; }
.choice:hover b { color: var(--rust-hi); }

/* ------------------------------------------------------------------ mod list */
.modfilter { position: sticky; top: 61px; z-index: 5; background: var(--bg); padding: 12px 0; margin: 10px 0 6px; display: flex; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.modfilter input { flex: 1; max-width: 420px; padding: 10px 12px; font: 15px var(--body); color: var(--ink); background: var(--panel); border: 1px solid var(--line2); border-radius: 0; }
.modfilter input::placeholder { color: var(--muted); }
.modfilter input:focus { outline: 0; border-color: var(--rust); }
#modn { font: 500 12.5px var(--mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.modsec { border-bottom: 1px solid var(--line); }
.modsec summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; padding: 16px 0; }
.modsec summary::-webkit-details-marker { display: none; }
.modsec summary::before { content: "+"; font: 500 15px var(--mono); color: var(--rust); width: 12px; }
.modsec[open] summary::before { content: "\2212"; }
.modsec summary h3 { margin: 0; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; }
.modsec summary small { font: 500 12.5px var(--mono); color: var(--muted); }
table.mods { display: table; font-size: 15px; margin: 0 0 18px; }
table.mods td { padding: 8px 16px 8px 0; }
table.mods td:first-child { width: 62%; }
table.mods td:last-child { color: var(--muted); padding-right: 0; }
table.mods a { text-decoration-color: var(--line2); }
table.mods a:hover { text-decoration-color: var(--rust-hi); }
.parts, .how { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; margin-top: 2px; }
.how a { color: var(--muted); }
.tag { display: inline-block; margin-left: 8px; padding: 1px 5px; font: 500 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line2); vertical-align: 2px; }
.tag.lwr { color: var(--rust-hi); border-color: var(--rust); }

/* ------------------------------------------------------------------ footer */
footer { border-top: 1px solid var(--line); background: var(--bg-deep); color: var(--muted); font-size: 14px; padding: 26px 0 34px; }
footer .wrap { max-width: 1200px; }
footer p { margin: 0 0 8px; }
footer b { color: var(--ink); font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; font-size: 15px; }
footer a { color: var(--muted); }
footer .small { font-size: 12.5px; max-width: 760px; }

/* ------------------------------------------------------------------ narrow screens */
@media (max-width: 900px) {
  header.top { position: static; }
  header.top .wrap { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 12px; }
  nav.main { margin: 6px -20px 0; padding: 0 12px; align-self: stretch; overflow-x: auto; scrollbar-width: none; min-height: 42px; }
  nav.main::-webkit-scrollbar { display: none; }
  nav.main a { padding: 0 9px; }
  main.has-toc { display: block; }
  .toc { position: static; max-height: none; margin-bottom: 28px; }
  .modfilter { top: 0; }
  .features ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat { grid-template-columns: 1fr; gap: 26px; padding: 48px 0; }
  .feat.flip .feat-text { order: 0; }
  .statement { font-size: 25px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  nav.main { margin: 6px -16px 0; }
  h1 { font-size: 34px; }
  h2 { font-size: 24px; margin-top: 40px; }
  .hero { min-height: 0; padding: 72px 16px 40px; background-image: url(/img/hero-emission-960.jpg); background-position: 40% 20%; }
  .hero-bg { display: none; }
  .hero h1.lead { font-size: 23px; }
  .feat h2, .showcase h2 { font-size: 32px; }
  .hudbox { min-width: 100%; }
  .art-spec { grid-template-columns: 1fr; justify-items: center; }
  .roster li, .standing li { grid-template-columns: 8em 1fr; font-size: 14px; }
  .hero p { font-size: 16.5px; }
  .features ul { grid-template-columns: 1fr; }
  table.mods, table.mods tbody, table.mods tr, table.mods td { display: block; width: auto !important; }
  table.mods thead { display: none; }
  table.mods tr { padding: 9px 0; border-bottom: 1px solid var(--line); }
  table.mods td { border: 0; padding: 0; }
  table.mods td:last-child { font-size: 13.5px; }
}
