/* ============================================================
   OATH PEPTIDES COMPLAINTS — EDITORIAL CONTEMPORANEO
   Bodoni Moda + Inter + JetBrains Mono on paper-white
   ============================================================ */

:root {
  /* Palette */
  --primary: #6E1B1B;
  --primary-50: #F6E8E8;
  --primary-100: #EAC9C9;
  --primary-200: #D69E9E;
  --primary-500: #6E1B1B;
  --primary-700: #561414;
  --primary-900: #360A0A;
  --secondary: #131A2E;
  --secondary-700: #0A1020;
  --accent-gold: #B8862F;
  --accent-gold-50: #FAF1DC;
  --accent-gold-100: #F0DDB0;
  --accent-gold-700: #8C6420;
  --neutral-0: #FFFFFF;
  --neutral-50: #FAFAF6;
  --neutral-100: #F2F1EB;
  --neutral-150: #E8E6DD;
  --neutral-200: #DAD7CB;
  --neutral-300: #BFBBAB;
  --neutral-400: #94907E;
  --neutral-500: #6B6859;
  --neutral-600: #4F4D42;
  --neutral-700: #363429;
  --neutral-800: #1F1E17;
  --neutral-900: #0F0E0A;
  --graphite: #1A1A1A;
  --bg: #FAFAF6;
  --bg-paper: #FFFFFF;
  --surface: #FFFFFF;
  --surface-dossier: #F2F1EB;
  --surface-inverse: #131A2E;
  --text: #1A1A1A;
  --text-strong: #0F0E0A;
  --text-muted: #4F4D42;
  --text-dim: #6B6859;
  --text-on-dark: #FAFAF6;
  --text-on-primary: #FAFAF6;
  --text-on-gold: #0F0E0A;
  --rule: #E8E6DD;
  --rule-strong: #BFBBAB;
  --rule-accent: #6E1B1B;
  --rule-gold: #B8862F;
  --rule-navy: #131A2E;
  --decorative-hairline: #94907E;
  --verified: #3F5F2E;
  --warning: #8C6420;
  --danger: #6E1B1B;
  --info: #131A2E;

  /* Typography */
  --font-heading: 'Bodoni Moda', 'Bodoni 72', 'Didot', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Söhne', 'Helvetica Neue', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Scale */
  --fs-h1: clamp(2.125rem, 4.5vw, 3.625rem);
  --fs-h2: clamp(1.625rem, 3.25vw, 2.375rem);
  --fs-h3: 1.4375rem;
  --fs-h4: 1.0625rem;
  --fs-lede: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.8125rem;
  --fs-eyebrow: 0.75rem;
  --fs-drop-cap: clamp(4rem, 7vw, 5rem);
  --fs-pullquote: clamp(1.625rem, 2.75vw, 2.125rem);
  --fs-folio: 0.75rem;

  /* Line height */
  --lh-h1: 1.08;
  --lh-heading: 1.16;
  --lh-lede: 1.55;
  --lh-body: 1.7;
  --lh-drop-cap: 0.86;
  --lh-pullquote: 1.25;
  --lh-mono: 1.5;
  --lh-small: 1.55;

  /* Tracking */
  --tr-h1: -0.018em;
  --tr-h2: -0.012em;
  --tr-h3: -0.005em;
  --tr-body: 0;
  --tr-lede: -0.005em;
  --tr-eyebrow: 0.22em;
  --tr-folio: 0.18em;
  --tr-wordmark: 0.28em;
  --tr-drop-cap: -0.04em;
  --tr-pullquote: -0.012em;

  /* Layout */
  --max-width: 76rem;
  --content-max-width: 44rem;
  --feature-max-width: 62rem;
  --spread-max-width: 76rem;
  --container-px: clamp(1rem, 3vw, 2.25rem);

  /* Motion */
  --t-color: color 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out;
}

/* ============================================================ */
/* RESET */
/* ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, blockquote, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding-left: 1.25rem; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.05em; transition: var(--t-color); }
a:hover { color: var(--primary-700); }

/* ============================================================ */
/* BASE */
/* ============================================================ */

