/* Tokens copied by name and value from index.html (tools/nations_lint.py fails when any value drifts), then the
   nations-only tokens. Maya Radiance is the landing's :root; Sovereign Skeleton is :root:not([data-theme]). */
:root {
  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-ceremony: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 0.18s;
  --dur-2: 0.42s;
  --dur-3: 0.9s;
  --fs-h2: clamp(40px, 4.6vw, 76px);
  --lh-h2: 1.02;
  --fs-read: clamp(16px, 1.1vw, 17px);
  --lh-read: 1.6;
  --fs-label: 11px;
  --fw-label: 500;
  --tr-label: 0.2em;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
  --col-max: 1280px;
  --measure: 64ch;
  --line-alpha-min: 0.55;
  --bg-floor: #02101E;
  --bg-deep: #0A2E48;
  --ink: #F4ECD8;
  --ink-2: #B5C4D0;
  --ink-3: #8FA5B5;
  --ink-4: #6E8294;
  --ink-5: #3F5566;
  --cochineal: #B4873C;
  --gold-shadow: #9D6D31;
  --gold-highlight: #F1DFB4;
  --gold-mid: #CDA45E;
  --gold-gradient: linear-gradient(112deg, var(--gold-shadow) 0%, var(--cochineal) 18%, var(--gold-highlight) 24%, var(--cochineal) 30%, var(--gold-shadow) 43%, var(--gold-mid) 60%, var(--gold-highlight) 66%, var(--cochineal) 73%, var(--gold-shadow) 86%, var(--gold-shadow) 100%);
  --rule: rgba(244, 236, 216, 0.16);
  --rule-soft: rgba(244, 236, 216, 0.08);
  --surface: rgba(244, 236, 216, 0.04);

  --zn-names: 'Instrument Serif', 'ZN Serif', 'ZN Cherokee', 'ZN Syllabics', 'ZN Tifinagh', serif;
  --zn-names-fb: 'ZN Serif', 'ZN Cherokee', 'ZN Syllabics', 'ZN Tifinagh', serif;
  --zn-read: 'DM Sans', 'ZN Sans', 'ZN Devanagari', 'ZN Cherokee', 'ZN Syllabics', 'ZN Tifinagh', system-ui, sans-serif;
  --zn-read-fb: 'ZN Sans', 'ZN Devanagari', 'ZN Cherokee', 'ZN Syllabics', 'ZN Tifinagh', system-ui, sans-serif;
  --zn-mono: 'JetBrains Mono', 'ZN Mono', ui-monospace, monospace;
  --page-bg: var(--bg-floor);
  --ink-low: var(--ink-4);
  --line: color-mix(in oklab, var(--ink) 55%, transparent);
  --rim-hover: color-mix(in oklab, var(--ink) 85%, transparent);
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}
[data-theme="codex"] {
  --bg-floor: #C8B078;
  --bg-deep: #E8DBC0;
  --ink: #1A0F08;
  --ink-2: #4A3A2A;
  --ink-3: #6B5945;
  --ink-4: #9A8870;
  --ink-5: #B5A488;
  --cochineal: #6E0F25;
  --rule: rgba(26, 15, 8, 0.20);
  --rule-soft: rgba(26, 15, 8, 0.10);
  --surface: rgba(26, 15, 8, 0.04);
  --page-bg: var(--bg-deep);
  --ink-low: var(--ink-3);
  color-scheme: light;
}
[data-theme="skeleton"] {
  --bg-floor: #050507;
  --bg-deep: #14110E;
  --ink: #EDE4D3;
  --ink-2: #B8AC95;
  --ink-3: #8A7F6E;
  --ink-4: #5a5247;
  --ink-5: #3a342d;
  --cochineal: #8B1934;
  --rule: rgba(237, 228, 211, 0.10);
  --rule-soft: rgba(237, 228, 211, 0.05);
  --surface: rgba(237, 228, 211, 0.03);
  --ink-low: var(--ink-3);
}
:root:not([data-theme]) {
  --bg-floor: #000000;
  --bg-deep: #000000;
  --ink: #FFFFFF;
  --ink-2: #C8C8C8;
  --ink-3: #A3A3A3;
  --ink-4: #8A8A8A;
  --ink-5: #4D4D4D;
  --cochineal: #FFFFFF;
  --rule: rgba(255, 255, 255, 0.16);
  --rule-soft: rgba(255, 255, 255, 0.09);
  --surface: #000000;
  --page-bg: #000000;
  --line: rgba(255, 255, 255, 0.55);
  --rim-hover: rgba(255, 255, 255, 0.85);
}

/* /nations: one stylesheet for every nations page (DESIGN_NATIONS 12.3). Flat ground, white and greys in mono,
   thin crisp lines; opacity and one line's inline-size are the only things that move. Names are upright, never
   italic, never uppercased; italic is the voice of our own headings. */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page-bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--page-bg); color: var(--ink); font-family: var(--zn-read); font-size: var(--fs-read);
  line-height: var(--lh-read); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--page-bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.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; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 200; padding: 12px 18px; background: var(--page-bg);
  color: var(--ink); border: 1px solid var(--line); border-radius: 100px; font: 500 11px/1 var(--zn-mono);
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.skip:focus { top: 12px; }
.fret { inline-size: 10px; block-size: 10px; flex: none; color: var(--ink); }
.lbl, .hr-region, .hr-k, .eyebrow, .kind { font-family: var(--zn-mono); font-size: var(--fs-label); font-weight: var(--fw-label);
  letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--ink-3); line-height: 1.5; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.muted { color: var(--ink-3); }
.low { color: var(--ink-low); }

/* ---------- names: the nation's own name, upright, whole in one face ---------- */
.nm, .hr-name { font-family: var(--zn-names); font-weight: 400; font-style: normal; font-synthesis: none;
  text-transform: none; letter-spacing: normal; hyphens: manual; overflow-wrap: normal; text-wrap: balance; line-height: 1.04; }
.nm[data-face="names"], .hr-name[data-face="names"] { font-family: var(--zn-names-fb); line-height: 1.12; }
.nm[data-script="cher"], .hr-name[data-script="cher"] { font-family: 'ZN Cherokee', var(--zn-names-fb); line-height: 1.14; }
.nm[data-script="cans"], .hr-name[data-script="cans"] { font-family: 'ZN Syllabics', var(--zn-names-fb); line-height: 1.14; }
.nm[data-script="tfng"], .hr-name[data-script="tfng"] { font-family: 'ZN Tifinagh', var(--zn-names-fb); line-height: 1.14; }
[data-face="names"]:is(p, span, li, dd, td) { font-family: var(--zn-read-fb); }

/* ---------- header (the landing's, by omission) ---------- */
.nh { position: sticky; top: 0; z-index: 60; background: var(--page-bg); border-bottom: 1px solid var(--rule); }
.nh-in { max-width: var(--col-max); margin: 0 auto; height: 72px; padding: 0 24px; display: grid;
  grid-template-columns: 1fr auto 1fr; grid-template-areas: "left mark nav"; align-items: center; gap: 16px; }
.nh-left { grid-area: left; display: flex; align-items: center; }
.nh-mark { grid-area: mark; display: flex; align-items: center; }
.nh-mark img { width: 143px; height: 30px; object-fit: contain; }
.nh-nav { grid-area: nav; display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.nh-nav a { padding: 8px 12px; font: 500 11px/1.5 var(--zn-mono); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); text-decoration: none; white-space: nowrap; }
.nh-nav a:hover, .ns-list a:hover .ns-name, .ft-col a:hover { color: var(--ink-2); }
.nh-nav a[aria-current="page"] { color: var(--ink); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 100px; background: transparent; color: var(--ink-2); cursor: pointer;
  font: 500 11px/1 var(--zn-mono); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.pill:hover { color: var(--ink); border-color: var(--rim-hover); }
.pill:focus-visible, .ap-opt:focus-visible, .theme-swatch:focus-visible { border-radius: 100px; }
.ab-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.ab-caret, .nm-bars { width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg); }
.nm-bars { width: 14px; height: 7px; transform: none; border-right: 0; border-top: 1px solid currentColor; }
.nav-menu-btn { display: none; margin-left: 8px; color: var(--ink); }
.appearance-pop { position: fixed; inset: 66px auto auto 24px; margin: 0; width: min(340px, calc(100vw - 32px));
  padding: 20px 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--page-bg); color: var(--ink); }
