/* ============================================================
   SILENT HILL: Townfall Guide — Analog Broadcast / Rusted Archive
   Palette, typography and components per Ada's UI Spec.
   Readability first, atmosphere second, decoration third.
   ============================================================ */

:root {
  /* ---- Backgrounds (near-black charcoal, never pure black) ---- */
  --bg: #090A0C;
  --bg-2: #101214;
  --surface: #141517;
  --panel: #18191B;

  /* ---- Text ---- */
  --text: #E8E4DD;          /* dirty off-white — headings */
  --body: #C9C5BE;          /* body copy (never full white) */
  --text-2: #AAA6A0;
  --text-dim: #77736D;

  /* ---- Accent: distressed rust / blood red ---- */
  --rust: #A6282E;
  --rust-hi: #C4373C;
  --rust-dark: #652023;
  --rust-deep: #7E2025;

  /* ---- Secondary: faded brass (labels/metadata only, never CTA) ---- */
  --brass: #B39A54;

  /* ---- Cold atmospheric blue-grey (fog, overlays, hover) ---- */
  --cold: #3A4A54;

  /* ---- Borders ---- */
  --line: rgba(255, 255, 255, 0.15);
  --line-soft: rgba(255, 255, 255, 0.10);
  --line-rust: rgba(166, 40, 46, 0.65);
  --line-rust-soft: rgba(166, 40, 46, 0.45);

  /* ---- Type ---- */
  --font-display: 'Montserrat', 'Archivo', 'Helvetica Neue', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', 'EB Garamond', 'Libre Baskerville', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max: 1340px;
  --pad: 48px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* ---------- Layered background: base + fog glow + CRT scanlines ----------
   Static only — no animated full-screen noise (readability + perf). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(58, 74, 84, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(101, 32, 35, 0.12), transparent 70%),
    linear-gradient(180deg, #0b0c0e 0%, #08090a 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.9) 0px,
    rgba(255, 255, 255, 0.9) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* Fine grain layer on the content wrapper so text stays crisp */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header, main, .site-footer { position: relative; z-index: 2; }

/* ---------- Links ---------- */
a { color: var(--text); text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--rust-hi); }

/* ---------- Headings: editorial serif ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--text); line-height: 1.2; font-weight: 600; }

h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); letter-spacing: -0.01em; margin-bottom: 0.9rem; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 2.6rem 0 1rem; position: relative; padding-bottom: 0.55rem; }
h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 58px; height: 1px;
  background: linear-gradient(90deg, var(--rust) 0%, rgba(166, 40, 46, 0) 100%);
}
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin: 1.9rem 0 0.7rem; }
h4 { font-size: 1.05rem; margin: 1.4rem 0 0.5rem; color: var(--text-2); }
p { margin: 0 0 1.05rem; }
ul, ol { margin: 0 0 1.15rem 1.3rem; }
li { margin-bottom: 0.5rem; }
strong { color: var(--text); font-weight: 600; }
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 0.08em 0.34em;
  color: var(--text);
}

/* ---------- Micro label (broadcast metadata) ---------- */
.label, .micro {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.label--brass { color: var(--brass); }
.label--rust { color: var(--rust-hi); }

/* ---------- Chromatic aberration: hero title + selected accents only ---------- */
.chroma {
  text-shadow:
    -1px 0 rgba(0, 220, 255, 0.5),
     1px 0 rgba(255, 30, 30, 0.5);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 11, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ---- Logo block ---- */
.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand-mark { color: var(--rust); display: grid; place-items: center; }
.brand-mark svg { display: block; }
.brand-stack { display: flex; flex-direction: column; line-height: 1.05; }
.brand-top {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #fff;
}
.brand-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.06rem;
  color: var(--rust);
  letter-spacing: 0.01em;
}
.brand-tag {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-left: 0.5rem;
  align-self: flex-end;
  padding-bottom: 2px;
}

/* ---- Nav: hard-edged text links, no pills ---- */
.header-nav { display: flex; align-items: center; gap: 1.55rem; margin-left: auto; }
.header-nav > a, .nav-group-btn {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-2);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.header-nav > a:hover, .nav-group-btn:hover,
.header-nav > a.active, .nav-group-btn.active { color: var(--rust-hi); border-bottom-color: var(--rust); }

.nav-group { position: relative; }
.nav-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: -14px;
  min-width: 250px;
  background: var(--panel);
  border: 1px solid var(--line-rust-soft);
  padding: 0.5rem 0;
  display: none;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}
.nav-group:hover .nav-drop,
.nav-group:focus-within .nav-drop,
.nav-group.open .nav-drop { display: flex; }
.nav-drop a {
  padding: 0.5rem 1.05rem;
  font-size: 0.82rem;
  color: var(--text-2);
  border-left: 2px solid transparent;
}
.nav-drop a:hover { color: var(--text); background: rgba(166, 40, 46, 0.10); border-left-color: var(--rust); }
.nav-drop a.active { color: var(--rust-hi); border-left-color: var(--rust); }

.search-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 1rem;
  width: 34px; height: 34px;
  cursor: pointer;
  transition: all 160ms ease;
  flex-shrink: 0;
}
.search-toggle:hover { border-color: var(--rust-hi); color: var(--rust-hi); }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.1rem;
  width: 38px; height: 34px;
  cursor: pointer;
  margin-left: auto;
}

