/* The Factory Front: a drafting sheet. Paper grid, blueprint-blue feature panels, red rules,
   taped prints for pictures, typewritten file cards for numbers. Carried over from the Oct 24 site. */
:root {
  --paper: #EBE0CA;  --paper-edge: #E2D5BB;
  --grid-minor: rgba(84, 74, 52, .07);  --grid-major: rgba(84, 74, 52, .13);
  --ink: #1A2233;  --ink-soft: #423E33;  --muted: #6E6454;  --rule: rgba(26, 34, 51, .18);
  --link: #244E8C;  --red: #A02B25;  --red-deep: #84211C;
  --btn-fg: #F7F0DF;  --focus: #244E8C;  --card: rgba(255, 251, 241, .42);
  --feature-bg: #153968;  --feature-fg: #ECE4CE;  --feature-muted: #B9C7DB;  --feature-grid: rgba(236, 228, 206, .085);
  --print: #EBE0CA;  --print-grid: rgba(84, 74, 52, .08);  --print-ink: #1A2233;  --print-muted: #6E6454;
  --print-red: #A02B25;  --print-blue: #153968;  --tape: rgba(212, 194, 148, .78);
  --notice-bg: #F6D9A8;  --notice-ink: #4A3410;
  --font-display: "Charis SIL", Charter, "Bitstream Charter", Georgia, serif;
  --font-body: "Charis SIL", Charter, "Bitstream Charter", Georgia, serif;
  --font-type: "Courier Prime", "Courier New", Courier, monospace;
  --font-label: Archivo, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E2747;  --paper-edge: #0B2140;
    --grid-minor: rgba(236, 228, 206, .055);  --grid-major: rgba(236, 228, 206, .11);
    --ink: #ECE4CE;  --ink-soft: #D3CAB2;  --muted: #A7B4C7;  --rule: rgba(236, 228, 206, .2);
    --link: #B5CEF0;  --red: #E27463;  --red-deep: #F08C7B;
    --btn-fg: #1B1410;  --focus: #B5CEF0;  --card: rgba(19, 52, 94, .55);
    --feature-bg: #EBE0CA;  --feature-fg: #1A2233;  --feature-muted: #574F41;  --feature-grid: rgba(84, 74, 52, .08);
    --notice-bg: #3B2F16;  --notice-ink: #F3DDB0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E2747;  --paper-edge: #0B2140;
  --grid-minor: rgba(236, 228, 206, .055);  --grid-major: rgba(236, 228, 206, .11);
  --ink: #ECE4CE;  --ink-soft: #D3CAB2;  --muted: #A7B4C7;  --rule: rgba(236, 228, 206, .2);
  --link: #B5CEF0;  --red: #E27463;  --red-deep: #F08C7B;
  --btn-fg: #1B1410;  --focus: #B5CEF0;  --card: rgba(19, 52, 94, .55);
  --feature-bg: #EBE0CA;  --feature-fg: #1A2233;  --feature-muted: #574F41;  --feature-grid: rgba(84, 74, 52, .08);
  --notice-bg: #3B2F16;  --notice-ink: #F3DDB0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--paper);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); text-wrap: balance; margin: 0; }
p, ul, ol, dl, figure { margin: 0; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 20; background: var(--paper); padding: 8px 12px; }

.wrap {
  width: 100%; max-width: 1180px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 860px; }

/* title strip */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); }
.bar-in { display: flex; align-items: center; gap: 12px 26px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: .98rem; }
.nav { display: flex; gap: 22px; }
.nav a { font-family: var(--font-label); font-weight: 500; font-size: .9rem; color: var(--ink); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }

