/* ═══════════════════════════════════════════════════════════════════════════
   TTURP — EDITORIAL ARCHIVAL  (light theme, fourth candidate)
   Activate: <html data-theme="editorial">.  Load AFTER css/main.css.

   This is not a palette swap. It changes the page's *composition*:

     · header      two tiers collapsed into one rule-book bar; crest is a square
                   plate, brand is a mono wordmark, the menu current item is a
                   2px accent rule instead of a 60% scale on hover
     · hero        the dark photo-with-scrim is deleted. A 1902 photograph behind
                   a display face is the 2014 pattern; here the photograph is
                   plate 1 of the gallery below and the hero is a printed title
                   page: crumbs → 112px display → 2px accent rule → deck →
                   text column on the left, ruled catalogue numbers in the
                   right margin
     · section     full-bleed 1px INK rules between sections (no background
                   bands), section heads set as kicker-in-left-rail + display
                   head in the text column
     · plates      every image becomes a matted, square-cornered, ink-framed
                   plate with a mono caption printed on the mount below it —
                   captions come OFF the photograph
     · records     3-up ruled entries, each with its own top rule; the card,
                   the radius and the shadow are gone
     · type        7 sizes instead of 55; display 600/opsz 144, body 17/1.62,
                   captions 13px mono

   Rule policy: 1px --line inside a block · 1px --ink between blocks ·
   2px --accent for the single selected thing. Nothing floats. No hover
   transform, no scale, no bounce anywhere — the palette is the only motion.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. TOKENS ────────────────────────────────────────────────────────────── */

[data-theme="editorial"] {
  /* paper: rag, nearly neutral (C .008) — the warmth belongs to the artefacts */
  --bg:         #f6f4ee;
  --bg-alt:     #ece9e0;
  --paper:      #fffefb;

  /* ink: L .174. The missing dark end is what made the old light theme soft.  */
  --ink:        #12100c;
  --ink-soft:   #555044;
  --line:       #b6ac9a;

  /* one spot colour at press strength, used in six places only */
  --accent:      #b23a1e;
  --accent-soft: #d15633;
  --gold:        #84682a;

  --on-accent:  #fffdf8;

  /* depth: none in the document flow. One float for drawer + lightbox only.  */
  --shadow:       none;
  --shadow-float: 0 24px 60px rgba(18, 16, 12, .22);
  --radius:       0;

  --card-scrim:       linear-gradient(180deg, rgba(246,244,238,.26) 0%, rgba(246,244,238,.84) 52%, rgba(246,244,238,.95) 100%);
  --card-scrim-hover: linear-gradient(180deg, rgba(246,244,238,.16) 0%, rgba(246,244,238,.74) 52%, rgba(246,244,238,.92) 100%);
  --card-soft:        #555044;
  --card-gold:        #84682a;

  --hero-top: #f6f4ee;
  --surface:  #ece9e0;

  --era-pd-bg:   transparent; --era-pd-fg:   #2f5233;
  --era-gray-bg: transparent; --era-gray-fg: #84682a;
  --era-risk-bg: transparent; --era-risk-fg: #a12a1c;
  --era-unk-bg:  transparent; --era-unk-fg:  #6b6558;

  --serif:   'Fraunces', 'Lora', Georgia, serif;
  --sans:    'Inter', system-ui, sans-serif;
  --display: 'Fraunces', Georgia, serif;
  --mono:    ui-monospace, 'DejaVu Sans Mono', Menlo, Consolas, monospace;

  --fs-min: 0px;

  /* seven sizes. Nothing lives between 24 and 30 — that gap is the hierarchy. */
  --fs-caption: 13px;
  --fs-body:    17px;
  --fs-lede:    21px;
  --fs-h3:      24px;
  --fs-h2:      clamp(30px, 3.4vw, 46px);
  --fs-h1:      clamp(56px, 8.6vw, 112px);
  --fs-num:     42px;

  --lh-body:    1.60;
  --lh-display: .94;
  --tr-caption: .05em;
  --tr-label:   .14em;
  --tr-display: -.022em;
  --measure:    34rem;

  color-scheme: light;
}