html { background: var(--bg); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tr-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* ============================================================ */
/* TYPOGRAPHY */
/* ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-strong);
  font-weight: 700;
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--tr-h1);
  font-variation-settings: "opsz" 96;
  font-weight: 700;
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-h2);
  font-variation-settings: "opsz" 48;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 0.875rem;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin-top: 0.875rem;
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-h3);
  font-style: italic;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-heading);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p { margin: 0 0 1rem 0; }
p + p { margin-top: 1rem; }

strong, b { color: var(--text-strong); font-weight: 600; }
em, i { font-style: italic; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9375em;
  line-height: var(--lh-mono);
  border-bottom: 1px solid var(--neutral-200);
  padding-bottom: 1px;
  background: transparent;
  font-feature-settings: "tnum" 1;
}

ul, ol { margin: 0 0 1rem 0; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }
li::marker { color: var(--primary); }

sup { font-size: 0.75em; vertical-align: super; line-height: 0; }
sup a { text-decoration: none; color: var(--primary); font-weight: 600; padding: 0 0.125em; }
sup a:hover { color: var(--primary-700); text-decoration: underline; }

/* ============================================================ */
/* LAYOUT — CONTAINERS */
/* ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.container-feature {
  width: 100%;
  max-width: var(--feature-max-width);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.container-reading {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.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;
}

/* ============================================================ */
/* HEADER / MASTHEAD */
/* ============================================================ */

.site-header {
  background: var(--neutral-0);
  border-bottom: 3px solid var(--primary);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 84px;
  flex-wrap: wrap;
}

.masthead-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--primary);
}

.masthead-brand:hover { color: var(--primary-700); }

.masthead-brand-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.masthead-dingbat {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--primary);
  line-height: 1;
}

.masthead-wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: var(--tr-wordmark);
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1.1;
}

.masthead-subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.625rem;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.1875rem;
}

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; align-items: center; }
.site-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--neutral-700);
  text-decoration: none;
  padding: 0.25rem 0;
  position: relative;
}
.site-nav a:hover { color: var(--primary); }
.site-nav a[aria-current="page"] { color: var(--primary); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--primary);
}

.masthead-folio {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: var(--tr-folio);
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.375rem 0.625rem;
  background: var(--neutral-0);
}

/* Mobile nav toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--neutral-0);
  border: 1px solid var(--neutral-300);
  color: var(--neutral-700);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.nav-toggle:hover { border-color: var(--primary); color: var(--primary); }

@media (min-width: 880px) {
  .site-nav { display: block; }
  .nav-toggle { display: none; }
}

/* Mobile nav drawer */
.site-nav[data-open="true"] {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
}
.site-nav[data-open="true"] ul {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  border-top: 1px solid var(--neutral-200);
  padding-top: 0.875rem;
}

/* ============================================================ */
/* MAIN */
/* ============================================================ */

main { padding: 3rem 0 5rem 0; }

@media (min-width: 768px) {
  main { padding: 4rem 0 6rem 0; }
}

article { display: block; }

/* ============================================================ */
/* HERO — MAGAZINE COVER */
/* ============================================================ */

.hero {
  background: var(--surface);
  border: 1px solid var(--neutral-200);
  padding: 1.75rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 7fr 5fr;
    gap: 2.5rem;
    padding: 2.5rem 2.5rem 2.25rem 2.5rem;
  }
}

.hero-content { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--primary);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.eyebrow-fleuron {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--primary);
  line-height: 1;
}

.hero h1 {
  margin: 0;
  max-width: 56ch;
}

.hero-lede {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: italic;
  font-size: var(--fs-lede);
  line-height: var(--lh-lede);
  letter-spacing: var(--tr-lede);
  color: var(--neutral-700);
  margin: 0;
  max-width: 56ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero-figure {
  margin: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--neutral-200);
  background: var(--bg);
}

.figure-caption {
  margin-top: 0.625rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: var(--tr-folio);
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ============================================================ */
/* BUTTONS */
/* ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.875rem 1.75rem;
  border: 1.5px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: var(--t-color);
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-primary);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-700); color: var(--text-on-primary); border-color: var(--primary-700); }
.btn-primary:active { background: var(--primary-900); }

.btn-secondary {
  background: transparent;
  color: var(--neutral-900);
  border-color: var(--neutral-400);
}
.btn-secondary:hover { color: var(--primary); border-color: var(--primary); }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: none;
  padding: 0.5rem 0;
  position: relative;
}
.btn-ghost::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: transparent;
  transition: var(--t-color);
}
.btn-ghost:hover::after { background: var(--primary); }

/* ============================================================ */
/* FOCUS */
/* ============================================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--neutral-0);
}

/* ============================================================ */
/* DROP CAP */
/* ============================================================ */

.drop-cap::first-letter,
.has-drop-cap > p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
  font-size: var(--fs-drop-cap);
  line-height: var(--lh-drop-cap);
  letter-spacing: var(--tr-drop-cap);
  float: left;
  padding: 0.4rem 0.625rem 0 0;
  text-transform: uppercase;
}

