/* ============================================================
 * THEME: THE INVESTIGATION
 * Newsroom. Magazine. Confrontational. Big editorial energy.
 * Inspired by: ProPublica + Texas Tribune + The Atlantic.
 * ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,300..900,30..100,0..1;1,9..144,300..900,30..100,0..1&family=Archivo:wght@400;500;600;700;800&family=Archivo+Narrow:wght@500;600;700;800&display=swap');

:root {
  --ink: #0a0908;
  --ink-soft: #2a2826;
  --ink-mute: #5d5b56;
  --paper: #f5f0e4;
  --paper-rich: #ebe3d0;
  --paper-deep: #ddd2b8;
  --rule: #1a1816;

  /* blood orange — used boldly for shock-and-mark */
  --accent: #d63920;
  --accent-deep: #a02814;
  --highlight: #f4d35e;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Archivo', system-ui, sans-serif;
  --narrow: 'Archivo Narrow', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
a:hover { color: var(--accent-deep); background: var(--highlight); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* DESIGN BANNER */
.design-banner {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 32px;
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 16px;
}
.design-banner__label { opacity: 0.5; }
.design-banner__name { color: var(--highlight); font-weight: 700; }
.design-banner__nav { margin-left: auto; display: flex; gap: 16px; }
.design-banner__nav a {
  color: var(--paper);
  opacity: 0.5;
  border: none;
  letter-spacing: 0.06em;
}
.design-banner__nav a:hover { opacity: 1; background: transparent; }

/* HEADER — newspaper masthead */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  padding: 28px 0 0;
}
.site-header .container {
  display: grid;
  grid-template-columns: 1fr;
}
.brand {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 16px;
}
.brand__name {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(48px, 7vw, 78px);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  font-variation-settings: 'SOFT' 30, 'WONK' 1;
  line-height: 1;
}
.brand__tld {
  font-style: normal;
  color: var(--accent);
  font-weight: 900;
  font-variation-settings: 'WONK' 0;
}
.brand__tagline {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-top: 14px;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.primary-nav {
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 12px 0 16px;
  font-family: var(--narrow);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.primary-nav a {
  color: var(--ink);
  border: none;
}
.primary-nav a:hover { color: var(--accent); background: transparent; }
.header-search {
  display: flex;
  justify-content: center;
  padding-bottom: 16px;
}
.header-search input {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--ink);
  padding: 6px 0;
  width: 360px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.header-search input:focus { outline: none; border-bottom-color: var(--accent); }
.header-search input::placeholder { color: var(--ink-mute); }

/* HERO — magazine cover */
.hero {
  padding: 80px 0 64px;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: 80px; right: -40px;
  width: 320px; height: 320px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
  filter: blur(40px);
}
.hero .container { position: relative; }
.hero__eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--accent);
  display: inline-block;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(56px, 10vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 36px;
  max-width: 14ch;
  font-variation-settings: 'SOFT' 30, 'WONK' 0;
}
.hero__title em {
  font-style: normal;
  background: var(--accent);
  color: var(--paper);
  padding: 0 0.12em 0.05em;
  display: inline-block;
  transform: rotate(-1deg);
  font-weight: 900;
}
.hero__lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 64px;
  border-left: 4px solid var(--accent);
  padding-left: 24px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: var(--paper-rich);
}
.stat {
  padding: 24px 28px;
  border-right: 1px solid var(--ink);
}
.stat:last-child { border-right: none; }
.stat__value {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* HEADLINE STUDY — front page lead story */
.headline-study {
  padding: 96px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.headline-study .container { display: grid; grid-template-columns: 200px 1fr; gap: 56px; }
.headline-study__inner { max-width: 100%; }
.headline-study::before {
  content: 'LEAD';
  position: absolute;
  top: 96px;
  left: 32px;
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--ink);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}
.headline-study__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.tag {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 10px;
}
.tag--latest { color: var(--paper); background: var(--accent); }
.headline-study__title {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  font-variation-settings: 'SOFT' 30;
}
.headline-study__title a { color: var(--ink); border: none; }
.headline-study__title a:hover { background: var(--highlight); color: var(--ink); }
.headline-study__summary {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  column-count: 2;
  column-gap: 32px;
  margin-bottom: 32px;
}
.headline-study__topline {
  padding: 16px 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}
.topline-label {
  color: var(--paper-deep);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.headline-study__topline strong { color: var(--highlight); font-weight: 700; }
.topline-value { color: var(--paper); font-weight: 700; }

/* SECTIONS */
section { padding: 96px 0; }
.section-head {
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variation-settings: 'SOFT' 30, 'WONK' 0;
}
.section-head p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 24px;
  border-left: 2px solid var(--accent);
}

/* CATEGORIES — magazine grid */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.category-card {
  background: var(--paper-rich);
  padding: 36px 36px 32px;
  color: var(--ink);
  border: none;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform 0.2s;
}
.category-card:nth-child(odd) { background: var(--paper-deep); }
.category-card:hover { transform: translateY(-4px); background: var(--ink); color: var(--paper); }
.category-card__name {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-variation-settings: 'SOFT' 30;
}
.category-card__full {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.category-card:hover .category-card__full { color: var(--paper-deep); }
.category-card__desc {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 8px;
}
.category-card:hover .category-card__desc { color: var(--paper); }
.category-card__examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  padding: 4px 10px;
  background: var(--paper);
  border: 1px solid var(--ink);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.category-card:hover .chip { background: transparent; border-color: var(--paper); color: var(--paper); }
.category-card__stats {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  text-transform: uppercase;
}
.category-card:hover .category-card__stats { color: var(--paper-deep); border-top-color: var(--paper); }

/* FEATURED — long-form list with big numerals */
.featured { background: var(--ink); color: var(--paper); border-top: none; border-bottom: none; }
.featured .section-head h2 { color: var(--paper); }
.featured .section-head p { color: var(--paper-rich); border-left-color: var(--accent); }
.featured__grid {
  display: flex;
  flex-direction: column;
  counter-reset: featured;
}
.contaminant-row {
  counter-increment: featured;
  display: grid;
  grid-template-columns: 80px 1.2fr 1.5fr 1fr;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(245, 240, 228, 0.15);
  color: var(--paper);
  text-decoration: none;
  border: none;
  align-items: start;
}
.contaminant-row::before {
  content: counter(featured, decimal-leading-zero);
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 56px;
  color: var(--accent);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.contaminant-row:hover { background: rgba(214, 57, 32, 0.05); }
.contaminant-row__name { display: flex; flex-direction: column; gap: 4px; }
.contaminant-row__abbr {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: 44px;
  letter-spacing: -0.025em;
  color: var(--paper);
  line-height: 1;
  font-variation-settings: 'SOFT' 30;
}
.contaminant-row__full {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  font-style: normal;
  color: var(--paper-deep);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.badge {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  align-self: flex-start;
}
.badge--legacy { background: var(--accent); color: var(--paper); }
.contaminant-row__desc {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--paper-rich);
  padding-top: 6px;
}
.contaminant-row__data {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--sans);
  padding-top: 6px;
}
.data-label {
  display: block;
  color: var(--paper-deep);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
  font-weight: 600;
}
.data-value {
  font-family: var(--narrow);
  font-weight: 700;
  font-size: 18px;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.contaminant-row__data > div:first-child .data-value { color: var(--highlight); }

/* FOOD CATEGORIES */
.food-cats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 3px solid var(--ink);
}
.food-cat {
  padding: 28px 24px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-rich);
  transition: background 0.15s;
  border: none;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.food-cat:nth-child(4n) { border-right: none; }
.food-cat:nth-last-child(-n+4) { border-bottom: none; }
.food-cat:hover { background: var(--accent); color: var(--paper); }
.food-cat__icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 8px;
}
.food-cat:hover .food-cat__icon { color: var(--paper); }
.food-cat__name {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: 28px;
  letter-spacing: -0.02em;
  font-variation-settings: 'SOFT' 30;
}
.food-cat__detail {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.45;
}
.food-cat:hover .food-cat__detail { color: var(--paper-rich); }

/* LATEST STUDIES — news brief column */
.latest-studies { background: var(--paper); border-top: 1px solid var(--ink); }
.studies-list { list-style: none; }
.study-item {
  display: grid;
  grid-template-columns: 140px 1fr 180px;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--ink);
  align-items: start;
}
.study-item:last-child { border-bottom: 1px solid var(--ink); }
.study-item__date {
  font-family: var(--narrow);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 4px;
}
.study-item__title {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
  font-variation-settings: 'SOFT' 30;
}
.study-item__org {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}
.study-item__finding {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.study-type {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  background: var(--paper-rich);
  color: var(--ink);
  align-self: start;
  border: 1px solid var(--ink);
}
.study-type--government { background: var(--ink); color: var(--paper); }
.study-type--academic_peer_reviewed { background: var(--accent); color: var(--paper); }

/* REGULATIONS */
.regs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.reg-card {
  padding: 32px 32px 28px;
  background: var(--paper);
  border: 2px solid var(--ink);
  position: relative;
}
.reg-card::before {
  content: 'NEW LAW';
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 4px 10px;
}
.reg-card__juris {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
  margin-top: 8px;
}
.reg-card__title {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: 26px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  font-variation-settings: 'SOFT' 30;
}
.reg-card__date {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.reg-card__summary {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* METHODOLOGY */
.methodology {
  background: var(--paper-deep);
  padding: 96px 0;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.methodology h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 56px;
  max-width: 14ch;
  font-variation-settings: 'SOFT' 30;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.method-grid h3 {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.method-grid p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* FOOTER */
.site-footer { background: var(--ink); color: var(--paper); padding: 72px 0 32px; }
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer-col h4 {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--paper-rich);
  font-family: var(--serif);
  font-size: 16px;
  padding: 4px 0;
  border: none;
}
.footer-col a:hover { color: var(--highlight); background: transparent; }
.footer-col .brand__name { color: var(--paper); }
.footer-col .brand__name .brand__tld { color: var(--accent); }
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--paper-rich);
  margin-top: 14px;
  max-width: 40ch;
}
.footer-legal {
  border-top: 1px solid var(--paper-deep);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--paper-deep);
  letter-spacing: 0.04em;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .headline-study .container { grid-template-columns: 1fr; gap: 24px; }
  .headline-study::before { display: none; }
  .headline-study__summary { column-count: 1; }
}
@media (max-width: 900px) {
  .hero__title { font-size: 56px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .categories__grid { grid-template-columns: 1fr; }
  .category-card__name { font-size: 42px; }
  .contaminant-row { grid-template-columns: 60px 1fr; gap: 24px; }
  .contaminant-row__desc, .contaminant-row__data { grid-column: 2; }
  .contaminant-row::before { font-size: 40px; }
  .food-cats__grid { grid-template-columns: repeat(2, 1fr); }
  .food-cat:nth-child(2n) { border-right: none; }
  .study-item { grid-template-columns: 1fr; gap: 8px; }
  .regs__grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-legal { flex-direction: column; gap: 12px; }
  .primary-nav { flex-wrap: wrap; gap: 20px; }
}
/* ============================================================
 * PAGE TEMPLATES — extends theme.css
 * Used by contaminant, food, study, regulation pages.
 * ============================================================ */

/* ---------- ARTICLE HERO (shared shell) ---------- */
.article-hero {
  padding: 64px 0 48px;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.article-hero::after {
  content: '';
  position: absolute;
  top: 50px; right: -80px;
  width: 380px; height: 380px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
  filter: blur(60px);
}
.article-hero .container { position: relative; }

.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.crumbs a {
  color: var(--ink-mute);
  border: none;
  text-decoration: none;
}
.crumbs a:hover { color: var(--accent); background: transparent; }
.crumbs__sep { opacity: 0.4; }
.crumbs__current { color: var(--accent); }

.article-hero__type {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--accent);
  display: inline-block;
}
.article-hero__title {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(48px, 7.5vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  max-width: 18ch;
  font-variation-settings: 'SOFT' 30, 'WONK' 0;
}
.article-hero__subtitle {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink-mute);
  margin-bottom: 32px;
  text-transform: none;
  letter-spacing: 0.04em;
}
.article-hero__lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 0;
  border-left: 4px solid var(--accent);
  padding-left: 24px;
}

/* Hero meta panel — bottom of article hero */
.hero-meta {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: var(--paper-rich);
}
.hero-meta__cell {
  padding: 20px 24px;
  border-right: 1px solid var(--ink);
}
.hero-meta__cell:last-child { border-right: none; }
.hero-meta__label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}
.hero-meta__value {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
}
.hero-meta__value--accent { color: var(--accent); }

