@import url("links.css");

/* ── TOKENS ── */
:root {
  --navy: #1B2A4A;
  --navy2: #0f1e38;
  --gold: #C9A84C;
  --gold2: #a8843a;
  --cream: #F5F0E8;
  --cream2: #EDE7D8;
  --text: #2a2a2a;
  --muted: #7a7060;
  --border: #d4c9b0;
  --white: #ffffff;
  --ink: #1a1a1a;
  --rule: rgba(212,201,176,0.5);
  --green: #2d6a4f;
  --greenlight: #dcebe3;
  --red: #9b2335;
  --redlight: #f2e0dd;
  --blue: #1B4A7A;
  --bluelight: #dde9f3;
  --purple: #5c3d7a;
  --purplelight: #ece3f0;
  --blueborder: #a9c3da;
  --greenborder: #a8cdba;
  --purpleborder: #cdb8da;
  --redborder: #d9b3ad;
  --rise: #3f7d54;
  --fall: #b0553f;
  --crimson: #8c2018;
  --crimsonlight: #f2e0dd;
  --crimsonborder: #d9b3ad;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

/* ── SKIP NAV ── */
.skip-nav {
  position: absolute; top: -100px; left: 1rem;
  background: var(--navy); color: var(--cream);
  padding: 0.6rem 1.2rem; font-size: 0.85rem;
  font-weight: 600; text-decoration: none;
  border-radius: 0 0 4px 4px; z-index: 9999;
  transition: top 0.1s;
}
.skip-nav:focus { top: 0; outline: 3px solid var(--gold); outline-offset: 2px; }

/* ── FOCUS ── */
:focus-visible { outline: 2px solid #7A5800; outline-offset: 3px; border-radius: 2px; }
a:focus-visible { outline: 2px solid #7A5800; outline-offset: 3px; }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(15,30,56,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,168,76,0.25);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem; height: 56px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.07em; text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
}
.nav-seal {
  height: 30px; width: 30px;
  border-radius: 50%; object-fit: cover;
  opacity: 0.9; flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 0.15rem;
  flex-wrap: nowrap;
}
.nav-links a {
  color: rgba(245,240,232,0.65); text-decoration: none;
  font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.3rem 0.55rem;
  transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.15); margin: 0 0.5rem; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.nav-tool { border: 1px solid rgba(201,168,76,0.35) !important; border-radius: 2px !important; padding: 0.2rem 0.65rem !important; }
.nav-tool:hover, .nav-tool.active { border-color: var(--gold) !important; color: var(--gold) !important; }
.nav-cta { background: var(--gold) !important; color: var(--navy2) !important; padding: 0.2rem 0.65rem !important; border-radius: 2px !important; font-weight: 600 !important; }
.nav-cta:hover { background: rgba(201,168,76,0.85) !important; color: var(--navy2) !important; }

/* ── HAMBURGER — always visible ── */
.hamburger {
  display: flex; flex-direction: column;
  gap: 5px; cursor: pointer;
  background: none; border: none; -webkit-appearance: none; appearance: none;
  padding: 6px; margin-left: 0.5rem; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--gold); transition: 0.3s;
}

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed; top: 56px; left: 0; right: 0;
  background: rgba(10,20,42,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  flex-direction: column; z-index: 190;
  padding: 0.5rem 0 1rem;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(245,240,232,0.8); text-decoration: none;
  font-size: 0.9rem; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.85rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: block; transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold); background: rgba(201,168,76,0.06); }
.menu-divider { display: block; height: 1px; background: rgba(201,168,76,0.2); margin: 0.5rem 0; }
.mobile-cta { background: rgba(201,168,76,0.12) !important; color: var(--gold) !important; font-weight: 500 !important; }

/* ── MOBILE BREAKPOINT — nav-links hide, hamburger stays ── */
@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ── FOOTER ── */
footer { background: var(--navy2); border-top: 1px solid rgba(201,168,76,0.15); padding: 2rem 1.25rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
.footer-logo { font-family: 'Cormorant Garamond', serif; color: rgba(245,240,232,0.7); font-size: 0.9rem; letter-spacing: 0.1em; }
.footer-note { font-size: 0.68rem; color: rgba(214,218,224,0.6); letter-spacing: 0.06em; line-height: 1.6; }
.footer-meta-link { display: inline-block; margin-top: 0.4rem; font-size: 0.66rem; color: rgba(201,168,76,0.7); text-decoration: none; letter-spacing: 0.04em; }
.footer-meta-link:hover { color: var(--gold); }
.ann-ai-marker { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold2); margin-left: 0.5rem; white-space: nowrap; }
.footer-social { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: center; align-items: baseline; }
.footer-social-label { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: rgba(245,240,232,0.55); letter-spacing: 0.16em; text-transform: uppercase; }
.footer-social a { font-size: 0.72rem; color: rgba(230,232,236,0.8); text-decoration: none; letter-spacing: 0.04em; transition: color 0.2s; }
.footer-social a:hover { color: var(--gold); }
@media (min-width: 821px) {
  footer { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ════════════════════════════════════════════════════
   LAYOUT SYSTEM
   Breakpoints: mobile ≤640, tablet 641-820, desktop ≥821
   All pages use .fr-page or .fr-cols for consistent structure.
   Change here → propagates everywhere.
   ════════════════════════════════════════════════════ */

/* Standard page container */
.fr-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

/* Two-column layout: sidebar + main content */
.fr-cols {
  display: flex;
  gap: 3rem;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}
.fr-cols .fr-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
}
.fr-cols .fr-main {
  flex: 1;
  min-width: 0;
}

/* Tablet */
@media (max-width: 820px) {
  .fr-page { padding: 3rem 1.5rem 4rem; }
  .fr-cols { flex-direction: column; padding: 2rem 1.5rem 5rem; gap: 1rem; }
  .fr-cols .fr-sidebar { position: static; width: 100%; max-height: none; overflow: visible; }
  .fr-cols .fr-main { width: 100%; }
}

/* Mobile */
@media (max-width: 640px) {
  .fr-page { padding: 1.5rem 1rem 4rem; }
  .fr-cols { padding: 1.5rem 1rem 5rem; }
}

/* Utility: sidebar as hidden mobile drawer, shown via FAB */
.fr-sidebar.mobile-drawer { display: none; }
@media (max-width: 820px) {
  .fr-sidebar.mobile-drawer {
    display: none;
    position: fixed; top: 60px; left: 0;
    width: 220px; height: calc(100vh - 60px);
    background: rgba(27,42,74,0.97);
    border-right: 1px solid rgba(201,168,76,0.15);
    z-index: 200; overflow-y: auto; padding: 1.25rem 0;
  }
  .fr-sidebar.mobile-drawer.open { display: block; }
}

/* ── ALPHA-NAV (Glossary letter sidebar) ── */
.fr-cols .fr-sidebar.alpha-nav {
  display: flex; flex-direction: column;
  gap: 0.15rem; background: var(--cream); padding-top: 0.5rem;
}
.fr-cols .fr-sidebar.alpha-nav a {
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.1em; color: var(--muted); text-decoration: none;
  padding: 0.25rem 0.4rem; transition: color 0.15s; white-space: nowrap;
}
.fr-cols .fr-sidebar.alpha-nav a:hover,
.fr-cols .fr-sidebar.alpha-nav a.active-letter { color: var(--gold); }
.fr-cols .fr-sidebar.alpha-nav a.no-terms { opacity: 0.3; pointer-events: none; }

@media (max-width: 820px) {
  .fr-cols .fr-sidebar.alpha-nav {
    flex-direction: row; flex-wrap: wrap; gap: 0;
    padding: 0.5rem 0; background: transparent;
    width: 100%; position: static; max-height: none; overflow: visible;
  }
}

@media (max-width: 640px) {
  .fr-cols .fr-sidebar.alpha-nav {
    display: none; position: fixed; top: 60px; left: 0;
    width: 220px; height: calc(100vh - 60px);
    background: rgba(27,42,74,0.97);
    border-right: 1px solid rgba(201,168,76,0.15);
    flex-direction: column; gap: 0; padding: 1.25rem 0; z-index: 200; overflow-y: auto;
  }
  .fr-cols .fr-sidebar.alpha-nav.mobile-open { display: flex; }
  .fr-cols .fr-sidebar.alpha-nav a {
    font-size: 0.85rem; padding: 0.45rem 1.25rem;
    color: rgba(245,240,232,0.5); border-left: 2px solid transparent; white-space: normal;
  }
  .fr-cols .fr-sidebar.alpha-nav a:hover,
  .fr-cols .fr-sidebar.alpha-nav a.active-letter {
    color: var(--gold); border-left-color: var(--gold); background: rgba(201,168,76,0.08);
  }
}

/* ══════════════════════════════════════════════════
   SHARED FAB + DRAWER + SEARCH OVERLAY
   Used by Annotated Edition, Glossary, and any
   future long-form page. Do not duplicate in pages.
══════════════════════════════════════════════════ */

/* ── Two-FAB pattern ── */
.minimap-toggle, .search-fab {
  position: fixed; bottom: 1.75rem;
  width: 56px; height: 56px;
  background: var(--navy);
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold); border-radius: 4px;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  z-index: 9999;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none; appearance: none;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.minimap-toggle { left: 1.25rem; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.05em; width: 56px; }
.search-fab { right: 1.25rem; font-size: 1.25rem; }
.minimap-toggle:hover, .search-fab:hover { border-color: var(--gold); background: rgba(27,42,74,0.95); box-shadow: 0 2px 12px rgba(0,0,0,0.5); }

/* ── Nav drawer (left slide-in) ── */
.nav-drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(10,16,28,0.55); z-index: 299; backdrop-filter: blur(2px); }
.nav-drawer-overlay.open { display: block; }
.nav-drawer {
  position: fixed; top: 0; left: -210px; bottom: 0; width: 200px;
  background: var(--navy); border-right: 1px solid rgba(201,168,76,0.2);
  padding: 4rem 1rem 2rem; z-index: 300;
  transition: left 0.25s ease;
  overflow-y: auto;
}
.nav-drawer.open { left: 0; }
.nav-drawer-header { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); padding: 0 0.5rem 1rem; opacity: 0.7; }
.nav-drawer-link { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: rgba(245,240,232,0.6); padding: 0.45rem 0.5rem; text-decoration: none; border-radius: 2px; transition: color 0.15s, background 0.15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-drawer-link:hover, .nav-drawer-link.active { color: var(--gold); background: rgba(201,168,76,0.08); }
.minimap-overlay { display: none; position: fixed; inset: 0; background: rgba(10,16,28,0.55); z-index: 299; backdrop-filter: blur(2px); }
.minimap-overlay.open { display: block; }

/* ── Search overlay ── */
.search-overlay { display: none; position: fixed; inset: 0; background: rgba(10,16,28,0.7); z-index: 500; backdrop-filter: blur(3px); align-items: flex-start; justify-content: center; padding-top: 80px; }
.search-overlay.open { display: flex; }
.search-inner { background: var(--white); border: 1px solid var(--border); border-radius: 4px; width: min(680px,92vw); max-height: 75vh; display: flex; flex-direction: column; overflow: hidden; }
.search-bar { display: flex; align-items: center; border-bottom: 1px solid var(--border); padding: 0.5rem 1rem; gap: 0.75rem; }
.search-input { flex: 1; border: none; outline: none; font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--navy); background: transparent; padding: 0.5rem 0; }
.search-input::placeholder { color: var(--muted); }
.search-close { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 0.25rem; line-height: 1; -webkit-appearance: none; appearance: none; }
.search-close:hover { color: var(--navy); }
.search-results { overflow-y: auto; padding: 0.5rem 0; }
.search-result { display: block; padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; transition: background 0.1s; }
.search-result:hover { background: rgba(201,168,76,0.07); }
.search-result-num { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--gold); letter-spacing: 0.1em; display: block; margin-bottom: 0.25rem; }
.search-result-name { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: var(--navy); font-weight: 600; display: block; margin-bottom: 0.25rem; }
.search-result-snippet { font-size: 0.8rem; color: var(--muted); line-height: 1.5; display: block; }
.search-empty { padding: 2rem; text-align: center; color: var(--muted); font-size: 0.9rem; }
mark { background: rgba(201,168,76,0.3); color: inherit; padding: 0 1px; border-radius: 1px; }