/* ── 2. BASE ──────────────────────────────────────────────────────────────── */

[data-theme="editorial"] body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

[data-theme="editorial"] .wrap {
  max-width: 1320px;
  padding: 0 clamp(18px, 4vw, 64px);
}

[data-theme="editorial"] a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
[data-theme="editorial"] a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
[data-theme="editorial"] a:focus-visible,
[data-theme="editorial"] button:focus-visible,
[data-theme="editorial"] input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
[data-theme="editorial"] em { font-family: var(--serif); }

/* ── 3. HEADER — the top edge of the page, not a floating bar ─────────────── */

[data-theme="editorial"] .site-head {
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  box-shadow: none;
}

[data-theme="editorial"] .head-inner {
  padding: 13px clamp(18px, 4vw, 64px);
  align-items: center;
}

[data-theme="editorial"] .brand { gap: 14px; }

[data-theme="editorial"] .brand-crest {
  width: 42px; height: 42px;
  border-radius: 0;
  border: 1px solid var(--ink);
  box-shadow: none;
  background: var(--paper);
}

[data-theme="editorial"] .brand-text {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--ink);
}
[data-theme="editorial"] .brand-text em {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: var(--tr-label);
  color: var(--ink-soft);
}

/* search: an underline in the masthead, not a capsule */
[data-theme="editorial"] .nav-search input {
  width: 210px;
  min-height: 34px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink);
  transition: border-color .15s ease;
}
[data-theme="editorial"] .nav-search input::placeholder {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
}
[data-theme="editorial"] .nav-search input:focus {
  width: 210px;
  outline: none;
  border-bottom: 2px solid var(--accent);
}

/* the theme switch is three words of type, not a pill */
[data-theme="editorial"] .theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--ink-soft);
}
[data-theme="editorial"] .theme-switch:hover {
  color: var(--accent);
  background: transparent;
  border-color: transparent;
}
[data-theme="editorial"] .theme-switch .ts-icon { font-size: 13px; }

/* menu row: paper, one hairline above it, accent rule under the current item */
[data-theme="editorial"] .main-nav {
  background: transparent;
  border-top: 1px solid var(--line);
  box-shadow: none;
}
[data-theme="editorial"] .nav-inner {
  gap: 34px;
  padding: 0 clamp(18px, 4vw, 64px);
}
[data-theme="editorial"] .main-nav a {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  font-variation-settings: "opsz" 20;
  letter-spacing: 0;
  color: var(--ink-soft);
  min-height: 50px;
  padding: 0;
  border-bottom: 2px solid transparent;
  transform: none;
  transition: color .15s ease, border-color .15s ease;
}
[data-theme="editorial"] .main-nav a:hover {
  color: var(--ink);
  transform: none;
  text-decoration: none;
}
[data-theme="editorial"] .main-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

