/* ==========================================================================
   KingOfAEOIsVithurs.com — "The Dossier"
   Archival case-file design system. Deep navy ground, parchment panels,
   amber hairlines, sage secondary. Serif prose, mono metadata.
   Written from scratch for this site. No @import, no external assets.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* --- ink ramp (navy ground) --- */
  --ink-900: #061320;
  --ink-850: #08192a;
  --ink-800: #0b1f33;
  --ink-750: #0e2740;
  --ink-700: #12304e;
  --ink-600: #17395b;
  --ink-500: #1f4670;

  /* --- parchment ramp (content panels) --- */
  --parch-050: #faf7ee;
  --parch-100: #f4efe1;
  --parch-200: #ede6d6;
  --parch-300: #ded4bd;
  --parch-400: #c9bd9f;
  --parch-500: #a3977a;

  /* --- accent: amber --- */
  --amber: #d98f2b;
  --amber-lt: #eaad57;
  --amber-pale: #f2cf96;
  --amber-deep: #8a5410;   /* AA on parchment */

  /* --- secondary: sage --- */
  --sage: #8fae93;
  --sage-lt: #b3c9b6;
  --sage-deep: #3d5c44;    /* deep sage, secondary marks */

  /* --- neutral: slate --- */
  --slate: #7d93ab;
  --slate-lt: #9fb2c6;
  --grey-ink: #4a4438;     /* UNVERIFIED text on parchment */
  --grey-rule: #6b6455;

  /* --- semantic surfaces --- */
  --bg: var(--ink-800);
  --bg-deep: var(--ink-900);
  --bg-raised: var(--ink-750);
  --bg-panel: var(--ink-700);

  --fg: #ede6d6;
  --fg-muted: #a9bccd;
  --fg-faint: #7f95a9;

  --paper: var(--parch-200);
  --paper-lt: var(--parch-100);
  --paper-ink: #16283a;
  --paper-ink-muted: #4c5a67;

  /* --- rules / hairlines --- */
  --rule: rgba(237, 230, 214, 0.13);
  --rule-strong: rgba(237, 230, 214, 0.24);
  --rule-amber: rgba(217, 143, 43, 0.44);
  --rule-amber-soft: rgba(217, 143, 43, 0.2);
  --rule-paper: rgba(22, 40, 58, 0.16);
  --rule-paper-soft: rgba(22, 40, 58, 0.08);

  /* --- type --- */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-2xs: 0.6875rem;
  --fs-xs: 0.75rem;
  --fs-sm: clamp(0.8125rem, 0.79rem + 0.11vw, 0.875rem);
  --fs-base: clamp(1rem, 0.965rem + 0.17vw, 1.0625rem);
  --fs-md: clamp(1.0625rem, 1.01rem + 0.26vw, 1.1875rem);
  --fs-lg: clamp(1.1875rem, 1.11rem + 0.36vw, 1.375rem);
  --fs-xl: clamp(1.3125rem, 1.17rem + 0.64vw, 1.75rem);
  --fs-2xl: clamp(1.5625rem, 1.32rem + 1.1vw, 2.375rem);
  --fs-3xl: clamp(2rem, 1.52rem + 2.15vw, 3.375rem);

  --lh-tight: 1.16;
  --lh-snug: 1.32;
  --lh-body: 1.68;

  --measure: 68ch;

  /* --- space scale --- */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 2.75rem;
  --s8: 3.75rem;
  --s9: 5rem;
  --s10: 7rem;

  /* --- radii --- */
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 7px;
  --r-4: 12px;

  /* --- shadow (used sparingly) --- */
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 38px -22px rgba(0, 0, 0, 0.85);
  --shadow-lift: 0 22px 46px -26px rgba(0, 0, 0, 0.9);

  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-med: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 4.25rem;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background-color: var(--ink-800);
  background-image:
    radial-gradient(1100px 620px at 12% -8%, rgba(217, 143, 43, 0.09), transparent 62%),
    radial-gradient(900px 540px at 96% 4%, rgba(143, 174, 147, 0.07), transparent 60%),
    linear-gradient(180deg, var(--ink-850) 0%, var(--ink-800) 34%, var(--ink-850) 100%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--serif);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  /* clip (not hidden) so the sticky header keeps working */
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

