/* ==========================================================================
   AwardDB site — information-dense, responsive, hand-rolled.
   Palette (2026-11-14 redesign): black body text, charcoal-blue primary
   structure (nav / headings / table headers), blue-slate secondary text and
   links, light-blue accents, ghost-white page background, white / light-gray
   alternating table rows. Reference-database identity: no gradients, no
   decorative shadows, no colored status badges.
   ========================================================================== */

:root {
  /* core palette — change here to re-theme the whole site */
  --black: #000000;
  --charcoal: #2f4550;
  --slate: #586f7c;
  --lightblue: #b8dbd9;
  --ghost: #f4f4f9;
  /* supplemental table colors */
  --row-a: #ffffff;
  --row-b: #e8e8e8;
  --thead: #d5d5d5;
  /* derived roles */
  --ink: var(--black);
  --card: #ffffff;
  --muted: var(--slate);
  --line: #dde2e8;
  --line-strong: #b9c2cc;
  --head: var(--charcoal);
  --head-ink: var(--ghost);
  --focus: var(--slate);
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  /* typography scale (Phase 4A.1 §6) — adjust here to re-scale the site.
     Body text reads at 16px; tables at 15px; navigation, controls and
     secondary metadata a step below; small supporting labels smallest.
     Uppercase UI labels (table headers, chips) stay deliberately tiny. */
  --fs-body: 16px;
  --fs-table: 15px;
  --fs-nav: 14.5px;
  --fs-control: 15px;
  --fs-secondary: 14px;
  --fs-small: 13.5px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ghost);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--slate); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--charcoal); color: #fff; padding: 8px 14px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); font-style: italic; }

/* ---------------------------------------------------------------- header */

.site-head {
  background: var(--head);
  color: var(--head-ink);
  position: sticky; top: 0; z-index: 20;
}
.head-in {
  display: flex; align-items: center; gap: 22px;
  min-height: 56px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700; letter-spacing: .01em;
  color: var(--head-ink);
}
.wordmark span { color: var(--lightblue); }
.wordmark:hover { text-decoration: none; }

.main-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.main-nav a {
  color: #c3cdd5; font-size: var(--fs-nav); font-weight: 500;
  padding: 6px 10px; border-radius: 7px;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.09); text-decoration: none; }
.main-nav a.nav-api {
  margin-left: auto; border: 1px solid #465b68; color: #d5dee4;
}

.head-search { display: flex; }
.head-search input {
  font: inherit; font-size: var(--fs-control);
  border: 1px solid #465b68; background: #263a45; color: var(--head-ink);
  border-radius: 8px; padding: 7px 12px; width: 260px; max-width: 46vw;
}
.head-search input::placeholder { color: #8fa1ad; }
.head-search input:focus { outline: 2px solid var(--lightblue); outline-offset: -1px; }

/* ------------------------------------------------------------- breadcrumbs */

.crumbs {
  font-size: var(--fs-secondary); color: var(--muted);
  padding-top: 14px; padding-bottom: 2px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--charcoal); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

main.wrap { padding-top: 10px; padding-bottom: 48px; min-height: 60vh; }

/* -------------------------------------------------------------- page head */

.page-head { margin: 10px 0 22px; }
.ph-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-title {
  font-family: var(--serif); font-size: 32px; line-height: 1.15;
  margin: 0; font-weight: 700; color: var(--charcoal);
}
.page-sub { margin: 8px 0 0; color: var(--ink); max-width: 75ch; }
.page-meta {
  margin: 10px 0 0; display: flex; align-items: center; gap: 8px 14px;
  flex-wrap: wrap; font-size: var(--fs-secondary); color: var(--muted);
}
.page-meta .stat strong { color: var(--ink); font-size: 15px; }
.page-foot {
  margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px;
}
.note-line { margin-top: 8px; color: var(--muted); font-size: var(--fs-secondary); font-style: italic; }

.api-ref {
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px 7px;
  color: var(--muted);
}
.api-ref:hover { border-color: var(--slate); color: var(--charcoal); text-decoration: none; }

/* chips + badges — neutral by design (no colored status badges) */

.chip {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .03em;
  color: var(--muted); background: var(--row-a); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 2px 9px; vertical-align: middle; white-space: nowrap;
}
.chip.comp { color: var(--charcoal); border-color: var(--slate); background: var(--lightblue); }
.chip.cand { color: var(--muted); border-style: dashed; background: var(--row-a); }
.chip.muted-chip { background: transparent; border-style: dashed; }
.chip.link-chip {
  text-decoration: none; cursor: pointer;
  font-family: var(--sans);
}
.chip.link-chip:hover { border-color: var(--slate); color: var(--charcoal); text-decoration: none; }
.chip.link-chip.on { background: var(--lightblue); border-color: var(--slate); color: var(--charcoal); }

.badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  border-radius: 6px; padding: 3px 8px; white-space: nowrap; vertical-align: middle;
  color: var(--charcoal); background: var(--row-a); border: 1px solid var(--line-strong);
}
.b-win { border-color: var(--slate); background: var(--lightblue); }
.b-nomination { background: var(--row-a); }
.b-selection { background: var(--row-a); }
.b-award { background: var(--row-a); }

/* ------------------------------------------------------------------ hero */