/* ---- Reading progress + On this page jump ---- */
.read-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.read-bar-track { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.10); }
.read-bar-fill { display: block; height: 1px; width: 0; background: var(--rust); }
.read-jump {
  background: none;
  border: 0;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.read-jump:hover { color: var(--rust-hi); }
.read-menu {
  position: absolute;
  right: var(--pad);
  top: 100%;
  background: var(--panel);
  border: 1px solid var(--line-rust-soft);
  padding: 0.4rem 0;
  min-width: 230px;
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 60;
}
.read-menu a {
  padding: 0.34rem 0.95rem;
  font-size: 0.78rem;
  color: var(--text-2);
  border-left: 2px solid transparent;
}
.read-menu a:hover { color: var(--text); background: rgba(166, 40, 46, 0.10); }
.read-menu a[aria-current="true"] { color: var(--text); border-left-color: var(--rust); }

/* ============================================================
   SEARCH OVERLAY — broadcast terminal
   ============================================================ */
.search-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 7, 9, 0.96);
  padding: 14vh 1.5rem 2rem;
  overflow-y: auto;
}
.search-panel.open { display: block; }
.search-panel label { display: block; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rust); margin-bottom: 0.7rem; }
#searchInput {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-rust-soft);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  padding: 0.4rem 0 0.6rem;
  outline: none;
}
#searchInput::placeholder { color: var(--text-dim); }
.search-result {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--text);
}
.search-result:hover { color: var(--rust-hi); }
.sr-cat {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.15rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--max); margin: 0 auto; padding: 3.4rem var(--pad) 4.5rem; }

.breadcrumb {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.7rem;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--rust-hi); }
.crumb-sep { color: var(--rust); }

/* Article page: sidebar TOC + main column */
.content-wrapper { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3.2rem; align-items: start; }
.sidebar { position: sticky; top: 120px; }
.sidebar .nav-section h3 {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-rust-soft);
}
.sidebar .nav-section ul { list-style: none; margin: 0; }
.sidebar .nav-section li { margin-bottom: 0.1rem; }
.sidebar .nav-section a {
  display: block;
  font-size: 0.84rem;
  color: var(--text-2);
  padding: 0.28rem 0 0.28rem 0.75rem;
  border-left: 1px solid var(--line-soft);
  line-height: 1.45;
}
.sidebar .nav-section a:hover { color: var(--text); border-left-color: var(--rust); }
.main-content { min-width: 0; max-width: 820px; }

/* ---------- Article meta line ---------- */
.last-updated {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.page-intro { font-size: 1.06rem; color: var(--text-2); margin-bottom: 1.6rem; }

/* ---------- Quick answer ---------- */
.quick-answer {
  background: var(--surface);
  border: 1px solid var(--line-rust);
  border-left-width: 3px;
  border-left-color: var(--rust);
  padding: 1.3rem 1.5rem;
  margin: 0 0 2rem;
  border-radius: 2px;
}
.quick-answer strong {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust-hi);
  margin-bottom: 0.55rem;
}
.quick-answer p:last-child { margin-bottom: 0; }