[data-theme="editorial"] .nav-toggle {
  border-radius: 0;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

/* ── 4. HERO — a printed title page, closed by a photographic plate ──────────
   The scrimmed photograph behind the display is deleted: type on a photo is the
   2014 hero pattern and it forces the display face onto a dark ground. The
   photograph comes back as what it is — a plate beneath the type, grayscale,
   framed by ink rules — which is also what the page's own copy asks for.       */

[data-theme="editorial"] .page-head,
[data-theme="editorial"] .page-head.has-photo {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  background-image: none;
  border-bottom: 1px solid var(--ink);
  border-top: 0;
  padding: 0;
  overflow: visible;
  isolation: auto;
}

/* the AI colour wipe is an effect, not evidence — and it needs a dark ground */
[data-theme="editorial"] .hero-sweep,
[data-theme="editorial"] .hero-chip { display: none !important; }

/* .hero-colour is promoted from a clip-path overlay to a static plate band */
[data-theme="editorial"] .page-head .hero-colour {
  position: static;
  order: 2;
  width: 100%;
  height: clamp(230px, 30vw, 390px);
  border-top: 1px solid var(--ink);
  background-image: var(--hero);
  background-size: cover;
  background-position: center 46%;
  background-repeat: no-repeat;
  filter: grayscale(1) contrast(1.04);
  clip-path: none;
  animation: none;
  pointer-events: none;
}
[data-theme="editorial"] .page-head:not(.has-photo) .hero-colour { display: none; }

[data-theme="editorial"] .page-head > .wrap,
[data-theme="editorial"] .page-head.has-photo > .wrap {
  max-width: 1320px;
  width: 100%;              /* auto cross-axis margins disable flex stretch */
  margin: 0 auto;
  padding: clamp(30px, 3.6vw, 48px) clamp(18px, 4vw, 64px) clamp(30px, 3.2vw, 44px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 1.8vw, 28px);
  row-gap: 0;
  align-items: start;
  position: static;
  z-index: auto;
}

[data-theme="editorial"] .page-head .crumbs {
  grid-column: 1 / -1;
  grid-row: 1;
  font-family: var(--mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 20px;
  text-shadow: none;
}
[data-theme="editorial"] .page-head .crumbs a {
  color: var(--ink-soft);
  min-height: 0;
  display: inline;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
[data-theme="editorial"] .page-head .crumbs a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

[data-theme="editorial"] .page-head h1 {
  grid-column: 1 / -1;
  grid-row: 2;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  font-size: var(--fs-h1);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  color: var(--ink) !important;
  text-shadow: none;
  margin: 0;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--accent);
}
/* the display is one ink; the accent is the rule under it, nothing else */
[data-theme="editorial"] .page-head h1 .t,
[data-theme="editorial"] .page-head h1 em { color: inherit; font-style: normal; }

[data-theme="editorial"] .page-head .hsub {
  grid-column: 1 / span 6;
  grid-row: 3;
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 24;
  font-size: var(--fs-lede);
  line-height: 1.34;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 22px 0 0;
  max-width: 30rem;
}

/* intro copy: one narrow column on the left, nothing between 24px and 30px */
[data-theme="editorial"] .page-head .lede {
  grid-column: 1 / span 7;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  max-width: var(--measure);
  margin: 18px 0 0;
  text-shadow: none;
}
/* the abstract sets in two columns: left 1-3, right 2-4 (newspaper reading order) */
[data-theme="editorial"] .page-head .lede:nth-of-type(2n) { grid-column: 1 / span 6; }
[data-theme="editorial"] .page-head .lede:nth-of-type(2n+1) { grid-column: 7 / span 6; }

/* catalogue numbers beside the deck: numeral above, mono label beneath */
[data-theme="editorial"] .page-head .stats-row {
  grid-column: 9 / -1;
  grid-row: 3;
  align-self: start;
  display: flex;
  flex-direction: row;
  gap: 0;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-soft);
  text-shadow: none;
}
[data-theme="editorial"] .page-head .stats-row > span {
  display: block;
  flex: 1;
  padding: 12px 16px 14px 0;
  border-bottom: 1px solid var(--line);
}
[data-theme="editorial"] .page-head .stats-row > span + span {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
[data-theme="editorial"] .page-head .stats-row b {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 96;
  font-size: clamp(23px, 2.3vw, 32px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

/* ── 4b. HOME HERO — the same title-page grammar, one column ──────────────── */

[data-theme="editorial"] .hero {
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
  padding: clamp(36px, 4.2vw, 62px) 0 clamp(32px, 3.6vw, 50px);
}
[data-theme="editorial"] .hero .wrap { max-width: 1320px; padding: 0 clamp(18px, 4vw, 64px); }
[data-theme="editorial"] .hero .kicker {
  font-family: var(--mono);
  font-size: var(--fs-caption);
  font-weight: 400;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
[data-theme="editorial"] .hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  font-size: var(--fs-h1);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  color: var(--ink);
  max-width: 16ch;
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--accent);
}
[data-theme="editorial"] .hero h1 .t { color: inherit; }
[data-theme="editorial"] .hero p.sub {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  max-width: 34rem;
  margin-bottom: 30px;
}
[data-theme="editorial"] .hero-stats {
  display: flex;
  gap: 0;
  margin-top: 0;
  border-top: 1px solid var(--ink);
  max-width: 47rem;
}
[data-theme="editorial"] .hero-stats .stat {
  padding: 14px 30px 0 0;
  border-right: 1px solid var(--line);
}
[data-theme="editorial"] .hero-stats .stat + .stat { padding-left: 30px; }
[data-theme="editorial"] .hero-stats .stat:last-child { border-right: 0; }
[data-theme="editorial"] .hero-stats .stat .n {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 96;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
[data-theme="editorial"] .hero-stats .stat .l {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── 5. SECTIONS — a boundary is an ink rule, never a background tint ─────── */

[data-theme="editorial"] main > section + section { border-top: 1px solid var(--ink); }
[data-theme="editorial"] .sec { padding: clamp(34px, 4vw, 54px) 0; }
[data-theme="editorial"] .sec.alt { background: transparent; }

/* the section body is a 12-column page; text hangs in the right 8 */
[data-theme="editorial"] .sec > .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 1.8vw, 28px);
  align-items: start;
}
[data-theme="editorial"] .sec > .wrap > * { grid-column: 1 / -1; }
[data-theme="editorial"] .sec > .wrap > .lede,
[data-theme="editorial"] .sec > .wrap > .hsub,
[data-theme="editorial"] .sec > .wrap > .pg-note {
  grid-column: 4 / span 8;
  max-width: 36rem;
}

/* section head: hairline above the whole block, kicker in the left rail */
[data-theme="editorial"] .section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 1.8vw, 28px);
  align-items: start;
  border-top: 1px solid var(--ink);
  padding-top: 13px;
  margin-bottom: 30px;
}
[data-theme="editorial"] .section-head > div:not(.kicker) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 1.8vw, 28px);
  align-items: start;
}
[data-theme="editorial"] .section-head .kicker {
  display: block;
  grid-column: 1 / span 3;
  font-family: var(--mono);
  font-size: var(--fs-caption);
  font-weight: 400;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 8px 0 0;
}
[data-theme="editorial"] .section-head h2 {
  grid-column: 4 / span 8;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 96;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: var(--tr-display);
  color: var(--ink);
  margin: 0;
}
[data-theme="editorial"] .section-head > p,
[data-theme="editorial"] .section-head .rail-note {
  grid-column: 4 / span 8;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin: 12px 0 0;
  max-width: 40rem;
}
[data-theme="editorial"] .section-head .rail-note b { color: var(--ink); font-weight: 600; }