.hero {
  background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 34px 32px 30px; margin-top: 8px;
}
.hero-title {
  font-family: var(--serif); font-size: 34px; line-height: 1.12; margin: 0 0 10px;
  color: var(--charcoal);
}
.hero-sub { margin: 0; color: var(--ink); max-width: 70ch; }
.hero-search { display: flex; gap: 8px; margin-top: 18px; max-width: 620px; }
.hero-search input {
  flex: 1; font: inherit; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: 9px; background: var(--row-a);
}
.hero-search input:focus { outline: 2px solid var(--slate); outline-offset: -1px; }
.hero-search button {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--charcoal); color: #fff; border: 0; border-radius: 9px; padding: 10px 20px;
}
.hero-search button:hover { background: #24363f; }

/* ----------------------------------------------------------------- cards */

.sec { margin-top: 30px; }
.sec-title {
  font-family: var(--serif); font-size: 21px; margin: 0 0 4px; font-weight: 700;
  display: flex; align-items: baseline; gap: 10px; color: var(--charcoal);
}
.sec-more { font-size: var(--fs-small); font-weight: 400; font-family: var(--sans); }
.sec-note { margin: 0 0 14px; color: var(--muted); font-size: var(--fs-secondary); max-width: 80ch; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; margin-top: 12px; }
.card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; color: var(--ink);
  transition: border-color .12s ease;
}
.card:hover { text-decoration: none; border-color: var(--slate); }
.card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.org-emblem {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none; border-radius: 8px;
  background: var(--charcoal); color: var(--lightblue);
  font-family: var(--serif); font-size: 18px; font-weight: 700;
}
.card-title { font-family: var(--serif); font-size: 19px; margin: 0; font-weight: 700; color: var(--charcoal); }
.card-desc { margin: 8px 0 6px; color: var(--ink); font-size: var(--fs-secondary); max-width: 60ch; }
.card-meta { margin: 0; color: var(--muted); font-size: var(--fs-secondary); }
.card-meta .api-ref, .card .api-ref { border-color: var(--line); }

.explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.card.mini h3 { font-family: var(--serif); margin: 0 0 4px; font-size: 16.5px; color: var(--charcoal); }
.card.mini p { margin: 0; color: var(--muted); font-size: var(--fs-small); }

.years-strip { margin-top: 30px; }
.years-inline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.year-link {
  font-size: var(--fs-secondary); font-weight: 600; font-variant-numeric: tabular-nums;
  border: 1px solid var(--line-strong); background: var(--card);
  padding: 4px 10px; border-radius: 7px; color: var(--ink);
}
.year-link:hover { border-color: var(--slate); color: var(--charcoal); text-decoration: none; }

/* --------------------------------------------------------------- tables */
/* Generic listing tables (people, works, search, admin, …): charcoal
   header with white text, clearly alternating white / light-gray rows. */

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-table); }
.tbl th, .tbl td { padding: 6px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th {
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: #fff; font-weight: 600; background: var(--charcoal);
  position: sticky; top: 0;
}
.tbl tbody tr:nth-child(odd) { background: var(--row-a); }
.tbl tbody tr:nth-child(even) { background: var(--row-b); }
.tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 0; }
.tbl th[scope="row"] { font-weight: 600; }
.tbl .num { text-align: right; }

/* Recognition tables (site-wide compact listing for award results):
   same shell as .tbl, plus typography rules that CARRY the result:
   winner rows bold, nominee rows italic, selections/other regular. */

.rt-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.rt { width: 100%; border-collapse: collapse; font-size: var(--fs-table); }
.rt th, .rt td { padding: 5px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.rt thead th {
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: #fff; font-weight: 600; background: var(--charcoal);
}
.rt tbody tr:nth-child(odd) { background: var(--row-a); }
.rt tbody tr:nth-child(even) { background: var(--row-b); }
.rt tbody tr:last-child td { border-bottom: 0; }
.rt tr.r-win td { font-weight: 700; }
.rt tr.r-nom td { font-style: italic; }
.rt .res { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rt .x-credit { color: var(--muted); font-size: var(--fs-small); font-weight: 400; font-style: normal; }
.rt .x-note { color: var(--muted); font-size: var(--fs-small); font-weight: 400; font-style: normal; }
.rt .x-cowin { color: var(--muted); font-size: var(--fs-small); font-weight: 400; font-style: normal; }

/* Fixed column grid (spec §3): every table of the same type on a page
   shares one colgroup width set, so related tables align regardless of
   any single row's content; long values wrap instead of re-flowing the
   other columns. The table is the same as before plus this rule. */
.rt-fixed { table-layout: fixed; }
.rt-fixed th, .rt-fixed td { overflow-wrap: break-word; }

/* 'Winners only' page toggle (Phase 4B §3): progressive enhancement —
   winners.js adds the body class; without JavaScript nothing hides.
   Kept visible: competitive wins plus honorary / special / technical /
   other AWARDED recognitions (existing labels preserved). Hidden:
   non-winning nominees, unofficial historical entries and
   official-selection rows; a category, year or the whole selections
   area left with nothing to show hides as a whole — no empty tables
   or orphaned headings. Counts always describe the full dataset. */
/* Row-level rules below remain as a defensive layer; in the consolidated
   mode the whole normal view (cats / occ-list) is hidden. */
body.winners-only tr.res-nom,
body.winners-only tr.res-nono,
body.winners-only tr.res-sel { display: none; }
body.winners-only .cat-no-wins,
body.winners-only .occ-no-wins,
body.winners-only .sel-sec { display: none; }
.winners-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-secondary); color: var(--charcoal); cursor: pointer;
}
.winners-toggle input { margin: 0; accent-color: var(--charcoal); }

/* Phase 4B.1 — consolidated presentation. The anchored competition
   context sits inline in the principal award's heading (one unified
   table, no separate sub-block). */
.comp-ctx { font-weight: 400; color: var(--slate); }

/* Winners-only consolidated table: always present in the HTML (so
   footnotes and the no-JS fallback stay complete) but hidden by
   default; exactly one of normal view / consolidated view is shown. */
