/* Local Poppins fallbacks */
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-Medium.ttf')  format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-Bold.ttf')    format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
/* Bebas Neue from Google Fonts only — fallback Arial Narrow. */

:root {
  --ink: #0A0A0A;
  --text: #171717;
  --slate: #525252;
  --slate-light: #A3A3A3;
  --cream: #FAF7F2;
  --cream-dark: #EDE8DD;
  --border: #E5E0D5;
  --border-strong: #D4D4D4;
  --white: #ffffff;
  --violet: #7C3AED;
  --violet-light: #A78BFA;
  --violet-vl: #DDD6FE;
  --violet-bg: #F5F3FF;
  --rose: #FB7185;
  --rose-bg: #FDF2F8;
  --peach: #FB923C;
  --peach-bg: #FFF7ED;
  --sky: #93C5FD;
  --sky-bg: #EFF6FF;
  --emerald: #10B981;
  --emerald-bg: #ECFDF5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.7; color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #5B21B6; }

/* ===== Acronym hover popups ===== */
abbr[data-def] {
  position: relative;
  text-decoration: none;
  border-bottom: 1px dotted var(--slate-light);
  cursor: help;
  text-decoration-skip-ink: none;
  font-style: inherit;
}
abbr[data-def]:hover {
  border-bottom-color: var(--violet);
  border-bottom-style: solid;
}
/* the popup card */
abbr[data-def]::after {
  content: attr(data-def);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 11px);
  transform: translateX(-50%) translateY(5px);
  width: max-content;
  max-width: 264px;
  background: var(--ink);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
  padding: 11px 13px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(10,10,10,0.24);
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 60;
  pointer-events: none;
}
/* the arrow */
abbr[data-def]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  transform: translateX(-50%) translateY(5px);
  border: 6px solid transparent;
  border-top-color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 61;
  pointer-events: none;
}
abbr[data-def]:hover::after,
abbr[data-def]:hover::before,
abbr[data-def]:focus-visible::after,
abbr[data-def]:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== Glossary list (bottom of article) ===== */
.glossary-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
  margin: 24px 0 0;
  padding: 0;
}
@media (max-width: 720px) { .glossary-list { grid-template-columns: 1fr; } }
.glossary-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.45;
}
.glossary-item dt {
  font-weight: 700;
  color: var(--violet);
  margin: 0;
}
.glossary-item dd {
  margin: 0;
  color: var(--text);
}

.hero {
  position: relative; padding: 88px 24px 64px; overflow: hidden;
  background:
    radial-gradient(circle at 110% 10%, #FBCFE8 0%, transparent 35%),
    radial-gradient(circle at -10% 60%, #DDD6FE 0%, transparent 38%),
    radial-gradient(circle at 95% 95%, #FED7AA 0%, transparent 35%),
    radial-gradient(circle at 5% 5%, #BFDBFE 0%, transparent 30%),
    #ffffff;
}
.hero-inner { max-width: 1040px; margin: 0 auto; }

.wordmark {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}

.kicker {
  display: inline-block;
  background: var(--violet-light); color: var(--ink);
  font-weight: 700; font-size: 11px; letter-spacing: 0.08em;
  padding: 6px 12px; border-radius: 4px; text-transform: uppercase;
  margin-top: 36px; margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.95; letter-spacing: -0.005em;
  text-transform: uppercase; color: var(--ink);
  margin: 0 0 8px;
}
.hero h1 .accent { color: var(--violet); }

.hero .dek {
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 500; line-height: 1.5; color: var(--slate);
  max-width: 720px; margin: 24px 0 32px;
  font-style: italic;
}

.byline {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  font-size: 13px; color: var(--slate);
  margin-top: 16px; border-top: 1px solid var(--border); padding-top: 18px;
}
.byline strong { color: var(--ink); font-weight: 700; }
.byline .dot { color: var(--slate-light); }

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

h2 {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.05; letter-spacing: 0.01em;
  text-transform: uppercase; color: var(--ink);
  margin: 64px 0 16px;
}
h2 .accent { color: var(--violet); }

h3 {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 18px; line-height: 1.3; color: var(--violet);
  margin: 32px 0 8px;
}

p { margin: 0 0 18px; }
ul, ol { padding-left: 20px; margin: 0 0 18px; }
li { margin-bottom: 8px; }
strong, b { font-weight: 600; color: var(--ink); }

.opener {
  font-size: 19px; line-height: 1.6; color: var(--text);
  font-weight: 500; margin-bottom: 24px;
}

.stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0;
}
@media (max-width: 720px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr; } }

.stat {
  background: var(--cream-dark);
  border-left: 3px solid var(--violet);
  padding: 18px 18px 16px;
}
.stat .num {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 40px; line-height: 1; color: var(--ink);
  margin-bottom: 10px; display: block;
}
.stat .label { font-size: 13px; font-weight: 600; color: var(--ink); display: block; }
.stat .src { font-size: 10px; color: var(--slate); margin-top: 8px; display: block; font-style: italic; }
.stat.rose { border-left-color: var(--rose); }
.stat.peach { border-left-color: var(--peach); }
.stat.emerald { border-left-color: var(--emerald); }

.callout {
  background: var(--violet-bg); border-left: 4px solid var(--violet);
  padding: 20px 24px; margin: 32px 0; border-radius: 0 4px 4px 0;
}
.callout.peach { background: var(--peach-bg); border-left-color: var(--peach); }
.callout.sky { background: var(--sky-bg); border-left-color: var(--sky); }
.callout.emerald { background: var(--emerald-bg); border-left-color: var(--emerald); }
.callout .label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--violet);
  margin-bottom: 8px; display: block;
}
.callout p:last-child { margin-bottom: 0; }