/* a section head with a rail of arrows: text left 1-9, controls in the margin */
[data-theme="editorial"] .section-head.rail-head > div:first-child { grid-column: 1 / span 9; }
[data-theme="editorial"] .section-head.rail-head > .rail-nav {
  grid-column: 10 / -1;
  grid-row: 1;
  justify-self: end;
  align-self: end;
}

/* ── 6. PLATES — the gallery: matted, ink-framed, captioned beneath ───────── */

[data-theme="editorial"] .pgallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px clamp(20px, 2.4vw, 34px);
  margin-top: 6px;
}

[data-theme="editorial"] .pg-cell { position: relative; }

[data-theme="editorial"] .pg-shot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  padding: 10px 10px 0;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  overflow: visible;
  cursor: zoom-in;
}
[data-theme="editorial"] .pg-shot img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0;
  filter: none;
  transition: none;
}
[data-theme="editorial"] .pg-shot:hover img,
[data-theme="editorial"] .pg-shot:focus-visible img { filter: none; }
[data-theme="editorial"] .pg-shot:hover { border-color: var(--accent); }

/* the caption comes off the photograph and is printed on the mount */
[data-theme="editorial"] .pg-cap,
[data-theme="editorial"] .pg-lead .pg-cap {
  position: static;
  left: auto; right: auto; bottom: auto;
  margin-top: 10px;
  padding: 8px 2px 9px;
  background: none;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--fs-caption);
  line-height: 1.45;
  letter-spacing: var(--tr-caption);
  color: var(--ink-soft);
  text-align: left;
  text-shadow: none;
}
[data-theme="editorial"] .pg-shot:hover .pg-cap { color: var(--ink); }