.winners-consolidated { display: none; margin-top: 16px; }
body.winners-only .winners-consolidated { display: block; }
body.winners-only .cats,
body.winners-only .occ-list { display: none; }
.wc-title {
  font-family: var(--serif); font-size: 17px; font-weight: 700;
  color: var(--charcoal); margin: 0 0 8px;
}
/* A footnote whose only reference sits in the hidden normal view: the
   return link would point at invisible content, so it hides in the
   consolidated mode (winners.js marks these fn-nowhere) — and the note
   ITSELF hides too (winners.js marks its <li> fn-orphan-w): otherwise
   the 'Notes and sources' list would carry an orphaned entry with no
   visible reference. Height/visibility instead of display:none, so the
   <ol>'s decimal numbering stays in sync with the forward [N] refs
   (a display:none li would renumber the list and desync the markers). */
body.winners-only .fn-back.fn-nowhere { display: none; }
body.winners-only .fn-list li.fn-orphan-w {
  height: 0; margin: 0; overflow: hidden; visibility: hidden;
}

/* A repeated historical note hoisted out of the rows: rendered ONCE,
   above the table it applies to. */
.tbl-note { margin: 0 0 8px; color: var(--muted); font-size: var(--fs-small); line-height: 1.45; }

/* Wikipedia-style footnotes (Phase 4A §5): a small numbered reference
   sits beside the affected category or row; the full text appears once
   in the 'Notes and sources' section at the bottom of the page, with a
   return link to the first reference. Muted, compact, no decoration. */
/* Pre-launch correction 5: footnote anchor targets keep their position
   clear of the sticky site header on both the forward jump (a [N] ref
   scrolls down to the note) and the return jump (the note's return
   link scrolls back up to the originating reference). */
.fn-ref { scroll-margin-top: 80px; }
.fn-list li { scroll-margin-top: 20px; }
.fn-ref a {
  color: var(--slate); font-size: 11px; font-weight: 600;
  text-decoration: none; margin-left: 3px; white-space: nowrap;
}
.fn-ref a:hover { color: var(--charcoal); text-decoration: underline; }
.footnotes { margin: 26px 0 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.footnotes .sec-title { font-size: 14px; margin: 0 0 8px; }
.fn-list { margin: 0; padding-left: 22px; }
.fn-list li {
  font-size: var(--fs-small); line-height: 1.5; color: var(--ink); margin: 0 0 8px;
}
.fn-list li a { color: var(--slate); }
.fn-back { margin-left: 8px; font-size: 11px; color: var(--slate); text-decoration: none; }
.fn-back:hover { color: var(--charcoal); text-decoration: underline; }

/* Pre-launch correction 7: verified external identifiers render as
   direct links; the only visual change is a compact underline so the
   value reads as a link (same colour/weight as the surrounding text,
   no icons or chips). */
.ext-id { text-decoration: underline; text-underline-offset: 2px; }

/* Compact inline qualifier (eligibility year, held-year detail). */
.dim { font-size: var(--fs-small); color: var(--muted); }

/* ------------------------------------------------------------------ edit mode
   Registered editors who have opted in see ONE "Edit this page" link during
   normal browsing; activating it (?edit=1) reveals the page's contribution
   controls and a banner with an obvious exit. Anonymous visitors and
   ordinary accounts never render these elements — and the contribution
   endpoints enforce the same eligibility server-side. */
.edit-link {
  margin: 10px 0 0; font-size: var(--fs-secondary); color: var(--muted);
}
.edit-link a {
  font-weight: 600; color: var(--charcoal);
  border: 1px solid var(--line-strong); border-radius: 7px;
  padding: 3px 12px; background: var(--card);
}
.edit-link a:hover { border-color: var(--slate); text-decoration: none; }
.edit-banner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--lightblue); border: 1px solid var(--slate);
  border-radius: var(--radius); padding: 10px 16px; margin: 12px 0 4px;
  font-size: var(--fs-secondary); color: var(--charcoal);
}
.edit-banner a { font-weight: 600; }

/* Inside page-meta chips, shown only while editing mode is active */
.edit-inline {
  font-size: 12px; font-weight: 600; color: var(--charcoal);
  border: 1px solid var(--line-strong); border-radius: 7px;
  padding: 1px 9px; background: var(--card);
}
.edit-inline:hover { border-color: var(--slate); text-decoration: none; }

/* Discreet inline correction link inside a Result cell (edit mode only) */
.res-act { margin-left: 10px; font-size: 11px; font-weight: 400; white-space: normal; }

/* ------------------------------------------------------------- pagination */

.pager { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; font-size: var(--fs-secondary); }
.pg {
  border: 1px solid var(--line-strong); border-radius: 7px; padding: 5px 12px;
  background: var(--card); color: var(--ink); font-weight: 600;
}
.pg:hover { border-color: var(--slate); color: var(--charcoal); text-decoration: none; }
.pg.off { opacity: .45; cursor: default; border-color: var(--line); }
.pg-info { color: var(--muted); }

/* -------------------------------------------------------------- event page */

.cat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px 10px; margin-top: 12px;
}
.cat-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cat-name { font-family: var(--serif); font-size: 17px; margin: 0; font-weight: 700; color: var(--charcoal); }
.cat-api { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
.cat-api:hover { color: var(--charcoal); border-color: var(--slate); text-decoration: none; }
.cat-notes { margin: 4px 0 8px; color: var(--muted); font-size: var(--fs-small); }

/* Legacy unit rows (retained for unmigrated call sites; plain, no fills) */
.unit {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 14px;
  padding: 7px 10px; margin: 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.unit + .u-meta, .u-meta { margin: 0 0 4px; }
.u-meta { padding: 0 0 4px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-small); color: var(--muted); }
.u-credit { font-style: italic; }
.u-main { min-width: 0; }
.u-works a, .u-people a { font-weight: 600; }
.u-sep { color: var(--muted); margin: 0 7px; }
.u-people { color: var(--ink); }
.u-people a { font-weight: 500; }
.u-credits { color: var(--muted); }
.u-credits .credit { font-size: 12.5px; text-transform: lowercase; }
.u-role { color: var(--muted); font-size: var(--fs-small); }
.u-side { white-space: nowrap; display: flex; align-items: center; gap: 10px; }

/* selections area */
.sel-sec .sec-note { max-width: 85ch; }
.sel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 10px; margin-top: 12px; }
.sel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sel-head h3 { font-family: var(--serif); font-size: 17px; margin: 0; color: var(--charcoal); }