/* ---------- Callouts: dark archival panels ---------- */
.tip-box, .important-box, .warning-box, .spoiler-box {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--text-dim);
  padding: 1.15rem 1.4rem;
  margin: 1.6rem 0;
  border-radius: 2px;
}
.tip-box strong, .important-box strong, .warning-box strong, .spoiler-box strong {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--text-2);
}
.tip-box strong { color: var(--text-2); }
.important-box { border-left-color: var(--rust); }
.important-box strong { color: var(--rust-hi); }
.warning-box { border-left-color: var(--rust); background: rgba(101, 32, 35, 0.16); }
.warning-box strong { color: var(--rust-hi); }
.spoiler-box { background: #0c0d0f; border-left-color: var(--cold); }
.spoiler-box strong { color: var(--cold); filter: brightness(1.5); }
.spoiler-box[open] strong { margin-bottom: 0.7rem; }
.spoiler-box summary { cursor: pointer; list-style: none; }
.spoiler-box summary::-webkit-details-marker { display: none; }
.spoiler-box p:last-child { margin-bottom: 0; }

/* ---------- Images as collected evidence ---------- */
.main-content img, .shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  margin: 1.7rem 0 0.5rem;
  background: var(--bg-2);
}
.img-caption {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 1.9rem;
}

/* ---------- Tables: promotional edition-chart language ---------- */
.table-scroll { overflow-x: auto; margin: 1.6rem 0 2rem; border: 1px solid var(--line-rust-soft); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 460px; }
thead th {
  background: linear-gradient(180deg, #1b1c1f 0%, #151618 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line-rust-soft);
  white-space: nowrap;
}
tbody td { padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); vertical-align: top; color: var(--body); }
tbody tr:nth-child(odd) { background: rgba(255, 255, 255, 0.018); }
tbody tr:last-child td { border-bottom: 0; }
tbody td strong { color: var(--text); }

/* ============================================================
   HERO (homepage)
   ============================================================ */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: 560px;
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
  gap: 2rem;
}
.hero-copy { position: relative; z-index: 3; padding: 3.5rem 0; }
.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.1rem);
  line-height: 1.06;
  margin-bottom: 1rem;
}
.hero-kicker {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
}
.hero-lede { font-size: 1.04rem; color: var(--text-2); max-width: 40ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; z-index: 1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.72) contrast(1.06) brightness(0.74); }
.hero-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 11, 0.98) 0%, rgba(8, 9, 11, 0.80) 42%, rgba(8, 9, 11, 0.22) 75%);
}
.hero-meta {
  position: absolute;
  right: var(--pad);
  bottom: 1.1rem;
  z-index: 4;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 228, 221, 0.42);
  line-height: 1.7;
}

/* ============================================================
   BUTTONS — rectangular, no rounded modern pills
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.82rem 1.5rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 170ms ease;
}
.btn-primary { background: var(--rust-deep); border: 1px solid #B32C32; color: #fff; }
.btn-primary:hover { background: var(--rust-hi); border-color: var(--rust-hi); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--rust-hi); color: var(--text); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-soft);
}
.section-head h2 { margin: 0; padding: 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.section-head h2::after { display: none; }
.section-head .micro { flex-shrink: 0; }

/* ============================================================
   GUIDE CARDS (4-col)
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-rust-soft);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 180ms ease;
}
.guide-card:hover { border-color: var(--rust-hi); }
.guide-card-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.guide-card-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) contrast(1.05) brightness(0.78); transition: transform 200ms ease, filter 200ms ease; }
.guide-card:hover .guide-card-thumb img { transform: scale(1.025); filter: saturate(0.85) contrast(1.12) brightness(0.86); }
.guide-card-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(transparent 35%, rgba(8, 9, 10, 0.9) 100%);
}
.guide-card-body { padding: 1.05rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.guide-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}
.guide-card-body h3 a { color: var(--text); }
.guide-card-body h3 a:hover { color: var(--rust-hi); }
.guide-card-body p { font-size: 0.84rem; color: var(--text-2); margin: 0 0 0.9rem; line-height: 1.6; }
.guide-card-more {
  margin-top: auto;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  transition: transform 180ms ease;
}
.guide-card:hover .guide-card-more { transform: translateX(4px); color: var(--rust-hi); }

/* ============================================================
   ARTICLE ROWS (Latest guides — publication index, not blog grid)
   ============================================================ */