[data-theme="editorial"] .pg-lead { grid-column: 1 / -1; }
[data-theme="editorial"] .pg-lead .pg-shot { padding: 12px 12px 0; }
[data-theme="editorial"] .pg-lead img,
[data-theme="editorial"] .pg-lead .pg-shot img { aspect-ratio: 21 / 9; }
[data-theme="editorial"] .pg-lead .pg-cap { font-size: 13px; }

/* the colour toggle: an ink-ruled square in the plate's corner */
[data-theme="editorial"] .ph-toggle {
  width: 38px; height: 38px;
  top: 20px; right: 20px;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-size: 15px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-theme="editorial"] .ph-toggle:hover { border-color: var(--accent); color: var(--accent); }
[data-theme="editorial"] .pg-cell.showing-colour .ph-toggle {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
[data-theme="editorial"] .ph-chip {
  top: 22px; left: 20px;
  border-radius: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tr-label);
  padding: 5px 8px;
}
[data-theme="editorial"] .mm-badge,
[data-theme="editorial"] .mm-printed {
  width: auto; height: auto;
  min-width: 34px;
  padding: 4px 6px;
  border-radius: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
}

[data-theme="editorial"] .pg-note {
  font-family: var(--mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tr-caption);
  color: var(--ink-soft);
  margin-top: 26px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ── 7. RECORDS — 3-up ruled entries; the card is gone ────────────────────── */

[data-theme="editorial"] .live-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px clamp(20px, 2.2vw, 32px);
}

[data-theme="editorial"] .live-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  padding-top: 12px;
}
[data-theme="editorial"] .live-card:hover {
  border-color: var(--ink);
  box-shadow: none;
  transform: none;
}

[data-theme="editorial"] .live-card .yt-lite {
  border: 1px solid var(--line);
  background-color: var(--bg-alt);
  filter: grayscale(.15) contrast(1.02);
}
[data-theme="editorial"] .live-card .yt-lite::after { background: none; }
[data-theme="editorial"] .live-card .yt-lite:hover { border-color: var(--ink); }
[data-theme="editorial"] .yt-lite .yt-play {
  border-radius: 0;
  width: 46px; height: 34px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
}
[data-theme="editorial"] .yt-lite:hover .yt-play { background: var(--accent); color: var(--on-accent); }

[data-theme="editorial"] .live-card .lc-body {
  padding: 12px 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
[data-theme="editorial"] .live-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 24;
  font-size: 19px;
  line-height: 1.26;
  letter-spacing: -.01em;
  /* two-line title zone so the caption rule lands on the same baseline in
     every column of a row — the catalogue's ruled entry, not a ragged card */
  min-height: 2.52em;
}
[data-theme="editorial"] .live-card h3 a { color: var(--ink); text-decoration: none; }
[data-theme="editorial"] .live-card h3 a:hover { color: var(--accent); }
[data-theme="editorial"] .live-card h3 a:focus-visible { outline-offset: 2px; }

