/* ============================================================
   THE McINTYRE CASE FILE — Investigation dossier stylesheet
   Palette: kraft-folder tan → charcoal masthead, stamp-red accent
   Type: Fraunces (display) · Newsreader (body) · Courier Prime (stamps)
   Distinct system from both the old oxblood/paper theme and any
   navy-legal palette — built around the "manila case file" motif.
   ============================================================ */

:root {
  /* kraft folder + ink */
  --paper:      #eadfc2;
  --paper-2:    #ddcea3;
  --ink:        #1f1a10;
  --ink-soft:   #4d4530;
  --ink-faint:  #877a56;
  --rule:       #c6b384;
  --rule-soft:  #d7c69a;

  /* deep charcoal masthead */
  --night:      #14110b;
  --night-2:    #1d1810;
  --cream:      #f1e6c8;
  --cream-dim:  #b3a37a;

  /* accents: rubber-stamp red + brass + olive */
  --oxblood:    #a3291f;
  --oxblood-2:  #c23929;
  --gold:       #9c7a2e;
  --green:      #4b5a35;
  --link:       #a3291f;

  --maxw:       1240px;
  --measure:    68ch;
  --sidebar-w:  248px;

  --serif:  "Newsreader", Georgia, "Times New Roman", serif;
  --display:"Fraunces", Georgia, serif;
  --ui:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:   "Courier Prime", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.7;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* kraft-paper texture: fibre grain + faint vignette, like a manila folder */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, rgba(31,26,16,0.018) 0px, transparent 2px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(31,26,16,0.012) 0px, transparent 2px, transparent 5px),
    radial-gradient(circle at 12% 8%, rgba(31,26,16,0.05), transparent 45%),
    radial-gradient(circle at 90% 92%, rgba(31,26,16,0.05), transparent 45%);
  pointer-events: none;
}

a { color: var(--link); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--oxblood-2); }

::selection { background: var(--oxblood); color: var(--cream); }

/* ---------- Reading progress ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--oxblood);
  z-index: 100;
  transition: width 0.08s linear;
}

/* ---------- Sticky compact nav ---------- */
.sticky-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(20, 17, 13, 0.96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 2px solid var(--oxblood);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 40px;
  font-family: var(--ui);
}
.sticky-title {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  font-size: 16px;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}
.sticky-links { display: flex; gap: 24px; overflow-x: auto; }
.sticky-links a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--cream-dim);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.sticky-links a:hover { color: var(--cream); border-color: var(--oxblood-2); }
@media (max-width: 780px) {
  .sticky-links { display: none; }
  .sticky-inner { padding: 13px 22px; }
}

/* ---------- Alert bar ---------- */
.alert-bar {
  background: var(--night);
  color: var(--cream-dim);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  padding: 9px 20px;
  letter-spacing: 0.2px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.alert-bar strong {
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  font-weight: 700;
}


/* ---------- Masthead: case-file photo backdrop ---------- */
.site-header {
  position: relative;
  background:
    linear-gradient(155deg, rgba(20,17,11,0.94) 0%, rgba(20,17,11,0.85) 45%, rgba(29,24,16,0.96) 100%),
    url("../images/hero-dossier.jpg");
  background-size: cover;
  background-position: center 38%;
  color: var(--cream);
  padding: 90px 24px 80px;
  overflow: hidden;
  border-bottom: 6px solid var(--oxblood);
  box-shadow: inset 0 -60px 90px -60px rgba(0,0,0,0.7);
}

/* rubber-stamp "case open" badge, top-right of masthead, tilted like an ink stamp */
.live-badge {
  position: absolute;
  top: 30px;
  right: 34px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2.5px solid var(--oxblood-2);
  border-radius: 4px;
  padding: 7px 16px 7px 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--oxblood-2);
  transform: rotate(-4deg);
  box-shadow: 0 0 0 1px rgba(194,57,41,0.15) inset;
}
.live-badge .dot-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--oxblood-2);
  box-shadow: 0 0 0 0 rgba(168,64,47,0.7);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(168,64,47,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(168,64,47,0); }
  100% { box-shadow: 0 0 0 0 rgba(168,64,47,0); }
}
@media (max-width: 780px) {
  .live-badge { top: 18px; right: 18px; font-size: 9px; padding: 5px 12px 5px 8px; }
}
/* case-file reference number, faint in the corner over the photo backdrop */
.site-header::after {
  content: "FILE NO. AU-2016-1276 / IDN-2026-0114";
  position: absolute;
  right: 26px;
  bottom: 20px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 1px;
  color: rgba(241, 230, 200, 0.38);
  pointer-events: none;
  user-select: none;
}
@media (max-width: 780px) { .site-header::after { display: none; } }
.masthead-inner {
  position: relative;
  z-index: 2;
  max-width: 940px;
  margin: 0 auto;
}
.site-header .kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--oxblood-2);
  margin: 0 0 26px;
  padding-left: 3px;
}
.site-header .kicker::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--oxblood-2);
  vertical-align: middle;
  margin-right: 12px;
  margin-bottom: 3px;
}
.site-header h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 30px;
}
.site-header h1 .name {
  font-weight: 900;
  font-style: italic;
  color: var(--cream);
}
.site-header .subtitle {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.55;
  color: var(--cream-dim);
  max-width: 40ch;
  margin: 0 0 34px;
}
.site-header .dateline {
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--cream-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(243,234,214,0.14);
  border-bottom: 1px solid rgba(243,234,214,0.14);
  margin-bottom: 40px;
}
.site-header .dateline .dot { color: var(--oxblood-2); }