/* ===== News masthead (consolidated from 30 news pages) ===== */
.masthead{background:var(--navy2);padding:1.5rem 2rem 1.25rem;border-bottom:3px solid var(--gold)}
.masthead-inner{max-width:860px;margin:0 auto}
.masthead-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;padding-bottom:.75rem;border-bottom:1px solid rgba(201,168,76,.3)}
.masthead-meta{font-family:'JetBrains Mono',monospace;font-size:.6rem;letter-spacing:.15em;text-transform:uppercase;color:rgba(201,168,76,.7)}
.masthead-name{font-family:'Cormorant Garamond',serif;font-size:clamp(2rem,5vw,3.2rem);font-weight:700;color:#f5f0e8;letter-spacing:.08em;text-align:center;text-transform:uppercase;line-height:1}
.masthead-tagline{font-family:'Cormorant Garamond',serif;font-size:.9rem;font-style:italic;color:rgba(245,240,232,.5);text-align:center;margin-top:.35rem}

/* ===== Numbered-paragraph provision structure (readability sweep) ===== */
.prov-para { margin: 0 0 .7rem 0; }
.prov-para:last-child { margin-bottom: 0; }
.prov-subpara { margin: 0 0 .45rem 1.5rem; }
.prov-list { margin: .2rem 0 .7rem 1.5rem; padding: 0; list-style: none; }
.prov-list li { margin: .15rem 0; padding-left: 1rem; text-indent: -1rem; }
.prov-list li::before { content: "— "; color: var(--muted); }


/* --- scenario pages (consolidated from 44 pages, generation-1 canonical) --- */
.beat { background:var(--cream2);border-left:3px solid var(--gold);padding:1.2rem 1.5rem;margin:1.5rem 0;border-radius:0 4px 4px 0; }
.beat p { margin-bottom:0.8rem;font-size:0.92rem;line-height:1.75; }
.beat-label { font-family:'JetBrains Mono',monospace;font-size:0.6rem;letter-spacing:0.15em;text-transform:uppercase;color:var(--muted);margin-bottom:0.4rem; }
.beat-title { font-family:'Cormorant Garamond',serif;font-size:1.2rem;color:var(--navy);margin-bottom:0.8rem; }
.prov-tag { font-family:'JetBrains Mono',monospace;font-size:0.65rem;background:var(--navy);color:var(--gold);padding:0.25rem 0.6rem;border-radius:2px; }
.provisions-tested { display:flex;flex-wrap:wrap;gap:0.4rem;margin-top:1rem; }
.scenario-body h2 { font-family:'Cormorant Garamond',serif;font-size:1.5rem;font-weight:400;color:var(--navy);margin:2.5rem 0 1rem;padding-bottom:0.4rem;border-bottom:1px solid var(--border); }
.scenario-body p { margin-bottom:1.5rem;font-size:1rem;line-height:1.9; }
.scenario-meta { margin-bottom:2.5rem;padding-bottom:2rem;border-bottom:2px solid var(--navy); }
.scenario-nav a:hover { opacity:1;color:var(--navy); }
.scenario-tag { font-family:'JetBrains Mono',monospace;font-size:0.65rem;letter-spacing:0.15em;text-transform:uppercase;color:var(--gold);display:block;margin-bottom:0.8rem; }
.scenario-title { font-family:'Cormorant Garamond',serif;font-size:clamp(2rem,5vw,3rem);font-weight:400;color:var(--navy);line-height:1.1;margin-bottom:1rem; }

/* scenario nav (consolidated: was dead CSS on 18 pages, absent on 19) */
.scenario-nav { display:flex;justify-content:space-between;padding:2rem 0;border-top:1px solid var(--border);margin-top:3rem; }
.scenario-nav a { text-decoration:none;font-size:0.8rem;letter-spacing:0.08em;color:var(--gold);opacity:0.75; }

/* scenario intro line (was .scenario-premise on 15 pages, unmeasured) */
.scenario-subtitle { font-size:0.95rem;color:var(--muted);font-style:italic;line-height:1.7;max-width:600px;margin-bottom:1.2rem; }

/* scenario document container (was <main>/<div class=page-wrap>, 740px, hand-copied 43x) */
.doc-wrap { max-width:740px; margin:0 auto; padding:88px 2rem 80px; }
@media (max-width:820px){ .doc-wrap { padding:76px 1rem 60px; } }


/* --- quick sheets: properties identical across all sheets (per-sheet print tuning stays inline) --- */
* { box-sizing:border-box; margin:0; padding:0; }
.cas-arrow { align-items:center; color:var(--gold); display:flex; padding:0 1px; }
.cas-detail { color:var(--muted); }
.cas-num { color:var(--gold2); font-family:'JetBrains Mono',monospace; }
.cas-step { background:var(--white); border:1.5px solid var(--border); border-radius:6px; display:flex; flex:1; flex-direction:column; gap:2px; padding:8px 9px; }
.cas-title { color:var(--navy); font-family:'Cormorant Garamond',serif; font-weight:700; }
.cascade-row { align-items:stretch; display:flex; gap:7px; }
.fact-num { font-family:'Cormorant Garamond',serif; font-weight:700; line-height:1; }
.fact-pill { align-items:center; border-radius:6px; display:flex; flex:1; gap:8px; }
.fact-text { line-height:1.3; }
.facts-row { display:flex; gap:10px; }
.footer-left { color:var(--muted); font-family:'JetBrains Mono',monospace; font-size:7.3px; letter-spacing:0.02em; line-height:1.6; }
.footer-left strong { color:var(--navy); }
.footer-right { color:var(--muted); font-family:'Cormorant Garamond',serif; font-size:9.5px; font-style:italic; line-height:1.4; max-width:2.6in; text-align:right; }
.page { background:var(--cream); box-shadow:0 4px 24px rgba(0,0,0,0.15); display:flex; flex-direction:column; margin:0 auto; min-height:11in; position:relative; width:8.5in; }
.qs-body { display:flex; flex:1; flex-direction:column; }
.qs-download-btn { background:var(--gold); border-radius:3px; color:var(--navy2); font-family:'JetBrains Mono',monospace; font-size:0.7rem; letter-spacing:0.08em; padding:0.5rem 1rem; text-decoration:none; text-transform:uppercase; }
.qs-download-btn:hover { background:var(--gold2); }
.qs-eyebrow { align-items:center; color:var(--gold); display:flex; font-family:'JetBrains Mono',monospace; font-size:8.5px; gap:10px; letter-spacing:0.22em; margin-bottom:6px; text-transform:uppercase; }
.qs-eyebrow .dot { background:var(--gold); border-radius:50%; display:inline-block; height:5px; width:5px; }
.qs-footer-bar { align-items:flex-end; border-top:1.5px solid var(--border); display:flex; justify-content:space-between; margin-top:auto; padding:9px 0.5in 0.3in; }
.qs-header { background:linear-gradient(135deg, var(--navy2) 0%, var(--navy) 100%); color:#f5f0e8; overflow:hidden; position:relative; }
.qs-header::after { border:2px solid rgba(201,168,76,0.18); border-radius:50%; content:""; height:220px; position:absolute; right:-40px; top:-60px; width:220px; }
.qs-page-controls { align-items:center; display:flex; justify-content:space-between; margin:0 auto; max-width:8.5in; padding:72px 24px 0; }
.qs-page-controls .back-link { color:var(--gold); font-family:'JetBrains Mono',monospace; font-size:0.72rem; letter-spacing:0.08em; text-decoration:none; text-transform:uppercase; }
.qs-page-controls .back-link:hover { color:var(--navy); }
.qs-scale-wrap { overflow:hidden; }
.qs-scope { color:rgba(201,168,76,0.85); font-family:'JetBrains Mono',monospace; font-size:8px; letter-spacing:0.08em; line-height:1.6; position:absolute; right:0.5in; text-align:right; }
.qs-tagline { color:rgba(245,240,232,0.78); font-family:'Cormorant Garamond',serif; font-style:italic; font-weight:400; line-height:1.35; max-width:6.4in; }
.qs-title { font-family:'Cormorant Garamond',serif; font-weight:700; line-height:1.05; margin-bottom:4px; }
.section-label { align-items:center; color:var(--gold2); display:flex; font-family:'JetBrains Mono',monospace; font-size:9px; gap:8px; letter-spacing:0.16em; margin-bottom:7px; text-transform:uppercase; }
.section-label::after { background:var(--border); content:""; flex:1; height:1px; }
html,body { background:#e8e2d4; color:var(--text); font-family:'Jost',sans-serif; }


/* --- The Torenthian (30 news pages).
   Torenthia has FOUR in-world outlets and each keeps its own identity:
   RNN/Republic News Network (005,007,011,021,026) - broadcast, sans-serif, no drop cap
   TNB/Torenthian Network Broadcast (009) - regional affiliate
   The Dorven Ledger (034) - small Orath paper
   Those seven are EXCLUDED; properties that would reach them are withheld. --- */
.article-body p { color:#1a1a1a; font-family:'Georgia',serif; font-size:1rem; line-height:1.95; margin-bottom:1.4rem; }
.article-byline { align-items:baseline; border-bottom:1px solid var(--border); border-top:1px solid var(--border); display:flex; flex-wrap:wrap; gap:.75rem; margin-bottom:1.75rem; padding:.75rem 0; }
.article-deck { color:var(--muted); font-family:'Cormorant Garamond',serif; font-size:1.1rem; line-height:1.65; margin-bottom:1.25rem; }
.article-headline { color:var(--navy); font-family:'Cormorant Garamond',serif; font-size:clamp(1.8rem,4vw,2.6rem); font-weight:700; line-height:1.15; margin-bottom:.75rem; }
.article-nav { align-items:center; border-top:1px solid var(--border); display:flex; justify-content:space-between; margin-top:1.5rem; padding:1.25rem 0; }
.article-nav a { color:var(--gold); font-family:'JetBrains Mono',monospace; font-size:.65rem; letter-spacing:.1em; text-decoration:none; text-transform:uppercase; }
.article-nav a:hover { color:var(--navy); }
.article-rule { border:none; border-top:1px solid var(--border); margin:2rem 0; }
.article-wrap { margin:0 auto; max-width:700px; padding:3rem 2rem 5rem; }
.author-bio { background:var(--cream); border-top:2px solid var(--navy); color:var(--muted); font-family:'Jost',sans-serif; font-size:.8rem; line-height:1.65; margin-top:2.5rem; padding:1rem 1.25rem; }
.author-bio strong { color:var(--text); font-weight:500; }
.byline-author { color:var(--navy); font-family:'Jost',sans-serif; font-size:.82rem; font-weight:600; }
.byline-role { color:var(--muted); font-family:'Jost',sans-serif; font-size:.78rem; }
.byline-sep { color:var(--border); }
.pull-quote { background:#fdfbf5; border-left:3px solid var(--gold); margin:1.75rem 0; padding:.85rem 1.25rem; }
.pull-quote p { color:var(--navy); font-family:'Cormorant Garamond',serif; font-size:1.2rem; font-style:italic; line-height:1.6; margin-bottom:0; }


/* Newspaper feature layout for newsroom stories that opt in. */
.article-wrap.news-feature { max-width:760px; padding-top:clamp(5.75rem, 10vw, 7rem); }
.news-feature .news-masthead {
  border-bottom:2px solid var(--gold);
  color:var(--navy);
  font:600 .75rem/1.4 'JetBrains Mono',monospace;
  letter-spacing:.12em;
  margin-bottom:1.25rem;
  padding-bottom:.65rem;
  text-transform:uppercase;
}
.news-feature .article-headline {
  font-size:clamp(2.5rem, 6vw, 4rem);
  line-height:1.02;
  text-wrap:balance;
}
.news-feature .article-deck {
  color:var(--navy);
  font-size:clamp(1.25rem, 2.6vw, 1.55rem);
  line-height:1.4;
  max-width:58ch;
}
.news-feature .news-date {
  color:var(--text);
  font:.75rem/1.4 'JetBrains Mono',monospace;
}
.news-feature .article-body { max-width:66ch; font-family:Georgia,serif; }
.news-feature .article-body p { font-size:1.0625rem; line-height:1.8; }
.news-feature .article-body p:first-child { font-size:1.125rem; }
.news-feature .news-dateline {
  color:var(--navy);
  font:700 .78em/1.4 'Jost',sans-serif;
  letter-spacing:.045em;
}
.news-feature .article-nav { gap:1rem; flex-wrap:wrap; }
.news-feature .article-nav a { color:var(--navy); text-decoration:underline; }
@media print {
  .article-wrap.news-feature { max-width:none; padding:0; }
}

/* No global img rule existed. news-005 and news-011 (RNN) carry .subject-portrait markup
   with no CSS of their own, so a 1024x1024 portrait rendered at natural size into a 740px
   column. This is the safety net, not a redesign. */
img { max-width:100%; height:auto; }

/* AI feature notice — every feature that sends what a reader types to a commercial
   provider must link the disclosure page. The base class carries ONLY the link treatment;
   each context supplies its own type, because each page already has a small-print
   convention and the notice should look native to it, not imported. */
.ai-note a{color:var(--gold2);text-decoration:none;border-bottom:1px solid rgba(168,132,58,.35)}
.ai-note a:hover{border-bottom-color:var(--gold2)}

/* index hero ask-bar — matches .nav-chip (its immediate neighbour) */
.ai-note--onDark{font-family:'Jost',sans-serif;font-size:.7rem;color:rgba(245,240,232,.45);margin-top:.85rem;text-align:center}
.ai-note--onDark a{color:rgba(201,168,76,.75);border-bottom-color:rgba(201,168,76,.28)}
.ai-note--onDark a:hover{color:var(--gold);border-bottom-color:var(--gold)}

/* crossroads free-text — matches .ft-hint exactly (mono, .56rem, tracked) */
.ai-note--hint{font-family:'JetBrains Mono',monospace;font-size:.56rem;letter-spacing:.06em;color:var(--muted);margin-top:.5rem}

/* annotated rationale panel — matches .ann-panel-num's mono label register */
.ai-note--panel{font-family:'JetBrains Mono',monospace;font-size:.6rem;letter-spacing:.05em;color:var(--muted);margin-top:1.1rem;padding-top:.75rem;border-top:1px solid var(--rule)}

/* ── NEWS ARTICLE (The Torenthian house style) ──────────────────────────────
   Scoped under .article-wrap so these never collide with other page types.
   annotated.html uses .article-section for a scroll-anchored content block — a
   DIFFERENT meaning of the same class name — and has no .article-wrap, so it is
   untouched. Lifted verbatim from the 12-page canonical block (was inline on ~26
   news pages in 7 drifted copies). Consolidating here is what makes a single
   restyle reach every news page. */
.paper-torenthian .article-section{border-bottom:2px solid var(--navy);color:var(--gold);font-family:'JetBrains Mono',monospace;font-size:.6rem;letter-spacing:.22em;margin-bottom:.85rem;padding-bottom:.6rem;text-transform:uppercase}
.paper-torenthian .article-deck{font-style:italic}
.paper-torenthian .subject-portrait{margin:0 0 1.75rem;display:flex;flex-direction:column;align-items:center}
.paper-torenthian .subject-portrait img{width:190px;height:190px;object-fit:cover;border-radius:4px;border:1px solid var(--border);filter:grayscale(15%);box-shadow:0 4px 18px rgba(15,30,56,.14)}
.paper-torenthian .subject-portrait figcaption{font-family:'JetBrains Mono',monospace;font-size:.58rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-top:.6rem;text-align:center}
@media(min-width:720px){.paper-torenthian .subject-portrait{float:right;margin:0 0 1rem 1.75rem;width:190px}}
.paper-torenthian .byline-date{font-family:'JetBrains Mono',monospace;font-size:.68rem;color:var(--muted);letter-spacing:.05em;margin-left:auto}
.paper-torenthian .article-body p:first-child::first-letter{font-family:'Cormorant Garamond',serif;font-size:3.2rem;font-weight:700;color:var(--navy);float:left;line-height:.8;margin:.05em .12em 0 0}
.paper-torenthian .article-subhead{font-family:'Cormorant Garamond',serif;font-size:.88rem;font-weight:700;color:var(--navy);margin:2.25rem 0 .85rem;padding-bottom:.4rem;border-bottom:1px solid var(--border);text-transform:uppercase;letter-spacing:.06em}
@media(max-width:820px){.article-wrap{padding:2rem 1rem 4rem}.paper-torenthian .byline-date{margin-left:0;width:100%}}


/* ══ IN-WORLD OUTLETS ═══════════════════════════════════════════════════════
   Each outlet wears the national palette (--navy, --gold, --cream …) with a
   small SCOPED accent set of its own, defined on its .paper-* class so it can
   never leak to another outlet or to the institutional pages. This mirrors the
   fiction: five distinct mastheads under one constitution.
   Consolidated from inline copies (was drifting — RNN had two different reds).
   NOTE: the RNN *broadcast* template (news-005/007/011) is intentionally NOT
   here yet — it is queued for a Phase-2 rebuild onto this canonical .paper-rnn
   structure, so consolidating it into a throwaway variant block was skipped. */

/* ── RNN (canonical broadcast-news look) ── */
.paper-rnn{--rnn-red:#b91c1c}
.paper-rnn .rnn-masthead{background:var(--navy2);border-bottom:4px solid var(--rnn-red);padding:1rem 2rem}
.paper-rnn .rnn-masthead-inner{max-width:860px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.paper-rnn .rnn-logo{font-family:'JetBrains Mono',monospace;font-size:1.1rem;font-weight:500;letter-spacing:.15em;color:var(--cream)}
.paper-rnn .rnn-logo span{color:var(--rnn-red)}
.paper-rnn .rnn-tagline{font-family:'JetBrains Mono',monospace;font-size:.58rem;letter-spacing:.12em;text-transform:uppercase;color:rgba(245,240,232,.45)}
.paper-rnn .rnn-timestamp{font-family:'JetBrains Mono',monospace;font-size:.6rem;letter-spacing:.1em;color:rgba(201,168,76,.8)}
.paper-rnn .breaking-bar{background:var(--rnn-red);padding:.4rem 2rem;text-align:center}
.paper-rnn .breaking-bar-inner{max-width:860px;margin:0 auto;font-family:'JetBrains Mono',monospace;font-size:.65rem;letter-spacing:.2em;text-transform:uppercase;color:#fff}
.paper-rnn .article-wrap{max-width:700px;margin:0 auto;padding:2.5rem 2rem 5rem}
.paper-rnn .rnn-label{font-family:'JetBrains Mono',monospace;font-size:.58rem;letter-spacing:.22em;text-transform:uppercase;color:var(--rnn-red);margin-bottom:.7rem;display:flex;align-items:center;gap:.6rem}
.paper-rnn .rnn-label::after{content:'';flex:1;height:1px;background:var(--rnn-red);opacity:.3}
.paper-rnn .article-headline{font-family:'Cormorant Garamond',serif;font-size:clamp(1.9rem,4.5vw,2.8rem);font-weight:700;color:var(--navy);line-height:1.1;margin-bottom:.75rem}
.paper-rnn .article-deck{font-family:'Cormorant Garamond',serif;font-size:1.05rem;font-style:italic;color:var(--muted);line-height:1.65;margin-bottom:1.25rem}
.paper-rnn .rnn-byline{display:flex;gap:1rem;align-items:baseline;padding:.6rem 0;border-top:2px solid var(--navy);border-bottom:1px solid var(--border);margin-bottom:1.75rem;flex-wrap:wrap}
.paper-rnn .rnn-byline-source{font-family:'JetBrains Mono',monospace;font-size:.65rem;font-weight:500;letter-spacing:.08em;color:var(--navy)}
.paper-rnn .rnn-byline-date{font-family:'JetBrains Mono',monospace;font-size:.62rem;color:var(--muted);margin-left:auto}
.paper-rnn .article-body p{font-family:'Georgia',serif;font-size:1rem;line-height:1.9;color:var(--text);margin-bottom:1.3rem}
.paper-rnn .article-body p:first-child::first-letter{font-family:'Cormorant Garamond',serif;font-size:3.2rem;font-weight:700;color:var(--navy);float:left;line-height:.8;margin:.05em .12em 0 0}
.paper-rnn .fact-block{background:var(--cream);border:1px solid var(--border);border-left:3px solid var(--navy);padding:.9rem 1.1rem;margin:1.5rem 0}
.paper-rnn .fact-block-label{font-family:'JetBrains Mono',monospace;font-size:.58rem;letter-spacing:.15em;text-transform:uppercase;color:var(--muted);margin-bottom:.5rem}
.paper-rnn .fact-block ul{margin:0;padding-left:1.1rem}
.paper-rnn .fact-block li{font-family:'Jost',sans-serif;font-size:.85rem;line-height:1.7;color:var(--text);margin-bottom:.2rem}
.paper-rnn .developing{background:var(--navy2);color:rgba(245,240,232,.7);font-family:'JetBrains Mono',monospace;font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;padding:.5rem 1rem;margin:1.5rem 0;display:inline-block}
.paper-rnn .article-nav{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 0;border-top:1px solid var(--border);margin-top:1.5rem}
.paper-rnn .article-nav a{font-family:'JetBrains Mono',monospace;font-size:.65rem;letter-spacing:.1em;color:var(--gold);text-decoration:none;text-transform:uppercase}
.paper-rnn .article-nav a:hover{color:var(--navy)}
@media(max-width:820px){.rnn-masthead{padding:.8rem 1rem}.article-wrap{padding:2rem 1rem 4rem}.rnn-byline-date{margin-left:0}}

/* ── TNB Caldenmere (regional broadcast) ── */
.paper-tnb{--tnb-blue:#4a7ab5;--tnb-blue-dk:#2a4a7a;--tnb-tint:#fafcff}
.paper-tnb .tnb-masthead{background:var(--navy2);border-bottom:3px solid var(--tnb-blue);padding:0}
.paper-tnb .tnb-top-bar{background:var(--tnb-blue-dk);padding:.35rem 2rem;display:flex;align-items:center;gap:1.5rem}
.paper-tnb .tnb-tag{font-family:'JetBrains Mono',monospace;font-size:.6rem;letter-spacing:.15em;text-transform:uppercase;color:rgba(255,255,255,.8)}
.paper-tnb .tnb-main{max-width:900px;margin:0 auto;padding:.9rem 2rem 1rem;display:flex;align-items:center;gap:2rem}
.paper-tnb .tnb-logo{font-family:'Jost',sans-serif;font-size:clamp(1.8rem,4vw,2.6rem);font-weight:700;color:white;letter-spacing:.12em;line-height:1}
.paper-tnb .tnb-affiliate{font-family:'JetBrains Mono',monospace;font-size:.65rem;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.5);margin-top:.2rem}
.paper-tnb .tnb-divider{width:1px;height:40px;background:rgba(255,255,255,.15);flex-shrink:0}
.paper-tnb .tnb-tagline{font-family:'Jost',sans-serif;font-size:.8rem;color:rgba(255,255,255,.45);font-weight:300}
.paper-tnb .article-wrap{max-width:700px;margin:0 auto;padding:3rem 2rem 5rem}
.paper-tnb .article-section{font-family:'JetBrains Mono',monospace;font-size:.6rem;letter-spacing:.22em;text-transform:uppercase;color:var(--tnb-blue);margin-bottom:.85rem;padding-bottom:.6rem;border-bottom:2px solid var(--tnb-blue)}
.paper-tnb .article-headline{font-family:'Cormorant Garamond',serif;font-size:clamp(1.8rem,4vw,2.5rem);font-weight:700;color:var(--navy);line-height:1.15;margin-bottom:.75rem}
.paper-tnb .article-deck{font-family:'Cormorant Garamond',serif;font-size:1.1rem;font-style:italic;color:var(--muted);line-height:1.65;margin-bottom:1.25rem}
.paper-tnb .article-byline{display:flex;flex-wrap:wrap;gap:.75rem;align-items:baseline;padding:.75rem 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-bottom:1.75rem}
.paper-tnb .byline-author{font-family:'Jost',sans-serif;font-size:.82rem;font-weight:600;color:var(--navy)}
.paper-tnb .byline-role{font-family:'Jost',sans-serif;font-size:.78rem;color:var(--muted)}
.paper-tnb .byline-sep{color:var(--border)}
.paper-tnb .byline-date{font-family:'JetBrains Mono',monospace;font-size:.68rem;color:var(--muted);letter-spacing:.05em;margin-left:auto}
.paper-tnb .article-body p{font-family:'Georgia',serif;font-size:1rem;line-height:1.95;color:var(--text);margin-bottom:1.4rem}
.paper-tnb .article-body p:first-child::first-letter{font-family:'Cormorant Garamond',serif;font-size:3.2rem;font-weight:700;color:var(--navy);float:left;line-height:.8;margin:.05em .12em 0 0}
.paper-tnb .q-block{margin:1.75rem 0;padding:0}
.paper-tnb .q-label{font-family:'JetBrains Mono',monospace;font-size:.62rem;letter-spacing:.15em;text-transform:uppercase;color:var(--tnb-blue);margin-bottom:.4rem}
.paper-tnb .q-text{font-family:'Georgia',serif;font-size:1rem;line-height:1.85;color:var(--text);margin:0}
.paper-tnb .q-text em{font-style:italic}
.paper-tnb .pull-quote{border-left:3px solid var(--tnb-blue);padding:.85rem 1.25rem;margin:1.75rem 0;background:var(--tnb-tint)}
.paper-tnb .pull-quote p{font-family:'Cormorant Garamond',serif;font-size:1.2rem;font-style:italic;color:var(--navy);line-height:1.6;margin-bottom:0}
.paper-tnb .article-rule{border:none;border-top:1px solid var(--border);margin:2rem 0}
.paper-tnb .author-bio{background:var(--cream);border-top:2px solid var(--tnb-blue-dk);padding:1rem 1.25rem;margin-top:2.5rem;font-size:.8rem;color:var(--muted);font-family:'Jost',sans-serif;line-height:1.65}
.paper-tnb .author-bio strong{color:var(--text);font-weight:500}
.paper-tnb .article-nav{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 0;border-top:1px solid var(--border);margin-top:1.5rem}
.paper-tnb .article-nav a{font-family:'JetBrains Mono',monospace;font-size:.65rem;letter-spacing:.1em;color:var(--tnb-blue);text-decoration:none;text-transform:uppercase}
.paper-tnb .article-nav a:hover{color:var(--navy)}
@media(max-width:820px){.tnb-main{padding:.75rem 1rem}.article-wrap{padding:2rem 1rem 4rem}.byline-date{margin-left:0;width:100%}}

/* ── The Dorven Ledger (small-town weekly, parchment & ink) ── */
.paper-ledger{--ldg-bg:#f2eee2;--ldg-ink:#2a2416;--ldg-ink2:#3a3428;--ldg-muted:#6a6252;--ldg-rule:#d8cfb8;--ldg-accent:#8a5a2a}
.paper-ledger .ledger-masthead{background:var(--ldg-bg);border-bottom:3px double var(--ldg-ink2);padding:1.1rem 2rem}
.paper-ledger .ledger-inner{max-width:680px;margin:0 auto}
.paper-ledger .ledger-top{display:flex;justify-content:space-between;font-family:'JetBrains Mono',monospace;font-size:.58rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ldg-muted);padding-bottom:.6rem;margin-bottom:.6rem;border-bottom:1px solid var(--ldg-rule)}
.paper-ledger .ledger-name{font-family:'Cormorant Garamond',serif;font-weight:700;font-size:clamp(1.8rem,4.5vw,2.6rem);color:var(--ldg-ink);text-align:center;letter-spacing:.03em}
.paper-ledger .ledger-tagline{font-family:'Jost',sans-serif;font-size:.78rem;color:var(--ldg-muted);text-align:center;margin-top:.2rem;font-style:italic}
.paper-ledger .article-wrap{max-width:640px;margin:0 auto;padding:2.5rem 2rem 5rem}
.paper-ledger .article-section{font-family:'JetBrains Mono',monospace;font-size:.58rem;letter-spacing:.2em;text-transform:uppercase;color:var(--ldg-accent);margin-bottom:.8rem;padding-bottom:.55rem;border-bottom:2px solid var(--ldg-ink2)}
.paper-ledger .article-headline{font-family:'Cormorant Garamond',serif;font-size:clamp(1.6rem,3.6vw,2.15rem);font-weight:700;color:var(--ldg-ink);line-height:1.2;margin-bottom:.65rem}
.paper-ledger .article-deck{font-family:'Cormorant Garamond',serif;font-size:1rem;font-style:italic;color:var(--ldg-muted);line-height:1.6;margin-bottom:1.1rem}
.paper-ledger .article-byline{display:flex;flex-wrap:wrap;gap:.7rem;align-items:baseline;padding:.65rem 0;border-top:1px solid var(--ldg-rule);border-bottom:1px solid var(--ldg-rule);margin-bottom:1.5rem}
.paper-ledger .byline-author{font-family:'Jost',sans-serif;font-size:.8rem;font-weight:600;color:var(--ldg-ink)}
.paper-ledger .byline-role{font-family:'Jost',sans-serif;font-size:.76rem;color:var(--ldg-muted)}
.paper-ledger .byline-sep{color:var(--ldg-rule)}
.paper-ledger .byline-date{font-family:'JetBrains Mono',monospace;font-size:.66rem;color:var(--ldg-muted);letter-spacing:.05em;margin-left:auto}
.paper-ledger .article-body p{font-family:'Georgia',serif;font-size:.98rem;line-height:1.85;color:var(--ldg-ink);margin-bottom:1.3rem}
.paper-ledger .article-body p:first-child::first-letter{font-family:'Cormorant Garamond',serif;font-size:2.6rem;font-weight:700;color:var(--ldg-accent);float:left;line-height:.8;margin:.05em .1em 0 0}
.paper-ledger .article-rule{border:none;border-top:1px solid var(--ldg-rule);margin:1.75rem 0}
.paper-ledger .author-bio{background:var(--ldg-bg);border-top:2px solid var(--ldg-accent);padding:.9rem 1.1rem;margin-top:2.25rem;font-size:.78rem;color:var(--ldg-muted);font-family:'Jost',sans-serif;line-height:1.6}
.paper-ledger .author-bio strong{color:var(--ldg-ink);font-weight:500}
.paper-ledger .article-nav{display:flex;justify-content:space-between;align-items:center;padding:1.1rem 0;border-top:1px solid var(--ldg-rule);margin-top:1.4rem}
.paper-ledger .article-nav a{font-family:'JetBrains Mono',monospace;font-size:.63rem;letter-spacing:.1em;color:var(--ldg-accent);text-decoration:none;text-transform:uppercase}
.paper-ledger .article-nav a:hover{color:var(--ldg-ink)}
@media(max-width:820px){.ledger-masthead{padding:1rem}.article-wrap{padding:2rem 1rem 4rem}.byline-date{margin-left:0;width:100%}}


/* ── WORLD CAROUSEL (story strip) ─────────────────────────────────────────
   Transparent background — only the cards and arrows read. Reads
   collections.world; live-updates when a world file is dropped in. */
.wcar{position:relative;display:flex;align-items:center;gap:.5rem;margin:1rem 0 2rem}
.wcar-track{display:flex;gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;padding:.5rem .25rem 1rem;scrollbar-width:none;-ms-overflow-style:none}
.wcar-track::-webkit-scrollbar{display:none}
.wcar-card{flex:0 0 260px;scroll-snap-align:start;background:var(--cream);border:1px solid var(--border);border-radius:4px;overflow:hidden;text-decoration:none;color:inherit;transition:transform .18s,box-shadow .18s;display:flex;flex-direction:column}
.wcar-card:hover{transform:translateY(-3px);box-shadow:0 6px 22px rgba(15,30,56,.14)}
.wcar-img{height:170px;background-size:cover;background-position:center;background-color:var(--navy2)}
.wcar-body{padding:.85rem 1rem 1rem}
.wcar-badge{display:inline-block;font-family:'JetBrains Mono',monospace;font-size:.55rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold2);margin-bottom:.4rem}
.wcar-title{font-family:'Cormorant Garamond',serif;font-size:1.1rem;font-weight:600;color:var(--navy);line-height:1.25;margin-bottom:.4rem}
.wcar-meta{font-family:'Jost',sans-serif;font-size:.72rem;color:var(--muted);line-height:1.4}
.wcar-card-more{background:var(--navy);align-items:center;justify-content:center}
.wcar-more-inner{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:.5rem;padding:1.5rem}
.wcar-more-text{font-family:'JetBrains Mono',monospace;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--cream);text-align:center}
.wcar-more-arrow{font-size:1.4rem;color:var(--gold)}
.wcar-btn{flex:0 0 auto;width:38px;height:38px;border-radius:50%;border:1px solid var(--border);background:var(--cream);color:var(--navy);font-size:1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .18s,color .18s}
.wcar-btn:hover{background:var(--navy);color:var(--cream)}
@media(max-width:720px){.wcar-btn{display:none}.wcar-card{flex-basis:220px}}


/* ---- GLOSSARY INLINE DEFINITIONS -------------------------------------
   Applied automatically at build time by the glossaryDefine transform in
   eleventy.config.mjs. Definitions come from _data/glossary.json.
   Hover shows the bubble on desktop; tabindex="0" means tap triggers
   :focus on mobile, so the same markup works on touch without JS. */
.def{
  border-bottom:1px dotted var(--gold2);
  cursor:help;
  position:relative;
}
.def:hover .def-pop,
.def:focus .def-pop{opacity:1;visibility:visible;transform:translateY(0)}
.def-pop{
  position:absolute;
  left:0;
  bottom:calc(100% + .5rem);
  width:min(20rem,80vw);
  background:var(--ink,#0f1e38);
  color:#eee;
  font-family:'Jost',sans-serif;
  font-size:.82rem;
  font-style:normal;
  font-weight:400;
  line-height:1.5;
  text-align:left;
  letter-spacing:normal;
  text-transform:none;
  padding:.6rem .8rem;
  border-radius:7px;
  opacity:0;
  visibility:hidden;
  transform:translateY(4px);
  transition:opacity .16s,transform .16s,visibility .16s;
  z-index:60;
  box-shadow:0 8px 24px rgba(15,30,56,.28);
  pointer-events:none;
}
/* near the right edge, flip the bubble so it doesn't overflow the viewport */
.def:nth-last-child(-n+3) .def-pop{left:auto;right:0}
@media print{ .def-pop{display:none} .def{border-bottom:none;position:static} }

/* Transparent hit areas over the atlas's ordinary SVG state labels.
   Match the label typography so the whole name remains clickable. */
.state-map-link,
.state-map-link:hover,
.state-map-link:focus,
.state-map-link:active,
.state-map-link:visited {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 8px 9px;
  color: transparent;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-shadow: none;
  text-decoration: none;
  cursor: pointer;
}
.state-map-link:focus-visible {
  outline: 2px solid #5a4524;
  outline-offset: 2px;
  border-radius: 3px;
}

/* Recurring Living Crossroads artwork; episode and activation live in _data/crossroads.json. */
.living-crossroads{max-width:780px;margin:0 auto;padding:2.5rem 0;color:var(--navy,#1B2A4A)}
.crossroads-home{padding:0 1.25rem;background:var(--cream,#F5F0E8)}
.crossroads-eyebrow,.crossroads-label{font-family:'JetBrains Mono',monospace;font-size:.62rem;letter-spacing:.12em;text-transform:uppercase}
.crossroads-eyebrow{color:var(--muted,#7a7060);margin-bottom:.6rem}
.living-crossroads h2{font-family:'Cormorant Garamond',serif;font-size:2.2rem;font-weight:500;margin:0 0 1rem}
.crossroads-feature{display:block;overflow:hidden;background:#1B2A4A;color:#F5F0E8;border:1px solid #bfa56f;text-decoration:none}
.crossroads-feature:focus-visible{outline:3px solid #a8843a;outline-offset:4px}
.crossroads-art{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.crossroads-caption{padding:1.4rem 1.6rem}
.crossroads-label,.crossroads-action{color:#dfc679}
.crossroads-feature h3{font-family:'Cormorant Garamond',serif;font-size:1.9rem;font-weight:500;margin:.4rem 0}
.crossroads-feature p{font-size:.95rem;line-height:1.7;margin:0 0 .8rem}
.crossroads-action{font-weight:600}
a.crossroads-feature:hover .crossroads-action{text-decoration:underline;text-underline-offset:4px}

/* Between installments, reserve the large artwork for an active Crossroads story. */
.living-crossroads.crossroads-standby{max-width:none;margin:0;padding:0}
.crossroads-standby-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:.25rem 1.1rem;padding:.65rem 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);color:var(--muted)}
.living-crossroads.crossroads-standby h2{font:600 1.2rem/1.35 'Cormorant Garamond',serif;margin:0;color:var(--navy)}
.crossroads-standby-line p{font-size:.85rem;line-height:1.5;margin:0;flex:1;min-width:15rem}
.crossroads-standby-line .crossroads-eyebrow{font-size:.58rem;margin:0;white-space:nowrap}
.featured-now.featured-now-idle{padding-top:.65rem;padding-bottom:.9rem}
@media(max-width:600px){.crossroads-standby-line{align-items:flex-start;gap:.25rem .7rem}.crossroads-standby-line p{flex-basis:100%;order:2}.crossroads-standby-line .crossroads-eyebrow{order:1}}


/* September 2026 editorial hierarchy and shared discovery components. */
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#site-nav .nav-group{position:relative;color:var(--cream)}
#site-nav summary{cursor:pointer;font:500 .78rem 'Jost',sans-serif;letter-spacing:.04em;padding:.8rem .7rem;min-height:44px}
#site-nav .nav-group-links{position:absolute;right:0;top:100%;min-width:270px;background:var(--navy2);border:1px solid var(--gold2);padding:.6rem;box-shadow:0 12px 24px #0003;z-index:210}
#site-nav .nav-group-links a{display:block;padding:.7rem;text-transform:none;white-space:normal;font-size:.9rem;color:var(--cream)}
#site-nav a:hover,#site-nav a[aria-current]{color:var(--gold)}
#site-nav .hamburger{width:44px;height:44px;align-items:center;justify-content:center}
#site-nav .nav-links>a{padding:.8rem;min-height:44px;color:var(--cream)}
#site-nav .mobile-menu{max-height:calc(100dvh - 56px);overflow:auto}
#site-nav .mobile-menu .nav-group-links{position:static;box-shadow:none;min-width:0;border:0;border-left:1px solid var(--gold);margin-left:.8rem}
#site-nav .mobile-menu summary{color:var(--gold);font-size:1rem}
#site-nav .mobile-menu a{min-height:44px}
.footer-utilities{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;justify-content:center;margin:1rem auto;max-width:850px}
.footer-utilities a{color:var(--cream);font-size:.85rem;padding:.35rem}
.refresh-wrap{width:min(1100px,100%);margin:0 auto;padding:3rem 1.5rem}
.refresh-wrap h1,.editorial-page h1{font:600 clamp(2.5rem,5vw,4.2rem)/1.08 'Cormorant Garamond',serif;margin:.6rem 0 1.25rem}
.refresh-wrap h2,.editorial-page h2,.current-files h2{font:600 clamp(1.8rem,3vw,2.6rem)/1.2 'Cormorant Garamond',serif;margin:.5rem 0 1rem}
.refresh-wrap h3,.editorial-page h3{font:600 1.55rem/1.2 'Cormorant Garamond',serif;margin:.5rem 0}
.section-kicker,.meta{font-family:'JetBrains Mono',monospace;font-size:.67rem;line-height:1.6;letter-spacing:.04em;color:#625a4d}
.section-kicker{display:block;text-transform:uppercase;letter-spacing:.15em;color:#765817;margin-bottom:.6rem}
.section-intro-copy{max-width:720px;margin-bottom:1.5rem}
.link-row{display:flex;flex-wrap:wrap;gap:.6rem 1.3rem;margin:1.2rem 0}
.link-row a,.text-link{color:#765817;text-underline-offset:4px;padding:.4rem 0}
.primary-action,.secondary-action{display:inline-flex;align-items:center;justify-content:center;padding:.8rem 1.2rem;min-height:44px;font:500 .95rem 'Jost',sans-serif;text-decoration:none;border:1px solid var(--navy);cursor:pointer;border-radius:0}
.primary-action{background:var(--gold);color:var(--navy2);border-color:var(--gold)}
.secondary-action{background:transparent;color:var(--navy)}
.hero-actions{display:flex;flex-wrap:wrap;gap:1rem;margin:1.8rem 0}
.hero-actions .secondary-action{color:var(--cream);border-color:#a89d82}
.navigator-disclosure{max-width:600px;margin-top:1.2rem;color:var(--cream)}
.navigator-disclosure summary{cursor:pointer;font-size:.9rem;padding:.5rem 0;color:#dfd5c1}
.hero .hero-sub{max-width:650px;color:#ded8cd;font-size:1.12rem;line-height:1.7}
#start-here{scroll-margin-top:75px}.featured-now{padding-top:1rem}.featured-now .living-crossroads{margin:0}
.gateways{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;border-block:1px solid var(--border)}
.gateways article{padding:1rem 0}.gateways h2{font-size:2rem}.gateways a{color:var(--navy);text-decoration:none}
.briefing-grid,.record-grid,.jurisdiction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
.briefing{border-top:3px solid var(--gold2);padding:1.2rem 0}.briefing h3 a,.record-card h3 a{color:var(--navy);text-decoration:none}.briefing h3 a:hover,.record-card h3 a:hover{text-decoration:underline;text-underline-offset:4px}
.briefing p,.record-card p{margin:.8rem 0;font-size:.98rem;line-height:1.7}
.record-card{padding:1.25rem 0;border-bottom:1px solid var(--border)}
.record-card h3{font:600 1.5rem/1.25 'Cormorant Garamond',serif;margin:.45rem 0}
.latest-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:0 2.5rem}.latest-grid>.record-card:first-child{grid-row:span 3;background:var(--navy);padding:2rem;color:var(--cream)}
.latest-grid>.record-card:first-child h3{font-size:2.5rem}.latest-grid>.record-card:first-child a{color:var(--cream)}.latest-grid>.record-card:first-child .meta{color:var(--gold)}
.latest-grid>.record-card:not(:first-child) p{display:none}
.quiet-tools{border-top:1px solid var(--border)}.quiet-tools details{margin-top:1.5rem}.quiet-tools summary{cursor:pointer}
.editorial-page{max-width:960px;margin:0 auto;padding:100px 1.5rem 4rem}.editorial-header{border-bottom:2px solid var(--gold);padding-bottom:2rem;margin-bottom:2rem}.editorial-header p{font-size:1.12rem;max-width:760px}
.editorial-page>h2{margin-top:2.5rem}.editorial-page p{margin:.8rem 0}.editorial-page a{color:#765817}
.record-timeline{padding-left:1.5rem}.record-timeline li{padding-left:.5rem}
.status-panel{border-left:3px solid var(--gold2);background:var(--cream2);padding:1.5rem;margin:1.5rem 0}
.mechanism-strip{display:flex;gap:1rem;flex-wrap:wrap;border-block:1px solid var(--border);padding:1rem 0;margin:1.5rem 0;font-size:.88rem}.mechanism-strip>*{flex:1;min-width:130px}.mechanism-strip>*+*::before{content:'→ ';color:#765817}
.regional-figure img{width:100%;height:260px;object-fit:cover}.regional-figure figcaption{font-size:.85rem;margin:.7rem 0}
.world-orientation{display:grid;grid-template-columns:1.1fr 1fr;gap:2.5rem;padding-top:110px;align-items:center}.world-orientation h1{font-size:3.3rem}.world-orientation img{width:100%;display:block}.world-orientation figcaption{font-size:.85rem;margin-top:.6rem}.torenthia-home{background:var(--cream)}
.torenthia-flag-figure{margin:0;max-width:480px;justify-self:center}.torenthia-flag-figure>a{display:block;border:1px solid #8a8070;box-shadow:0 10px 28px rgba(30,24,12,.22)}.torenthia-flag-figure img{aspect-ratio:3/2;object-fit:cover}.torenthia-flag-figure figcaption{text-align:center}
.torenthia-home .stats-band a{color:var(--gold)}.torenthia-home .sblock>p{color:#d8d2c6}
.jurisdiction-card{padding:1.5rem;background:var(--cream2);scroll-margin-top:75px}.jurisdiction-card dl,.territory-facts{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin:1rem 0}.jurisdiction-card dt,.territory-facts dt{font-weight:500}.jurisdiction-card p{margin:.6rem 0}
.state-harren{--state-accent:#8c2018}.state-varek{--state-accent:#355344}.state-norvane{--state-accent:#38546b}.state-kelvant{--state-accent:#80632a}.state-rhovane{--state-accent:#075563}.state-corindal{--state-accent:#9d2817}.state-profile .state-heading{border-top:3px solid var(--state-accent);padding-top:1.5rem}.state-profile .status-panel{border-color:var(--state-accent)}
.archive-filters{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1.5rem 0}.archive-filters label{display:flex;flex-direction:column;gap:.4rem;font-size:.88rem}.archive-filters label:first-child{grid-column:1/-1}
.archive-filters input,.archive-filters select,#historySearch input{font:inherit;padding:.75rem;background:white;color:var(--navy);border:1px solid #8a8070;min-width:0;min-height:44px}
.record-hero{padding-top:100px!important}.record-sub{color:#d8d2c6!important}#archiveMore{margin:1.5rem 0}.related-world{border-top:1px solid var(--gold2);margin-top:2rem}.related-world h2{font-size:2rem}
.privacy-hint{font-size:.85rem!important;line-height:1.5!important;margin:.7rem 0!important}.privacy-hint a{color:inherit}
.legacy-atlas-note{margin-top:75px;padding:1rem;text-align:center}.legacy-atlas-note a{color:var(--gold)}
.article-navigation{position:sticky;top:70px;align-self:start;max-height:calc(100vh - 85px);overflow:auto;width:230px;padding:1rem;font-size:.85rem}.article-navigation a{display:block;padding:.4rem;color:var(--navy);text-decoration:none}.reader-layout{display:grid!important;grid-template-columns:230px minmax(0,1fr);max-width:1300px!important;margin:auto!important;padding-top:75px!important}.reader-layout .main{min-width:0;padding-top:1rem!important}.article-navigation summary{cursor:pointer;font-weight:600}.article-opening{font-size:.92rem;padding:.75rem 0 1.5rem;border-bottom:1px solid var(--border);margin-bottom:1.5rem}.article-opening .link-row{margin:.5rem 0}.article-section{scroll-margin-top:75px}.reading-paths{padding:1rem;background:var(--cream2);margin:1.5rem 0}.reading-paths summary{cursor:pointer;font-weight:500}.reading-paths ul{padding-left:1.2rem}.reading-paths li{margin:.6rem 0}
.scenario-library{padding-top:2rem}.scenario-library details{margin:1.2rem 0;border-top:1px solid var(--border);padding-top:1rem}.scenario-library summary{cursor:pointer;font:600 1.7rem 'Cormorant Garamond',serif;padding:.5rem 0}.scenario-library .scenario-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}.scenario-reading-note{max-width:820px;margin:1rem auto;padding:1rem;border-left:3px solid var(--gold2);font-size:.9rem}.scenario-end{max-width:820px;margin:2rem auto;padding:2rem;border-top:2px solid var(--gold2)}
.transparency-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}.transparency-card{border-top:3px solid var(--gold2);padding:1rem 0}.transparency-card dt{font-weight:600;margin-top:.7rem}.transparency-card dd{margin:0}
#historySearch{display:flex;flex-direction:column;gap:.5rem;margin:1.5rem 0}.hist-entry summary{cursor:pointer;padding:1rem 0}.hist-entry summary .hist-title{display:inline}.hist-entry summary .hist-tag{display:block}.hist-entry[open]{margin-bottom:1.5rem}
.dfn:focus .dfn-box,.sref:focus .dfn-box{opacity:1;pointer-events:auto}.gov-node:focus-visible{outline:3px solid #765817;outline-offset:4px}
@media(min-width:901px){#site-nav .hamburger{display:none}#site-nav .mobile-menu{display:none!important}}
@media(max-width:900px){#site-nav .nav-links{display:none}#site-nav .hamburger{display:flex}.reader-layout{display:block!important;padding-top:65px!important}.article-navigation{position:static;width:auto;max-height:none;margin:0 1rem;border:1px solid var(--border)}.world-orientation{grid-template-columns:1fr;padding-top:90px}.world-orientation img{max-height:300px;object-fit:cover}.gateways{grid-template-columns:1fr;gap:0}.gateways article+article{border-top:1px solid var(--border)}}
@media(max-width:600px){.refresh-wrap{padding:2rem 1.2rem}.world-orientation{padding-top:90px}.briefing-grid,.record-grid,.jurisdiction-grid,.latest-grid,.transparency-grid,.scenario-library .scenario-grid{grid-template-columns:1fr}.latest-grid>.record-card:first-child{grid-row:auto;padding:1.5rem}.latest-grid>.record-card:first-child h3{font-size:2rem}.archive-filters{grid-template-columns:1fr}.hero-actions>*{width:100%}.world-orientation h1{font-size:2.6rem}.regional-figure img{height:auto}.scenario-end{padding:1.2rem}.footer-utilities{flex-direction:column}.hero-seal-wrap{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{#site-nav,.footer-social,.hero-actions,.article-navigation,.archive-filters,#archiveMore,.related-world{display:none!important}.reader-layout{display:block!important;padding:0!important}.editorial-page{padding:0}.record-grid,.briefing-grid,.jurisdiction-grid{display:block}.record-card,.jurisdiction-card{break-inside:avoid}.hist-entry>div{display:block!important}.refresh-wrap{padding:1rem 0}a{color:#111!important}.latest-grid>.record-card:first-child{background:white;color:black}.latest-grid>.record-card:first-child a{color:black}}
.mechanism-preview{margin:1.5rem 0}.mechanism-preview ol{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;padding:0}.mechanism-preview li{padding:1rem;background:var(--navy);color:var(--cream);border-top:3px solid var(--gold)}.mechanism-preview strong,.mechanism-preview span{display:block}.mechanism-preview strong{font-family:'Cormorant Garamond',serif;font-size:1.25rem}.mechanism-preview span{font-size:.83rem}.mechanism-preview figcaption,.state-map-crop figcaption{font-size:.82rem;margin:.7rem 0}.state-map-crop svg{width:100%;max-height:260px;display:block;margin:1.5rem 0 .5rem}.node-icon{margin:0 auto .5rem}
@media(max-width:600px){.mechanism-preview ol{grid-template-columns:1fr}}
.torenthia-home .stats-band{width:100%;margin-left:0;margin-right:0}.world-orientation figcaption a{color:#765817}
.korda-map{display:block;width:100%;max-height:440px}.korda-map text{font:600 22px 'Jost',sans-serif;fill:#1b2a4a;paint-order:stroke;stroke:#f5f0e8;stroke-width:4px}.court-toc{display:flex;flex-wrap:wrap;gap:1rem;position:sticky;top:56px;z-index:5;background:var(--cream);padding:.8rem 0;border-bottom:1px solid var(--border)}.court-toc a{color:#765817;padding:.25rem}.section-head,.holding-box{scroll-margin-top:130px}#surveyRoutes a{color:var(--gold)}
@media print{.court-toc{display:none}#surveyRoutes a{color:#111}}

/* Scenario reading bridges: quiet, readable links after the story. */
.scenario-end p { line-height: 1.7; }
.scenario-end ul { padding-left: 1.25rem; }
.scenario-end li { margin: .7rem 0; line-height: 1.6; }
.scenario-end a { color: var(--navy); text-underline-offset: .18em; }
@media (max-width: 600px) {
  .scenario-end { padding: 1.25rem .5rem; }
}

/* Constitution reader: consistent ink links and an integrated contents rail. */
.constitution-reader .reader-layout a,
.constitution-reader .reader-layout a:visited,
.constitution-reader .ann-panel a,
.constitution-reader .ann-panel a:visited {
  color: var(--navy);
  text-decoration-color: var(--gold2);
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
.constitution-reader .reader-layout a:hover,
.constitution-reader .ann-panel a:hover {
  color: var(--navy2);
  text-decoration-color: currentColor;
}
.constitution-reader .reader-layout a:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 3px;
}
.constitution-reader .article-navigation {
  background: var(--cream2);
  border-top: 2px solid var(--gold2);
  border-right: 1px solid var(--border);
  padding: 1.1rem .85rem 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold2) var(--cream2);
  scrollbar-gutter: stable;
}
.constitution-reader .article-navigation summary {
  color: var(--navy);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  line-height: 1.25;
  padding: .25rem 0;
}
.constitution-reader .contents-intro {
  font-size: .78rem;
  line-height: 1.55;
  margin: .75rem 0 1rem;
  color: #5d5549;
}
.constitution-reader .article-navigation a {
  padding: .65rem .35rem;
  border-top: 1px solid var(--border);
  line-height: 1.45;
}
.constitution-reader .article-navigation a:hover,
.constitution-reader .article-navigation a:focus-visible {
  background: var(--cream);
  text-decoration: underline;
}
.constitution-reader .article-navigation::-webkit-scrollbar { width: 8px; }
.constitution-reader .article-navigation::-webkit-scrollbar-track { background: var(--cream2); }
.constitution-reader .article-navigation::-webkit-scrollbar-thumb {
  background: var(--gold2);
  border: 2px solid var(--cream2);
  border-radius: 8px;
}
@media (max-width: 900px) {
  .constitution-reader .article-navigation { border: 1px solid var(--border); border-top: 2px solid var(--gold2); }
}

/* Research notes use the same ink-and-gold links as the reader. */
.sources-page .fr-page a,
.sources-page .fr-page a:visited { color:var(--navy); text-decoration-color:var(--gold2); text-underline-offset:.2em; }
.sources-page .closing-note a,
.sources-page .closing-note a:visited { color:var(--cream); }
.sources-help { margin:1rem 0; font-size:.85rem; color:var(--text); }
.source-disclosure summary { cursor:pointer; color:var(--navy); padding:.5rem 0; font-size:.85rem; text-decoration:underline; text-decoration-color:var(--gold2); text-underline-offset:.2em; }
.source-disclosure[open] summary { margin-bottom:.5rem; }
.source-disclosure summary:focus-visible { outline:2px solid var(--gold2); outline-offset:3px; }
.sources-page #sourceNotesToggle { margin-bottom:1.5rem; }
.sources-page [id] { scroll-margin-top:80px; }
@media print {
  #sourceNotesToggle,.sources-help { display:none!important; }
  .source-disclosure::details-content { content-visibility:visible; }
  .source-disclosure > div { display:block!important; }
}

/* A compact guide to the structure of a Court opinion. */
.court-guide { position:sticky;top:56px;z-index:5;background:var(--cream2);border-top:2px solid var(--gold2);border-bottom:1px solid var(--border);margin-bottom:1.5rem; }
.court-guide summary { cursor:pointer;padding:.8rem 1rem;font:600 1.2rem 'Cormorant Garamond',serif;color:var(--navy); }
.court-guide-links { max-height:45vh;overflow:auto;padding:0 1rem .75rem;scrollbar-width:thin;scrollbar-color:var(--gold2) var(--cream2); }
.court-guide-links a { display:block;padding:.65rem 0;border-top:1px solid var(--border);text-decoration:none; }
.court-guide-links strong,.court-guide-links span { display:block; }
.court-guide-links strong { font-size:.88rem;text-decoration:underline;text-decoration-color:var(--gold2);text-underline-offset:.2em; }
.court-guide-links span { color:var(--text);font-size:.8rem; }
.court-page main a,.court-page main a:visited { color:var(--navy);text-decoration-color:var(--gold2);text-underline-offset:.2em; }
.court-guide a:focus-visible,.court-guide summary:focus-visible { outline:2px solid var(--gold2);outline-offset:2px; }
.court-page #question,.court-page #holding,.court-page #opinion,.court-page #disposition,.court-page #dissent { scroll-margin-top:125px; }
@media print { .court-guide { display:none; } }


/* Related-content rails: browse horizontally; never hide essential context here. */
.related-rail{margin:2.25rem 0;padding:1.5rem 0;border-block:1px solid var(--border)}
.related-rail-head{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.related-rail-head h2{margin:.15rem 0 .25rem;font-size:2rem}
.related-rail-head p{max-width:680px;margin:0;font-size:.9rem;line-height:1.6;color:var(--text)}
.related-rail-controls{display:flex;gap:.45rem;flex-shrink:0}
.related-rail-control{display:none;width:42px;height:42px;align-items:center;justify-content:center;border:1px solid var(--navy);background:var(--cream);color:var(--navy);font:600 1.15rem 'Jost',sans-serif;cursor:pointer}
.related-rail.is-enhanced.is-scrollable .related-rail-control{display:inline-flex}
.related-rail-control:disabled{opacity:.3;cursor:default}
.related-rail-track{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(255px,32%);gap:1rem;align-items:start;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:inline mandatory;scroll-padding-inline:.15rem;padding:.15rem .15rem .7rem;scrollbar-width:thin;scrollbar-color:var(--gold2) var(--cream2)}
.related-rail-track:focus-visible{outline:2px solid var(--gold2);outline-offset:4px}
.related-rail-card{scroll-snap-align:start;display:flex;flex-direction:column;min-height:0;background:var(--cream2);border-top:3px solid var(--gold2)}
.related-rail-card--text{min-height:190px}
.related-rail-image{display:block;aspect-ratio:16/8;overflow:hidden;background:#ddd}
.related-rail-image img{width:100%;height:100%;object-fit:cover;display:block}
.related-rail-card-body{display:flex;flex:1;flex-direction:column;padding:1rem}
.related-rail-kicker{font:500 .64rem 'JetBrains Mono',monospace;letter-spacing:.13em;text-transform:uppercase;color:#765817}

/* State constitutional-history cards */
.state-history{margin:3rem 0 1rem;padding-top:.25rem;border-top:1px solid var(--border)}
.state-history-head{max-width:700px;margin-bottom:1.25rem}.state-history-head h2{margin:.35rem 0 .5rem}.state-history-head p{color:var(--muted)}
.state-test-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:1rem}
.state-test-card{display:flex;flex-direction:column;min-height:245px;padding:1.25rem;background:var(--cream2);border-top:3px solid var(--gold2)}
.state-test-card-meta{font:500 .64rem 'JetBrains Mono',monospace!important;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:0 0 .35rem!important}
.state-test-card h3{font:600 1.55rem/1.15 'Cormorant Garamond',serif;margin:.15rem 0 .6rem}.state-test-card h3 a{color:var(--navy);text-decoration:none}.state-test-card h3 a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.state-test-card>p:not(.state-test-card-meta){margin:0 0 1rem;line-height:1.65;color:var(--text)}
.state-test-tags{display:flex;flex-wrap:wrap;gap:.35rem;margin:auto 0 .9rem}.state-test-tags a{font:500 .64rem 'JetBrains Mono',monospace;color:var(--cream)!important;background:var(--navy);padding:.22rem .48rem;border-radius:2px;text-decoration:none}.state-test-tags a:hover{background:var(--navy2)}
.state-test-card-link{font-size:.82rem;font-weight:600;text-decoration:none;margin-top:0}.state-history-more{margin-top:1rem!important;font-size:.88rem}
@media(max-width:640px){.state-test-grid{grid-template-columns:1fr}.state-test-card{min-height:0}}

.related-rail-card h3{margin:.45rem 0;font:600 1.35rem/1.2 'Cormorant Garamond',serif}
.related-rail-card h3 a{color:var(--navy);text-decoration:none}
.related-rail-card p{margin:.25rem 0 .9rem;font-size:.88rem;line-height:1.55}
.related-rail-link{margin-top:auto;color:#765817;font-size:.88rem;text-underline-offset:3px}
@media(max-width:900px){.related-rail-track{grid-auto-columns:minmax(255px,68%)}}
@media(max-width:600px){.related-rail{margin:1.75rem 0}.related-rail-head{align-items:flex-start}.related-rail-head p{display:none}.related-rail-track{grid-auto-columns:84%}.related-rail-control{width:40px;height:40px}}
@media print{.related-rail-track{display:grid;grid-template-columns:repeat(2,1fr);overflow:visible}.related-rail-card{break-inside:avoid}.related-rail-controls{display:none}}


/* Constitution discovery rails: contextual connections without interrupting the text. */
.article-opening .article-related-rail{margin:1rem 0 .25rem;padding:1rem 0;border-bottom:0}
.article-opening .article-related-rail .related-rail-head{margin-bottom:.7rem;align-items:center}
.article-opening .article-related-rail .related-rail-head h3{margin:.1rem 0;font:600 1.25rem/1.2 'Cormorant Garamond',serif;color:var(--navy)}
.article-opening .article-related-rail .related-rail-track{grid-auto-columns:minmax(210px,31%);gap:.75rem}
.article-opening .article-related-rail .related-rail-card{min-height:175px;background:var(--cream)}
.article-opening .article-related-rail .related-rail-card-body{padding:.85rem}
.article-opening .article-related-rail .related-rail-card h4{margin:.35rem 0;font:600 1.08rem/1.25 'Cormorant Garamond',serif}
.article-opening .article-related-rail .related-rail-card h4 a{color:var(--navy);text-decoration:none}
.article-opening .article-related-rail .related-rail-card p{font-style:normal;font-size:.8rem;line-height:1.45;margin:.2rem 0 .65rem}
@media(max-width:900px){.article-opening .article-related-rail .related-rail-track{grid-auto-columns:68%}}
@media(max-width:600px){.article-opening .article-related-rail .related-rail-track{grid-auto-columns:86%}.article-opening .article-related-rail .related-rail-head>div:first-child{min-width:0}}
@media print{.article-related-rail{display:none!important}}


/* Visual world/source rails */
.visual-world-rail .related-rail{margin-top:.75rem}
.visual-world-rail .related-rail-card{min-height:300px}
.visual-world-rail .related-rail-image{aspect-ratio:16/9}
.source-identity-rail .related-rail{margin-top:.5rem}
.source-identity-rail .related-rail-card{min-height:250px}
.source-identity-rail .related-rail-image{aspect-ratio:16/7;background:#fff;padding:.8rem 1rem;border-bottom:1px solid var(--border)}
.source-identity-rail .related-rail-image img{object-fit:contain}
.source-identity-rail .related-rail-card p{font-size:.82rem}
@media(max-width:600px){.source-identity-rail .related-rail-card{min-height:235px}.source-identity-rail .related-rail-image{aspect-ratio:16/6}}


/* Mobile density and touch-target cleanup */
.archive-filter-disclosure{margin:1.25rem 0;border-block:1px solid var(--border)}
.archive-filter-disclosure>summary{cursor:pointer;list-style:none;min-height:44px;display:flex;align-items:center;justify-content:space-between;font:600 .82rem 'Jost',sans-serif;color:var(--navy);padding:.65rem 0}
.archive-filter-disclosure>summary::-webkit-details-marker{display:none}
.archive-filter-disclosure>summary::after{content:'＋';font-size:1rem;color:#765817}
.archive-filter-disclosure[open]>summary::after{content:'−'}
@media(min-width:601px){.archive-filter-disclosure>summary{display:none}.archive-filter-disclosure{border:0;margin:0}}
.archive-filters input,.archive-filters select,.archive-filters button{min-height:44px}
.mechanism-strip a,.link-row a,.related-rail-link{display:inline-flex;align-items:center;min-height:40px}
@media(max-width:600px){
  .related-rail-head{gap:.6rem}
  .related-rail-controls{display:none!important}
  .related-rail-track{grid-auto-columns:82%;gap:.75rem;padding-bottom:.55rem}
  .related-rail-card{min-height:0}
  .related-rail-card-body{padding:.85rem}
  .article-opening .article-related-rail{margin:.65rem 0 .2rem;padding:.7rem 0}
  .article-opening .article-related-rail .related-rail-track{grid-auto-columns:78%}
  .article-opening .article-related-rail .related-rail-card{min-height:0}
  .article-opening .article-related-rail .related-rail-card p{display:none}
  .article-opening .article-related-rail .related-rail-link{min-height:36px;font-size:.82rem}
  .source-identity-rail .related-rail-card p{display:none}
  .source-identity-rail .related-rail-card{min-height:0}
  .source-identity-rail .related-rail-image{padding:.55rem .8rem}
  .visual-world-rail .related-rail-card{min-height:0}
  .archive-filters{gap:.75rem;margin:.4rem 0 1rem}
  .archive-filters label{font-size:.82rem}
  .mechanism-strip{gap:.5rem}
  .mechanism-strip>*{min-width:calc(50% - .5rem)}
}


/* Accessibility reinforcement */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.companion-links{max-width:900px;margin:1rem auto 0;padding:0 2rem;display:flex;flex-wrap:wrap;gap:.55rem 1rem}
.companion-links--inset{padding:0;margin:-2rem 0 3rem}
.companion-links a{display:inline-flex;align-items:center;min-height:44px;color:#5f4512;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.companion-links a:hover,.companion-links a:focus-visible{text-decoration-thickness:2px}
@media(max-width:640px){.companion-links{padding:0 1rem}.companion-links--inset{padding:0;margin:-2rem 0 2.25rem}}


.search-close,.alpha-close,.nav-drawer-link{min-width:44px;min-height:44px}
.search-close{display:inline-flex;align-items:center;justify-content:center}
.nav-drawer-link{display:flex;align-items:center}

@media(prefers-contrast:more){
  :root{--muted:#454545;--border:#7f7564}
  a{text-decoration-thickness:2px}
  .section-kicker,.related-rail-kicker,.meta{font-weight:700}
  .related-rail-card,.status-panel,.record-card{border-width:2px}
}
@media(forced-colors:active){
  :focus-visible{outline:3px solid Highlight!important;outline-offset:3px!important}
  .related-rail-card,.record-card,.status-panel,.archive-filter-disclosure,.article-navigation{border:1px solid CanvasText}
  .area-pt-core,.area-pt-ring{forced-color-adjust:auto}
}


/* Semantic accessibility pass */
.meta-table th[scope="row"]{padding:.5rem .75rem;vertical-align:top;border-bottom:1px solid var(--border);font-family:'JetBrains Mono',monospace;font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);width:32%;white-space:nowrap;text-align:left;font-weight:500}
.meta-table tr:first-child th[scope="row"]{border-top:2px solid var(--navy)}
.dcard[role="tab"]:focus-visible{outline:3px solid var(--gold2);outline-offset:-3px}
.diagram-section[role="tabpanel"]:focus-visible{outline:2px solid var(--gold2);outline-offset:-2px}
.node-panel[hidden]{display:none!important}
@media(max-width:600px){.meta-table th[scope="row"]{white-space:normal;width:40%}}


/* Form and long-form accessibility */
.s-result:focus{outline:none}
.s-result:focus-visible{outline:none}
.article-subhead,.doc-section-label{font-family:inherit}
h2.article-subhead,h2.doc-section-label{font-weight:inherit}
.s-custom-body[hidden]{display:none!important}
[role="progressbar"]{position:relative}


/* Quick Sheet semantic elements */
h1.qs-title,h2.section-label{padding-block:0}
h1.qs-title:focus,h2.section-label:focus{outline:none}

/* Complete-card rails: the gap is included in the page width at every size. */
.related-rail-track,
.article-opening .article-related-rail .related-rail-track{
  --rail-columns:3; --rail-gap:1rem;
  gap:var(--rail-gap);
  grid-auto-columns:calc((100% - (var(--rail-columns) - 1) * var(--rail-gap)) / var(--rail-columns));
  padding:0;scroll-padding-inline:0;scrollbar-width:none;
}
.related-rail-track::-webkit-scrollbar{display:none}
.related-rail-card{min-width:0;overflow-wrap:anywhere}
.related-rail-control{min-width:44px;min-height:44px}
@media(max-width:1000px){
  .related-rail-track,.article-opening .article-related-rail .related-rail-track{--rail-columns:2}
}
@media(max-width:600px){
  .related-rail-track,.article-opening .article-related-rail .related-rail-track{--rail-columns:1}
  .related-rail-controls{display:flex!important}
}
@media print{
  .related-rail-track{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
  .related-rail-controls{display:none!important}
}


/* Polished State Constitution presentation */
.state-constitution-page{max-width:1180px;margin:0 auto;padding:96px 28px 72px}
.state-constitution-hero{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:2rem;align-items:start;padding-bottom:2rem;border-bottom:1px solid var(--border)}
.state-constitution-hero--text-only{grid-template-columns:1fr}
.state-constitution-hero h1{font:600 clamp(2.6rem,6vw,4.6rem)/1 'Cormorant Garamond',serif;color:var(--navy);margin:.35rem 0 .65rem;max-width:850px}
.state-constitution-subtitle{font:italic 1.25rem/1.5 'Cormorant Garamond',serif;color:#3d4a63;max-width:760px;margin-bottom:1rem}
.state-constitution-flag{width:100%;height:auto;display:block;border:1px solid var(--border);box-shadow:0 2px 10px #0002}
.state-constitution-layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:3rem;align-items:start;margin-top:2rem}
.state-constitution-toc{position:sticky;top:76px;max-height:calc(100vh - 92px);overflow:auto;padding-right:.5rem}
.state-constitution-toc>a{display:block;color:var(--muted);text-decoration:none;font-size:.78rem;line-height:1.4;padding:.38rem .35rem;border-left:2px solid transparent}
.state-constitution-toc>a:hover,.state-constitution-toc>a:focus-visible{color:var(--navy);border-left-color:var(--gold)}
.state-constitution-text{min-width:0;max-width:760px}
.state-constitution-preamble{padding:1.5rem 0 2.5rem}
.state-constitution-article{margin:0 0 3rem;scroll-margin-top:78px}
.state-constitution-article-head{border-bottom:2px solid var(--navy);padding-bottom:.65rem;margin-bottom:1.2rem}
.state-constitution-article-head>span{font:500 .68rem 'JetBrains Mono',monospace;letter-spacing:.14em;text-transform:uppercase;color:var(--gold2)}
.state-constitution-article-head h2{font:600 2rem/1.1 'Cormorant Garamond',serif;color:var(--navy);margin:.25rem 0 0}
.state-constitution-provision{padding:1.25rem 0 1.65rem;border-bottom:1px solid var(--rule);scroll-margin-top:78px}
.state-constitution-provision-head{display:flex;align-items:baseline;gap:.75rem;margin-bottom:.8rem}
.state-constitution-anchor{font:500 .72rem 'JetBrains Mono',monospace;color:var(--gold2);text-decoration:none;white-space:nowrap}
.state-constitution-provision-head h3{font:600 1.45rem/1.2 'Cormorant Garamond',serif;color:var(--navy);margin:0}
.state-constitution-body p{margin:0 0 .9rem;line-height:1.8}
.state-constitution-body ul,.state-constitution-body ol{margin:.2rem 0 1rem 1.25rem;padding-left:1rem}.state-constitution-body li{margin:.25rem 0;line-height:1.7}
.state-tested{margin:1rem 0 0;padding:1rem 1.1rem;background:var(--cream2);border-left:3px solid var(--gold)}
.state-tested-label{display:block;font:500 .62rem 'JetBrains Mono',monospace;letter-spacing:.14em;text-transform:uppercase;color:#765817;margin-bottom:.55rem}
.state-tested>a{display:block;color:var(--navy);text-decoration:none;padding:.35rem 0}.state-tested>a+a{border-top:1px solid var(--border)}
.state-tested>a strong{display:block;font-family:'Cormorant Garamond',serif;font-size:1.05rem}.state-tested>a span{display:block;color:var(--muted);font-size:.82rem;line-height:1.5;margin-top:.1rem}
.state-constitution-adopted{font:italic 1.1rem 'Cormorant Garamond',serif;color:var(--muted);padding-top:1rem}
.state-constitution-toc-mobile{display:none}
.state-tested-provisions{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.55rem}.state-tested-provisions a{font:500 .62rem 'JetBrains Mono',monospace;color:#765817;text-decoration:none;border:1px solid var(--border);padding:.15rem .38rem}.state-tested-provisions a:hover{text-decoration:underline;text-underline-offset:2px}
@media(max-width:820px){
  .state-constitution-page{padding:78px 18px 56px}
  .state-constitution-hero{grid-template-columns:1fr}.state-constitution-flag{width:150px}
  .state-constitution-layout{grid-template-columns:1fr;gap:1rem}.state-constitution-toc--desktop{display:none}
  .state-constitution-toc-mobile{display:block;border-block:1px solid var(--border);margin:.25rem 0 1rem}
  .state-constitution-toc-mobile summary{cursor:pointer;list-style:none;padding:.8rem 0;font:500 .72rem 'JetBrains Mono',monospace;letter-spacing:.12em;text-transform:uppercase;color:#765817}
  .state-constitution-toc-mobile summary::-webkit-details-marker{display:none}.state-constitution-toc-mobile summary::after{content:' +';}.state-constitution-toc-mobile[open] summary::after{content:' −';}
  .state-constitution-toc-mobile nav{position:static;inset:auto;z-index:auto;height:auto;background:none;backdrop-filter:none;border:0;display:grid;grid-template-columns:1fr;align-items:stretch;justify-content:normal;max-height:55vh;overflow:auto;padding:0 0 .75rem}
  .state-constitution-toc-mobile a{color:var(--muted);text-decoration:none;font-size:.85rem;padding:.45rem 0;border-top:1px solid var(--rule)}
  .state-constitution-toc-mobile a:hover,.state-constitution-toc-mobile a:focus-visible{color:var(--navy)}
}

.hub-doors{display:grid;gap:.7rem;margin:1.5rem 0 .4rem}
.hub-door{display:block;text-decoration:none;color:inherit;border:1px solid #cfc6b0;border-left:4px solid var(--gold2);background:#fbf8ef;padding:.8rem 1rem;transition:background .15s,border-color .15s}
.hub-door:hover,.hub-door:focus-visible{background:#fff;border-color:var(--navy)}
.hub-door-kicker{display:block;font-family:'JetBrains Mono',monospace;font-size:.62rem;letter-spacing:.14em;text-transform:uppercase;color:#765817}
.hub-door-title{display:block;font:600 1.45rem/1.2 'Cormorant Garamond',serif;color:var(--navy);margin:.15rem 0}
.hub-door-text{display:block;font-size:.92rem;line-height:1.5;color:#3d382f}
.hub-also{font-size:.88rem;margin:.6rem 0 0}.hub-also a{color:#765817;text-underline-offset:4px}
.voices{margin-top:1.8rem;padding-top:1.2rem;border-top:1px solid #d8cfba}
.voices-list{list-style:none;margin:0;padding:0}.voices-list li{padding:.55rem 0;border-bottom:1px solid #e6dfcd}
.voices-list a{font:600 1.15rem/1.3 'Cormorant Garamond',serif;color:var(--navy);text-underline-offset:4px}.voices-list .meta{display:block}

.stats-band .sblock h2{font:600 1.5rem/1.2 'Cormorant Garamond',serif;color:#f0e8d8;margin:.2rem 0 .6rem}

/* Torenthia pages: the logo carries a quiet tag, and the footer says the country is fictional. */
.nav-tag{font-family:'Jost',sans-serif;font-size:.58rem;letter-spacing:.14em;text-transform:uppercase;color:rgba(245,240,232,.55);margin-left:.35rem;white-space:nowrap}
@media(max-width:1180px){.nav-tag{display:none}}
.footer-fiction a{color:inherit}