.has-drop-cap--navy > p:first-of-type::first-letter { color: var(--secondary); }
.has-drop-cap--gold > p:first-of-type::first-letter { color: var(--accent-gold); }

/* ============================================================ */
/* SECTION CONTENT TYPOGRAPHY */
/* ============================================================ */

.article-body {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.article-body section { margin-bottom: 2.5rem; }
.article-body section:first-of-type h2 { margin-top: 0; }

.article-body p { max-width: 64ch; }
.article-body ul, .article-body ol { max-width: 64ch; }

.section-lede {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: italic;
  font-size: var(--fs-lede);
  line-height: var(--lh-lede);
  letter-spacing: var(--tr-lede);
  color: var(--neutral-700);
  margin: 0 0 1.25rem 0;
  max-width: 56ch;
}

/* ============================================================ */
/* SECTION BREAK — Roman numeral chapter markers */
/* ============================================================ */

.section-break {
  margin: 3rem auto 2rem auto;
  max-width: var(--feature-max-width);
  text-align: center;
  position: relative;
}

.section-break-ornament {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.section-break-fleuron {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent-gold);
  line-height: 1;
}

.section-break-numeral {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  font-style: normal;
  color: var(--primary);
  letter-spacing: 0.02em;
  line-height: 1;
}

.section-break::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--neutral-200);
  z-index: 0;
}

/* ============================================================ */
/* FEATURE PANEL */
/* ============================================================ */

.feature-panel {
  background: var(--surface);
  border: 1px solid var(--neutral-200);
  border-left: 4px solid var(--primary);
  padding: 1.75rem 1.5rem;
  margin: 2rem auto;
  max-width: var(--feature-max-width);
}

@media (min-width: 768px) {
  .feature-panel { padding: 2.25rem 2.25rem; }
}

.feature-panel-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.75rem 0;
}

.feature-panel h2,
.feature-panel h3 {
  margin-top: 0;
}

.feature-panel h2::after { display: none; }

.feature-panel-lede {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: italic;
  font-size: 1.125rem;
  line-height: var(--lh-lede);
  color: var(--neutral-700);
  margin: 0 0 1.25rem 0;
}

.feature-panel-evidence {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--neutral-200);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: var(--lh-small);
}

.feature-panel-evidence::before {
  content: "EVIDENCE — ";
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--primary);
}

/* CLAIM EXAMINED variant */
.feature-panel--claim-examined {
  border-left-color: var(--accent-gold);
}
.feature-panel--claim-examined .feature-panel-eyebrow {
  color: var(--accent-gold-700);
}

/* ============================================================ */
/* DOSSIER CARD */
/* ============================================================ */

.dossier-card {
  background: var(--surface-dossier);
  border: 1px solid var(--neutral-200);
  padding: 1.75rem 1.5rem;
  margin: 2rem auto;
  max-width: var(--feature-max-width);
}

@media (min-width: 768px) {
  .dossier-card { padding: 2rem 2.25rem; }
}

.dossier-card-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1rem 0;
}

.dossier-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dossier-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--neutral-200);
  margin-bottom: 0;
}
.dossier-list li:last-child { border-bottom: none; }

@media (min-width: 640px) {
  .dossier-list li {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }
}

.dossier-list-source {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--neutral-900);
}
.dossier-list-status {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-small);
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================ */
/* PULLQUOTE */
/* ============================================================ */

.pullquote {
  max-width: var(--feature-max-width);
  margin: 2.5rem auto;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 3px solid var(--primary);
}

.pullquote-text {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: italic;
  font-size: var(--fs-pullquote);
  line-height: var(--lh-pullquote);
  letter-spacing: var(--tr-pullquote);
  color: var(--neutral-900);
  margin: 0;
}

.pullquote-attribution {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 1rem;
  display: block;
}

/* ============================================================ */
/* CALLOUTS */
/* ============================================================ */

.callout {
  background: var(--bg-paper);
  border: 1px solid var(--neutral-200);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  max-width: 64ch;
}

.callout-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.5rem 0;
}

.callout p:last-child { margin-bottom: 0; }

.callout--claim-examined {
  border-left-color: var(--accent-gold);
}
.callout--claim-examined .callout-eyebrow { color: var(--accent-gold-700); }

.callout--honest-gap {
  background: var(--surface-dossier);
  border-left-color: var(--neutral-500);
}
.callout--honest-gap .callout-eyebrow { color: var(--text-muted); }
.callout--honest-gap p { font-style: italic; color: var(--neutral-700); }