.article-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.article-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.article-row img {
  width: 150px; height: 90px; object-fit: cover;
  border: 1px solid var(--line-soft);
  filter: saturate(0.7) contrast(1.05) brightness(0.8);
  transition: filter 180ms ease;
}
.article-row:hover img { filter: saturate(0.85) contrast(1.12) brightness(0.88); }
.article-row h3 { font-size: 1.12rem; margin: 0 0 0.35rem; }
.article-row h3 a { color: var(--text); }
.article-row h3 a:hover { color: var(--rust-hi); }
.article-row p { font-size: 0.86rem; color: var(--text-2); margin: 0 0 0.5rem; line-height: 1.6; }

/* ============================================================
   GAME INFO PANEL — case file / dossier
   ============================================================ */
.game-info { background: var(--panel); border: 1px solid var(--line); border-radius: 2px; }
.game-info h3 {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--line-rust-soft);
}
.game-info-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(0.72) contrast(1.05) brightness(0.8); border-bottom: 1px solid var(--line-soft); }
.game-info-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.68rem 1.15rem; border-bottom: 1px solid var(--line-soft); }
.game-info-row:last-child { border-bottom: 0; }
.game-info-row dt { font-family: var(--font-body); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); padding-top: 4px; flex-shrink: 0; }
.game-info-row dd { font-family: var(--font-serif); font-size: 0.95rem; color: var(--text); text-align: right; margin: 0; }

/* ============================================================
   TRANSMISSION LOG — signature component
   ============================================================ */
.transmission {
  background: var(--bg-2);
  border-top: 1px solid var(--line-rust-soft);
  border-bottom: 1px solid var(--line-rust-soft);
  padding: 3.2rem 0;
  margin: 3.6rem 0;
}
.transmission-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 2.4rem;
  align-items: center;
}
.crt-frame { position: relative; border: 1px solid var(--line); background: #000; overflow: hidden; }
.crt-frame img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.4) brightness(0.72); }
.crt-frame::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.42) 0px, rgba(0,0,0,0.42) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
}
.transmission-quote { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.5vw, 1.85rem); line-height: 1.35; color: var(--text); margin-bottom: 1.3rem; }
.waveform { display: block; width: 100%; max-width: 260px; height: 26px; margin-bottom: 1.2rem; }
.waveform path { stroke: var(--rust); stroke-width: 1.4; fill: none; }
.transmission-log .label { display: block; margin-bottom: 0.6rem; color: var(--rust); }
.transmission-log p { font-size: 0.9rem; color: var(--text-2); margin: 0; }
.channels { display: flex; flex-direction: column; gap: 0.15rem; }
.channel {
  display: flex;
  gap: 0.85rem;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition: all 170ms ease;
}
.channel:hover { color: var(--text); background: rgba(166, 40, 46, 0.08); }
.channel.active { color: var(--text); border-color: var(--rust); background: rgba(166, 40, 46, 0.10); }

/* ============================================================
   EDITION COMPARISON
   ============================================================ */
.editions { width: 100%; border-collapse: collapse; border: 1px solid var(--line-rust-soft); margin: 1.6rem 0; min-width: 420px; }
.editions th, .editions td { border: 1px solid rgba(166, 40, 46, 0.28); padding: 0.72rem 1rem; text-align: center; }
.editions th:first-child, .editions td:first-child { text-align: left; }
.editions thead th { background: #131416; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); }
.editions td { font-family: var(--font-serif); font-size: 0.95rem; color: var(--body); }
.editions tbody tr:nth-child(odd) td { background: rgba(255, 255, 255, 0.016); }
.editions .yes { color: var(--brass); font-weight: 600; }
.editions .no { color: var(--text-dim); }

/* ============================================================
   RELATED GRID + PAGE NAV + HELPFUL
   ============================================================ */
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem 0 2rem; }
.related-grid .card {
  background: var(--surface);
  border: 1px solid var(--line-rust-soft);
  border-radius: 2px;
  padding: 1.15rem 1.25rem;
  transition: border-color 180ms ease;
}
.related-grid .card:hover { border-color: var(--rust-hi); }
.related-grid .card h3 { font-size: 1.06rem; margin: 0 0 0.45rem; }
.related-grid .card h3 a { color: var(--text); }
.related-grid .card h3 a:hover { color: var(--rust-hi); }
.related-grid .card p { font-size: 0.84rem; color: var(--text-2); margin: 0 0 0.75rem; line-height: 1.6; }
.card-link { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust); }
.card-link:hover { color: var(--rust-hi); }