/* preview notice (never on the live site) */
.notice { background: var(--notice-bg); color: var(--notice-ink); font-family: var(--font-type); font-size: .84rem; line-height: 1.45; }
.notice .wrap { padding-block: 10px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: .78rem 1.25rem; border: 2px solid var(--red); border-radius: 3px;
  background: var(--red); color: var(--btn-fg);
  font-family: var(--font-label); font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-sm { padding: .5rem .9rem; font-size: .86rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* type */
.eyebrow { font-family: var(--font-label); font-weight: 600; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
h1 { font-size: clamp(2.2rem, 5.1vw, 3.85rem); line-height: 1.05; letter-spacing: -.012em; max-width: 17ch; }
.page-title { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 22ch; }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.45rem); line-height: 1.15; max-width: 26ch; }
h3 { font-size: 1.3rem; line-height: 1.2; }
.rule { display: block; width: 132px; height: 6px; background: var(--red); transform-origin: left; animation: draw .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes draw { from { transform: scaleX(.02); } to { transform: scaleX(1); } }
.lead { font-size: 1.16rem; line-height: 1.6; color: var(--ink-soft); max-width: 54ch; }
.prose { display: flex; flex-direction: column; gap: 14px; max-width: 64ch; color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.status { font-family: var(--font-type); font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stamp { border: 1.5px solid var(--red); color: var(--red); padding: 0 6px; font-family: var(--font-type); font-weight: 700; letter-spacing: .08em; font-size: .78rem; text-transform: uppercase; white-space: nowrap; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-family: var(--font-type); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.meta b { color: var(--red); font-weight: 700; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 7vw, 88px) clamp(16px, 3vw, 32px); }
.hero-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

/* taped prints: cream paper in both themes */
.print {
  position: relative; margin: 0; min-width: 0;
  background-color: var(--print);
  background-image: linear-gradient(var(--print-grid) 1px, transparent 1px), linear-gradient(90deg, var(--print-grid) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 14px 14px 12px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 22px 44px -26px rgba(12, 18, 28, .6);
}
.print::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 112px; height: 27px;
  transform: translateX(-50%) rotate(2.2deg); background: var(--tape);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.print img { width: 100%; }
.print figcaption { margin-top: 8px; font-family: var(--font-type); font-size: .72rem; letter-spacing: .04em; color: var(--print-muted); line-height: 1.45; }
.print figcaption b { color: var(--print-ink); text-transform: uppercase; letter-spacing: .06em; }
.print-hero { transform: rotate(-1.4deg); width: 100%; max-width: 430px; justify-self: center; }
.tilt-l { transform: rotate(-1deg); }
.tilt-r { transform: rotate(1.1deg); }

/* sections */
.section { padding-block: clamp(40px, 6vw, 72px); }
.sec-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(24px, 4vw, 40px); }
.tag { display: flex; align-items: center; gap: 12px; font-family: var(--font-type); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tag::before { content: ""; width: 34px; height: 3px; background: var(--red); }
.page-head { display: flex; flex-direction: column; gap: 16px; padding-block: clamp(36px, 6vw, 72px) clamp(8px, 2vw, 16px); }
.crumbs { font-family: var(--font-type); font-size: .82rem; color: var(--muted); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pt-tight { padding-top: clamp(24px, 4vw, 40px); }
.pt-0 { padding-top: 0; }
.more-link { margin-top: 22px; }
.crumbs a { color: var(--muted); }

/* cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-2.top { align-items: start; }
.card { min-width: 0; border: 1px solid var(--rule); background: var(--card); border-radius: 3px; padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 10px; }
.card-tag { font-family: var(--font-type); font-weight: 700; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.card h3 { font-size: 1.55rem; line-height: 1.15; }
.card p { color: var(--ink-soft); }
.card .eg { margin-top: auto; padding-top: 6px; font-family: var(--font-type); font-size: .84rem; color: var(--muted); line-height: 1.5; }

/* blueprint feature panel */
.feature {
  border-radius: 4px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(24px, 4vw, 52px);
  background-color: var(--feature-bg); color: var(--feature-fg);
  background-image: linear-gradient(var(--feature-grid) 1px, transparent 1px), linear-gradient(90deg, var(--feature-grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.feature + .feature, .grid-2 + .feature { margin-top: 18px; }
.feature-copy { min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.feature .card-tag, .feature .meta { color: var(--feature-muted); }
.feature .meta b { color: var(--feature-fg); }
.feature h2, .feature h3 { color: var(--feature-fg); }
.feature h3 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.1; }
.feature p { color: var(--feature-fg); max-width: 46ch; }
.feature a:not(.btn) { color: var(--feature-fg); }
.feature .print { transform: rotate(1.2deg); max-width: 520px; justify-self: center; width: 100%; }
.feature .btn-ghost { color: var(--feature-fg); border-color: var(--feature-fg); }
.feature .btn-ghost:hover { background: var(--feature-fg); color: var(--feature-bg); }
.feature .stamp { border-color: var(--feature-fg); color: var(--feature-fg); }

/* episode cards */
.episodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 36px); }
.ep-card { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ep-card .print { transform: rotate(-.8deg); }
.ep-card:nth-child(even) .print { transform: rotate(.9deg); }
.ep-card h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.15; }
.ep-card h3 a { color: var(--ink); text-decoration: none; }
.ep-card h3 a:hover { color: var(--red); }
.ep-card p { color: var(--ink-soft); max-width: 52ch; }
.ep-card .soon { font-family: var(--font-type); font-size: .86rem; color: var(--muted); }
.blank-print { aspect-ratio: 16 / 9; display: grid; place-items: center; border: 1.5px dashed var(--print-muted); color: var(--print-muted); font-family: var(--font-type); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }

/* how we work: checklist + typed file card */
.method { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.checks li { position: relative; padding-left: 38px; color: var(--ink-soft); max-width: 58ch; }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 2px; }
.checks li::after { content: ""; position: absolute; left: 6px; top: calc(.28em + 2px); width: 7px; height: 12px; border: solid var(--red); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.checks strong { color: var(--ink); font-weight: 700; }

.filecard {
  min-width: 0; background-color: var(--print); color: var(--print-ink);
  background-image: linear-gradient(var(--print-grid) 1px, transparent 1px), linear-gradient(90deg, var(--print-grid) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 24px 24px 20px; border-radius: 2px; transform: rotate(.9deg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 22px 44px -26px rgba(12, 18, 28, .6);
  font-family: var(--font-type); display: flex; flex-direction: column; gap: 14px;
}
.file-no { font-weight: 700; font-size: .8rem; letter-spacing: .12em; color: var(--print-red); border-bottom: 1.5px solid var(--print-ink); padding-bottom: 10px; }
.tally-row { display: flex; align-items: baseline; gap: 8px; font-size: .92rem; }
.tally-row .lbl { white-space: nowrap; }
.tally-row .dots { flex: 1; border-bottom: 2px dotted rgba(26, 34, 51, .35); transform: translateY(-4px); min-width: 12px; }
.tally-row .val { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.coins { display: grid; grid-template-columns: repeat(10, minmax(0, 15px)); gap: 5px; margin-top: 8px; }
.coins i { display: block; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .16); }
.coins-red i { background: var(--print-red); }
.coins-blue i { background: var(--print-blue); }
.file-note, .file-src { font-size: .78rem; color: var(--print-muted); line-height: 1.5; }

/* episode page */
.ep-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(28px, 5vw, 56px) clamp(16px, 3vw, 28px); }
.ep-hero .hero-copy h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 18ch; }
.ep-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(32px, 5vw, 64px); align-items: start; }
.ep-main { min-width: 0; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 56px); }
.ep-side { min-width: 0; display: flex; flex-direction: column; gap: 28px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
.block { display: flex; flex-direction: column; gap: 16px; }
.block > h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.chapters { list-style: none; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.chapters li { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.chapters time { font-family: var(--font-type); font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.src-group { display: flex; flex-direction: column; gap: 8px; }
.src-group h3 { font-family: var(--font-type); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.src-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.src-list li { padding-left: 18px; position: relative; color: var(--ink-soft); max-width: 70ch; }
.src-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--red); }
.src-list .det { color: var(--muted); }
.src-list .sup { display: block; font-size: .9rem; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; list-style: none; padding: 0; }
.people li { min-width: 0; border-top: 1px solid var(--rule); padding-top: 8px; color: var(--ink-soft); }
.people b { color: var(--ink); display: block; }
.people li > span { display: block; font-size: .94rem; }
.people .det { color: var(--muted); font-size: .88rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 3px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--rule); }
th { font-family: var(--font-type); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; position: sticky; top: 0; background: var(--paper); }
td.t { font-family: var(--font-type); font-weight: 700; color: var(--red); white-space: nowrap; font-variant-numeric: tabular-nums; }
td.label { font-family: var(--font-type); font-size: .78rem; letter-spacing: .03em; min-width: 16em; }
td.credit { min-width: 18em; color: var(--ink-soft); }
details.more { border: 1px solid var(--rule); border-radius: 3px; background: var(--card); }
details.more > summary { cursor: pointer; padding: 14px 18px; font-family: var(--font-label); font-weight: 600; font-size: .95rem; list-style-position: inside; }
details.more[open] > summary { border-bottom: 1px solid var(--rule); }
details.more .table-wrap { border: 0; border-radius: 0; background: transparent; max-height: 70vh; }
.side-card { border: 1px solid var(--rule); background: var(--card); border-radius: 3px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.side-card h3 { font-size: 1.15rem; }
.side-card p { color: var(--ink-soft); font-size: .96rem; }

/* family stories */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.strip .print { padding: 8px 8px 8px; }
.strip .print::before { width: 64px; height: 18px; top: -9px; }
.strip .print:nth-child(odd) { transform: rotate(-1.2deg); }
.strip .print:nth-child(even) { transform: rotate(1deg); }
.strip-note { margin-top: 12px; font-family: var(--font-type); font-size: .78rem; color: var(--muted); }

/* contact */
.contact-card { min-width: 0; border: 1px solid var(--rule); background: var(--card); border-radius: 3px; padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact-card h3 { font-size: 1.3rem; }
.contact-card p { color: var(--ink-soft); }
.addr { font-family: var(--font-type); font-size: 1.18rem; overflow-wrap: anywhere; }
.addr a { color: var(--ink); }
.copy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.copied { font-family: var(--font-type); font-size: .82rem; color: var(--muted); }

.foot { margin-top: clamp(24px, 4vw, 48px); padding-block: 36px 48px; border-top: 1px dashed var(--rule); display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; font-family: var(--font-type); font-size: .8rem; color: var(--muted); }
.foot-brand { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.foot a { color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }

[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* map: drawn at build time, colored by the theme tokens */
.mapfig { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.map { width: 100%; height: auto; display: block; }
.map-land { fill: var(--card); stroke: var(--ink); stroke-width: 1.2; stroke-opacity: .55; }
.map-borders { fill: none; stroke: var(--rule); stroke-width: .8; }
.map-ring { fill: none; stroke: var(--red); stroke-width: 1.6; }
.map-pin { fill: var(--red); }
.map-dot { fill: var(--ink); fill-opacity: .7; }
.map text { font-family: var(--font-type); }
.map-name { font-size: 17px; font-weight: 700; letter-spacing: .06em; fill: var(--ink); }
.map-name.small { font-size: 14px; }
.map-sub { font-size: 14.5px; fill: var(--muted); }
.mapfig figcaption { font-family: var(--font-type); font-size: .74rem; color: var(--muted); }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0; }
.legend div { min-width: 0; border-top: 1px solid var(--rule); padding-top: 8px; }
.legend dt { font-family: var(--font-type); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.legend dd { margin: 2px 0 0; color: var(--ink-soft); font-size: .95rem; }

/* The Shop Floor drawing with its own key */
.sheet { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sheet img { width: 100%; border: 1px solid var(--rule); border-radius: 2px; background: var(--print); }
.sheet figcaption { font-family: var(--font-type); font-size: .74rem; color: var(--muted); line-height: 1.5; }
.sheet-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.sheet-tabs button { font-family: var(--font-label); font-weight: 600; font-size: .84rem; padding: .45rem .85rem; border: 2px solid var(--ink); border-radius: 3px; background: transparent; color: var(--ink); cursor: pointer; }
.sheet-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.stations { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.stations li { min-width: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.st-key { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--red); color: var(--red); font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 1.3rem; border-radius: 2px; }
.stations h3 { font-size: 1.05rem; line-height: 1.25; }
.stations p { color: var(--ink-soft); font-size: .93rem; margin-top: 4px; }
.st-after { font-size: .95rem; }

/* video: a picture with a play button until it's clicked (live site only) */
.player { position: relative; padding: 14px; }
.player img { width: 100%; }
.player .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--font-label); font-weight: 600; font-size: 1rem; padding: .9rem 1.4rem; border: 0; border-radius: 3px; background: var(--red); color: var(--btn-fg); cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

@media (max-width: 960px) {
  .ep-body { grid-template-columns: minmax(0, 1fr); }
  .ep-side { position: static; }
}
@media (max-width: 900px) {
  .hero, .method, .ep-hero { grid-template-columns: minmax(0, 1fr); }
  .print-hero { max-width: 400px; }
}
@media (max-width: 780px) {
  .feature, .grid-2, .episodes { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .map-sub, .map-name.small { display: none; }
  .map-name { font-size: 26px; }
  .legend, .stations { grid-template-columns: minmax(0, 1fr); }
  .bar-in { padding-block: 8px; column-gap: 12px; }
  .brand span { font-size: .86rem; letter-spacing: .05em; }
  .nav { order: 3; width: 100%; gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .nav a { font-size: .86rem; }
  body { font-size: 16px; }
  .people { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .tally-row { flex-direction: column; align-items: flex-start; gap: 0; }
  .tally-row .dots { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rule { animation: none; }
}