/* faint paper grain over the navy ground — pure CSS, no image files */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(0deg, rgba(237, 230, 214, 0.018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(237, 230, 214, 0.014) 0 1px, transparent 1px 4px);
}

body > * { position: relative; z-index: 1; }

img, svg { max-width: 100%; height: auto; }
svg { display: block; }

::selection { background: var(--amber); color: var(--ink-900); text-shadow: none; }

:focus-visible {
  outline: 2px solid var(--amber-lt);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

a { color: var(--amber-lt); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--amber-pale); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.012em;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}

p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; color: var(--parch-050); }

code, kbd, samp { font-family: var(--mono); font-size: 0.92em; }

hr {
  border: 0;
  border-top: 1px solid var(--rule-amber-soft);
  margin: var(--s7) 0;
}

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.75rem);
}

.wrap--narrow { max-width: 58rem; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--amber);
  color: var(--ink-900);
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.25rem;
  border-radius: 0 0 var(--r-2) 0;
  text-decoration: none;
}
.skip:focus { left: 0; }

main { display: block; }

.prose { max-width: var(--measure); }
.prose p, .prose ul, .prose ol { font-size: var(--fs-md); }
.prose > * + * { margin-top: var(--s4); }
.prose ul, .prose ol { padding-left: 1.35rem; margin-bottom: var(--s4); }
.prose li { margin-bottom: var(--s2); }
.prose li::marker { color: var(--amber); }

/* the two-column dossier grid: metadata rail + main column */
.dossier {
  display: grid;
  gap: var(--s6);
  padding-block: var(--s6) var(--s9);
  align-items: start;
}

@media (min-width: 1080px) {
  .dossier {
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: clamp(2.5rem, 4vw, 4.5rem);
    padding-block: var(--s7) var(--s10);
  }
}

.dossier__main { min-width: 0; }

/* --------------------------------------------------------------------------
   4. HEADER + FILE-TAB NAVIGATION
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(6, 19, 32, 0.98), rgba(8, 25, 42, 0.96));
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--rule-amber-soft);
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s4);
  min-height: var(--header-h);
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--fg);
  min-height: 44px;
}

.brand__mark {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule-amber);
  border-radius: var(--r-2);
  background: rgba(217, 143, 43, 0.09);
  display: grid;
  place-items: center;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.brand:hover .brand__mark { border-color: var(--amber); background: rgba(217, 143, 43, 0.18); }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand__sub {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

@media (max-width: 420px) {
  .brand__name { font-size: 0.9375rem; }
  .brand__mark { width: 30px; height: 30px; }
}

/* ---- desktop tab strip ---- */

.nav-desktop { display: none; }

@media (min-width: 1000px) {
  .nav-desktop { display: block; border-top: 1px solid var(--rule); }
  .nav-mobile { display: none !important; }
}

.tabstrip {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  border-bottom: 1px solid var(--rule-amber);
  padding-top: 0.55rem;
}

.tab { position: relative; }

.tab > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem 0.62rem;
  min-height: 44px;
  border: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule-amber);
  border-radius: var(--r-3) var(--r-3) 0 0;
  background: rgba(18, 48, 78, 0.5);
  color: var(--fg-muted);
  font-family: var(--serif);
  font-size: 0.9375rem;
  letter-spacing: 0.005em;
  position: relative;
  bottom: -1px;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.tab > summary::-webkit-details-marker { display: none; }
.tab > summary::marker { content: ""; }

.tab > summary:hover { background: rgba(23, 57, 91, 0.85); color: var(--fg); border-color: var(--rule-strong); border-bottom-color: var(--rule-amber); }

.tab__no {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.1em;
  color: var(--amber);
  opacity: 0.85;
}

.tab__caret { font-size: 0.6rem; color: var(--slate-lt); transition: transform var(--t-fast); }
.tab[open] > summary .tab__caret { transform: rotate(180deg); }