/* ---------- ARTICLE BODY ---------- */
.article-body {
  padding: 80px 0;
  background: var(--paper);
}
.article-body .container {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 1100px) {
  .article-body .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Article TOC — left rail */
.article-toc {
  position: sticky;
  top: 32px;
}
.article-toc h3 {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
.article-toc ul { list-style: none; }
.article-toc li { margin-bottom: 8px; }
.article-toc a {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-soft);
  text-decoration: none;
  border: none;
  display: block;
  padding: 4px 0;
  line-height: 1.3;
}
.article-toc a:hover { color: var(--accent); background: transparent; }

/* Main article column */
.article-main {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 64ch;
}
.article-main h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 56px 0 24px;
  font-variation-settings: 'SOFT' 30;
}
.article-main h2:first-child { margin-top: 0; }
.article-main h3 {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
}
.article-main p { margin-bottom: 20px; }
.article-main strong { color: var(--ink); font-weight: 700; }
.article-main em { font-style: italic; }
.article-main a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}
.article-main a:hover { background: var(--highlight); }
.article-main ul, .article-main ol { margin: 0 0 24px 24px; }
.article-main li { margin-bottom: 8px; }

/* Pullquote */
.pullquote {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding: 32px 0 32px 32px;
  margin: 40px 0;
  border-left: 6px solid var(--accent);
  font-variation-settings: 'SOFT' 30;
}