.appearance-pop:popover-open { display: grid; gap: 20px; }
.appearance-pop::backdrop { background: transparent; }
.ap-row { display: grid; gap: 10px; min-width: 0; }
.ap-label { font: 500 11px/1 var(--zn-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); }
.ap-themes { display: flex; align-items: center; gap: 10px; min-width: 0; }
.theme-picker { display: flex; margin-left: -15px; }
.theme-swatch { position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.theme-swatch::before { content: ""; position: absolute; inset: 15px; border-radius: 50%; box-shadow: 0 0 0 1px var(--rule); }
.theme-swatch[data-set=""]::before { background: #FFFFFF; }
.theme-swatch[data-set="maya"]::before { background: #2F7693; }
.theme-swatch[data-set="codex"]::before { background: #E8DBC0; }
.theme-swatch[data-set="skeleton"]::before { background: #2A2622; }
.theme-swatch:hover::before { box-shadow: 0 0 0 1px var(--ink-2); }
.theme-swatch[aria-checked="true"]::before { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.ap-theme-name { font: 400 15px/1.3 var(--sans); color: var(--ink-2); white-space: normal; text-transform: none; letter-spacing: normal; }
.ap-theme-description { margin: 0; text-transform: none; }
.ap-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 100px; }
.ap-opt { min-height: 44px; min-width: 0; padding: 0 6px 0 8px; border: 1px solid transparent; border-radius: 100px; background: transparent;
  color: var(--ink-3); font: 500 11px/1 var(--zn-mono); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.ap-opt:hover { color: var(--ink-2); }
.ap-opt[aria-checked="true"] { color: var(--ink); border-color: var(--ink); }
.ap-row.is-idle .ap-seg, .ap-row.is-idle .ap-opt[aria-checked="true"] { border-style: dashed; }
.ap-note { font: 400 13px/1.35 var(--sans); color: var(--ink-3); }
.nav-sheet { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(420px, 100vw); height: 100dvh; max-height: none; padding: 0 24px 24px;
  border: 0; border-left: 1px solid var(--rule); background: var(--page-bg); color: var(--ink); overflow-y: auto; }
.nav-sheet:popover-open { display: flex; flex-direction: column; }
.nav-sheet::backdrop { background: transparent; }
.ns-top { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.ns-list { margin: 4px 0 24px; }
.ns-list a { display: grid; grid-template-columns: 72px 1fr; align-items: center; min-height: 48px; text-decoration: none; }
.ns-name { font: italic 400 26px/1.1 var(--serif); color: var(--ink); }
.ns-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ns-foot .pill { color: var(--ink-2); }
.ns-appearance { display: none; }
.maya-num { display: inline-flex; align-items: center; gap: 4px; }
.maya-num .d { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.maya-num .b { width: 16px; height: 4px; border-radius: 2.5px; background: var(--ink); }
@media (max-width: 1023px) {
  .nh-nav a { display: none; }
  .nav-menu-btn { display: inline-flex; }
}
@media (max-width: 719px) {
  .nh-in { height: 64px; padding: 0 16px; gap: 8px; grid-template-areas: "nav mark right"; }
  .nh-left { display: none; }
  .nh-nav { justify-content: flex-start; }
  .nav-menu-btn { margin: 0; }
  .nh-mark img { width: 105px; height: 22px; }
  .ns-appearance { display: inline-flex; }
  .appearance-pop { inset: auto auto 24px 16px; }
  .nav-sheet { padding: 0 16px 24px; }
}

/* ---------- page frame ---------- */
main { display: block; }
.wrap { max-width: var(--col-max); margin: 0 auto; padding: 0 var(--gutter); }
.read { max-width: 920px; margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: var(--sp-9) 0 0; }
.sec-h { font: italic 400 var(--fs-h2)/var(--lh-h2) var(--serif); letter-spacing: -0.012em; margin: var(--sp-4) 0 20px; }
.page-h { font: italic 400 clamp(40px, 5.4vw, 84px)/1.02 var(--serif); letter-spacing: -0.012em; margin: var(--sp-4) 0 20px; }
.lede { font-size: var(--fs-read); line-height: var(--lh-read); color: var(--ink-2); max-width: var(--measure); }
.lede + .lede { margin-top: var(--sp-3); }
.prose p { max-width: var(--measure); color: var(--ink-2); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: var(--sp-4); }
.prose ul { max-width: var(--measure); color: var(--ink-2); }
.prose li { padding-left: 18px; position: relative; }
.prose li + li { margin-top: var(--sp-2); }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; border-top: 1px solid var(--ink-3); }
.prose h2 { font: italic 400 clamp(28px, 2.6vw, 40px)/1.1 var(--serif); margin: var(--sp-8) 0 var(--sp-4); }
.prose a, .lede a, .tbl a, .note a { color: var(--ink); }
.prose a:hover, .lede a:hover { color: var(--ink-2); }
.hair { border: 0; border-top: 1px solid var(--rule); margin: var(--sp-7) 0; }
.open-rule { display: flex; align-items: center; gap: 10px; margin: var(--sp-7) 0 0; }
.open-rule::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.note { font-size: 14px; color: var(--ink-3); margin-top: var(--sp-3); }
.act { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.txt-link { font: 500 11px/1.6 var(--zn-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.txt-link:hover { color: var(--ink-2); }

/* ---------- the herald ---------- */
.herald { max-width: 920px; margin: 0 auto; padding: 24px var(--gutter) 0; min-height: min(calc(100svh - 72px), 760px);
  display: flex; flex-direction: column; }
.hr-eyebrow { display: flex; align-items: center; gap: 10px; font: 500 11px/1.5 var(--zn-mono); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-3); }
.hr-stage { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 28px 0 24px; }
.hr-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hr-head { display: inline-grid; max-inline-size: 100%; gap: 14px; }
.hr-name { margin: 0; max-inline-size: min(100%, 26ch); }
.hr-name[data-size="xl"] { font-size: clamp(56px, 9vw, 128px); }
.hr-name[data-size="l"] { font-size: clamp(48px, 7vw, 104px); }
.hr-name[data-size="m"] { font-size: clamp(38px, 5vw, 76px); }
.hr-name[data-size="s"] { font-size: clamp(30px, 3.6vw, 56px); }
.hr-name[data-size="xs"] { font-size: clamp(26px, 3vw, 44px); }
.hr-line { display: block; block-size: 1px; inline-size: 100%; background: var(--line); justify-self: start; margin: 2px 0 6px; }
.hr-also, .hr-say, .hr-lands { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 64ch; }
.hr-k { margin-right: 10px; }
.hr-say a, .hr-receipt a, .hr-more a { color: var(--ink-2); }
.hr-say a { margin-left: 8px; font: 400 11px/1.5 var(--zn-mono); letter-spacing: 0.04em; }
.hr-fact { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.5; color: var(--ink); max-width: 58ch; }
.hr-receipt { font: 400 11px/1.7 var(--zn-mono); letter-spacing: 0.04em; color: var(--ink-3); }
.hr-receipt a { font-family: var(--zn-read); font-size: 13px; letter-spacing: 0; }
.hr-receipt time, .rc time { color: var(--ink-3); }
.hr-dot { margin: 0 6px; color: var(--ink-low); }
.hr-more { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; }
.hr-more a { font: 500 11px/1.6 var(--zn-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.hr-more a:hover, .hr-receipt a:hover, .hr-say a:hover { color: var(--ink); }
.hr-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hr-btn { min-width: 104px; }
#hrNext { border-color: var(--ink); color: var(--ink); }
.hr-btn[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.hr-btn[aria-disabled="true"] { color: var(--ink-low); cursor: default; }
.hr-ring { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.hr-ring .g { display: inline-flex; gap: 4px; }
.hr-ring i { width: 4px; height: 4px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink-3); }
.hr-ring i.on { background: var(--ink); box-shadow: none; }
.hr-status { flex-basis: 100%; font: 400 11px/1.6 var(--zn-mono); letter-spacing: 0.06em; color: var(--ink-low); }
.hr-lede { margin: 18px 0 0; font: italic 400 clamp(20px, 1.7vw, 26px)/1.3 var(--serif); color: var(--ink-2); max-width: 40ch; }
html[data-motion="still"] #hrPause { display: none; }
@keyframes hr-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hr-draw { from { inline-size: 0; } to { inline-size: 100%; } }
@keyframes hr-out { from { opacity: 1; } to { opacity: 0; } }
.hr-card { --s1: 0ms; --s2: 0ms; }
.hr-card.no-also { --s1: 200ms; }
.hr-card.no-say { --s2: 200ms; }
html[data-motion="living"] .hr-stage[data-state="in"] .hr-region { animation: hr-in 300ms var(--ease-out) both; }
html[data-motion="living"] .hr-stage[data-state="in"] .hr-name { animation: hr-in 900ms var(--ease-out) 200ms both; }
html[data-motion="living"] .hr-stage[data-state="in"] .hr-line { animation: hr-draw 500ms var(--ease-ceremony) 1100ms both; }
html[data-motion="living"] .hr-stage[data-state="in"] .hr-also { animation: hr-in 400ms var(--ease-out) 1250ms both; }
html[data-motion="living"] .hr-stage[data-state="in"] .hr-say { animation: hr-in 400ms var(--ease-out) calc(1450ms - var(--s1)) both; }
html[data-motion="living"] .hr-stage[data-state="in"] .hr-lands { animation: hr-in 400ms var(--ease-out) calc(1650ms - var(--s1) - var(--s2)) both; }
html[data-motion="living"] .hr-stage[data-state="in"] .hr-fact { animation: hr-in 500ms var(--ease-out) calc(1950ms - var(--s1) - var(--s2)) both; }
html[data-motion="living"] .hr-stage[data-state="in"] :is(.hr-receipt, .hr-more) { animation: hr-in 400ms var(--ease-out) calc(2350ms - var(--s1) - var(--s2)) both; }
html[data-motion="living"] .hr-stage[data-state="out"] .hr-card { animation: hr-out 450ms var(--ease-ceremony) both; }
html[data-motion="calm"] .hr-stage[data-state="in"] .hr-region { animation: hr-in 300ms var(--ease-out) both; }
html[data-motion="calm"] .hr-stage[data-state="in"] .hr-name { animation: hr-in 900ms var(--ease-out) 200ms both; }
html[data-motion="calm"] .hr-stage[data-state="in"] .hr-line { animation: hr-draw 900ms var(--ease-ceremony) 200ms both; }
html[data-motion="calm"] .hr-stage[data-state="in"] :is(.hr-also, .hr-say, .hr-lands, .hr-fact, .hr-receipt, .hr-more) { animation: hr-in 400ms var(--ease-out) 1100ms both; }
html[data-motion="calm"] .hr-stage[data-state="out"] .hr-card { animation: hr-out 300ms var(--ease-ceremony) both; }
html[data-motion="still"] *, html[data-motion="still"] *::before, html[data-motion="still"] *::after { animation: none !important; transition: none !important; }

/* ---------- hub sections ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-8); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); }
.rows > li { border-top: 1px solid var(--rule); }
.rows > li:last-child { border-bottom: 1px solid var(--rule); }
.row { display: grid; gap: 4px; padding: 14px 0; text-decoration: none; }
.row:hover .nm, .row:hover .row-t { color: var(--ink-2); }
.row .nm { font-size: 24px; color: var(--ink); }
.row-m { font: 400 11px/1.6 var(--zn-mono); letter-spacing: 0.08em; color: var(--ink-3); }
.row-l { font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.row-t { font-size: 17px; color: var(--ink); }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-7); }
.cols4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--sp-6); }
.cc { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink-2); font-size: 15px; }
.cc span { font: 400 11px/2 var(--zn-mono); color: var(--ink-3); }
.cc:hover { color: var(--ink); }
.find label { display: block; }
.find input { display: block; width: 100%; min-height: 44px; margin: 12px 0 8px; padding: 0 16px; border: 1px solid var(--line);
  border-radius: 100px; background: transparent; color: var(--ink); font: 400 17px/1 var(--zn-read); }
.find input:hover { border-color: var(--rim-hover); }
.find input::placeholder { color: var(--ink-low); }
.find-help { font-size: 14px; color: var(--ink-3); }
.find-status { margin-top: 12px; font: 400 11px/1.6 var(--zn-mono); letter-spacing: 0.06em; color: var(--ink-3); min-height: 1.6em; }
.results { margin-top: 8px; }
.results a { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.results .nm { font-size: 22px; }
.results a:hover .nm { color: var(--ink-2); }
.sr-also { font-size: 14px; color: var(--ink-2); }
.panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.panel dt { font: 500 11px/1.5 var(--zn-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.panel dd { margin: 8px 0 0; font: 400 28px/1.15 var(--serif); color: var(--ink); }
.panel dd small { display: block; margin-top: 6px; font: 400 13px/1.45 var(--sans); color: var(--ink-3); }
.method li { max-width: var(--measure); color: var(--ink-2); padding: 10px 0; border-top: 1px solid var(--rule); }

/* ---------- nation, region and country pages ---------- */
.n-head { padding-top: var(--sp-8); }
.n-h1 { margin: 18px 0 20px; max-inline-size: min(100%, 26ch); }
.n-h1[data-size="xl"] { font-size: clamp(48px, 7vw, 112px); }
.n-h1[data-size="l"] { font-size: clamp(40px, 5.6vw, 88px); }
.n-h1[data-size="m"] { font-size: clamp(34px, 4.2vw, 64px); }
.n-h1[data-size="s"] { font-size: clamp(28px, 3.2vw, 48px); }
.n-h1[data-size="xs"] { font-size: clamp(24px, 2.6vw, 40px); }
.n-meta { display: grid; gap: 10px; }
.n-meta p { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 64ch; }
.n-own { margin: 20px 0 0; }
.nation-reading { margin-top: var(--sp-6); padding: 18px 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--rule); }
.nation-reading .lbl { color: var(--ink-3); }
.nation-reading ul { display: flex; flex-wrap: wrap; gap: 0 28px; list-style: none; margin: 8px 0 0; padding: 0; }
.nation-reading li { min-width: 0; }
.nation-reading a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.5; text-underline-offset: 5px; }
.nation-reading a:hover { color: var(--ink); }
.n-sec > h2[id] { scroll-margin-top: 112px; }
.n-sec > h2[tabindex="-1"]:focus { outline: 2px solid var(--ink); outline-offset: 6px; }
.n-sec { margin-top: var(--sp-7); }
.n-sec-h { display: flex; align-items: baseline; gap: 14px; font: italic 400 clamp(28px, 2.6vw, 40px)/1.1 var(--serif); }
.cdots { display: inline-flex; gap: 5px; align-self: center; }
.cdots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.fcount { font: 400 11px/1 var(--zn-mono); color: var(--ink-3); align-self: center; }
.fact { padding: 20px 0; border-top: 1px solid var(--rule); display: grid; gap: 8px; }
.fact:last-child { border-bottom: 1px solid var(--rule); }
.fact-t { font-size: 17px; line-height: 1.6; color: var(--ink); max-width: 64ch; }
.rc { font: 400 11px/1.7 var(--zn-mono); letter-spacing: 0.04em; color: var(--ink-3); }
.rc a { font-family: var(--zn-read); font-size: 13px; letter-spacing: 0; color: var(--ink-2); }
.rc a:hover { color: var(--ink); }
/* Keep historical context in readable layers, separate from fact-check receipts. */
.n-sec[aria-labelledby="nContext"] { max-width: 68ch; }
.n-sec[aria-labelledby="nContext"] > h2 { margin-bottom: var(--sp-5); }
.n-sec[aria-labelledby="nContext"] > h3 {
  display: block; font: 500 clamp(21px, 2vw, 26px)/1.25 var(--zn-read);
  letter-spacing: -0.015em; margin: var(--sp-6) 0 var(--sp-3);
}
.n-sec[aria-labelledby="nContext"] > h2 + h3 { margin-top: 0; }
.n-sec[aria-labelledby="nContext"] > .rc { margin-top: var(--sp-3); font-size: 12px; }
.n-sec[aria-labelledby="nContext"] > .rc + .fact-t { margin-top: var(--sp-5); }
.n-sec[aria-labelledby="nContext"] > .note { max-width: 64ch; }
.n-sec[aria-labelledby="nContext"] > .src-u { margin-top: var(--sp-4); gap: var(--sp-5); }
.n-sec[aria-labelledby="nContext"] > .src-u > li {
  padding-top: var(--sp-3); border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.6;
}
.n-sec[aria-labelledby="nContext"] > .src-u > li > p:first-child a {
  display: inline-block; min-height: 44px; padding-block: 10px;
  font: 500 16px/1.5 var(--zn-read);
}
.n-sec[aria-labelledby="nContext"] > .src-u .note { margin-top: var(--sp-1); }
.n-sec[aria-labelledby="nContext"] > .src-u .rc { margin-top: var(--sp-2); font-size: 12px; }
.counts { margin-top: 16px; font-size: 15px; color: var(--ink-3); }
.ctry a { color: var(--ink); }
.card { padding: 28px 0; border-top: 1px solid var(--rule); display: grid; gap: 10px; }
.card:last-child { border-bottom: 1px solid var(--rule); }
.card .nm { font-size: clamp(30px, 3vw, 44px); }
.card p { max-width: 64ch; }
.card .c-l { font-size: 15px; color: var(--ink-3); }
.card .c-f { font-size: 17px; color: var(--ink); }
.credit { margin-top: var(--sp-7); font-size: 14px; color: var(--ink-3); max-width: var(--measure); }

/* ---------- tables, sources, roll call, type sample ---------- */
.tbl { width: 100%; border-collapse: collapse; margin-top: var(--sp-5); font-size: 15px; }
.tbl caption { text-align: left; padding-bottom: 12px; font: 500 11px/1.5 var(--zn-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--rule); }
.tbl th { font: 500 11px/1.5 var(--zn-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.tbl td { color: var(--ink-2); }
.tbl td.n { font-family: var(--zn-mono); font-size: 13px; }
.src-g { margin-top: var(--sp-8); }
.src-p { padding: 18px 0; border-top: 1px solid var(--rule); }
.src-p h3 { font: 400 19px/1.4 var(--zn-read); color: var(--ink); }
.src-p .row-m { margin-top: 4px; }
.src-u { margin-top: 8px; display: grid; gap: 6px; }
.src-u li { font-size: 13px; line-height: 1.5; color: var(--ink-3); overflow-wrap: anywhere; }
.src-u a { color: var(--ink-2); }
.roll { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--sp-6); margin-top: var(--sp-4); }
.roll a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink); font-size: 20px; }
.roll a:hover { color: var(--ink-2); }
.type-s { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--rule); }
.type-s .nm { font-size: clamp(32px, 4vw, 56px); }

/* ---------- footer ---------- */
.ft { margin-top: var(--sp-10); padding: 48px 0 72px; border-top: 1px solid var(--rule); }
.ft-in { max-width: var(--col-max); margin: 0 auto; padding: 0 var(--gutter); }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) minmax(0, 0.8fr); gap: 48px; }
.ft-brand img { width: 133px; height: 28px; object-fit: contain; }
.ft-tag { margin-top: 12px; font: italic 400 15px/1.55 var(--serif); color: var(--ink-2); }
.ft-founder { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule-soft); font-size: 12px; line-height: 1.7; color: var(--ink-3); }
.ft-founder strong { color: var(--ink-2); font-weight: 500; }
.ft-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.ft-col { display: flex; flex-direction: column; gap: 12px; font: 400 11px/1.55 var(--zn-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.ft-col a { text-decoration: none; }
.ft-col-l { padding-bottom: 10px; border-bottom: 1px solid var(--rule-soft); color: var(--ink-low); font-weight: 500; letter-spacing: 0.22em; }
.ft-meta { font: 400 11px/1.8 var(--zn-mono); letter-spacing: 0.06em; color: var(--ink-3); text-align: right; }
.ft-block { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 12px 48px; }
.ft-block .lbl { display: flex; align-items: center; gap: 10px; }
.ft-block p { font-size: 14px; line-height: 1.6; color: var(--ink-3); max-width: 72ch; }
.ft-block p + p { margin-top: 8px; }
.ft-block .roots { font: 400 18px/1.55 var(--serif); color: var(--ink-2); }
.ft-block a { color: var(--ink-2); }
.ft-epi { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ft-epi .nah { font: italic 400 16px/1.5 var(--serif); color: var(--ink-2); }
.ft-epi .nah small { margin-left: 10px; font: 400 11px/1.5 var(--zn-mono); letter-spacing: 0.06em; color: var(--ink-3); font-style: normal; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ft-epi .ver { font: 400 11px/1.5 var(--zn-mono); letter-spacing: 0.2em; color: var(--ink-3); }

/* ---------- widths ---------- */
@media (max-width: 1023px) {
  .duo, .pair { grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); }
  .cols4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-top { grid-template-columns: minmax(0, 1fr); }
  .ft-meta { text-align: left; }
  .roll { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .herald { min-height: calc(100svh - 64px); padding-top: 18px; }
  .hr-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hr-btn { min-width: 0; min-height: 48px; padding: 0 8px; }
  html[data-motion="still"] .hr-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hr-ring { grid-column: 1 / -1; margin: 6px 0 0; }
  .hr-status { grid-column: 1 / -1; }
  .cols2 { grid-template-columns: minmax(0, 1fr); }
  .cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-block { grid-template-columns: minmax(0, 1fr); }
  .roll { grid-template-columns: minmax(0, 1fr); }
  .sec { padding-top: var(--sp-8); }
}
@media (max-width: 639px) {
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl tr { display: block; padding: 10px 0; border-top: 1px solid var(--rule); }
  .tbl td, .tbl th[scope="row"] { display: grid; grid-template-columns: 44% 1fr; gap: 10px; padding: 4px 0; border: 0; }
  .tbl td::before, .tbl th[scope="row"]::before { content: attr(data-label); font: 500 11px/1.5 var(--zn-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
}

/* ---------- refinements ---------- */
.n-meta .lbl, .c-l .lbl, .ctry .lbl, .find label.lbl { margin-right: 10px; }
.card .nm { text-decoration: none; }
.card .nm:hover { color: var(--ink-2); }
.cards > .card:first-child { border-top: 0; }
.ft-block .lbl { align-self: start; margin-top: 3px; }
.credit-link { font: 400 13px/1.5 var(--zn-read); color: var(--ink-2); margin-left: 8px; }
.credit-link:hover { color: var(--ink); }
html { scroll-padding-top: 88px; }
.type-s { gap: 14px; padding: 22px 0; }
.prose .open-rule { max-width: none; }
.tbl th[scope="row"] { font: 400 15px/1.5 var(--zn-read); letter-spacing: 0; text-transform: none; color: var(--ink); }
[data-theme="codex"] :is(.nh-mark, .ft-brand) img { filter: brightness(0); opacity: 0.88; }

/* Maya Radiance uses the same gold pigment as the landing. Text keeps its meaning and existing choreography. */
@keyframes nations-gold-flow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
[data-theme="maya"] :is(.page-h, .n-h1, .hr-name) {
  color: var(--cochineal);
  background-image: var(--gold-gradient);
  background-size: 160% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.25px rgba(241, 223, 180, 0.38);
}
[data-theme="maya"] #hrNext {
  border-color: transparent;
  background: linear-gradient(var(--page-bg), var(--page-bg)) padding-box, var(--gold-gradient) border-box;
  background-size: 100% 100%, 200% 100%;
  background-position: 0 0, 50% 50%;
}
html[data-theme="maya"][data-motion="living"] :is(.page-h, .n-h1) { animation: nations-gold-flow 12s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) {
  [data-theme="maya"] :is(.page-h, .n-h1) { animation: none !important; }
}

/* Expandable source-backed histories on the resources page. */
.resource-history summary { cursor: pointer; min-height: 44px; padding: 8px 0; }
.resource-history summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.resource-history summary .nm { font-size: 24px; line-height: 1.35; }
.resource-history h4 { margin: var(--sp-5) 0 var(--sp-3); }
.resource-history[open] { padding-bottom: var(--sp-5); }

/* Source directory: each source remains a distinct category. Names keep their whole face and case. */
.directory-page { max-width: 1120px; }
.directory-page .directory-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: var(--sp-6) 0; }
.directory-paths > * { min-width: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.directory-page .directory-paths h2 { margin: 0 0 12px; font-size: clamp(26px, 2.4vw, 34px); }
.directory-page .directory-paths p + p { margin-top: 12px; }
.directory-page .directory-inventory-nav { margin: var(--sp-7) 0 var(--sp-6); }
.directory-page .directory-inventory-nav > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; max-width: none; }
.directory-page .directory-inventory-nav > ul > li { padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.directory-page .directory-inventory-nav > ul > li::before { content: none; }
.directory-inventory-nav > ul > li > a { display: grid; align-content: start; gap: 8px; min-height: 88px; padding: 16px 0; text-decoration: none; }
.directory-inventory-title { font-size: 18px; line-height: 1.4; color: var(--ink); }
.directory-inventory-meta { color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.directory-inventory-nav > ul > li > a:hover .directory-inventory-title { color: var(--ink-2); }
.directory-page .directory-gap { margin-top: var(--sp-6); padding-top: 16px; border-top: 1px solid var(--line); }
.directory-page .directory-gap h2 { margin: 0 0 12px; }
.directory-page .directory-gap h3 { margin-top: 24px; font-size: 18px; line-height: 1.4; }
.directory-search { margin: var(--sp-6) 0; padding: var(--sp-5) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--rule); }
.directory-search label { display: block; margin-bottom: 8px; color: var(--ink); }
.directory-inputs { display: flex; align-items: center; gap: 12px; }
.directory-inputs input, .directory-filter select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--page-bg); color: var(--ink); font: inherit; }
.directory-inputs input::placeholder { color: var(--ink-3); opacity: 1; }
.directory-inputs .pill { flex: none; min-height: 48px; }
.directory-filter { margin-top: 20px; max-width: 100%; }
.directory-filter select { max-width: 100%; text-overflow: ellipsis; }
.directory-filter option { background: var(--page-bg); color: var(--ink); }
.directory-search .directory-ready { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; min-height: 48px; margin: 12px 0 0; padding: 10px 0; cursor: pointer; }
.directory-ready input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.directory-ready span { font-size: 16px; line-height: 1.5; }
.directory-search #directoryProfileHint { margin-top: 8px; }
.directory-search #directoryProfileHint a { display: inline-block; padding-block: 10px; }
.directory-search #directoryResult { margin-top: 16px; color: var(--ink-2); }
.directory-search #directoryLimit { margin-top: 8px; }
.directory-results-link { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; }
#directoryNames { scroll-margin-top: 88px; }
.directory-page .directory-results-intro { margin: 0 0 32px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--rule); }
.directory-results-intro h2 { margin: 0 0 12px; }
.directory-results-intro p + p, #directoryResultsEmpty { margin-top: 12px; }
.directory-recovery { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.directory-page .directory-group { scroll-margin-top: 88px; }
.directory-page .directory-source { margin: 16px 0 24px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.directory-source summary { cursor: pointer; min-height: 48px; padding: 12px 0; color: var(--ink-2); }
.directory-source summary:hover { color: var(--ink); }
.directory-source[open] { padding-bottom: 16px; }
.directory-page .directory-source p + p { margin-top: 12px; }
.directory-page .directory-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; max-width: none; margin-top: 20px; }
.directory-page .directory-list > li { min-width: 0; padding: 20px 0; margin: 0; border-top: 1px solid var(--rule); scroll-margin-top: 96px; }
.directory-page .directory-list > li::before { content: none; }
.directory-list .directory-name { margin: 0; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.22; overflow-wrap: anywhere; color: var(--ink); }
.directory-list .directory-name:focus { outline-offset: 4px; }
.directory-list p { margin-top: 8px; }
.directory-page .directory-loading { display: flex; justify-content: flex-start; margin: 24px 0; }
#directoryMore { min-height: 48px; }
@media (max-width: 719px) {
  .directory-page .directory-paths, .directory-page .directory-inventory-nav > ul, .directory-page .directory-list { grid-template-columns: minmax(0, 1fr); }
  .directory-page .directory-paths { gap: 24px; }
  .directory-page .directory-inventory-nav { margin-top: 32px; }
  .directory-inventory-nav > ul > li > a { min-height: 80px; }
  .directory-page .directory-group { scroll-margin-top: 80px; }
}
@media (max-width: 480px) { .directory-inputs { gap: 8px; } .directory-inputs .pill { padding-inline: 12px; letter-spacing: 0.1em; } }

/* ZOTHEOS Theater proposal. Inherits the existing Nations tokens and appearance controls. */
.th-page {
  --th-art-ink: color-mix(in oklab, var(--ink) 70%, transparent);
  --th-art-muted: color-mix(in oklab, var(--ink) 20%, transparent);
  --th-art-glow: #61182b;
  --th-art-edge: color-mix(in oklab, var(--page-bg) 90%, var(--ink));
  --th-art-floor: var(--page-bg);
  max-inline-size: 1328px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
  color: var(--ink);
}
[data-theme="maya"] .th-page { --th-art-glow: #88602d; }
[data-theme="skeleton"] .th-page { --th-art-glow: #60192b; }
[data-theme="codex"] .th-page { --th-art-glow: #9b6b47; --th-art-ink: #4a3a2a; --th-art-muted: #a58d60; }
.th-page *, .th-page *::before, .th-page *::after { box-sizing: border-box; }
.th-page :is(h1, h2, h3, p, figure, ul) { margin: 0; }
.th-page :is(a, button, summary):focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.th-page a { text-underline-offset: .25em; }
.th-page :is(section, h2, article) { scroll-margin-block-start: 100px; }
.th-page [hidden] { display: none !important; }

/* A strong editorial opening, with information below the art rather than over a photograph. */
.th-hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.th-kicker, .th-overline, .th-film-number {
  font: 500 11px/1.6 var(--zn-mono, var(--mono));
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.th-kicker { display: flex; align-items: center; gap: 14px; }
.th-kicker::before { content: ""; inline-size: 40px; block-size: 1px; background: var(--line); }
.th-hero-copy { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: end; gap: 32px 64px; margin-block-start: 28px; }
.th-title { max-inline-size: 12ch; font: 400 clamp(52px, 8.4vw, 128px)/.94 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.th-title em { font-weight: 400; }
.th-hero-note { padding-block-end: 6px; }
.th-lede { max-inline-size: 40ch; font: 400 clamp(17px, 1.45vw, 20px)/1.6 var(--zn-read, var(--sans)); color: var(--ink-2); }
.th-hero-note .th-text-link { margin-block-start: 18px; }
.th-text-link { display: inline-flex; min-block-size: 44px; align-items: center; gap: 10px; padding-block: 10px; font: 500 13px/1.5 var(--zn-read, var(--sans)); color: var(--ink); }
.th-text-link:hover { text-decoration-thickness: 2px; }
.th-arrow { display: inline-block; font-family: var(--sans); font-size: 18px; line-height: 1; }

/* Shared abstract cover surface. This is original editorial artwork, never a documentary still. */
.th-art { position: relative; isolation: isolate; overflow: hidden; background: var(--th-art-floor); }
.th-art::before, .th-art::after { content: ""; position: absolute; pointer-events: none; z-index: -1; }
.th-art::after { inset: 0; box-shadow: inset 0 0 0 1px var(--rule); background: linear-gradient(90deg, transparent 0%, color-mix(in oklab, var(--page-bg) 22%, transparent) 100%); }
.th-art--river {
  background:
    radial-gradient(ellipse at 68% 92%, color-mix(in oklab, var(--th-art-glow) 66%, transparent), transparent 64%),
    linear-gradient(130deg, var(--th-art-floor) 10%, var(--th-art-edge) 65%, var(--th-art-floor));
}
.th-art--river::before { inset: 25% -24% -20%; border-radius: 50%; border-block-start: 1px solid var(--th-art-ink); box-shadow: 0 -18px 0 -17px var(--th-art-muted), 0 -48px 0 -47px var(--th-art-muted), 0 -82px 0 -81px var(--th-art-muted), 0 -124px 0 -123px var(--th-art-muted); transform: rotate(-15deg); }
.th-art--memory { background: radial-gradient(ellipse at 44% 60%, color-mix(in oklab, var(--th-art-glow) 74%, transparent), transparent 64%), var(--th-art-floor); }
.th-art--memory::before { inset: 13% 23%; border-inline: 1px solid var(--th-art-ink); transform: rotate(18deg); background: repeating-linear-gradient(0deg, transparent 0 15%, var(--th-art-muted) 15% calc(15% + 1px), transparent calc(15% + 1px) 20%); box-shadow: 32px 0 0 -31px var(--th-art-muted), -36px 0 0 -35px var(--th-art-muted); }
.th-art--earth { background: linear-gradient(167deg, var(--th-art-floor) 0% 45%, color-mix(in oklab, var(--th-art-glow) 48%, var(--th-art-floor)) 45.2% 57%, var(--th-art-edge) 57.2% 68%, var(--th-art-floor) 68.2%); }
.th-art--earth::before { inset: 20% -10% 0; border-block-start: 1px solid var(--th-art-ink); transform: rotate(-13deg); box-shadow: 0 26px 0 -25px var(--th-art-muted), 0 80px 0 -79px var(--th-art-muted); }
.th-art--language { background: radial-gradient(ellipse at 80% 20%, color-mix(in oklab, var(--th-art-glow) 64%, transparent), transparent 65%), var(--th-art-floor); }
.th-art--language::before { inset: 18% 14%; transform: skewY(-9deg); background: repeating-linear-gradient(90deg, transparent 0 14%, var(--th-art-muted) 14% calc(14% + 1px), transparent calc(14% + 1px) 17%); border-block: 1px solid var(--th-art-ink); }

.th-feature { padding-block-end: clamp(48px, 7vw, 88px); }
.th-section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; border-block-start: 1px solid var(--line); padding-block: 18px 24px; }
.th-section-title { font: 400 clamp(28px, 3.4vw, 46px)/1.1 var(--serif); letter-spacing: -.015em; }
.th-screen { aspect-ratio: 16/9; inline-size: 100%; display: grid; place-items: center; }
.th-screen-link { display: inline-flex; gap: 12px; align-items: center; justify-content: center; max-inline-size: calc(100% - 32px); min-block-size: 52px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink); background: var(--page-bg); text-decoration: none; font: 500 14px/1.4 var(--zn-read, var(--sans)); text-align: center; }
.th-screen-link:hover { border-color: var(--ink); text-decoration: underline; }
.th-play { inline-size: 0; block-size: 0; border-block: 6px solid transparent; border-inline-start: 9px solid currentColor; flex: none; }
.th-feature-caption { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px 48px; padding-block-start: 24px; }
.th-feature-title { margin-block-start: 10px !important; font: 400 clamp(30px, 4vw, 54px)/1.08 var(--serif); text-wrap: balance; }
.th-feature-subtitle { margin-block-start: 8px !important; color: var(--ink-2); font-size: 17px; }
.th-film-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; list-style: none; margin-block-start: 16px !important; font: 400 12px/1.6 var(--zn-mono, var(--mono)); color: var(--ink-3); }
.th-film-meta li { min-inline-size: 0; }
.th-description { max-inline-size: 64ch; color: var(--ink-2); font: 400 16px/1.65 var(--zn-read, var(--sans)); }
.th-content-note { margin-block-start: 12px !important; max-inline-size: 64ch; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.th-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; margin-block-start: 8px; }
.th-art-credit { margin-block-start: 12px !important; color: var(--ink-3); font-size: 12px; line-height: 1.6; }

/* Collections are ordinary section links, not pretend interactive filters. */
.th-collections { margin-block-end: 48px; border-block-end: 1px solid var(--rule); }
.th-collection-list { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; padding: 0; }
.th-collection-list a { display: inline-flex; align-items: center; gap: 12px; min-block-size: 52px; padding-block: 12px; text-decoration: none; color: var(--ink-2); font-size: 15px; }
.th-collection-list a:hover { color: var(--ink); text-decoration: underline; }
.th-collection-list span { font: 400 11px/1.5 var(--zn-mono, var(--mono)); color: var(--ink-3); }
.th-library { padding-block-end: 72px; }
.th-library-intro { margin-block-end: 28px !important; max-inline-size: 64ch; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.th-film-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; row-gap: 44px; list-style: none; padding: 0; }
.th-film-grid > li, .th-film, .th-feature-caption > *, .th-hero-copy > * { min-inline-size: 0; }
.th-film { display: flex; flex-direction: column; block-size: 100%; }
.th-cover { aspect-ratio: 16/10; inline-size: 100%; margin-block-end: 18px; }
.th-cover-number { position: absolute; inset: 14px auto auto 14px; min-inline-size: 30px; padding: 4px 6px; background: var(--page-bg); color: var(--ink-2); font: 400 11px/1.5 var(--zn-mono, var(--mono)); text-align: center; }
.th-film-title { margin-block-start: 8px !important; font: 400 clamp(26px, 2.7vw, 34px)/1.15 var(--serif); text-wrap: balance; overflow-wrap: anywhere; }
.th-film-title a { text-decoration: none; }
.th-film-title a:hover { text-decoration: underline; }
.th-film .th-description { margin-block-start: 14px; font-size: 15px; }
.th-film .th-film-meta { margin-block-start: 10px !important; }
.th-film .th-actions { margin-block-start: auto; padding-block-start: 12px; }
.th-access { display: inline-flex; max-inline-size: 100%; padding: 5px 8px; border: 1px solid var(--rule); color: var(--ink-2); font: 400 11px/1.5 var(--zn-mono, var(--mono)); overflow-wrap: anywhere; }
.th-method { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 24px 48px; margin-block-end: 64px; padding-block: 24px; border-block: 1px solid var(--rule); }
.th-method h2 { font: 400 28px/1.15 var(--serif); }
.th-method p { max-inline-size: 64ch; color: var(--ink-2); font-size: 15px; line-height: 1.7; }

/* Maya gold is art pigment; body copy stays solid and readable. No animation is added. */
[data-theme="maya"] .th-title em { color: var(--cochineal); }
@supports (background-clip: text) {
  [data-theme="maya"] .th-title em { background: var(--gold-gradient); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
}
@media (max-width: 1050px) { .th-film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .th-hero-copy { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; } }
@media (max-width: 679px) {
  .th-hero-copy, .th-feature-caption, .th-method { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .th-title { max-inline-size: 11ch; font-size: clamp(52px, 12vw, 80px); }
  .th-hero-note { padding: 0; }
  .th-film-grid { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .th-film-title { font-size: 30px; }
  .th-collection-list { gap: 0 20px; }
  .th-section-heading { padding-block-end: 20px; }
  .th-feature-caption { padding-block-start: 20px; }
}
@media (forced-colors: active) { .th-art { border: 1px solid CanvasText; } .th-screen-link, .th-cover-number { background: Canvas; color: CanvasText; } }
/* Static fallback covers remain available for records without an approved preview. */

.th-lede p + p, .th-method p + p { margin-block-start:16px; }
.th-lede .th-watch { margin-block-start:18px; }
.th-watch,.th-select { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:44px; max-width:100%; padding:11px 16px; border:1px solid var(--line); border-radius:2px; font:500 13px/1.45 var(--zn-read); color:var(--ink); background:var(--page-bg); text-decoration:none; cursor:pointer; }
.th-watch:hover,.th-select:hover { border-color:var(--ink); text-decoration:underline; }
.th-screen { min-height:200px; }
.th-screen-intro { display:flex; flex-direction:column; align-items:center; text-align:center; gap:18px; padding:24px; }
.th-screen-intro p { font:400 clamp(28px,4vw,54px)/1.12 var(--serif); }
.th-screen-intro span:last-child { font-size:13px; color:var(--ink-2); }
.th-player { position:absolute; inset:0; background:#000; }
.th-player iframe { display:block; width:100%; height:100%; min-height:200px; border:0; }
.th-player-controls { display:flex; flex-wrap:wrap; gap:12px; align-items:center; padding-block:18px 8px; }
.th-player-controls p { flex-basis:100%; font-size:13px; color:var(--ink-2); }
.th-consent { max-width:85ch; font-size:12px; line-height:1.7; color:var(--ink-2); }
.th-feature-title { scroll-margin-top:112px; }
.th-film-credits,.th-film-access { margin-block-start:12px!important; font-size:13px; line-height:1.6; color:var(--ink-2); overflow-wrap:anywhere; }
.th-context { display:grid; grid-template-columns:1fr 1fr; gap:12px 32px; margin-top:28px; padding:22px; border-inline-start:2px solid var(--ink-3); background:color-mix(in oklab,var(--ink) 4%,var(--page-bg)); }
.th-context h3 { grid-column:1/-1; font:400 24px/1.2 var(--serif); }
.th-context p { font-size:14px; line-height:1.7; color:var(--ink-2); }
.th-collection-intro { max-width:70ch; font-size:16px; line-height:1.7; color:var(--ink-2); margin-bottom:24px!important; }
.th-tools { display:grid; grid-template-columns:1.5fr 1fr auto; gap:12px 18px; align-items:end; margin-block:24px 32px; }
.th-tools > div { min-width:0; }
.th-tools label { display:block; font-size:12px; margin-bottom:8px; color:var(--ink-2); }
.th-tools input,.th-tools select { width:100%; min-width:0; min-height:48px; padding:11px 12px; border:1px solid var(--line); border-radius:2px; background:var(--page-bg); color:var(--ink); font:400 15px/1.5 var(--zn-read); color-scheme:dark; }
[data-theme="codex"] .th-tools input,[data-theme="codex"] .th-tools select { color-scheme:light; }
.th-tools option { background:var(--page-bg); color:var(--ink); }
.th-tools input::placeholder { color:var(--ink-3); opacity:1; }
#theaterStatus { grid-column:1/-1; color:var(--ink-2); font:400 12px/1.6 var(--zn-mono); min-height:20px; }
.th-empty { padding:32px 0; }
.th-empty h3 { font:400 28px/1.3 var(--serif); }
.th-empty p { margin-top:12px; color:var(--ink-2); }
.th-film { border-bottom:1px solid var(--rule); padding-bottom:24px; }
.th-film-body { display:flex; flex-direction:column; flex:1; }
.th-film-body .th-actions { margin-top:auto; padding-top:18px; gap:10px; }
.th-cover-title { position:absolute; left:20px; right:20px; bottom:48px; font:400 clamp(27px,3vw,40px)/1.05 var(--serif); color:var(--ink); text-wrap:balance; text-shadow:0 1px 16px var(--page-bg); }
.th-cover-scope { position:absolute; left:20px; bottom:18px; font:500 10px/1.5 var(--zn-mono); text-transform:uppercase; letter-spacing:.13em; color:var(--ink-2); }
.th-cover { flex:none; }
.th-sources { margin-top:16px; }
.th-sources summary { min-height:44px; padding:12px 0; cursor:pointer; font-size:12px; color:var(--ink-2); }
.th-sources ul { list-style:disc; padding-left:18px; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.th-sources li { margin-bottom:12px; }
.th-sources li span { display:block; color:var(--ink-3); }
.th-catalogue { padding-bottom:64px; }
.th-method .th-watch { margin-top:20px; }
@media(max-width:679px) { .th-tools,.th-context { grid-template-columns:minmax(0,1fr); } .th-tools .th-select { justify-self:start; } .th-title { font-size:clamp(48px,12vw,80px); } .th-screen-intro { gap:12px; } }
@media(forced-colors:active) { .th-title em { -webkit-text-fill-color:CanvasText!important; } .th-watch,.th-select,.th-tools input,.th-tools select { background:Canvas; color:CanvasText; border-color:CanvasText; } }

.th-companions { padding-bottom:64px; }
.th-companion-grid { display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.th-companion-grid h3 { font:400 30px/1.15 var(--serif); }
.th-companion-grid p { margin-top:14px!important; color:var(--ink-2); font-size:15px; line-height:1.7; }
.th-companion-grid .th-watch { margin-top:18px; }
@media(max-width:679px) { .th-companion-grid { grid-template-columns:1fr; } }
.th-sources li > a { display:flex; align-items:center; min-height:44px; padding-block:8px; }

/* Cinema layout extends the existing brand and appearance tokens.
   Thumbnail URLs and player sources must come from reviewed publisher records. */
.th-page.th-cinema {
  --th-gap: clamp(24px, 3vw, 48px);
  --th-page-width: 1440px;
  max-inline-size: var(--th-page-width);
  margin-inline: auto;
  padding: 38px clamp(18px, 4vw, 48px) 80px;
}
.th-cinema [hidden] { display: none !important; }
.th-cinema :where(button, a, input, select, summary):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
.th-cinema-heading { margin-block-end: 32px; }
.th-cinema-heading .th-kicker { margin-block-end: 12px; }
.th-cinema-heading h1 {
  font: 400 clamp(44px, 5vw, 72px)/1.02 var(--serif);
  letter-spacing: -.025em;
  max-inline-size: 20ch;
}
.th-cinema-heading > p:last-child {
  margin-block-start: 14px;
  max-inline-size: 64ch;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}
.th-screening-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, .82fr);
  gap: var(--th-gap);
  align-items: start;
}
.th-screening-layout > * { min-inline-size: 0; }
.th-stage-shell { position: relative; isolation: isolate; padding: 12px; }
.th-cinema .th-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--rule);
}
.th-cinema .th-player { position: absolute; inset: 0; }
.th-cinema .th-player iframe {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  min-height: 200px;
  border: 0;
  background: #000;
}
.th-stage-fallback {
  display: grid;
  place-content: center;
  gap: 18px;
  min-block-size: 100%;
  padding: 22px;
  text-align: center;
  color: #fff;
}
.th-stage-fallback p { max-inline-size: 38ch; color: #ddd; font-size: 14px; line-height: 1.6; }
.th-stepped-frame {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  pointer-events: none;
  overflow: visible;
  color: var(--ink-3);
}
.th-stepped-frame path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.th-frame-structure { opacity: .35; }
.th-frame-glow { opacity: .12; color: var(--cochineal); }
html[data-motion="living"] .th-cinema .th-frame-glow {
  stroke-dasharray: 150 3650;
  animation: th-frame-travel 28s linear infinite, th-frame-breathe 14s ease-in-out infinite;
}
.th-stage-shell:focus-within .th-frame-glow { animation-play-state: paused !important; }
@keyframes th-frame-travel { to { stroke-dashoffset: -3800; } }
@keyframes th-frame-breathe { 0%, 100% { opacity: .08; } 50% { opacity: .2; } }
html[data-motion="calm"] .th-cinema .th-frame-glow,
html[data-motion="still"] .th-cinema .th-frame-glow {
  animation: none !important;
  stroke-dasharray: none;
  opacity: .12;
}
.th-provider-line {
  margin: 14px 12px 0;
  color: var(--ink-2);
  font: 400 13px/1.65 var(--zn-read);
  max-inline-size: 74ch;
}
.th-provider-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 12px 0;
}
.th-cinema .th-watch, .th-cinema .th-select {
  min-height: 46px;
  min-inline-size: 44px;
  font-size: 14px;
  padding: 11px 16px;
}
.th-now-watching { padding-block-start: 10px; }
.th-now-watching > .th-kicker { margin-block-end: 14px; }
.th-cinema .th-feature-title {
  font: 400 clamp(32px, 3.4vw, 52px)/1.08 var(--serif);
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
  scroll-margin-block-start: 100px;
}
.th-now-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-block: 18px; color: var(--ink-2); font: 400 12px/1.6 var(--zn-mono); }
.th-now-watching > .th-description { font-size: 16px; line-height: 1.7; max-inline-size: 48ch; }
.th-cinema-details { margin-block-start: 22px; border-block: 1px solid var(--rule); }
.th-cinema-details > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-block-size: 48px;
  padding-block: 12px;
  color: var(--ink-2);
  font: 500 13px/1.6 var(--zn-read);
  cursor: pointer;
  list-style: none;
}
.th-cinema-details > summary::-webkit-details-marker { display: none; }
.th-cinema-details > summary::after { content: "+"; color: var(--ink); font: 400 22px/1 var(--zn-read); }
.th-cinema-details[open] > summary::after { content: "−"; }
.th-cinema-details-body { padding-block: 4px 22px; }
.th-cinema-details-body > * + * { margin-block-start: 16px; }
.th-cinema-details-body :where(p, li) { font-size: 14px; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }
.th-cinema-details-body strong { color: var(--ink); }
.th-cinema-details-body a { display: inline-flex; align-items: center; min-block-size: 44px; padding-block: 8px; color: var(--ink); }
.th-cinema-details-body ul { list-style: none; padding: 0; }
.th-cinema-details-body li + li { margin-block-start: 12px; }
.th-cinema .th-catalogue { margin-block-start: clamp(48px, 6vw, 88px); padding-block-end: 0; }
.th-cinema .th-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; padding-block-end: 0; }
.th-cinema .th-section-title { font: 400 clamp(30px, 3.4vw, 48px)/1.1 var(--serif); }
.th-cinema .th-tools { margin-block: 24px 28px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; }
.th-cinema .th-tools label { font-size: 13px; }
.th-cinema .th-tools input, .th-cinema .th-tools select { min-block-size: 48px; font-size: 15px; }
.th-cinema .th-film-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 22px; }
.th-cinema .th-film { min-inline-size: 0; border: 0; padding: 0; }
.th-poster-button {
  position: relative;
  display: block;
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  min-block-size: 44px;
  overflow: hidden;
  border: 1px solid var(--rule);
  padding: 0;
  background: var(--page-bg);
  color: var(--ink);
  cursor: pointer;
  text-align: start;
}
.th-poster-button img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  /* The unmodified source image keeps its own color; no cinematic filter or invented illustration. */
}
.th-poster-button::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; pointer-events: none; }
.th-poster-button:hover::after, .th-poster-button[aria-pressed="true"]::after { border-color: var(--ink); }
.th-poster-badge {
  position: absolute;
  inset-inline-start: 8px;
  inset-block-end: 8px;
  padding: 4px 7px;
  background: rgb(0 0 0 / .82);
  color: #fff;
  font: 500 10px/1.4 var(--zn-mono);
  letter-spacing: .03em;
  max-inline-size: calc(100% - 16px);
}
.th-cinema .th-film-title { margin-block-start: 13px; font: 500 18px/1.3 var(--zn-read); overflow-wrap: anywhere; }
.th-card-meta { margin-block-start: 8px; font: 400 12px/1.55 var(--zn-read); color: var(--ink-2); }
.th-card-details { margin-block-start: 10px; }
.th-card-details summary { min-block-size: 44px; padding-block: 10px; color: var(--ink-2); font-size: 12px; cursor: pointer; }
.th-card-details :where(p, li) { font-size: 13px; line-height: 1.65; color: var(--ink-2); overflow-wrap: anywhere; }
.th-card-details a { display: inline-flex; align-items: center; min-block-size: 44px; padding-block: 8px; color: var(--ink); }
.th-cinema .th-companions, .th-cinema .th-method { margin-block-start: 64px; padding-block: 0; }
@media (max-width: 1179px) {
  .th-screening-layout { grid-template-columns: minmax(0, 1.7fr) minmax(260px, .9fr); gap: 28px; }
  .th-cinema .th-film-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 959px) {
  .th-screening-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .th-now-watching { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 28px; }
  .th-now-watching > .th-kicker, .th-now-watching > .th-cinema-details { grid-column: 1 / -1; }
  .th-now-watching > .th-kicker { margin: 0; }
  .th-now-watching > .th-now-meta { grid-column: 1; margin: 0; }
  .th-now-watching > .th-description { grid-column: 2; grid-row: 2 / 4; }
  .th-cinema .th-film-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 679px) {
  .th-page.th-cinema { padding: 24px 18px 56px; }
  .th-cinema-heading { margin-block-end: 22px; }
  .th-cinema-heading h1 { font-size: clamp(40px, 11vw, 56px); }
  .th-cinema-heading > p:last-child { margin-block-start: 12px; font-size: 14px; }
  .th-stage-shell { padding: 8px; }
  .th-provider-line, .th-provider-actions { margin-inline: 8px; }
  .th-provider-line { font-size: 12px; line-height: 1.65; }
  .th-now-watching { display: block; padding: 0 8px; }
  .th-now-watching > .th-kicker { margin-block-end: 12px; }
  .th-cinema .th-feature-title { font-size: clamp(30px, 8vw, 40px); }
  .th-now-watching > .th-now-meta { margin-block: 14px; }
  .th-now-watching > .th-description { max-inline-size: none; font-size: 15px; line-height: 1.7; }
  .th-cinema .th-catalogue { margin-block-start: 44px; }
  .th-cinema .th-film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .th-cinema .th-film-title { font-size: 16px; line-height: 1.35; }
  .th-card-meta { font-size: 12px; }
  .th-poster-badge { inset-inline-start: 6px; inset-block-end: 6px; font-size: 9px; padding: 4px 5px; }
  .th-cinema .th-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-block: 22px 24px; }
  .th-cinema .th-tools > div:first-child { grid-column: 1 / -1; }
  .th-cinema .th-tools .th-select { justify-self: stretch; align-self: end; }
  .th-cinema .th-method, .th-cinema .th-companions { margin-block-start: 48px; }
}
@media (max-width: 359px) {
  .th-cinema .th-film-grid, .th-cinema .th-tools { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .th-cinema *, .th-cinema *::before, .th-cinema *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .th-cinema .th-frame-glow { stroke-dasharray: none; opacity: .12; }
}
@media (forced-colors: active) {
  .th-cinema .th-stepped-frame { color: CanvasText; }
  .th-cinema .th-frame-glow { display: none; }
  .th-cinema .th-frame-structure { opacity: 1; }
  .th-cinema .th-poster-button { border-color: CanvasText; }
  .th-cinema .th-poster-badge { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
}

html[data-theater-motion="still"] .th-cinema .th-frame-glow { animation:none!important; stroke-dasharray:none; opacity:.12; }
.th-cinema .th-film-title { text-wrap:initial; }
.th-cinema .th-poster-button { flex:none; }
.th-cinema .th-card-details { margin-top:10px; }
.th-cinema .th-card-details summary { display:flex; align-items:center; }

/* Keep a full 200px provider viewport inside the stage's two border pixels. */
.th-cinema .th-screen { min-height:202px; }

/* Worldwide library: native sources remain complete without enhancement. */
.th-library-scope {margin-top:18px!important;color:var(--ink-2);font:400 12px/1.7 var(--zn-mono);}
.th-location,.th-card-place {color:var(--ink-2);font:400 12px/1.6 var(--zn-read);margin-top:8px!important;}
.th-card-place:empty,.th-location:empty {display:none;}
.th-cinema .th-tools {grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:16px;}
.th-cinema .th-tools>div:first-child {grid-column:1/-1;}
.th-cinema .th-tools>div {min-inline-size:0;}
.th-cinema .th-tools>button {min-height:48px;}
.th-cinema .th-tools label {min-height:22px;}
.th-cinema .th-film-title {min-height:2.6em;}
.th-cinema .th-card-meta {min-height:2.9em;}
.th-library-more {display:flex;justify-content:center;flex-wrap:wrap;gap:16px;margin-block:36px 16px;}
.th-world-reading {margin-top:64px;border-top:1px solid var(--rule);padding-top:28px;}
.th-world-reading>.th-kicker {margin-bottom:18px;}
.th-world-reading>p:last-of-type {margin-block:20px;max-width:72ch;color:var(--ink-2);font:400 15px/1.8 var(--zn-read);}
.th-world-links {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:26px;}
.th-world-links>a {display:flex;flex-direction:column;gap:14px;border:1px solid var(--rule);padding:22px;color:var(--ink);text-decoration:none;min-width:0;}
.th-world-links>a:hover {border-color:var(--ink);}
.th-world-links strong {font:400 24px/1.2 var(--serif);}
.th-world-links span {color:var(--ink-2);font:400 13px/1.75 var(--zn-read);}
.th-regional {margin-top:32px;}
.th-regional .th-companions {margin-block:12px 24px;}
.th-regional .th-section-heading {display:none;}
@media(max-width:959px){.th-world-links{grid-template-columns:repeat(2,minmax(0,1fr));}.th-cinema .th-tools{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:679px){.th-cinema .th-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;}.th-cinema .th-film-title{min-height:0;}.th-cinema .th-card-meta{min-height:0;}.th-world-reading{margin-top:48px;}.th-world-links{gap:12px;}.th-world-links>a{padding:18px;}.th-world-links strong{font-size:22px;}.th-regional .th-companions h3{font-size:25px;}.th-provider-actions{gap:10px;}}
@media(max-width:359px){.th-cinema .th-tools,.th-world-links{grid-template-columns:minmax(0,1fr);}.th-cinema .th-tools>div:first-child{grid-column:auto;}}