/* active tab: connected to the content below (its bottom hairline is erased) */
.tab--current > summary,
.tab[open] > summary {
  background: var(--ink-700);
  color: var(--parch-050);
  border-color: var(--rule-amber);
  border-bottom-color: var(--ink-700);
}
.tab--current > summary .tab__no { opacity: 1; }

.tab__panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  z-index: 95;
  min-width: 19rem;
  padding: var(--s3);
  background: var(--ink-750);
  border: 1px solid var(--rule-amber);
  border-top: none;
  border-radius: 0 var(--r-3) var(--r-3) var(--r-3);
  box-shadow: var(--shadow-lift);
}

/* keep the last tab's panel inside the page */
.tabstrip .tab:last-child .tab__panel {
  left: auto;
  right: 0;
  border-radius: var(--r-3) 0 var(--r-3) var(--r-3);
}

.tab__panel-title {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding: 0.35rem 0.6rem 0.5rem;
  border-bottom: 1px dashed var(--rule);
  margin-bottom: 0.35rem;
}

.tab__links { display: flex; flex-direction: column; }

.tab__links a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.62rem 0.65rem;
  min-height: 44px;
  border-radius: var(--r-2);
  text-decoration: none;
  color: var(--fg);
  font-size: 0.9375rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.tab__links a:hover { background: rgba(217, 143, 43, 0.13); color: var(--amber-pale); }
.tab__links a[aria-current="page"] {
  background: rgba(217, 143, 43, 0.18);
  color: var(--amber-pale);
  box-shadow: inset 2px 0 0 var(--amber);
}
.tab__links .ref {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  color: var(--fg-faint);
  letter-spacing: 0.06em;
  margin-left: auto;
}

/* ---- mobile drawer ---- */

.nav-mobile { display: block; }

.mnav > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  margin-bottom: 0.7rem;
  border: 1px solid var(--rule-amber);
  border-radius: var(--r-2);
  background: rgba(18, 48, 78, 0.55);
  color: var(--fg);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary::marker { content: ""; }
.mnav > summary:hover { background: rgba(23, 57, 91, 0.8); }
.mnav[open] > summary { border-color: var(--amber); color: var(--amber-pale); }

.mnav__icon { display: grid; gap: 4px; flex: none; }
.mnav__icon i { display: block; width: 20px; height: 1px; background: currentColor; }
.mnav[open] .mnav__icon i:nth-child(2) { opacity: 0.35; }

.mnav__body {
  padding-bottom: var(--s5);
  max-height: min(70vh, 34rem);
  overflow-y: auto;
  border-top: 1px dashed var(--rule);
  padding-top: var(--s4);
}

.mnav__group + .mnav__group { margin-top: var(--s4); }

.mnav__group-h {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--rule-amber-soft);
}

.mnav__group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 46px;
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--fg);
}
.mnav__group a:hover { color: var(--amber-pale); }
.mnav__group a[aria-current="page"] { color: var(--amber-pale); box-shadow: inset 2px 0 0 var(--amber); padding-left: 0.75rem; }
.mnav__group a .ref { font-family: var(--mono); font-size: var(--fs-2xs); color: var(--fg-faint); letter-spacing: 0.06em; }

/* --------------------------------------------------------------------------
   5. BREADCRUMBS + PAGE SLUG LINE
   -------------------------------------------------------------------------- */

.crumbs {
  border-bottom: 1px solid var(--rule);
  background: rgba(6, 19, 32, 0.45);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0.7rem 0;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.crumbs a { color: var(--slate-lt); text-decoration: none; }
.crumbs a:hover { color: var(--amber); text-decoration: underline; }
.crumbs li + li::before { content: "/"; color: var(--amber); opacity: 0.6; margin-right: 0.4rem; }
.crumbs [aria-current="page"] { color: var(--parch-200); }

/* --------------------------------------------------------------------------
   6. METADATA RAIL
   -------------------------------------------------------------------------- */

.rail {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  line-height: 1.55;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--amber);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  background: rgba(6, 19, 32, 0.42);
  padding: var(--s4) var(--s4) var(--s5);
}