.page-nav { display: flex; gap: 1rem; margin: 2.4rem 0 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); }
.page-nav a { flex: 1; border: 1px solid var(--line-soft); border-radius: 2px; padding: 0.9rem 1.1rem; transition: border-color 170ms ease; }
.page-nav a:hover { border-color: var(--rust-hi); }
.page-nav .label { display: block; margin-bottom: 0.3rem; }
.page-nav .pn-title { font-family: var(--font-serif); font-size: 1rem; color: var(--text); }

.helpful { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid var(--line-soft); margin-top: 1.6rem; }
.helpful .label { flex-shrink: 0; }
.helpful button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-2);
  padding: 0.42rem 0.9rem;
  font-size: 0.82rem;
  cursor: pointer;
  border-radius: 2px;
  transition: all 160ms ease;
}
.helpful button:hover { border-color: var(--rust-hi); color: var(--text); }

/* Next-steps module (mid-article) */
.next-steps { background: var(--bg-2); border: 1px solid var(--line-rust-soft); border-left: 3px solid var(--rust); padding: 1.3rem 1.5rem; margin: 2.2rem 0; border-radius: 2px; }
.next-steps > .label { display: block; margin-bottom: 0.9rem; color: var(--rust); }
.next-steps-item { display: block; padding: 0.6rem 0; border-top: 1px solid var(--line-soft); }
.next-steps-item:first-of-type { border-top: 0; }
.next-steps-item strong { display: block; font-family: var(--font-serif); font-size: 1.02rem; color: var(--text); font-weight: 600; margin-bottom: 0.15rem; }
.next-steps-item span { font-size: 0.83rem; color: var(--text-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line-rust-soft); margin-top: 4rem; background: var(--bg-2); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--pad) 2rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
}
.footer-brand .brand-stack { margin-bottom: 0.9rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-dim); margin: 0; max-width: 30ch; }
.footer-col { display: flex; flex-direction: column; gap: 0.42rem; }
.footer-col strong {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.35rem;
}
.footer-col a { font-size: 0.85rem; color: var(--text-2); }
.footer-col a:hover { color: var(--rust-hi); }
.footer-copy {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem var(--pad) 2.4rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.75;
}
.footer-copy a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.footer-copy .micro-tag { display: block; font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(179, 154, 84, 0.6); margin-bottom: 0.6rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  :root { --pad: 32px; }
  .hero-inner { grid-template-columns: 52% 48%; min-height: 480px; }
  .hero-art { width: 58%; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transmission-inner { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .channels { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .channel { flex: 1 1 45%; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .content-wrapper { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* Sidebar TOC moves above the article on tablets/phones */
  .sidebar { position: static; margin-bottom: 2rem; }
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line-rust-soft);
    padding: 0.8rem var(--pad) 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 78vh;
    overflow-y: auto;
  }
  .header-nav.open { display: flex; }
  .header-nav > a { width: 100%; padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-group { width: 100%; }
  .nav-group-btn { width: 100%; text-align: left; padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-drop { position: static; display: none; min-width: 0; border: 0; box-shadow: none; background: transparent; padding: 0 0 0.5rem 0.9rem; }
  .nav-group.open .nav-drop { display: flex; }
  .menu-toggle { display: block; }
  .search-toggle { margin-left: 0.5rem; }
  .header-inner { position: relative; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; }
  h1 { font-size: clamp(1.75rem, 7vw, 2.3rem); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); min-height: 430px; }
  .hero-art { position: absolute; inset: 0; width: 100%; }
  .hero-art::after { background: linear-gradient(180deg, rgba(8,9,11,.72) 0%, rgba(8,9,11,.88) 55%, rgba(8,9,11,.96) 100%); }
  .hero-copy { padding: 2.6rem 0; }
  .hero-meta { display: none; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .article-row { grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; }
  .article-row img { width: 96px; height: 60px; }
  .related-grid { grid-template-columns: minmax(0, 1fr); }
  .transmission-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .header-nav { padding-left: var(--pad); padding-right: var(--pad); }
  .read-menu { right: var(--pad); left: var(--pad); }
  .table-scroll { margin-left: -20px; margin-right: -20px; }
}