/* -------------------------------------------------------------- lineage page */

.occ {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 16px 10px; margin-top: 12px;
}
.occ-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.occ-year { font-family: var(--serif); font-size: 17px; margin: 0; color: var(--charcoal); font-variant-numeric: tabular-nums; }
.occ-event { font-size: var(--fs-secondary); }
.occ-cat { margin: 4px 0 0; font-size: var(--fs-small); color: var(--muted); }
.occ-cat em { color: var(--ink); }

/* general lineage notes — shown once, near the top of the award page */
.lineage-notes { margin: 12px 0 4px; max-width: 85ch; }
.lineage-notes p { margin: 0 0 6px; font-size: var(--fs-nav); color: var(--ink); }

.noms { margin-top: 8px; }
.noms summary {
  cursor: pointer; font-size: var(--fs-small); font-weight: 600; color: var(--muted);
  padding: 4px 0; user-select: none;
}
.noms summary:hover { color: var(--charcoal); }

/* ------------------------------------------------------- work / person pages */

.prov-line { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; font-size: var(--fs-secondary); color: var(--muted); align-items: baseline; }
.prov { white-space: normal; }
.src { font-size: 12.5px; }

.rec-events, .rec-ev { }
.rec-ev {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px 10px; margin-top: 12px;
}
.rec-ev-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.rec-ev-name { font-family: var(--serif); font-size: 17.5px; margin: 0; color: var(--charcoal); }
.rec-cat { margin-top: 10px; }
.rec-cat-name {
  margin: 10px 0 4px; font-size: var(--fs-secondary); font-weight: 700;
  color: var(--charcoal);
}
.rec-cat-name a { color: var(--charcoal); }
.rec-cat-name a:hover { color: var(--slate); text-decoration: underline; }
.sel-cat { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 12px; }

.works-inline { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.work-chip { text-decoration: none; font-weight: 600; }
.chip.work-chip:hover { border-color: var(--slate); color: var(--charcoal); text-decoration: none; }

/* ------------------------------------------------- artwork (M5, TMDB or fallback) */

.artwork { position: relative; flex: none; }

/* work page: poster + info */
.work-head { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; }
.work-head-info, .person-head-info { min-width: 0; }

.art-poster img {
  display: block; width: 160px; height: 226px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); background: var(--lightblue);
}

/* initial-letter fallback: shown whenever no image loaded (disabled, no
   verified TMDB id, no poster path, or fetch failure) */
.art-fallback {
  display: none; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; color: var(--lightblue);
  background: var(--charcoal); border-radius: 10px;
}
.art-poster .art-fallback { width: 160px; height: 226px; font-size: 76px; }
.artwork.no-art img { display: none; }
.artwork.no-art .art-fallback { display: flex; }

/* person page: monogram avatar (v1 has no verified person → photo mapping) */
.person-head { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; }
.avatar-mono {
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--charcoal); color: var(--lightblue);
  font-family: var(--serif); font-size: 46px; font-weight: 700;
}

/* works listing: poster thumbnails */
.art-thumb { width: 56px; }
.art-thumb img {
  display: block; width: 46px; height: 66px; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--line); background: var(--lightblue);
}
.art-thumb .art-fallback { border-radius: 6px; font-size: 22px; }
.art-thumb.no-art img { display: none; }
.art-thumb.no-art .art-fallback { display: flex; width: 46px; height: 66px; }

/* ----------------------------------------------------------------- search */