@media (min-width: 1080px) {
  .rail { position: sticky; top: 8.5rem; background: none; border: none; border-left: 1px solid var(--rule-amber); border-radius: 0; padding: 0 0 0 var(--s4); }
}

.rail__title {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--rule-amber-soft);
}

/* the filing date: a first-class field at the head of the rail, not a footnote */
.rail__filed {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.75rem;
  margin: 0 0 var(--s4);
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--rule-amber-soft);
  border-left: 2px solid var(--amber);
  border-radius: 0 var(--r-1) var(--r-1) 0;
  background: rgba(217, 143, 43, 0.08);
}
.rail__filed-k {
  font-size: var(--fs-2xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}
.rail__filed-v {
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  color: var(--parch-050);
}

.rail dl { margin: 0 0 var(--s5); display: grid; grid-template-columns: 1fr; gap: 0; }

@media (max-width: 1079px) {
  .rail dl {
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: var(--s4);
    row-gap: 0.3rem;
  }
  .rail dt, .rail dd { margin-top: 0 !important; }
}

.rail dt {
  font-size: var(--fs-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-top: var(--s3);
}
.rail dt:first-child { margin-top: 0; }
.rail dd { margin: 0.15rem 0 0; color: var(--parch-200); letter-spacing: 0.03em; }
.rail dd.is-amber { color: var(--amber-lt); }

.rail__list { list-style: none; margin: 0; padding: 0; }
.rail__list li { border-top: 1px solid var(--rule); }
.rail__list a {
  display: block;
  padding: 0.6rem 0;
  min-height: 44px;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: var(--fs-xs);
  letter-spacing: 0.03em;
}
.rail__list a:hover { color: var(--amber-lt); }

/* --------------------------------------------------------------------------
   7. HERO / FILE COVER
   -------------------------------------------------------------------------- */

.cover {
  border-bottom: 1px solid var(--rule-amber-soft);
  background:
    linear-gradient(180deg, rgba(217, 143, 43, 0.055), transparent 70%),
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(237, 230, 214, 0.035) 33px 34px);
}

.cover__inner { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3.25rem); }

.cover__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: var(--s5);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--rule);
}
.cover__meta .is-amber { color: var(--amber); }
.cover__meta .sep { color: var(--rule-amber); }
/* publication dateline, lifted out of the faint metadata grey */
.cover__filed { color: var(--parch-300); }
.cover__filed time { color: var(--parch-050); }

.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--rule-amber);
  border-radius: var(--r-1);
  padding: 0.4rem 0.7rem;
  margin-bottom: var(--s4);
}

h1 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.022em;
  margin: 0 0 var(--s4);
  max-width: 22ch;
}
.cover h1 { max-width: 20ch; }

.lead {
  font-size: var(--fs-lg);
  line-height: 1.52;
  color: var(--parch-300);
  max-width: 62ch;
}
.lead strong { color: var(--parch-050); }

.cover__grid { display: grid; gap: var(--s6); }
@media (min-width: 980px) {
  .cover__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
}

/* --------------------------------------------------------------------------
   8. ANSWER CAPSULE
   -------------------------------------------------------------------------- */

.capsule {
  background: var(--parch-200);
  background-image: repeating-linear-gradient(180deg, transparent 0 29px, rgba(22, 40, 58, 0.045) 29px 30px);
  color: var(--paper-ink);
  border: 1px solid var(--parch-400);
  border-left: 4px solid var(--amber);
  border-radius: var(--r-1) var(--r-3) var(--r-3) var(--r-1);
  padding: var(--s5);
  box-shadow: var(--shadow-panel);
  max-width: 60ch;
}