.callout--regulatory {
  border-left-color: var(--secondary);
}
.callout--regulatory .callout-eyebrow { color: var(--secondary); }

/* ============================================================ */
/* MARGINALIA */
/* ============================================================ */

.marginalia {
  border-left: 4px solid var(--accent-gold);
  padding: 0.5rem 0 0.5rem 1rem;
  margin: 1.5rem 0;
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--fs-small);
  color: var(--neutral-700);
  line-height: var(--lh-small);
  max-width: 56ch;
}

@media (min-width: 1100px) {
  .article-body { position: relative; }
  .marginalia {
    float: right;
    clear: right;
    width: 12rem;
    margin-right: -14rem;
    margin-top: 0;
    border-left-width: 2px;
    padding-left: 0.875rem;
    font-size: var(--fs-micro);
  }
}

/* ============================================================ */
/* STAT STRIP */
/* ============================================================ */

.stat-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--neutral-200);
  background: var(--surface);
  margin: 2rem auto;
  max-width: var(--feature-max-width);
}

@media (min-width: 720px) {
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
}

.stat-cell {
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
}
.stat-cell:nth-child(2n) { border-right: none; }

@media (min-width: 720px) {
  .stat-cell { border-bottom: none; }
  .stat-cell { border-right: 1px solid var(--neutral-200); }
  .stat-cell:nth-child(2n) { border-right: 1px solid var(--neutral-200); }
  .stat-cell:nth-child(4n),
  .stat-cell:last-child { border-right: none; }
}

.stat-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--accent-gold-700);
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--neutral-200);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.1;
  color: var(--primary);
  font-variation-settings: "opsz" 48;
}

.stat-value-small {
  font-size: 1.125rem;
  letter-spacing: 0;
  font-weight: 700;
}

/* ============================================================ */
/* VERDICT CLOSE — Deep navy inverse spread */
/* ============================================================ */

.verdict-close-wrapper {
  margin: 4rem 0 2rem 0;
}

.verdict-close-eyebrow {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--accent-gold-700);
  margin: 0 0 1rem 0;
}

.verdict-close {
  background: var(--surface-inverse);
  color: var(--text-on-dark);
  padding: 2.5rem 1.5rem;
  max-width: var(--spread-max-width);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .verdict-close { padding: 3.5rem 3rem; }
}

.verdict-close h2 {
  color: var(--text-on-dark);
  margin: 0 0 1.25rem 0;
  max-width: 56ch;
}
.verdict-close h2::after { display: none; }

.verdict-close-lede {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: italic;
  font-size: var(--fs-lede);
  line-height: var(--lh-lede);
  color: var(--text-dim);
  margin: 0 0 1.5rem 0;
  max-width: 56ch;
}

.verdict-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  max-width: 60ch;
}

.verdict-bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.875rem;
  font-family: var(--font-body);
  color: var(--text-on-dark);
}

.verdict-bullets li::before {
  content: "❖";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--accent-gold);
  font-size: 0.9375em;
  line-height: 1;
}

.verdict-close-link-row {
  border-top: 1px solid var(--accent-gold);
  padding-top: 1.25rem;
}

.verdict-close-link {
  color: var(--accent-gold);
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9375rem;
}
.verdict-close-link:hover { color: var(--accent-gold-50); }

/* Stat strip — inverse variant */
.stat-strip--inverse {
  background: transparent;
  border-color: rgba(184, 134, 47, 0.35);
  margin: 0 0 2rem 0;
}
.stat-strip--inverse .stat-cell {
  border-color: rgba(184, 134, 47, 0.35);
}
.stat-strip--inverse .stat-label {
  color: var(--accent-gold);
  border-bottom-color: rgba(184, 134, 47, 0.35);
}
.stat-strip--inverse .stat-value {
  color: var(--text-on-dark);
}

/* ============================================================ */
/* FOLIO CORNER */
/* ============================================================ */

.folio-corner {
  margin: 3.5rem 0 0 0;
  text-align: right;
}

.folio-corner-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: var(--tr-folio);
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.375rem 0.625rem;
  background: var(--neutral-0);
}

/* ============================================================ */
/* TABLES */
/* ============================================================ */

.editorial-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-bottom: 1px solid var(--neutral-300);
  margin: 1.5rem 0;
  font-size: var(--fs-small);
}

.editorial-table thead th {
  border-top: 2px solid var(--primary);
  border-bottom: 1px solid var(--neutral-200);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8125rem;
  color: var(--neutral-900);
  padding: 0.75rem 0.875rem;
  text-align: left;
}