.search-form {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-top: 12px;
}
.search-form input[type="search"] {
  flex: 1; min-width: 220px; font: inherit; font-size: var(--fs-control); padding: 9px 12px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--row-a);
}
.search-form input:focus, .scope-search input:focus, .browse-form input:focus,
.browse-fallback input:focus, .filters input:focus { outline: 2px solid var(--slate); outline-offset: -1px; }
.search-form select, .filters select, .year-picker select {
  font: inherit; font-size: var(--fs-control); padding: 8px 10px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--row-a); color: var(--ink);
}
.search-form button, .filters button, .year-picker button {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--charcoal); color: #fff; border: 0; border-radius: 8px; padding: 9px 18px;
}
.search-form button:hover, .filters button:hover, .year-picker button:hover { background: #24363f; }
.search-form label, .filters label { font-size: var(--fs-secondary); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.result-count { color: var(--muted); font-size: var(--fs-secondary); margin: 18px 0 0; }

.hits { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.hit { padding: 10px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hit:last-child { border-bottom: 0; }
.hit-title { font-weight: 600; font-size: 15.5px; }
.hit-sub { margin: 0; font-size: var(--fs-secondary); color: var(--muted); flex: 1; min-width: 200px; }
.hit-api { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.hit-api:hover { color: var(--charcoal); border-color: var(--slate); text-decoration: none; }

/* ------------------------------------------------------------------ years */

/* The years index is a compact dropdown, not a wall of year buttons. */
.year-picker {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-top: 12px; max-width: 560px;
}
.year-picker label { font-size: var(--fs-secondary); color: var(--muted); }
.year-picker select { flex: 1; min-width: 220px; }

/* inline year dropdown on award-history pages (page-meta row) */
.page-meta .year-sel { display: flex; align-items: center; gap: 8px; }
.page-meta .year-sel label { font-size: var(--fs-secondary); color: var(--muted); }
.page-meta .year-sel select {
  font: inherit; font-size: var(--fs-control); padding: 6px 8px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--row-a); color: var(--ink);
}

/* individual year pages keep their ceremony/festival cards */
.year-nav { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: var(--fs-secondary); }

.year-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 14px; }

/* ------------------------------------------------------------------ tabs */

.tabs {
  display: flex; gap: 4px; margin: 14px 0 0; flex-wrap: wrap;
  border-bottom: 2px solid var(--line-strong);
}
.tab {
  font-size: var(--fs-secondary); font-weight: 600; color: var(--muted);
  padding: 9px 16px 10px; margin-bottom: -2px;
  border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0;
}
.tab:hover { color: var(--charcoal); text-decoration: none; }
.tab.on { color: var(--charcoal); background: var(--card); border-color: var(--line-strong); border-bottom-color: var(--card); }

/* ---------------------------------------------------------------- filters */

.filters {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-top: 12px;
}
.filters-clear { font-size: var(--fs-secondary); color: var(--muted); }
.filters-check { font-size: var(--fs-secondary); color: var(--muted); }

/* -------------------------------------------------------- scoped search */

.scope-search {
  display: flex; gap: 8px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; margin-top: 14px; max-width: 560px;
}
.scope-search input[type="search"] {
  flex: 1; min-width: 160px; font: inherit; padding: 8px 11px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--row-a);
}
.scope-search button {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--charcoal); color: #fff; border: 0; border-radius: 8px; padding: 8px 16px;
}
.scope-search button:hover { background: #24363f; }

/* search-first empty states (people / works) */
.search-prompt {
  margin-top: 14px; padding: 18px 20px; max-width: 620px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--muted); font-size: var(--fs-secondary);
}
.search-prompt p { margin: 0; }

/* ---------------------------------------------------------- homepage awards */

.awards-section { margin-top: 30px; }
.award-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.award-col {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px;
}
.award-col-title { font-family: var(--serif); font-size: 17px; margin: 0 0 4px; font-weight: 700; color: var(--charcoal); }
.award-col-title a { color: var(--ink); }
.award-col-title a:hover { color: var(--charcoal); text-decoration: none; }
.award-list { list-style: none; margin: 0; padding: 0; }
.award-list li { border-bottom: 1px solid var(--line); }
.award-list li:last-child { border-bottom: 0; }
.award-list a { display: block; padding: 6px 2px; font-size: var(--fs-nav); color: var(--ink); }
.award-list a:hover { color: var(--charcoal); background: var(--lightblue); text-decoration: none; }
.award-all { font-size: var(--fs-small); font-weight: 600; display: inline-block; margin-top: 8px; }

/* ------------------------------------------------------ work page details */

.detail-line { margin: 6px 0 0; font-size: var(--fs-secondary); color: var(--muted); }
.chip.ev-chip { color: var(--charcoal); border-color: var(--slate); background: var(--lightblue); font-weight: 600; }
.listed-as {
  font-family: var(--sans); font-weight: 400; font-size: 12px;
  text-transform: none; letter-spacing: 0; color: var(--muted);
  margin-left: 8px;
}

/* ------------------------------------------------------------------ error */

.error-box { text-align: center; padding: 70px 0 30px; }
.error-code { font-family: var(--serif); font-size: 74px; margin: 0; color: var(--charcoal); font-weight: 700; }
.error-msg { font-size: 15px; color: var(--ink); }
.btn {
  display: inline-block; background: var(--charcoal); color: #fff; border-radius: 8px;
  padding: 8px 18px; font-weight: 600;
}
.btn:hover { text-decoration: none; background: #24363f; }

/* ----------------------------------------------------------------- footer */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--row-a);
  color: var(--muted); font-size: 12.5px;
  margin-top: 40px;
}
.foot-in { padding-top: 22px; padding-bottom: 26px; max-width: 1120px; }
.foot-in p { margin: 0 0 8px; max-width: 90ch; }
.foot-links a { margin-right: 14px; }
.foot-in .foot-attribution {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 11.5px;
}
.tmdb-logo { height: 16px; flex: none; opacity: .85; }

/* ------------------------------------------------- auth & account pages */