.capsule__label {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0 0 var(--s2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  align-items: center;
}

.capsule__q {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: var(--lh-snug);
  color: #0f2130;
  margin: 0 0 var(--s3);
}

.capsule__a {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: #1d2f3e;
  margin: 0;
}
.capsule__a strong { color: #0b1922; }

.capsule__foot {
  margin: var(--s4) 0 0;
  padding-top: var(--s3);
  border-top: 1px dashed var(--rule-paper);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.1em;
  color: var(--paper-ink-muted);
  text-transform: uppercase;
}

/* the big standing answer block on navy */
.verdict {
  border: 1px solid var(--rule-amber);
  border-radius: var(--r-3);
  background: linear-gradient(180deg, rgba(217, 143, 43, 0.11), rgba(217, 143, 43, 0.03));
  padding: var(--s5) var(--s5) var(--s6);
}
.verdict__label {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 var(--s3);
}
.verdict__answer {
  font-family: var(--serif);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--parch-050);
  margin: 0 0 var(--s3);
}
.verdict p { color: var(--parch-300); margin: 0; }
.verdict p + p { margin-top: var(--s3); }

/* --------------------------------------------------------------------------
   9. FILE DIVIDERS (section headings with a tab shape)
   -------------------------------------------------------------------------- */

.file {
  border-top: 1px solid var(--rule-amber);
  margin-top: var(--s8);
  padding-top: 0;
}
.file:first-child { margin-top: 0; }

.file > h2,
.file > h3.file__h {
  display: flex;
  width: fit-content;
  align-items: baseline;
  gap: 0.6rem;
  margin: -1px 0 var(--s5);
  padding: 0.5rem 1rem 0.55rem;
  background: var(--ink-700);
  border: 1px solid var(--rule-amber);
  border-top: 0;
  border-radius: 0 0 var(--r-3) var(--r-3);
  font-size: var(--fs-xl);
  letter-spacing: -0.014em;
  max-width: 100%;
  text-wrap: balance;
}

.file > h2 .file__no,
.file > h3.file__h .file__no {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--amber);
  flex: none;
}

.file__body { max-width: var(--measure); }
.file__body p, .file__body li { font-size: var(--fs-md); }
.file__body > * + * { margin-top: var(--s4); }
.file__body ul, .file__body ol { padding-left: 1.35rem; }
.file__body li { margin-bottom: var(--s2); }
.file__body li::marker { color: var(--amber); }

.file__wide { max-width: none; }

h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); letter-spacing: 0; }

/* --------------------------------------------------------------------------
   10. EXHIBIT CARD  (signature component)
   -------------------------------------------------------------------------- */

.exhibit {
  margin: 0 0 var(--s5);
  background: var(--parch-200);
  background-image:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(22, 40, 58, 0.04) 31px 32px),
    repeating-linear-gradient(90deg, rgba(22, 40, 58, 0.012) 0 1px, transparent 1px 3px);
  color: var(--paper-ink);
  border: 1px solid var(--parch-400);
  border-radius: var(--r-2) var(--r-3) var(--r-3) var(--r-3);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.exhibit__tab {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  padding: 0.6rem var(--s5);
  border-bottom: 1px solid var(--rule-paper);
  background: rgba(201, 189, 159, 0.4);
}