[data-theme="editorial"] .live-card .lc-culture {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: var(--tr-caption);
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

/* ── 8. PORTRAIT RAIL — a row of plates, not a carousel of cards ──────────── */

[data-theme="editorial"] .figure-grid {
  gap: 26px;
  padding: 0 0 14px;
  scroll-snap-type: x proximity;
}
[data-theme="editorial"] .figure-card {
  flex: 0 0 232px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
[data-theme="editorial"] .figure-card:hover,
[data-theme="editorial"] .figure-card:focus-visible { border-color: var(--accent); }
[data-theme="editorial"] .figure-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[data-theme="editorial"] .figure-card.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}
[data-theme="editorial"] .figure-img { background: var(--bg-alt); }
[data-theme="editorial"] .figure-img.no-art {
  background: repeating-linear-gradient(135deg, var(--bg-alt) 0 8px, var(--bg) 8px 16px);
}
[data-theme="editorial"] .no-art-mark {
  font-family: var(--display);
  font-size: 54px;
  color: var(--line);
  letter-spacing: var(--tr-label);
}
[data-theme="editorial"] .figure-card figcaption {
  padding: 12px 13px 12px;
  border-top: 1px solid var(--line);
  gap: 3px;
}
[data-theme="editorial"] .figure-card strong {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 20;
  font-size: 17px;
  line-height: 1.24;
  letter-spacing: -.01em;
}
[data-theme="editorial"] .figure-card .f-role,
[data-theme="editorial"] .figure-card p,
[data-theme="editorial"] .figure-card .f-credit,
[data-theme="editorial"] .figure-card .f-count {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: var(--tr-caption);
  text-transform: none;
  color: var(--ink-soft);
  opacity: 1;
}
[data-theme="editorial"] .figure-card .f-role {
  text-transform: uppercase;
  letter-spacing: var(--tr-label);
  font-size: 10.5px;
}
[data-theme="editorial"] .figure-card .f-credit {
  border-top: 1px solid var(--line);
  margin-top: 7px;
  padding-top: 6px;
}
[data-theme="editorial"] .figure-card .f-count { color: var(--ink); }
[data-theme="editorial"] .figure-card.is-active .f-count { color: var(--accent); }

[data-theme="editorial"] .rail-btn {
  width: 40px; height: 40px;
  border-radius: 0;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 17px;
}
[data-theme="editorial"] .rail-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
[data-theme="editorial"] .rail-btn[disabled] { opacity: .35; background: transparent; color: var(--ink); }

/* ── 10. BUTTONS, CHIPS, FILTER BAR, PLAYER ───────────────────────────────── */

[data-theme="editorial"] .btn {
  font-family: var(--mono);
  font-size: var(--fs-caption);
  font-weight: 400;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  padding: 13px 22px;
  min-height: 44px;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  border-radius: 0;
}
[data-theme="editorial"] .btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--on-accent);
}

[data-theme="editorial"] .filter-bar {
  border: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  border-left-width: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 16px 0;
  margin-bottom: 26px;
}
[data-theme="editorial"] .filter-bar .fb-text {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
}
[data-theme="editorial"] .filter-bar .fb-text strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  font-variation-settings: "opsz" 24;
  color: var(--ink);
}
[data-theme="editorial"] .filter-bar .fb-clear {
  border-radius: 0;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
}
[data-theme="editorial"] .filter-bar .fb-clear:hover { background: var(--ink); color: var(--bg); }
[data-theme="editorial"] .filter-bar .fb-clear:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

[data-theme="editorial"] .playlist-player {
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
  padding: 14px;
}
[data-theme="editorial"] .pl-head { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 12px; }
[data-theme="editorial"] .pl-head strong {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 20;
  font-size: 19px;
  letter-spacing: -.01em;
}
[data-theme="editorial"] .pl-note {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: var(--tr-caption);
  text-transform: uppercase;
  color: var(--ink-soft);
}
[data-theme="editorial"] .embed-wrap,
[data-theme="editorial"] .yt-frame { border-radius: 0; border: 0; }

/* era badges: colour as a 2px underline, no pastel fill */
[data-theme="editorial"] .era-chip {
  background: transparent;
  padding: 0 0 3px;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tr-caption);
  text-transform: uppercase;
  color: var(--ink);
}
[data-theme="editorial"] .era-pd { box-shadow: inset 0 -2px 0 var(--era-pd-fg); }
[data-theme="editorial"] .era-gray { box-shadow: inset 0 -2px 0 var(--era-gray-fg); }
[data-theme="editorial"] .era-risk { box-shadow: inset 0 -2px 0 var(--era-risk-fg); }
[data-theme="editorial"] .era-unk { box-shadow: inset 0 -2px 0 var(--era-unk-fg); }