.head-auth { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.head-auth a { color: #c3cdd5; font-weight: 500; }
.head-auth a:hover { color: #fff; text-decoration: none; }
.head-auth a.nav-register {
  color: #fff; background: var(--slate);
  border: 1px solid #6d8797; border-radius: 7px; padding: 4px 12px;
}
.head-auth a.nav-register:hover { background: #6d8797; }
.head-auth .inline-form button {
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; color: #c3cdd5; border: 1px solid #465b68;
  border-radius: 7px; padding: 4px 10px;
}
.head-auth .inline-form button:hover { color: #fff; border-color: #6d8797; }

.auth-wrap { max-width: 560px; margin: 8px auto 0; }
.auth-wrap .page-head { margin-bottom: 16px; }
.auth-form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  display: grid; gap: 14px;
}
.auth-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.auth-form input {
  font: inherit; font-weight: 400; padding: 9px 12px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--row-a);
}
.auth-form input:focus { outline: 2px solid var(--slate); outline-offset: -1px; }
.field-hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.auth-alt { margin-top: 14px; font-size: 13px; color: var(--muted); }

.btn-primary {
  justify-self: start; cursor: pointer; font: inherit; font-weight: 600;
  background: var(--charcoal); color: #fff; border: 0; border-radius: 8px; padding: 9px 20px;
}
.btn-primary:hover { background: #24363f; text-decoration: none; }
.btn-primary.disabled, .btn-primary:disabled {
  background: #9aa4ac; color: #fff; cursor: not-allowed;
}
.btn-small {
  display: inline-block; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600;
  background: var(--card); color: var(--ink); border: 1px solid var(--line-strong);
  border-radius: 7px; padding: 4px 12px;
}
.btn-small:hover { border-color: var(--slate); color: var(--charcoal); text-decoration: none; }
.btn-small.danger { color: #8c2f24; border-color: #d9b3ac; }
.btn-small.danger:hover { background: #f8e9e6; border-color: #b96a5d; color: #6e2117; }
.btn-small.disabled, .btn-small:disabled { opacity: .55; cursor: not-allowed; }

.inline-form { display: inline-flex; }

/* functional (non-decorative) status colors: errors and notices keep a
   restrained semantic tint */
.alert {
  background: #f8e9e6; border: 1px solid #d9b3ac; color: #6e2117;
  border-radius: 8px; padding: 10px 14px; font-size: 13.5px; margin: 0 0 14px;
}
.notice {
  background: var(--ghost); border: 1px solid var(--line-strong); color: var(--charcoal);
  border-radius: 8px; padding: 10px 14px; font-size: 13.5px; margin: 0 0 14px;
}

.fresh-key {
  background: var(--charcoal); color: var(--head-ink);
  border-radius: var(--radius); padding: 16px 18px; margin: 0 0 16px;
}
.fresh-key p { margin: 0 0 8px; font-size: 13px; color: #c3cdd5; }
.fresh-key code {
  display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14.5px; color: var(--lightblue); word-break: break-all; line-height: 1.5;
}

.auth-profile .kv th { width: 150px; font-weight: 600; color: var(--muted); }
.kv td { color: var(--ink); }

.key-create { display: flex; align-items: flex-end; gap: 10px; margin: 0 0 16px; }
.key-create label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink); flex: 1; }
.key-create input {
  font: inherit; font-weight: 400; padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--row-a);
}
.key-actions { display: flex; gap: 6px; white-space: nowrap; }
.keys code { font-size: 12px; }

.steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; }
.code {
  background: var(--charcoal); color: #e2e9ed; border-radius: 8px;
  padding: 12px 14px; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; line-height: 1.55; margin: 0 0 14px;
}
.code .c { color: #8fa1ad; }

.doc-links { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; }

.warn { color: #8c2f24; }
.row-blocked { background: #f6e9e6; }
.row-blocked td { color: #6e2117; }

.lead { font-size: 15px; color: var(--ink); max-width: 75ch; margin: 0 0 18px; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 760px) {
  body { font-size: 15px; }
  .head-in { gap: 10px; }
  .main-nav { order: 3; width: 100%; }
  .main-nav a.nav-api { margin-left: 0; }
  .head-search { margin-left: auto; }
  .head-search input { width: 150px; }
  .page-title { font-size: 25px; }
  .work-head, .person-head { grid-template-columns: 1fr; gap: 14px; }
  .art-poster img, .art-poster .art-fallback { width: 132px; height: 187px; }
  .art-poster .art-fallback { font-size: 62px; }
  .avatar-mono { width: 76px; height: 76px; font-size: 36px; }
  .hero { padding: 22px 18px; }
  .hero-title { font-size: 26px; }
  .unit { grid-template-columns: 1fr; }
  .u-side { order: -1; }
  .tbl th, .tbl td, .rt th, .rt td { padding: 6px 10px; }
  .cat, .occ, .rec-ev, .sel { padding: 10px 12px 8px; }
  .head-auth { gap: 8px; }
  .head-auth a:not(.nav-register) { display: none; }
  .head-auth a.nav-register { display: inline-block; }
  .auth-form, .key-create { flex-direction: column; align-items: stretch; display: grid; }
  .key-create { display: grid; }
  .key-create .btn-primary, .auth-form .btn-primary { justify-self: stretch; }
  .auth-profile .kv th { width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}

/* ------------------------------------------------ contributions (C3/C4) */

.contrib-wrap { max-width: 860px; margin: 8px auto 0; }
.contrib-back { font-size: 13px; margin: 0 0 10px; }
.contrib-back a { color: var(--muted); }
.contrib-back a:hover { color: var(--charcoal); }

.kind-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px; margin: 0 0 20px;
}
.kind-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
}
.kind-card:hover { border-color: var(--slate); text-decoration: none; }
.kind-card h2 { margin: 0 0 6px; font-size: 16px; color: var(--charcoal); }
.kind-card p { margin: 0; font-size: 13px; color: var(--muted); }

.form-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  display: grid; gap: 14px; margin: 0 0 18px;
}
.form-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.form-card input[type="text"], .form-card input[type="search"], .form-card textarea, .form-card select {
  font: inherit; font-weight: 400; width: 100%; padding: 9px 12px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--row-a); color: var(--ink);
}
.form-card textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radio-row { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; color: var(--ink); }
.radio-row input { margin-top: 3px; }
.opt-set {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; margin: 0; display: grid; gap: 8px;
}
.opt-set legend { font-size: 13px; font-weight: 600; color: var(--ink); padding: 0 6px; }
.current-line { margin: 0; font-size: 13.5px; color: var(--ink); }
.ctx-line { margin: 0; font-size: 13px; color: var(--muted); }
.req-note { margin: -6px 0 0; font-size: 12px; color: var(--muted); }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-secondary {
  cursor: pointer; font: inherit; font-weight: 600;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 18px;
}
.btn-secondary:hover { border-color: var(--slate); color: var(--charcoal); }

.st {
  display: inline-block; font-size: 12px; font-weight: 600;
  border-radius: 999px; padding: 2px 10px; margin-left: 8px;
  border: 1px solid var(--line-strong); color: var(--muted); background: var(--row-a);
}
h1 .st { vertical-align: middle; }
.st-submitted { color: var(--ink); }
.st-needs_clarification { color: #7a5b12; background: var(--thead); border-color: #b9b3a0; }
.st-rejected { color: #8c2f24; background: #f8e9e6; border-color: #d9b3ac; }
.st-approved { color: #1e5b3a; background: #e5f0e9; border-color: #b5d4c2; }
.st-published { color: #1e5b3a; background: #dcebe1; border-color: #a3c8b2; }
.st-publication_failed { color: #8c2f24; background: #f8e9e6; border-color: #d9b3ac; }
.st-withdrawn { color: var(--muted); background: var(--ghost); }

.q-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 16px; }
.q-filters a {
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 12px;
}
.q-filters a:hover { border-color: var(--slate); color: var(--charcoal); text-decoration: none; }
.q-filters a.on { background: var(--lightblue); border-color: var(--slate); color: var(--charcoal); }
.q-sep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 6px; }

.sum { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

.conflict {
  background: var(--ghost); border: 1px solid var(--line-strong);
  color: var(--charcoal); border-radius: 8px; padding: 8px 12px;
  font-size: 13px; margin: 0 0 8px;
}
.sec.conflicts { border: 1px solid var(--line-strong); background: var(--card); }

.evlog { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 13.5px; }
.ev-act { font-weight: 600; color: var(--ink); }
.evlog blockquote {
  margin: 4px 0 0; padding: 6px 12px;
  border-left: 3px solid var(--line-strong); color: var(--ink); font-size: 13px;
}

.rec-list, .src-list { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; }
.sub-h {
  font-size: 12.5px; margin: 14px 0 8px;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
.note-quote {
  margin: 0 0 10px; padding: 10px 14px; background: var(--row-a);
  border-left: 3px solid var(--slate); border-radius: 0 8px 8px 0; font-size: 13.5px;
}
.expl { font-size: 14px; color: var(--ink); }
.diff td, .diff th { font-size: 13px; }
.status-legend { font-size: 12px; margin-top: 14px; }
.withdraw-line { margin-top: 18px; font-size: 13px; color: var(--muted); }

.u-suggest {
  display: inline-block; margin-left: 10px; font-size: 11.5px; font-weight: 500;
  color: var(--muted); text-decoration: underline; text-underline-offset: 2px;
  white-space: nowrap;
}
.u-suggest:hover { color: var(--charcoal); }

@media (max-width: 760px) {
  .field-row { grid-template-columns: 1fr; }
  .kind-grid { grid-template-columns: 1fr; }
  .sum { max-width: 180px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn-primary, .form-actions .btn-secondary { width: 100%; }
}

/* ---------- Account security / MFA enrollment (handoff MFA redesign) ---------- */

.mfa-setup-grid {
  display: grid; grid-template-columns: auto 1fr; gap: 26px;
  align-items: start; margin-top: 18px;
}
@media (max-width: 640px) { .mfa-setup-grid { grid-template-columns: 1fr; } }

.qr-box { display: grid; gap: 8px; justify-items: center; }
.qr-box svg {
  width: 220px; height: 220px; display: block;
  background: var(--row-a); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px;
}
.qr-fallback {
  margin: 0; padding: 24px 16px; color: var(--muted); font-size: 13px;
  border: 1px dashed var(--line-strong); border-radius: 8px; text-align: center;
}

.mfa-manual { display: grid; gap: 10px; align-content: start; }
.mfa-secret {
  display: inline-block; font-size: 15px; letter-spacing: .1em;
  padding: 8px 12px; background: var(--card); border: 1px solid var(--line-strong);
  border-radius: 6px; user-select: all; cursor: text; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.mfa-manual .mfa-copy { justify-self: start; }
.mfa-uri { font-size: 12.5px; color: var(--muted); }
.mfa-uri summary { cursor: pointer; }
.mfa-uri-text {
  display: block; margin-top: 6px; word-break: break-all; font-size: 11.5px;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 10px;
}
.mfa-manual .auth-form { margin-top: 10px; }

.mfa-facts { margin: 8px 0 4px; padding-left: 20px; display: grid; gap: 4px; font-size: 13.5px; }
.mfa-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.mfa-actions .inline-form { margin: 0; }

.recovery-codes {
  background: var(--row-a); border: 1px solid var(--line-strong);
  border-left: 4px solid var(--slate);
  border-radius: var(--radius); padding: 14px 18px; margin: 16px 0;
}
.recovery-codes ul {
  list-style: none; margin: 0 0 12px; padding: 0;
  columns: 2; column-gap: 40px;
}
@media (max-width: 560px) { .recovery-codes ul { columns: 1; } }
.recovery-codes code { font-size: 13.5px; letter-spacing: .04em; }

.mfa-gate {
  background: var(--ghost); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 12px 16px; margin: 12px 0;
  font-size: 13.5px;
}
.mfa-gate p { margin: 0 0 8px; }
.mfa-gate p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------ organization browse */
/* Three compact controls (award / year / film) replace the former full
   award + edition tables on organization pages. */

.browse-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px; margin-top: 14px; align-items: start;
}
.browse-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px 12px;
}
.browse-card h3 {
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 9px; font-weight: 700;
}
.browse-form { display: flex; gap: 8px; align-items: center; }
.browse-form input[type="search"] {
  flex: 1; min-width: 0; font: inherit; font-size: 13.5px; padding: 9px 11px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--row-a);
}
.browse-form select {
  flex: 1; min-width: 0; font: inherit; font-size: 13.5px; padding: 8px 10px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--row-a); color: var(--ink);
}
.browse-form button, .browse-fallback button {
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  background: var(--charcoal); color: #fff; border: 0; border-radius: 8px; padding: 9px 14px;
}
.browse-form button:hover, .browse-fallback button:hover { background: #24363f; }
.browse-fallback { display: flex; gap: 8px; align-items: center; }
.browse-fallback select {
  flex: 1; min-width: 0; font: inherit; font-size: 13.5px; padding: 8px 10px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--row-a); color: var(--ink);
}
.browse-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; max-width: 60ch; }

/* searchable award combobox (dependency-free JS; hidden without JS —
   the <noscript> grouped select takes over) */
html:not(.js) .combo { display: none; }
.combo { position: relative; }
.combo-input {
  width: 100%; font: inherit; font-size: var(--fs-control); padding: 9px 28px 9px 11px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--row-a);
}
.combo-input:focus { outline: 2px solid var(--slate); outline-offset: -1px; }
.combo-caret {
  position: absolute; right: 11px; top: 15px; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; font-size: 11px;
}
.combo-list {
  position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0;
  margin: 0; padding: 4px; list-style: none; background: var(--card);
  border: 1px solid var(--line-strong); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(47, 69, 80, .14);
  max-height: 320px; overflow: auto;
}
.combo-group {
  font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); padding: 8px 10px 3px; font-weight: 700;
}
.combo-count { font-weight: 400; }
.combo-opt {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: var(--fs-nav);
}
.combo-opt.active { background: var(--lightblue); }
.combo-opt .co-meta {
  color: var(--muted); font-size: 12.5px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.co-flag {
  font-size: 10px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--charcoal); border: 1px solid var(--slate); background: var(--lightblue);
  border-radius: 4px; padding: 0 4px; margin-left: 6px; font-weight: 600;
}

/* film search results (rendered only after the visitor searches) */
.film-results {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 6px 18px;
}
.film-results a { font-weight: 600; font-size: 15px; }
.film-more { margin: 14px 0 0; font-size: var(--fs-secondary); }

/* ============================================================
   Phase 4C — API documentation (multi-page + sidebar).
   Layout: sticky left sidebar on desktop, compact <details> nav on
   mobile. Content reuses the site's page-head / sec / tbl / code
   conventions; docs-scoped rules below only.
   ============================================================ */
.api-docs {
  display: grid; grid-template-columns: 232px minmax(0, 1fr);
  gap: 40px; align-items: start; margin-top: 14px;
}
.api-docs-nav { position: sticky; top: 74px; }
.api-docs-nav-title {
  margin: 0 0 8px; font-size: var(--fs-small); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.api-docs-nav-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.api-docs-nav-list li { margin: 0; }
.api-docs-nav-list a {
  display: block; padding: 6px 10px; border-radius: 6px;
  font-size: var(--fs-nav); color: var(--ink);
}
.api-docs-nav-list a:hover { background: #e9eef2; text-decoration: none; }
.api-docs-nav-list a.active {
  background: var(--lightblue); color: var(--charcoal);
  font-weight: 700; text-decoration: none;
}
.api-docs-nav-foot {
  margin: 14px 0 0; padding: 10px; font-size: var(--fs-small);
  color: var(--muted); border-top: 1px solid var(--line); line-height: 1.8;
}
.api-docs-body { min-width: 0; }
.api-docs-body .lead { margin-bottom: 6px; }
.api-docs-body h2.sec-title { scroll-margin-top: 76px; }
.api-docs-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em; background: #e8e8e8; padding: 1px 5px; border-radius: 4px;
}
.api-docs-body pre.code { font-size: 13px; }
.api-docs-body pre.code code { background: none; padding: 0; }
.api-docs-body .method {
  display: inline-block; background: var(--slate); color: #fff; font-weight: 700;
  font-size: 11.5px; padding: 2px 8px; border-radius: 4px; margin-right: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap;
}
.api-docs-body .path { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-small); }
.api-docs-body .req, .api-docs-body .open {
  display: inline-block; background: var(--lightblue); color: var(--charcoal);
  font-size: 11.5px; padding: 1px 7px; border-radius: 9px; margin-left: 6px;
  font-weight: 600; vertical-align: 1px; white-space: nowrap;
}
.api-docs-body .open { background: #ddefec; }
.api-docs-body .pill {
  display: inline-block; background: var(--lightblue); color: var(--charcoal);
  font-size: var(--fs-small); padding: 1px 8px; border-radius: 10px;
  margin: 0 4px 4px 0; font-weight: 600;
}
.api-docs-body .note {
  background: #efeff4; border: 1px solid var(--line); border-left: 4px solid var(--slate);
  padding: 10px 14px; border-radius: 6px; margin: 14px 0; font-size: var(--fs-secondary);
}
.api-docs-body .info {
  background: #e7f1f0; border: 1px solid var(--lightblue); border-left: 4px solid var(--slate);
  padding: 10px 14px; border-radius: 6px; margin: 14px 0; font-size: var(--fs-secondary);
}
.api-docs-pager {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: var(--fs-nav);
}
.api-docs-pager a.next { margin-left: auto; text-align: right; }
.api-docs-pager .pager-space { flex: 1; }
.api-docs-nav-mobile { display: none; }

@media (max-width: 900px) {
  .api-docs { display: block; }
  .api-docs-nav { display: none; }
  .api-docs-nav-mobile { display: block; margin: 0 0 16px; }
  .api-docs-nav-mobile summary {
    cursor: pointer; font-size: var(--fs-control); font-weight: 600;
    color: var(--charcoal); padding: 9px 12px; border: 1px solid var(--line);
    border-radius: 8px; background: var(--card);
  }
  .api-docs-nav-mobile[open] summary { border-radius: 8px 8px 0 0; }
  .api-docs-nav-mobile .api-docs-nav-list {
    border-top: none; margin-top: -1px; padding: 6px;
    background: var(--card); border: 1px solid var(--line); border-top: none;
    border-radius: 0 0 8px 8px;
  }
  .api-docs-pager { margin-top: 28px; }
}

/* "just getting started" notice — compact and unobtrusive (2026-11-28);
   shared by the homepage and the API documentation landing page. */
.start-notice {
  background: #e7f1f0; border: 1px solid var(--lightblue);
  border-left: 4px solid var(--slate); border-radius: 6px;
  padding: 10px 14px; margin: 0 0 26px;
  font-size: var(--fs-secondary);
}
.start-notice .sn-title {
  margin: 0 0 4px; font-weight: 700; color: var(--charcoal);
}
.start-notice p { margin: 6px 0 0; }