.exhibit__no {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.exhibit__body { padding: var(--s5); }

.exhibit__body h3,
.exhibit__body h4 {
  font-size: var(--fs-lg);
  color: #0f2130;
  margin: 0 0 var(--s3);
  letter-spacing: -0.01em;
}

.exhibit__claim {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: #1d2f3e;
  margin: 0 0 var(--s4);
  max-width: 62ch;
}
.exhibit__claim strong { color: #0b1922; }
.exhibit__claim a { color: var(--amber-deep); }
.exhibit__claim a:hover { color: #6d4109; }

.exhibit__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding-top: var(--s3);
  border-top: 1px dashed var(--rule-paper);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  line-height: 1.5;
}
@media (min-width: 620px) {
  .exhibit__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s5); }
}
.exhibit__meta > div { padding: 0.32rem 0; border-bottom: 1px solid var(--rule-paper-soft); }
.exhibit__meta dt { letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-ink-muted); }
.exhibit__meta dd { margin: 0.1rem 0 0; color: #22384c; letter-spacing: 0.02em; word-break: break-word; }
.exhibit__meta a { color: var(--amber-deep); }

/* --------------------------------------------------------------------------
   11. PANELS, CARDS, GRIDS
   -------------------------------------------------------------------------- */

.panel {
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  background: rgba(6, 19, 32, 0.45);
  padding: var(--s5);
}
.panel--amber { border-color: var(--rule-amber); background: linear-gradient(180deg, rgba(217, 143, 43, 0.08), rgba(217, 143, 43, 0.02)); }
.panel--sage { border-color: rgba(143, 174, 147, 0.35); background: linear-gradient(180deg, rgba(143, 174, 147, 0.08), rgba(143, 174, 147, 0.02)); }

.panel--paper {
  background: var(--parch-200);
  background-image: repeating-linear-gradient(180deg, transparent 0 30px, rgba(22, 40, 58, 0.04) 30px 31px);
  color: var(--paper-ink);
  border-color: var(--parch-400);
  box-shadow: var(--shadow-panel);
}
.panel--paper h2, .panel--paper h3, .panel--paper h4 { color: #0f2130; }
.panel--paper strong { color: #0b1922; }
.panel--paper a { color: var(--amber-deep); }
.panel--paper p { color: #1d2f3e; }

.panel__label {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 var(--s3);
}
.panel--paper .panel__label { color: var(--amber-deep); }

.grid { display: grid; gap: var(--s4); }
@media (min-width: 620px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 620px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  border: 1px solid var(--rule);
  border-top: 2px solid var(--rule-amber);
  border-radius: 0 0 var(--r-3) var(--r-3);
  background: rgba(6, 19, 32, 0.4);
  padding: var(--s5) var(--s4);
  transition: border-color var(--t-med), background var(--t-med), transform var(--t-med);
}
.card:hover { border-color: var(--rule-strong); border-top-color: var(--amber); background: rgba(18, 48, 78, 0.4); }
.card h3 { font-size: var(--fs-md); margin: 0 0 var(--s2); }
.card h3 a { text-decoration: none; color: var(--parch-050); }
.card h3 a:hover { color: var(--amber-lt); text-decoration: underline; }
.card p { color: var(--fg-muted); font-size: var(--fs-sm); margin: 0; }
.card p + p { margin-top: var(--s2); }

.card__no {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.15em;
  color: var(--amber);
  margin-bottom: var(--s2);
}

/* domain index cards */
.domain {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--r-3) var(--r-3) 0;
  background: rgba(6, 19, 32, 0.42);
  padding: var(--s4) var(--s5);
  transition: background var(--t-med), border-color var(--t-med);
}
.domain:hover { background: rgba(18, 48, 78, 0.45); border-left-color: var(--amber-lt); }
.domain__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); justify-content: space-between; }
.domain h3 { font-size: var(--fs-md); margin: 0; letter-spacing: -0.008em; }
.domain h3 a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--parch-050);
  text-decoration: none;
  word-break: break-word;
}
.domain h3 a:hover { color: var(--amber-lt); text-decoration: underline; }
.domain__role {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.domain p { color: var(--fg-muted); font-size: var(--fs-sm); margin: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--rule-amber);
  border-radius: 999px;
  padding: 0.24rem 0.6rem;
}

/* --------------------------------------------------------------------------
   12. TABLES / LEDGER
   -------------------------------------------------------------------------- */

.scroller {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  background: rgba(6, 19, 32, 0.4);
}

table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 34rem; }

thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 0.85rem var(--s4);
  border-bottom: 1px solid var(--rule-amber);
  white-space: nowrap;
  background: rgba(217, 143, 43, 0.06);
}

tbody td, tbody th {
  padding: 0.8rem var(--s4);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--fg-muted);
  line-height: 1.55;
}
tbody th { text-align: left; font-weight: 700; color: var(--parch-100); font-family: var(--serif); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }
tbody tr:nth-child(even) { background: rgba(237, 230, 214, 0.022); }
tbody td strong { color: var(--parch-050); }
caption {
  caption-side: bottom;
  text-align: left;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding: 0.75rem var(--s4);
  border-top: 1px dashed var(--rule);
}