/* Article sidebar — right rail */
.article-sidebar > * { margin-bottom: 32px; }
.sidebar-block {
  background: var(--paper-rich);
  border: 2px solid var(--ink);
  padding: 24px;
}
.sidebar-block h4 {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}
.sidebar-block ul { list-style: none; }
.sidebar-block li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(26, 24, 22, 0.1);
}
.sidebar-block li:last-child { border-bottom: none; }
.sidebar-block li a {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  border: none;
  font-variation-settings: 'SOFT' 30;
}
.sidebar-block li a:hover { color: var(--accent); background: transparent; }
.sidebar-block__meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* ---------- DATA TABLE (universal) ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  margin: 32px 0;
}
.data-table thead th {
  background: var(--ink);
  color: var(--paper);
  text-align: left;
  padding: 12px 16px;
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-right: 1px solid rgba(245, 240, 228, 0.15);
}
.data-table thead th:last-child { border-right: none; }
.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--paper-deep);
  border-right: 1px solid var(--paper-deep);
  vertical-align: top;
}
.data-table tbody td:last-child { border-right: none; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:nth-child(odd) { background: var(--paper-rich); }
.data-table tbody tr:hover { background: var(--highlight); }
.data-table a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--ink); }
.data-table a:hover { color: var(--accent); border-bottom-color: var(--accent); background: transparent; }
.data-table .num {
  font-family: var(--narrow);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.data-table .num--accent { color: var(--accent); }

/* Detection status pills */
.status-pill {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 0;
}
.status-pill--detected { background: var(--accent); color: var(--paper); }
.status-pill--trace { background: var(--highlight); color: var(--ink); }
.status-pill--below_mdl { background: transparent; border: 1px solid var(--ink-mute); color: var(--ink-mute); }
.status-pill--not_tested { background: transparent; border: 1px solid var(--paper-deep); color: var(--ink-mute); }

/* ---------- REGULATORY LIMITS PANEL ---------- */
.reg-panel {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 0;
  margin: 64px 0;
}
.reg-panel__head {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--highlight);
  margin-bottom: 8px;
}
.reg-panel__title {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  font-variation-settings: 'SOFT' 30;
}
.reg-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.reg-panel__item {
  padding: 20px;
  background: rgba(245, 240, 228, 0.04);
  border: 1px solid rgba(245, 240, 228, 0.2);
}
.reg-panel__item-juris {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--highlight);
  margin-bottom: 8px;
}
.reg-panel__item-value {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--paper);
  line-height: 1;
  margin-bottom: 6px;
}
.reg-panel__item-type {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--paper-deep);
  margin-bottom: 10px;
}
.reg-panel__item-notes {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--paper-rich);
}