/* stat strip — editorial figures, now as boxed cards */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat-strip .stat {
  padding: 18px 20px;
  background: rgba(243,234,214,0.05);
  border: 1px solid rgba(243,234,214,0.16);
  border-top: 3px solid var(--oxblood-2);
  border-radius: 6px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.stat-strip .stat:hover {
  transform: translateY(-4px);
  background: rgba(243,234,214,0.09);
  border-top-color: var(--gold);
}
@media (max-width: 780px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
.stat .num {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  color: var(--cream);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat .label {
  display: block;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  color: var(--cream-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 10px;
  line-height: 1.3;
}
.scroll-cue {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 54px;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translateY(0);opacity:0.7;} 50%{transform:translateY(5px);opacity:1;} }

@media (max-width: 720px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat { padding: 14px 16px; border-top: 1px solid rgba(243,234,214,0.14); }
}

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 72px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px 120px;
}

/* ---------- Contents rail ---------- */
.sidebar { position: relative; }
.sidebar nav {
  position: sticky;
  top: 40px;
  font-family: var(--ui);
  padding-top: 60px;
}
.sidebar nav .nav-title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-faint);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--rule);
}
.sidebar nav a {
  display: block;
  padding: 7px 8px 7px 18px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 3px 3px 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  counter-increment: navcount;
}
.sidebar nav a::before {
  content: counter(navcount, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  margin-right: 9px;
  font-variant-numeric: tabular-nums;
}
.sidebar nav { counter-reset: navcount; }
.sidebar nav a:hover { color: var(--ink); background: rgba(163,41,31,0.06); }
.sidebar nav a.active {
  color: var(--oxblood);
  border-left-color: var(--oxblood);
  background: rgba(163,41,31,0.09);
  font-weight: 600;
}
.sidebar nav a.active::before { color: var(--oxblood); }

/* lock background scroll while mobile menu is open */
body.nav-locked { overflow: hidden; }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: var(--night);
  color: var(--cream);
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 15px 20px;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: left;
}


/* ---------- Content ---------- */
.content { min-width: 0; padding-top: 60px; counter-reset: section; }

section.block {
  margin-bottom: 90px;
  scroll-margin-top: 24px;
  counter-increment: section;
}
/* section number + heading */
section.block > h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  padding-top: 26px;
  position: relative;
  max-width: 20ch;
}
section.block > h2::before {
  content: "EXHIBIT " counter(section, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 3px;
  color: var(--oxblood);
  margin-bottom: 18px;
}
/* thin rule above each section number */
section.block > h2::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60px;
  height: 3px;
  background: var(--oxblood);
}
section.block .section-tag {
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 30px;
  font-weight: 500;
}