.mono-cell { font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: 0.05em; white-space: nowrap; }

/* key-facts entity table */
.keyfacts {
  border: 1px solid var(--parch-400);
  border-radius: var(--r-3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--parch-200);
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(22, 40, 58, 0.045) 33px 34px);
  box-shadow: var(--shadow-panel);
}
.keyfacts table { min-width: 17rem; color: var(--paper-ink); }
.keyfacts thead th { color: var(--amber-deep); background: rgba(201, 189, 159, 0.45); border-bottom-color: var(--rule-paper); }
.keyfacts tbody th {
  width: 38%;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-ink-muted);
  border-bottom-color: var(--rule-paper-soft);
  white-space: nowrap;
}
.keyfacts tbody td { color: #17293a; font-size: var(--fs-sm); border-bottom-color: var(--rule-paper-soft); }
.keyfacts tbody td strong { color: #0b1922; }
.keyfacts tbody tr:nth-child(even) { background: rgba(22, 40, 58, 0.028); }
.keyfacts caption { color: var(--paper-ink-muted); border-top-color: var(--rule-paper); }

/* --------------------------------------------------------------------------
   13. TIMELINE RAIL
   -------------------------------------------------------------------------- */

.tl { list-style: none; margin: 0; padding: 0 0 0 var(--s5); position: relative; }
.tl::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--rule-amber) 8%, var(--rule-amber) 92%, transparent);
}

.tl__item { position: relative; padding: 0 0 var(--s6); }
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--s5) + 1px);
  top: 0.55rem;
  width: 9px;
  height: 9px;
  background: var(--ink-800);
  border: 1.5px solid var(--amber);
  transform: rotate(45deg);
}

.tl__date {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--s2);
}
.tl__ref {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.1em;
  color: var(--fg-faint);
  margin-left: 0.75rem;
}
.tl__item h3 { font-size: var(--fs-md); margin: 0 0 var(--s2); }
.tl__item p { color: var(--fg-muted); font-size: var(--fs-sm); max-width: 62ch; margin: 0; }
.tl__item p + p { margin-top: var(--s2); }

/* --------------------------------------------------------------------------
   14. QUOTES, CALLOUTS, FAQ, CITE
   -------------------------------------------------------------------------- */

blockquote {
  margin: var(--s5) 0;
  padding: var(--s4) var(--s5);
  border-left: 3px solid var(--amber);
  background: rgba(217, 143, 43, 0.07);
  border-radius: 0 var(--r-3) var(--r-3) 0;
  font-size: var(--fs-lg);
  line-height: 1.45;
  color: var(--parch-100);
}
blockquote p { margin: 0; }
blockquote p + p { margin-top: var(--s3); }

.note {
  border: 1px dashed var(--rule-amber);
  border-radius: var(--r-2);
  padding: var(--s4);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  background: rgba(217, 143, 43, 0.045);
}
.note strong { color: var(--amber-lt); }
.note__label {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--s2);
}

.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); padding: var(--s4) 0; }
.faq__item h3 {
  font-size: var(--fs-md);
  margin: 0 0 var(--s2);
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
}
.faq__q {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.12em;
  color: var(--amber);
  flex: none;
}
.faq__item p { color: var(--fg-muted); max-width: 64ch; margin: 0; }
.faq__item p + p { margin-top: var(--s2); }

.cite {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  background: rgba(143, 174, 147, 0.06);
  padding: var(--s4);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  line-height: 1.65;
  color: var(--fg-muted);
  word-break: break-word;
}
.cite__label {
  display: block;
  font-size: var(--fs-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--s2);
}