/* ---------- EMPTY STATES ---------- */
.empty-state {
  padding: 48px 32px;
  background: var(--paper-rich);
  border: 2px dashed var(--ink-mute);
  text-align: center;
  margin: 32px 0;
}
.empty-state__icon {
  font-family: var(--serif);
  font-style: italic;
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 12px;
}
.empty-state__title {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--ink);
}
.empty-state__text {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-mute);
  max-width: 50ch;
  margin: 0 auto;
}

/* ---------- STUDY PAGE specific ---------- */
.study-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 2px solid var(--ink);
  background: var(--paper-rich);
  margin: 32px 0;
}
.study-meta-grid > div {
  padding: 16px 20px;
  border-right: 1px solid var(--ink);
}
.study-meta-grid > div:last-child { border-right: none; }
.study-meta-grid .label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.study-meta-grid .value {
  font-family: var(--narrow);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

/* ---------- REGULATION PAGE specific ---------- */
.reg-status-banner {
  background: var(--accent);
  color: var(--paper);
  padding: 12px 20px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: inline-block;
  margin-bottom: 24px;
}
.reg-status-banner--rescinded { background: var(--ink-mute); }
.reg-status-banner--proposed { background: var(--highlight); color: var(--ink); }

.reg-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.reg-scope__pill {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--ink);
  color: var(--ink);
}