/* ---------- Alternating exhibit bands: kills the "one flat page" feel ---------- */
section.block.band {
  position: relative;
  margin-left: -40px;
  margin-right: -40px;
  padding: 4px 40px 86px;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
section.block.band > h2 { padding-top: 50px; }
@media (max-width: 960px) {
  section.block.band { margin-left: -28px; margin-right: -28px; padding: 4px 28px 70px; }
}
@media (max-width: 780px) {
  section.block.band { margin-left: -18px; margin-right: -18px; padding: 4px 18px 60px; }
}

/* body paragraphs held to a comfortable measure */
.content p,
.content ul,
.content ol.refs { max-width: var(--measure); }

.content p { margin: 0 0 22px; }
.content ul { margin: 0 0 22px; padding-left: 24px; }
.content li { margin: 9px 0; padding-left: 4px; }
.content li::marker { color: var(--oxblood); }

/* lead paragraph with drop cap */
.lead {
  font-family: var(--serif);
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 34px !important;
  font-weight: 400;
}
.lead::first-letter {
  font-family: var(--display);
  font-weight: 900;
  font-size: 5.4em;
  line-height: 0.72;
  float: left;
  margin: 8px 14px 0 0;
  color: var(--oxblood);
}

/* subsection headings (were card h3) — now tagged like filed exhibit items */
.card { margin: 0 0 8px; counter-increment: exhibit; }
section.block { counter-reset: exhibit; }
.card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(23px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 52px 0 4px;
  padding-top: 34px;
  border-top: 1px solid var(--rule);
  max-width: 34ch;
  color: var(--ink);
  position: relative;
}
.card h3::before {
  content: counter(exhibit, upper-alpha) ".";
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.5em;
  letter-spacing: 1px;
  color: var(--oxblood);
  background: var(--paper);
  border: 1.5px solid var(--oxblood);
  border-radius: 50%;
  width: 1.7em;
  height: 1.7em;
  line-height: 1.6em;
  text-align: center;
  vertical-align: middle;
  margin-right: 14px;
  position: relative;
  top: -0.1em;
}
section.block.band .card h3::before { background: var(--paper-2); }
.card:first-of-type h3:first-child { margin-top: 20px; }
.card h4 {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 30px 0 10px;
}
.card p, .card ul { }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 26px 0 0;
  padding: 0 0 0 2px;
  max-width: var(--measure);
  position: relative;
}
.timeline li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 20px;
  position: relative;
  padding: 0 0 28px 0;
  margin: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 74px;
  top: 6px;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--oxblood);
  z-index: 1;
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 74px;
  top: 6px;
  bottom: -10px;
  width: 1px;
  background: var(--rule);
}
.timeline li:last-child::after { display: none; }
.timeline li:last-child { padding-bottom: 0; }
.tl-year {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--oxblood);
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}
.tl-text {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-top: 1px;
}
@media (max-width: 560px) {
  .timeline li { grid-template-columns: 52px 1fr; gap: 14px; }
  .timeline li::before, .timeline li::after { left: 52px; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(56px) scale(0.98);
  filter: blur(2px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Focus states (accessibility) ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 2px;
  border-radius: 2px;
}
.sticky-links a:focus-visible,
.site-footer a:focus-visible { outline-color: var(--gold); }

/* standalone key label in overview */
.key-label {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 34px 0 0;
}


/* ---------- Tables: dark exhibit ledger, not a plain data grid ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 30px 0;
  max-width: 100%;
  border: 1px solid var(--night-2);
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(31,26,16,0.12);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ui);
  font-size: 13.5px;
  line-height: 1.45;
}
thead th {
  text-align: left;
  padding: 13px 16px;
  background: var(--night);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cream-dim);
  white-space: nowrap;
}
thead th:first-child { color: var(--cream); }
tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  background: var(--paper);
}
tbody tr:nth-child(even) td { background: var(--paper-2); }
tbody tr:hover td { background: #f7f0dd; }
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { font-weight: 600; color: var(--ink); }

/* ---------- Editorial pull-quote: breaks out of the column, sits on its own stage ---------- */
blockquote.verified {
  position: relative;
  margin: 56px 0 56px -40px;
  padding: 46px 40px 40px 74px;
  width: calc(100% + 80px);
  max-width: none;
  background: var(--night);
  color: var(--cream);
  border-left: none;
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.32;
  box-shadow: 0 18px 40px rgba(20,17,13,0.18);
}
blockquote.verified::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  left: 24px;
  font-family: var(--display);
  font-weight: 900;
  font-style: normal;
  font-size: 3.2em;
  line-height: 1;
  color: var(--oxblood-2);
}
blockquote.verified cite {
  display: block;
  margin-top: 24px;
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.3px;
  line-height: 1.6;
  color: var(--cream-dim);
  max-width: 56ch;
}
blockquote.verified cite .badge { margin-left: 4px; }
@media (max-width: 960px) {
  blockquote.verified { margin: 50px 0 50px -28px; width: calc(100% + 56px); padding: 40px 28px 34px 56px; }
}
@media (max-width: 780px) {
  blockquote.verified {
    margin: 44px 0 44px -18px;
    width: calc(100% + 36px);
    padding: 40px 22px 32px 30px;
    font-size: clamp(20px, 5vw, 26px);
  }
  blockquote.verified::before { left: 14px; font-size: 2.4em; }
}

/* ---------- Media figures (images): break out wider than the text column, exhibit-tagged ---------- */
.media-figure {
  position: relative;
  margin: 44px 0 44px -40px;
  width: calc(100% + 80px);
  max-width: none;
}
.media-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: 0 18px 44px rgba(31,26,16,0.16);
}
.media-figure figcaption {
  font-family: var(--ui);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 10px 40px 0;
  line-height: 1.5;
  max-width: var(--measure);
}
.media-figure figcaption .credit {
  color: var(--ink-faint);
  font-style: italic;
}
/* rubber-stamp "EXHIBIT" tag pinned over the top-left corner of every evidence image */
.media-figure::before {
  content: "EXHIBIT";
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cream);
  background: var(--oxblood);
  padding: 5px 12px;
  border-radius: 2px;
  transform: rotate(-2deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
@media (max-width: 960px) {
  .media-figure { margin: 40px 0 40px -28px; width: calc(100% + 56px); }
  .media-figure figcaption { margin: 10px 28px 0; }
}
@media (max-width: 780px) {
  .media-figure { margin: 36px 0 36px -18px; width: calc(100% + 36px); }
  .media-figure figcaption { margin: 10px 18px 0; }
}

/* ---------- Video embeds ---------- */
.video-embed {
  position: relative;
  width: 100%;
  max-width: var(--measure);
  aspect-ratio: 16 / 9;
  margin: 26px 0;
  background: #000;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Callouts ---------- */
.callout {
  margin: 34px 0;
  padding: 26px 30px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--oxblood);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.callout strong { color: var(--ink); }
.callout.warn {
  background: #f7f0dd;
  border-left-color: var(--gold);
}

/* ---------- Source-type badges: small ink-stamp chips ---------- */
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 2px;
  vertical-align: middle;
  border: 1.5px solid;
  white-space: nowrap;
  line-height: 1.5;
}
.badge.court   { background:#e7ede4; color:#33502c; border-color:#a9be9e; }
.badge.press   { background:#e5ebf1; color:#274769; border-color:#a9bfd6; }
.badge.trade   { background:#ece6f0; color:#4b3968; border-color:#c3b3d4; }
.badge.pr      { background:#f2e6ce; color:#795611; border-color:#d3ba85; }
.badge.ugc     { background:#e3dac2; color:#5f553b; border-color:#c1b592; }
.badge.subject { background:#f0dcd6; color:#a3291f; border-color:#dba59c; }

/* ---------- Reliability legend ---------- */
.legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px 28px;
  font-family: var(--ui);
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px 28px;
  margin: 26px 0;
  max-width: var(--measure);
}
.legend .item { display: flex; align-items: center; gap: 10px; }

/* ---------- Citation chips ---------- */
.cite-links {
  font-family: var(--ui);
  font-size: 12.5px;
  margin: 20px 0 4px;
  max-width: var(--measure);
}
.cite-links a {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 4px 11px;
  margin: 0 7px 8px 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s;
}
.cite-links a:hover {
  border-color: var(--oxblood);
  color: var(--oxblood);
  background: #fff;
}
.cite-links a::before { content: "\2197\00a0"; color: var(--ink-faint); }
.cite-links a:hover::before { color: var(--oxblood); }

/* ---------- Grading footnote line ---------- */
.sources {
  font-family: var(--ui);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-faint);
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  max-width: var(--measure);
}
.sources strong { color: var(--ink-soft); font-weight: 600; }


/* ---------- References registry ---------- */
.ref-group { margin: 0 0 34px; max-width: var(--measure); }
.ref-group h3 {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink);
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 8px;
  margin: 0 0 14px;
}
ol.refs {
  font-family: var(--ui);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  padding-left: 26px;
  color: var(--ink-soft);
}
ol.refs li { margin: 10px 0; padding-left: 6px; }
ol.refs li::marker { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
ol.refs .ref-title { color: var(--ink); font-weight: 500; }
ol.refs a { word-break: break-word; font-weight: 500; }

/* ---------- Disclaimer block ---------- */
.disclaimer {
  font-family: var(--ui);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 22px 26px;
  margin-top: 26px;
  max-width: var(--measure);
}
.disclaimer strong { color: var(--ink); }
.disclaimer code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1px 6px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--cream-dim);
  padding: 70px 40px 60px;
  font-family: var(--ui);
  border-top: 4px solid var(--oxblood);
}
.site-footer .inner { max-width: var(--maxw); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}
.site-footer h4 {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  font-size: 26px;
  color: var(--cream);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.site-footer h5 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--oxblood-2);
  margin: 0 0 18px;
}
.site-footer p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 46ch;
  margin: 0 0 14px;
}
.footer-legal { font-size: 12.5px; color: var(--cream-dim); opacity: 0.85; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.site-footer a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.footer-brand a { text-decoration: underline; }
.site-footer a:hover { color: var(--cream); }
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--oxblood);
  color: var(--cream);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.2s;
  font-family: var(--ui);
  box-shadow: 0 6px 24px rgba(20,17,13,0.28);
  z-index: 60;
}
#backToTop:hover { transform: translateY(-3px); background: var(--oxblood-2); }
#backToTop.show { opacity: 1; pointer-events: auto; }