.deflist { margin: 0; }
.deflist > div {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--rule);
}
.deflist dt {
  font-family: var(--serif);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--parch-050);
  margin-bottom: var(--s1);
}
.deflist dt .term-ref {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-left: 0.6rem;
}
.deflist dd { margin: 0; color: var(--fg-muted); max-width: 64ch; font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   15. NEXT / RELATED
   -------------------------------------------------------------------------- */

.related {
  margin-top: var(--s8);
  border-top: 1px solid var(--rule-amber);
  padding-top: var(--s5);
}
.related__label {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 var(--s4);
}
.related__grid { display: grid; gap: var(--s3); }
@media (min-width: 700px) { .related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.related__link {
  display: block;
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  padding: var(--s4);
  min-height: 44px;
  text-decoration: none;
  background: rgba(6, 19, 32, 0.4);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.related__link:hover { border-color: var(--rule-amber); background: rgba(18, 48, 78, 0.42); }
.related__dir {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: var(--s2);
}
.related__title { display: block; font-size: var(--fs-md); color: var(--parch-050); line-height: 1.3; }
.related__link:hover .related__title { color: var(--amber-lt); }

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule-amber);
  background: linear-gradient(180deg, rgba(6, 19, 32, 0.6), rgba(6, 19, 32, 0.95));
  padding-block: var(--s7) var(--s6);
  margin-top: var(--s6);
}

.footer__statement {
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--s5);
  margin-bottom: var(--s6);
  max-width: 68ch;
}
.footer__statement p:first-child {
  font-size: var(--fs-lg);
  color: var(--parch-050);
  font-weight: 700;
  margin-bottom: var(--s2);
}
.footer__statement p { color: var(--fg-muted); font-size: var(--fs-sm); }

.footer__cols { display: grid; gap: var(--s5); }
@media (min-width: 620px) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); } }

.footer__col h2 {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--rule-amber-soft);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col a {
  display: flex;
  align-items: center;
  padding: 0.4rem 0;
  min-height: 44px;
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  text-decoration: none;
}
.footer__col a:hover { color: var(--amber-lt); text-decoration: underline; }

.footer__bottom {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.09em;
  color: var(--fg-faint);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
.footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg-faint);
  text-decoration: none;
}
.footer__legal a:hover { color: var(--amber); text-decoration: underline; }

/* --------------------------------------------------------------------------
   17. UTILITIES
   -------------------------------------------------------------------------- */

.mono { font-family: var(--mono); }
.u-mt6 { margin-top: var(--s6); }
.u-mt5 { margin-top: var(--s5); }
.u-mb5 { margin-bottom: var(--s5); }
.u-amber { color: var(--amber); }
.u-sage { color: var(--sage); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.metaline {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-2);
  border: 1px solid var(--amber);
  color: var(--ink-900);
  background: var(--amber);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn:hover { background: var(--amber-lt); border-color: var(--amber-lt); color: var(--ink-900); }
.btn--ghost { background: transparent; color: var(--amber); }
.btn--ghost:hover { background: rgba(217, 143, 43, 0.14); color: var(--amber-pale); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

/* --------------------------------------------------------------------------
   18. MOTION / PRINT
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  :root { --fg: #111; --fg-muted: #333; }
  body {
    background: #fff !important;
    color: #111;
    font-size: 11pt;
  }
  body::before { display: none; }
  .site-header, .nav-desktop, .nav-mobile, .crumbs, .related, .site-footer, .skip, .btn-row { display: none !important; }
  .dossier { display: block; }
  .rail { border: 1px solid #999; padding: 8pt; margin-bottom: 12pt; background: #fff; position: static; }
  .rail dd, .rail dt { color: #222; }
  .rail__filed { background: #fff !important; border-color: #666 !important; }
  .rail__filed-k, .rail__filed-v { color: #111 !important; }
  .cover__filed, .cover__filed time { color: #111 !important; }
  a { color: #111; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; word-break: break-all; }
  .exhibit, .capsule, .keyfacts, .panel, .card, .verdict, .note {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #999 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .file > h2 { background: #fff; border: none; border-bottom: 1px solid #333; border-radius: 0; padding-left: 0; }
  h1, h2, h3 { break-after: avoid; }
  .scroller { overflow: visible; border: none; }
  thead th { color: #111; background: #eee; }
}