.editorial-table td {
  padding: 1rem 0.875rem;
  border-bottom: 1px solid var(--neutral-200);
  vertical-align: top;
  font-family: var(--font-body);
}

.editorial-table tr:last-child td { border-bottom: none; }

.editorial-table td.num,
.editorial-table th.num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.editorial-table tbody tr { transition: var(--t-color); }
.editorial-table tbody tr:hover {
  background: rgba(232, 230, 221, 0.5);
}

/* ============================================================ */
/* REFERENCES LIST */
/* ============================================================ */

.references-list {
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  counter-reset: ref-counter;
  max-width: var(--content-max-width);
}

.references-list > li {
  counter-increment: ref-counter;
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--neutral-200);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.references-list > li::before {
  content: "[" counter(ref-counter) "]";
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--primary);
  flex-shrink: 0;
  min-width: 2.25rem;
}

.ref-source-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--neutral-200);
  padding: 0.125rem 0.375rem;
  margin-left: 0.5rem;
  background: var(--neutral-50);
}

.ref-link {
  margin-left: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.ref-link:hover { color: var(--primary-700); }

/* ============================================================ */
/* FIGURES */
/* ============================================================ */

figure.editorial-figure {
  margin: 2rem auto;
  max-width: var(--feature-max-width);
  background: var(--surface);
  border: 1px solid var(--neutral-200);
  padding: 1rem;
}

figure.editorial-figure img {
  width: 100%;
  height: auto;
  display: block;
}

figure.editorial-figure figcaption {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--neutral-200);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-small);
  color: var(--neutral-700);
  line-height: 1.5;
}

.editorial-figure-plate {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--primary);
  font-style: normal;
  margin-right: 0.5rem;
}

/* ============================================================ */
/* CONTACT FORM */
/* ============================================================ */

.contact-form {
  max-width: 32rem;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row { display: flex; flex-direction: column; gap: 0.375rem; }

.form-row label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--neutral-700);
}

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--neutral-300);
  background: var(--surface);
  color: var(--text);
  border-radius: 0;
}

.form-row textarea { min-height: 8rem; resize: vertical; }

/* ============================================================ */
/* FOOTER */
/* ============================================================ */

.site-footer {
  background: var(--surface-inverse);
  color: var(--text-on-dark);
  border-top: 3px solid var(--primary);
  padding: 2.5rem 0 1.5rem 0;
  margin-top: 4rem;
}

.footer-disclaimer {
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--text-dim);
  margin: 0 auto 2rem auto;
  max-width: 60ch;
  padding: 0 var(--container-px);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) { .footer-columns { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-columns { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } }

.footer-column h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0 0 0.875rem 0;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-column a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-on-dark);
  text-decoration: none;
  position: relative;
}

.footer-column a::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: transparent;
  transition: var(--t-color);
}

.footer-column a:hover::after { background: var(--accent-gold); }

.sub-footer {
  border-top: 1px solid var(--neutral-700);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 720px) {
  .sub-footer { flex-direction: row; justify-content: space-between; text-align: left; }
}

.sub-footer-copyright {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

.sub-footer-colophon {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0;
}

/* ============================================================ */
/* TIPPY THEME — editorial-magazine */
/* ============================================================ */

.tippy-box[data-theme~='editorial'] {
  background: var(--bg-paper);
  color: var(--text);
  border-top: 2px solid var(--primary);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: 1.55;
  padding: 0.625rem 0.875rem;
  max-width: 22rem !important;
  box-shadow: 0 1px 0 var(--neutral-200), 0 8px 24px rgba(15, 14, 10, 0.06);
}

.tippy-box[data-theme~='editorial'] .tippy-content {
  padding: 0;
}

.tippy-box[data-theme~='editorial'][data-placement^='top'] > .tippy-arrow::before {
  border-top-color: var(--bg-paper);
}
.tippy-box[data-theme~='editorial'][data-placement^='bottom'] > .tippy-arrow::before {
  border-bottom-color: var(--primary);
}

.tippy-box[data-theme~='editorial'] .ref-tooltip-source {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.375rem;
}

.tippy-box[data-theme~='editorial'] .ref-tooltip-citation {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text);
}

.tippy-box[data-theme~='editorial'] code {
  font-family: var(--font-mono);
  color: var(--primary);
  border-bottom: none;
}

/* ============================================================ */
/* 404 */
/* ============================================================ */

.error-page {
  text-align: center;
  padding: 6rem 0;
}

.error-page .eyebrow { justify-content: center; }
.error-page h1 { max-width: none; }
.error-page .cta-row { justify-content: center; }

/* ============================================================ */
/* REDUCED MOTION */
/* ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}