/* ── 11. PROSE, NEIGHBOURS, DISCS, TIMELINE ───────────────────────────────── */

[data-theme="editorial"] .prose { max-width: var(--measure); margin: 0; padding: 48px 0 60px; }
[data-theme="editorial"] .prose h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; }
[data-theme="editorial"] .prose h2 { font-size: var(--fs-h2); line-height: 1.06; margin: 40px 0 14px; }
[data-theme="editorial"] .prose h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--fs-h3);
  letter-spacing: -.012em;
  margin: 28px 0 10px;
}
[data-theme="editorial"] .prose .lede {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 24;
  font-size: var(--fs-lede);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 30px;
}
[data-theme="editorial"] .prose p { font-size: var(--fs-body); line-height: var(--lh-body); }
[data-theme="editorial"] .prose .divider { border-top: 1px solid var(--ink); margin: 34px 0; }
[data-theme="editorial"] .prose blockquote { border-left: 2px solid var(--accent); padding: 4px 0 4px 20px; }
[data-theme="editorial"] .prose code,
[data-theme="editorial"] .prose pre { border-radius: 0; }

[data-theme="editorial"] .nbr-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
  padding-top: 12px;
}
[data-theme="editorial"] .nbr-card:hover { border-color: var(--ink); }
[data-theme="editorial"] .nbr-flag {
  height: 44px;
  border: 1px solid var(--line);
  filter: grayscale(.1);
}
[data-theme="editorial"] .nbr-flag::after { background: none; }
[data-theme="editorial"] .nbr-body { padding: 12px 0 0; }
[data-theme="editorial"] .nbr-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -.012em;
  text-transform: none;
}
[data-theme="editorial"] .nbr-count,
[data-theme="editorial"] .ac-count,
[data-theme="editorial"] .f-count {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: var(--tr-caption);
  color: var(--ink-soft);
}

[data-theme="editorial"] .disc-card,
[data-theme="editorial"] .artist-card,
[data-theme="editorial"] .track-card,
[data-theme="editorial"] .label-fig,
[data-theme="editorial"] .studio-card,
[data-theme="editorial"] .film-card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
[data-theme="editorial"] .disc-card:hover,
[data-theme="editorial"] .artist-card:hover,
[data-theme="editorial"] .track-card:hover { border-color: var(--ink); }
[data-theme="editorial"] .dc-cap strong,
[data-theme="editorial"] .ac-body h3,
[data-theme="editorial"] .tl-main strong {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.01em;
}
[data-theme="editorial"] .dc-meta,
[data-theme="editorial"] .ac-role,
[data-theme="editorial"] .ac-credit,
[data-theme="editorial"] .tl-year,
[data-theme="editorial"] .tl-meta,
[data-theme="editorial"] .studio-meta,
[data-theme="editorial"] .film-meta,
[data-theme="editorial"] .hsub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: var(--tr-caption);
}
[data-theme="editorial"] .disc-chip {
  border-radius: 0;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
}
[data-theme="editorial"] .disc-chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
[data-theme="editorial"] .tl-row { border-bottom: 1px solid var(--line); padding: 11px 0; }
[data-theme="editorial"] .tl-row:hover { background: transparent; }
[data-theme="editorial"] .tl-year { color: var(--ink-soft); }
[data-theme="editorial"] .decade-bar { gap: 2px; }
[data-theme="editorial"] .db-seg { border-radius: 0; opacity: 1; }
[data-theme="editorial"] .db-n { font-family: var(--mono); font-size: 11px; color: var(--bg); }
[data-theme="editorial"] .meta-list > div { padding: 8px 0; font-size: 14px; }

/* ── 12. FOOTER ───────────────────────────────────────────────────────────── */