.pullquote {
  border-left: 4px solid var(--violet); background: var(--cream-dark);
  padding: 24px 28px; margin: 36px 0;
  font-style: italic; font-size: 19px; line-height: 1.55; color: var(--ink); font-weight: 500;
}

.table-wrap { overflow-x: auto; margin: 24px 0; }
table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  background: var(--white); border: 1px solid var(--border-strong);
}
th {
  background: var(--ink); color: var(--white);
  text-align: left; padding: 12px 14px;
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.02em; text-transform: uppercase;
}
td {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  vertical-align: top; line-height: 1.4;
}
tr:nth-child(even) td { background: var(--cream); }
td:first-child { font-weight: 600; color: var(--ink); }
.cell-note { display: block; font-weight: 400; font-size: 11px; color: var(--slate); margin-top: 2px; }
.table-source { font-size: 11px; color: var(--slate); margin-top: 6px; font-style: italic; }

.chart { margin: 32px -8px; padding: 0; }
.chart img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--border); border-radius: 4px;
}
.chart figcaption {
  font-size: 12px; color: var(--slate);
  margin-top: 8px; font-style: italic;
}

.cta-section {
  background: var(--white); padding: 56px 24px; margin-top: 64px;
  border-top: 1px solid var(--border);
}
.cta-inner { max-width: 1100px; margin: 0 auto; }
.cta-section h2 { margin-top: 0; }
.cta-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px;
}
@media (max-width: 720px) { .cta-grid { grid-template-columns: 1fr; } }

.cta-card {
  background: var(--ink); color: var(--white);
  padding: 24px 24px 22px; border-radius: 4px;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; transition: background 0.15s;
}
.cta-card:hover { background: #1F1F1F; }
.cta-card h3 { color: var(--white); margin: 0; font-size: 17px; line-height: 1.3; }
.cta-card p { color: #D4D4D4; font-size: 13px; line-height: 1.5; margin: 0; }
.cta-card .url { color: var(--violet-light); font-weight: 700; font-size: 13px; margin-top: 4px; }

.download-callout {
  background: var(--ink); color: var(--white);
  padding: 28px 32px; margin: 40px 0; border-radius: 4px;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px;
}
.download-callout p { color: var(--white); margin: 0; font-size: 15px; max-width: 540px; }
.download-callout strong { color: var(--violet-light); }
.download-callout .btn {
  background: var(--violet); color: var(--white);
  padding: 12px 24px; border-radius: 4px; text-decoration: none;
  font-weight: 700; font-size: 14px; display: inline-block; white-space: nowrap;
}
.download-callout .btn:hover { background: #6D28D9; color: var(--white); }

.methodology { background: var(--cream); padding: 48px 24px; border-top: 1px solid var(--border); }
.methodology .container { padding-top: 0; padding-bottom: 0; }
.method-list { font-size: 14px; }
.method-list li { margin-bottom: 10px; }

.footer { background: var(--white); padding: 32px 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 12px; color: var(--slate); }
.gradient-bar {
  height: 8px;
  background: linear-gradient(90deg, #FB7185 0%, #F472B6 25%, #A855F7 55%, #FB923C 80%, #FB7185 100%);
}
.disclaimer {
  font-size: 11px; color: var(--slate-light);
  margin-top: 24px; font-style: italic;
}

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--violet);
  margin-top: 32px; margin-bottom: 8px;
}

@media print {
  .cta-section, .download-callout { break-inside: avoid; }
  body { background: white; }
}