/* ---------- FOOD PAGE specific ---------- */
.contaminant-class-section {
  margin: 48px 0;
}
.contaminant-class-section__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 24px;
}
.contaminant-class-section__title {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: 'SOFT' 30;
}
.contaminant-class-section__count {
  font-family: var(--narrow);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* ---------- CITATIONS / SOURCES ---------- */
.citations {
  margin-top: 64px;
  padding: 32px;
  background: var(--paper-rich);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  font-family: var(--sans);
}
.citations h3 {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}
.citations ol { margin-left: 20px; font-size: 13px; line-height: 1.55; color: var(--ink-soft); }
.citations li { margin-bottom: 8px; }
.citations a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ---------- RESPONSIVE adjustments for article pages ---------- */
@media (max-width: 900px) {
  .article-hero__title { font-size: 48px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-meta__cell:nth-child(2n) { border-right: none; }
  .hero-meta__cell:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .article-toc { position: static; }
  .data-table { font-size: 13px; }
  .data-table thead th { padding: 10px 12px; }
  .data-table tbody td { padding: 10px 12px; }
}

/* Remove old design-banner styles (partner-pitch only) */
.design-banner { display: none; }

/* ============================================================
 * CONTENT PAGE TEMPLATE — listing mode
 * Used by category indexes, study list, regulation list, etc.
 * ============================================================ */

.content-listing {
  padding: 64px 0 96px;
  background: var(--paper);
}

.listing-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--ink);
}
.listing-filters__label {
  font-family: var(--narrow);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-right: 8px;
}
.listing-filters__chip {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.listing-filters__chip:hover {
  background: var(--ink);
  color: var(--paper);
}
.listing-filters__chip.is-active {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.listing-filters__count {
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.7;
}

.listing-group {
  margin-bottom: 56px;
}
.listing-group__head {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--ink);
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-variation-settings: 'SOFT' 30;
}
.listing-group__count {
  font-family: var(--narrow);
  font-weight: 700;
  font-style: normal;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.listing-group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* Listing card — used by chemical/food/study/regulation list items */
.listing-card {
  background: var(--paper-rich);
  border: 2px solid var(--ink);
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s, background 0.15s;
  position: relative;
}
.listing-card:hover {
  transform: translateY(-3px);
  background: var(--ink);
  color: var(--paper);
}
.listing-card__eyebrow {
  font-family: var(--narrow);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.listing-card:hover .listing-card__eyebrow { color: var(--highlight); }
.listing-card__title {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: inherit;
  font-variation-settings: 'SOFT' 30;
}
.listing-card__sub {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-mute);
}
.listing-card:hover .listing-card__sub { color: var(--paper-deep); }
.listing-card__desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 4px;
}
.listing-card:hover .listing-card__desc { color: var(--paper-rich); }
.listing-card__meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  font-family: var(--narrow);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.listing-card:hover .listing-card__meta {
  color: var(--paper-deep);
  border-top-color: var(--paper);
}
.listing-card__badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
}

@media (max-width: 700px) {
  .listing-group__grid { grid-template-columns: 1fr; }
  .listing-group__head { font-size: 28px; }
}