/* ---------- Print ---------- */
@media print {
  .alert-bar, .nav-toggle, .sidebar, #backToTop, .progress-bar, .scroll-cue, .sticky-bar { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  body::before { display: none; }
  .site-header { background: #fff; color: #000; border-bottom: 2px solid #000; padding: 20px 0; }
  .site-header::after, .site-header h1 .name { color: #000; }
  .site-header .kicker, .site-header .dateline, .stat .label { color: #333; }
  .stat .num, .site-header h1 { color: #000; }
  .layout { display: block; padding: 0; max-width: none; }
  section.block { margin-bottom: 30px; break-inside: avoid; }
  .card h3, blockquote.verified, .table-wrap, .callout { break-inside: avoid; }
  a { color: #000; }
  .cite-links a::before { content: ""; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .layout { gap: 44px; padding: 0 28px 90px; }
  :root { --sidebar-w: 200px; }
}
@media (max-width: 780px) {
  body { font-size: 18px; }
  .layout { display: block; padding: 0 18px 80px; }
  .nav-toggle {
    display: flex;
    align-items: center;
    top: 55px; /* sit below the fixed .sticky-bar so it's never hidden underneath it */
    z-index: 45;
  }
  .sidebar nav {
    position: fixed;
    top: 103px; /* nav-toggle top (55px) + its own height (~48px) */
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    padding: 18px 22px 24px;
    background: var(--paper);
    overflow-y: auto;
    z-index: 44;
    box-shadow: 0 18px 40px rgba(20,17,13,0.25);
  }
  .sidebar nav.open { display: block; }
  .content { padding-top: 40px; }
  .site-header { padding: 60px 18px 56px; }
  .lead::first-letter { font-size: 4.4em; }
  .legend { grid-template-columns: 1fr; }
  blockquote.verified { padding-left: 22px; }
}
@media (max-width: 480px) {
  body { font-size: 16.5px; }
  .site-header { padding: 52px 16px 44px; }
  .layout { padding: 0 16px 64px; }
  .media-figure { margin: 32px 0 32px -16px; width: calc(100% + 32px); }
  .media-figure figcaption { margin: 10px 16px 0; }
  blockquote.verified { margin: 40px 0 40px -16px; width: calc(100% + 32px); padding: 36px 20px 28px 26px; }
  blockquote.verified::before { left: 12px; }
  section.block.band { margin-left: -16px; margin-right: -16px; padding: 4px 16px 52px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-strip .stat { padding: 12px 14px; }
  .stat .num { font-size: clamp(24px, 8vw, 32px); }
  .site-header .subtitle { max-width: 100%; }
  .lead::first-letter { font-size: 3.4em; }
}