[data-theme="editorial"] .site-foot {
  border-top: 1px solid var(--ink);
  background: var(--bg);
  box-shadow: none;
  margin-top: 0;
  padding: 44px 0 22px;
}
[data-theme="editorial"] .foot-inner { align-items: start; gap: 44px; }
[data-theme="editorial"] .foot-brand { max-width: 380px; }
[data-theme="editorial"] .foot-brand strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.012em;
}
[data-theme="editorial"] .foot-brand p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 10px;
}
[data-theme="editorial"] .foot-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 44px;
  row-gap: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}
[data-theme="editorial"] .foot-links a {
  display: block;
  min-height: 0;
  padding: 4px 0;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
[data-theme="editorial"] .foot-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
[data-theme="editorial"] .foot-legal {
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--ink-soft);
  margin-top: 30px;
  padding-top: 14px;
}

/* ── 13. LIGHTBOX — a page laid on the page: opaque paper, ink edge ───────── */

[data-theme="editorial"] .lb { background: rgba(18,16,12,.94); }
[data-theme="editorial"] .lb-body img {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
}
[data-theme="editorial"] .lb-body figcaption { font-family: var(--sans); }
[data-theme="editorial"] .lb-body figcaption b {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.01em;
}
[data-theme="editorial"] .lb-credit {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: var(--tr-caption);
}
[data-theme="editorial"] .lb-close,
[data-theme="editorial"] .lb-nav { border-radius: 0; }

/* ── 14. RESPONSIVE ───────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  [data-theme="editorial"] .page-head h1,
  [data-theme="editorial"] .page-head.has-photo h1 { grid-column: 1 / -1; }
  [data-theme="editorial"] .page-head .hsub { grid-column: 1 / -1; max-width: 34rem; }
  /* reset the two-column abstract back to one column, at equal specificity */
  [data-theme="editorial"] .page-head .lede:nth-of-type(n) {
    grid-column: 1 / -1;
    max-width: var(--measure);
  }
  [data-theme="editorial"] .page-head .stats-row {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 26px;
  }
  [data-theme="editorial"] .page-head .stats-row > span {
    padding: 12px 18px 12px 0;
    border-bottom: 0;
  }
  [data-theme="editorial"] .page-head .stats-row > span:first-child { padding-left: 0; }
  [data-theme="editorial"] .section-head .kicker,
  [data-theme="editorial"] .section-head h2,
  [data-theme="editorial"] .section-head > p,
  [data-theme="editorial"] .section-head .rail-note { grid-column: 1 / -1; }
  [data-theme="editorial"] .section-head .kicker { margin-bottom: 10px; }
  [data-theme="editorial"] .sec > .wrap > .lede,
  [data-theme="editorial"] .sec > .wrap > .hsub,
  [data-theme="editorial"] .sec > .wrap > .pg-note { grid-column: 1 / -1; }
  [data-theme="editorial"] .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  [data-theme="editorial"] .pgallery { grid-template-columns: 1fr; gap: 28px; }
  [data-theme="editorial"] .pg-lead img,
  [data-theme="editorial"] .pg-lead .pg-shot img { aspect-ratio: 3 / 2; }
  [data-theme="editorial"] .live-grid { grid-template-columns: 1fr; }
  [data-theme="editorial"] .page-head .hsub,
  [data-theme="editorial"] .page-head .lede { grid-column: 1 / -1; }
  [data-theme="editorial"] .page-head .stats-row > span { padding-right: 10px; }
  [data-theme="editorial"] .page-head .stats-row b { font-size: 30px; }
  [data-theme="editorial"] .page-head h1 { padding-bottom: 16px; border-bottom-width: 2px; }
  [data-theme="editorial"] .nav-search input { width: 140px; }
  [data-theme="editorial"] .nav-search input:focus { width: 160px; }
  [data-theme="editorial"] .brand-text { font-size: 11px; }
  [data-theme="editorial"] .nd-search input,
  [data-theme="editorial"] .nd-links a { font-family: var(--mono); letter-spacing: .02em; }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="editorial"] * { transition: none !important; animation: none !important; }
}
