/* ============================================
   UTAH COMPACT — MAIN STYLESHEET
   ============================================ */

:root {
  --navy:      #1B2F4E;
  --navy-dark: #0F1E33;
  --red:       #C0392B;
  --red-light: #E74C3C;
  --cream:     #F5F1EA;
  --white:     #FFFFFF;
  --gray-50:   #F9FAFB;
  --gray-100:  #F3F4F6;
  --gray-200:  #E5E7EB;
  --gray-400:  #9CA3AF;
  --gray-600:  #4B5563;
  --gray-900:  #111827;

  --font-sans:  'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --max-w: 1200px;
  --section-pad: 100px;
  --nav-h: 72px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 4px;
  --radius-lg: 12px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* CONTAINERS */
/* @class container
   @label Content container
   @applies div section
   @group Layout
   @desc Centers content at the site max width with side padding. */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* @class section
   @label Page section
   @applies section div
   @group Layout
   @desc Vertical padding for a full-width page section. */
.section { padding: var(--section-pad) 0; }

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
/* @class section-label
   @label Section label
   @applies div span p
   @group Typography
   @desc Small uppercase eyebrow above a section title. */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.section-label.light { color: rgba(255,255,255,0.6); }

/* @class section-title
   @label Section title
   @applies h1 h2 h3
   @group Typography
   @desc Large display heading for a section. */
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-dark);
  margin-bottom: 20px;
}
.section-title.light { color: var(--white); }

/* @class section-sub
   @label Section subtitle
   @applies p
   @group Typography
   @desc Muted subtitle paragraph under a section title. */
.section-sub {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 60px;
}

/* ============================================
   BUTTONS
   ============================================ */
/* @class btn
   @label Button
   @applies a
   @group Buttons
   @desc Base button shape. Combine with a colour variant (btn-primary, btn-outline…). */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
/* @class btn-primary
   @label Primary button
   @applies a
   @group Buttons
   @desc Filled red call-to-action. Use with btn. */
.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-primary:hover {
  background: var(--red-light);
  border-color: var(--red-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(192,57,43,0.35);
}
/* @class btn-ghost
   @label Ghost button
   @applies a
   @group Buttons
   @desc Transparent button with a light border for dark backgrounds. Use with btn. */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}
/* @class btn-outline
   @label Outline button
   @applies a
   @group Buttons
   @desc Outlined secondary button. Use with btn. */
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
/* @class btn-sm
   @label Small button
   @applies a
   @group Buttons
   @desc Compact button size. Use with btn. */
.btn-sm { padding: 10px 22px; border-radius: 6px; font-size: 14px; font-weight: 700; }
/* @class btn-full
   @label Full-width button
   @applies a
   @group Buttons
   @desc Stretches the button to its container. Use with btn. */
.btn-full { width: 100%; justify-content: center; }
/* @class btn-donate
   @label Btn Donate
   @applies a button
   @group Buttons
   @desc Used on <a>, <button> in index. Sets: background: var(--navy); color: var(--white); border: 2px solid var(--navy); font-weight: … (auto) */
.btn-donate {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.btn-donate:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(27,47,78,0.3);
}

/* ============================================
   NAVIGATION
   ============================================ */
/* @class skip-link
   @label Skip Link
   @applies a
   @group Navigation
   @desc Used on <a> in partial:header. Sets: position: absolute; top: -100px; left: 16px; z-index: 200; padding: 10px 16px; background:… (auto) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy-dark);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

/* @class site-header
   @label Site Header
   @applies 
   @group Navigation
   @desc Not used by any template today (script- or state-toggled, or spare). Sets: position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); transition… (auto) */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gray-200);
  border-color: var(--gray-200);
}
.site-header.scrolled .logo-text,
.site-header.scrolled .nav-links a:not(.nav-cta) { color: var(--navy-dark); }
.site-header.scrolled .nav-toggle span { background: var(--navy-dark); }

/* @class nav-inner
   @label Nav Inner
   @applies nav
   @group Navigation
   @desc Used on <nav> in partial:header. Sets: max-width: var(--max-w); margin: 0 auto; padding: 0 48px; height: 100%; display: flex; ali… (auto) */
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
@media (max-width: 768px) { .nav-inner { padding: 0 24px; } }

/* @class logo
   @label Logo
   @applies a
   @group Navigation
   @desc Used on <a> in partial:footer. Sets: display: flex; align-items: center; gap: 10px; flex-shrink: 0; (auto) */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* @class logo-mark
   @label Logo Mark
   @applies 
   @group Navigation
   @desc Not used by any template today (script- or state-toggled, or spare). Sets: width: 36px; height: 36px; background: var(--red); color: var(--white); font-weight: 900; … (auto) */
.logo-mark {
  width: 36px; height: 36px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
}
/* @class logo-mark-img
   @label Logo Mark Img
   @applies img
   @group Navigation
   @desc Used on <img> in partial:footer. Sets: width: 36px; height: 36px; object-fit: contain; border-radius: 4px; flex-shrink: 0; (auto) */
.logo-mark-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
/* @class logo-text
   @label Logo Text
   @applies span
   @group Navigation
   @desc Used on <span> in partial:footer. Sets: color: var(--navy-dark); (auto) */
.logo-text {
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

/* @class nav-links
   @label Nav Links
   @applies ul
   @group Navigation
   @desc Used on <ul> in partial:header. Sets: color: var(--navy-dark); (auto) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.site-header.scrolled .nav-links a:hover { color: var(--navy-dark); background: var(--gray-100); }
/* @class nav-cta
   @label Nav Cta
   @applies a
   @group Navigation
   @desc Used on <a> in partial:header. Sets: color: var(--navy-dark); (auto) */
/* @class nav-donate
   @label Nav Donate
   @applies a
   @group Navigation
   @desc Used on <a> in partial:header. Sets: background: var(--red) !important; color: var(--white) !important; font-weight: 700 !impor… (auto) */
.nav-cta,
.nav-donate {
  background: var(--red) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: var(--radius);
  margin-left: 6px;
}
.nav-cta:hover,
.nav-donate:hover { background: var(--red-light) !important; }

/* @class nav-logo-icon
   @label Nav Logo Icon
   @applies a
   @group Navigation
   @desc Used on <a> in partial:header. Sets: flex-shrink: 0; margin-left: 20px; display: flex; align-items: center; text-decoration: no… (auto) */
.nav-logo-icon {
  flex-shrink: 0;
  margin-left: 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
}
/* @class nav-icon-img
   @label Nav Icon Img
   @applies img
   @group Navigation
   @desc Used on <img> in partial:header. Sets: height: 44px; width: auto; display: block; (auto) */
.nav-icon-img {
  height: 44px;
  width: auto;
  display: block;
}
/* @class nav-icon-img-light
   @label Nav Icon Img Light
   @applies img
   @group Navigation
   @desc Used on <img> in partial:header. Sets: display: none; (auto) */
.nav-icon-img-light { display: none; }
.site-header.scrolled .nav-icon-img-dark { display: none; }
.site-header.scrolled .nav-icon-img-light { display: block; }

/* @class nav-toggle
   @label Nav Toggle
   @applies button
   @group Navigation
   @desc Used on <button> in partial:header. Sets: background: var(--navy-dark); (auto) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ============================================
   DROPDOWN NAV
   ============================================ */
/* @class nav-dropdown
   @label Nav Dropdown
   @applies li
   @group Navigation
   @desc Used on <li> in partial:header. Sets: position: relative; (auto) */
.nav-dropdown { position: relative; }

/* @class nav-dropdown-toggle
   @label Nav Dropdown Toggle
   @applies button
   @group Navigation
   @desc Used on <button> in partial:header. Sets: display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 500; co… (auto) */
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}
.nav-dropdown-toggle:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.site-header.scrolled .nav-dropdown-toggle { color: var(--navy-dark); }
.site-header.scrolled .nav-dropdown-toggle:hover {
  background: var(--gray-100);
  color: var(--navy-dark);
}

/* @class chevron
   @label Chevron
   @applies svg
   @group Navigation
   @desc Used on <svg> in partial:header. Sets: transition: transform 0.2s var(--ease); flex-shrink: 0; opacity: 0.7; (auto) */
.chevron {
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
  opacity: 0.7;
}

/* Hidden by default — display:none keeps items out of layout entirely */
/* @class nav-dropdown-menu
   @label Nav Dropdown Menu
   @applies ul
   @group Navigation
   @desc Used on <ul> in partial:header. Sets: display: none; position: absolute; top: calc(100% + 10px); left: 50%; background: var(--wh… (auto) */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 0 0 1px rgba(0,0,0,0.05);
  padding: 6px;
  min-width: 190px;
  list-style: none;
  z-index: 200;
}
.nav-dropdown-menu li a {
  display: block;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-dark);
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-dropdown-menu li a:hover { background: var(--gray-100); }

/* Invisible bridge fills the gap between button and menu so hover doesn't break */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -8px;
  right: -8px;
  height: 12px;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Desktop hover */
@media (hover: hover) and (min-width: 861px) {
  .nav-dropdown:hover .nav-dropdown-menu {
    display: block;
    animation: dropdownIn 0.18s var(--ease) both;
  }
  .nav-dropdown:hover .chevron { transform: rotate(180deg); }
}

/* JS-controlled open (keyboard / mobile tap) */
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
  animation: dropdownIn 0.18s var(--ease) both;
}
.nav-dropdown.open .chevron { transform: rotate(180deg); }

/* Styled dropdown (Get Involved): the toggle wears .nav-cta/.nav-donate, so it
   keeps white text over the dark-text toggle rules (scrolled header, mobile);
   the menu hangs from the right edge so it stays on screen at the end of the bar. */
.nav-dropdown-toggle.nav-cta,
.nav-dropdown-toggle.nav-donate { color: var(--white) !important; }
@keyframes dropdownInEnd {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-dropdown-styled .nav-dropdown-menu { left: auto; right: 0; }
.nav-dropdown-styled:hover .nav-dropdown-menu,
.nav-dropdown-styled.open .nav-dropdown-menu { animation-name: dropdownInEnd; }

/* ============================================
   HERO
   ============================================ */
/* @class hero
   @label Hero
   @applies section
   @group Hero
   @desc Used on <section> in index. Sets: position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidde… (auto) */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 48px 80px;
}
@media (max-width: 768px) { .hero { padding: 120px 24px 80px; } }

/* @class hero-bg
   @label Hero Bg
   @applies div
   @group Hero
   @desc Used on <div> in index. Sets: position: absolute; inset: 0; background: url("/assets/hero-mountains.png") bottom center … (auto) */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("/assets/hero-mountains.png") bottom center / auto 280px no-repeat,
    linear-gradient(180deg, #081a35 0%, #0e223f 45%, #1a3154 78%, #1a3154 100%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(192,57,43,0.12) 0%, transparent 60%);
}

/* @class hero-content
   @label Hero Content
   @applies div
   @group Hero
   @desc Used on <div> in index. Sets: position: relative; z-index: 1; max-width: 720px; (auto) */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
/* @class hero-logo
   @label Hero Logo
   @applies img
   @group Hero
   @desc Used on <img> in index. Sets: width: 180px; height: auto; margin-bottom: 32px; display: block; (auto) */
.hero-logo {
  width: 180px;
  height: auto;
  margin-bottom: 32px;
  display: block;
}


/* @class hero-headline
   @label Hero Headline
   @applies h1
   @group Hero
   @desc Used on <h1> in index. Sets: font-family: var(--font-sans); font-size: clamp(40px, 7vw, 80px); font-weight: 900; line-h… (auto) */
.hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 28px;
}
.hero-headline em {
  font-style: normal;
  color: var(--red);
  position: relative;
}

/* @class hero-sub
   @label Hero Sub
   @applies p
   @group Hero
   @desc Used on <p> in index. Sets: font-size: clamp(16px, 2vw, 20px); line-height: 1.65; color: rgba(255,255,255,0.72); max-w… (auto) */
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: 44px;
}

/* @class hero-actions
   @label Hero Actions
   @applies div
   @group Hero
   @desc Used on <div> in index. Sets: display: flex; gap: 14px; flex-wrap: wrap; (auto) */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* @class hero-scroll-hint
   @label Hero Scroll Hint
   @applies div
   @group Hero
   @desc Used on <div> in index. Sets: position: absolute; bottom: 40px; left: 48px; display: flex; align-items: center; gap: 16p… (auto) */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}
/* @class scroll-line
   @label Scroll Line
   @applies div
   @group Hero
   @desc Used on <div> in index. Sets: width: 48px; height: 1px; background: rgba(255,255,255,0.25); position: relative; overflow… (auto) */
.scroll-line {
  width: 48px; height: 1px;
  background: rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%; top: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.6);
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ============================================
   MISSION STRIP
   ============================================ */
/* @class mission-strip
   @label Mission Strip
   @applies section
   @group Mission & pillars
   @desc Used on <section> in index. Sets: background: var(--cream); padding: 72px 0; border-top: 1px solid var(--gray-200); border-b… (auto) */
.mission-strip {
  background: var(--cream);
  padding: 72px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
/* @class mission-text
   @label Mission Text
   @applies p
   @group Mission & pillars
   @desc Used on <p> in index. Sets: font-family: var(--font-serif); font-size: clamp(20px, 3vw, 30px); font-weight: 700; line-… (auto) */
.mission-text {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy-dark);
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  padding: 0 40px;
}
.mission-text::before {
  content: '\201C';
  font-size: 5em;
  color: var(--red);
  opacity: 0.15;
  position: absolute;
  left: -10px; top: -20px;
  line-height: 1;
  font-family: var(--font-serif);
}

/* ============================================
   PILLARS
   ============================================ */
/* @class pillars
   @label Pillars
   @applies section
   @group Mission & pillars
   @desc Used on <section> in index. Sets: background: var(--white); (auto) */
.pillars { background: var(--white); }

/* @class pillars-grid
   @label Pillars Grid
   @applies div
   @group Mission & pillars
   @desc Used on <div> in index. Sets: display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--gray-200… (auto) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-200);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .pillars-grid { grid-template-columns: 1fr; } }

/* @class pillar-card
   @label Pillar Card
   @applies div
   @group Mission & pillars
   @desc Used on <div> in index. Sets: background: var(--white); padding: 48px 40px; position: relative; transition: background 0… (auto) */
.pillar-card {
  background: var(--white);
  padding: 48px 40px;
  position: relative;
  transition: background 0.3s;
}
.pillar-card:hover { background: var(--gray-50); }

/* @class pillar-number
   @label Pillar Number
   @applies div
   @group Mission & pillars
   @desc Used on <div> in index. Sets: font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--red); margin-botto… (auto) */
.pillar-number {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 20px;
  opacity: 0.7;
}
.pillar-card h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-dark);
  margin-bottom: 14px;
}
.pillar-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}
/* @class pillar-link
   @label Pillar Link
   @applies a
   @group Mission & pillars
   @desc Used on <a> in index. Sets: font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: 0.01em; transition: … (auto) */
.pillar-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}
.pillar-link:hover { opacity: 0.75; }

/* ============================================
   ISSUES
   ============================================ */
/* @class issues
   @label Issues
   @applies section
   @group Policy positions
   @desc Used on <section> in index. Sets: background: var(--gray-50); (auto) */
.issues { background: var(--gray-50); }

/* @class issues-header
   @label Issues Header
   @applies div
   @group Policy positions
   @desc Used on <div> in index. Sets: display: flex; align-items: flex-start; justify-content: space-between; gap: 60px; margin-… (auto) */
.issues-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 60px;
}
@media (max-width: 768px) { .issues-header { flex-direction: column; gap: 20px; } }

/* @class issues-intro
   @label Issues Intro
   @applies p
   @group Policy positions
   @desc Used on <p> in index. Sets: font-size: 17px; color: var(--gray-600); line-height: 1.7; max-width: 480px; padding-top: … (auto) */
.issues-intro {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 480px;
  padding-top: 24px;
}

/* @class issues-grid
   @label Issues Grid
   @applies div
   @group Policy positions
   @desc Used on <div> in index. Sets: display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; (auto) */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.issues-grid .issue-card:last-child:nth-child(3n+1) { grid-column: 2; }
@media (max-width: 1000px) {
  .issues-grid { grid-template-columns: repeat(2, 1fr); }
  .issues-grid .issue-card:last-child:nth-child(3n+1) { grid-column: auto; }
}
@media (max-width: 600px) { .issues-grid { grid-template-columns: 1fr; } }

/* @class issue-card
   @label Issue Card
   @applies a
   @group Policy positions
   @desc Used on <a> in index. Sets: grid-column: 2; (auto) */
.issue-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.issue-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
/* @class issue-icon
   @label Issue Icon
   @applies div
   @group Policy positions
   @desc Used on <div> in index. Sets: width: 52px; height: 52px; background: var(--cream); border-radius: 10px; display: flex; a… (auto) */
.issue-icon {
  width: 52px; height: 52px;
  background: var(--cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 20px;
  transition: background 0.2s, color 0.2s;
}
.issue-card:hover .issue-icon { background: var(--red); color: var(--white); }
.issue-card h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy-dark);
  margin-bottom: 10px;
}
.issue-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ============================================
   IMPACT STATS
   ============================================ */
/* @class impact
   @label Impact
   @applies section
   @group Impact stats
   @desc Used on <section> in index. Sets: background: var(--navy-dark); padding: 80px 0; (auto) */
.impact {
  background: var(--navy-dark);
  padding: 80px 0;
}
/* @class impact-grid
   @label Impact Grid
   @applies div
   @group Impact stats
   @desc Used on <div> in index. Sets: display: flex; align-items: center; justify-content: center; gap: 0; (auto) */
.impact-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
@media (max-width: 768px) {
  .impact-grid { flex-direction: column; }
  .impact-divider { width: 60px; height: 1px !important; }
}
/* @class impact-stat
   @label Impact Stat
   @applies div
   @group Impact stats
   @desc Used on <div> in index. Sets: text-align: center; padding: 0 60px; flex: 1; (auto) */
.impact-stat {
  text-align: center;
  padding: 0 60px;
  flex: 1;
}
/* @class impact-number
   @label Impact Number
   @applies div
   @group Impact stats
   @desc Used on <div> in index. Sets: font-size: clamp(28px, 4vw, 48px); font-weight: 900; color: var(--white); letter-spacing: … (auto) */
.impact-number {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
/* @class impact-label
   @label Impact Label
   @applies div
   @group Impact stats
   @desc Used on <div> in index. Sets: font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: 0.05em; t… (auto) */
.impact-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
/* @class impact-divider
   @label Impact Divider
   @applies div
   @group Impact stats
   @desc Used on <div> in index. Sets: width: 60px; height: 1px !important; (auto) */
.impact-divider {
  width: 1px;
  height: 80px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* ============================================
   ABOUT
   ============================================ */
/* @class about
   @label About
   @applies section
   @group About
   @desc Used on <section> in index. Sets: background: var(--white); (auto) */
.about { background: var(--white); }
/* @class about-grid
   @label About Grid
   @applies div
   @group About
   @desc Used on <div> in index. Sets: display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; (auto) */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

/* @class about-text
   @label About Text
   @applies div
   @group About
   @desc Used on <div> in index. Sets: font-size: 16px; color: var(--gray-600); line-height: 1.75; margin-bottom: 20px; (auto) */
.about-text p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 20px;
}
.about-text .btn { margin-top: 12px; }

/* @class about-card
   @label About Card
   @applies div
   @group About
   @desc Used on <div> in index. Sets: background: var(--navy-dark); border-radius: var(--radius-lg); padding: 40px; margin-botto… (auto) */
.about-card {
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 20px;
}
.about-card blockquote {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--white);
  position: relative;
}
/* @class about-card-footer
   @label About Card Footer
   @applies div
   @group About
   @desc Used on <div> in index. Sets: margin-top: 24px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform… (auto) */
.about-card-footer {
  margin-top: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

/* @class about-detail-grid
   @label About Detail Grid
   @applies div
   @group About
   @desc Used on <div> in index. Sets: display: grid; grid-template-columns: 1fr 1fr; gap: 16px; (auto) */
.about-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* @class about-detail
   @label About Detail
   @applies div
   @group About
   @desc Used on <div> in index. Sets: background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 8px; padding… (auto) */
.about-detail {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-detail strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.about-detail span {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-dark);
}

/* ============================================
   JOIN / GET INVOLVED
   ============================================ */
/* @class join
   @label Join
   @applies section
   @group Forms
   @desc Used on <section> in index. Sets: background: var(--navy); color: var(--white); (auto) */
.join {
  background: var(--navy);
  color: var(--white);
}
/* @class join-inner
   @label Join Inner
   @applies div
   @group Forms
   @desc Used on <div> in index. Sets: display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; (auto) */
.join-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .join-inner { grid-template-columns: 1fr; gap: 48px; } }

/* @class join-text
   @label Join Text
   @applies div
   @group Forms
   @desc Used on <div> in index. Sets: font-size: 17px; color: rgba(255,255,255,0.72); line-height: 1.7; margin-bottom: 32px; (auto) */
.join-text p {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 32px;
}
/* @class join-list
   @label Join List
   @applies ul
   @group Forms
   @desc Used on <ul> in index. Sets: display: flex; flex-direction: column; gap: 14px; (auto) */
.join-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.join-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}
.join-list li svg { color: var(--red); flex-shrink: 0; }

/* @class join-form-wrap
   @label Join Form Wrap
   @applies div
   @group Forms
   @desc Used on <div> in index. Sets: background: var(--white); border-radius: var(--radius-lg); padding: 44px 40px; color: var(… (auto) */
.join-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  color: var(--gray-900);
}
@media (max-width: 480px) { .join-form-wrap { padding: 32px 24px; } }

/* @class join-form
   @label Join Form
   @applies form
   @group Forms
   @desc Used on <form> in index. Sets: font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy-dark); margi… (auto) */
.join-form h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-dark);
  margin-bottom: 28px;
}
/* @class form-group
   @label Form Group
   @applies div
   @group Forms
   @desc Used on <div> in index. Sets: margin-bottom: 18px; (auto) */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,47,78,0.08);
}
.form-group input::placeholder { color: var(--gray-400); }

/* @class form-optional
   @label Form Optional
   @applies span
   @group Forms
   @desc Used on <span> in index. Sets: font-size: 12px; color: var(--gray-400); font-weight: 400; (auto) */
.form-optional {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 400;
}

/* @class form-note
   @label Form Note
   @applies p
   @group Forms
   @desc Used on <p> in index. Sets: font-size: 12px; color: var(--gray-400); text-align: center; margin-top: 14px; (auto) */
.form-note {
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 14px;
}

/* @class form-success
   @label Form Success
   @applies div
   @group Forms
   @desc Used on <div> in index. Sets: text-align: center; padding: 40px 0; (auto) */
.form-success {
  text-align: center;
  padding: 40px 0;
}
/* @class success-icon
   @label Success Icon
   @applies div
   @group Forms
   @desc Used on <div> in index, success. Sets: width: 60px; height: 60px; background: #22C55E; color: var(--white); border-radius: 50%; d… (auto) */
.success-icon {
  width: 60px; height: 60px;
  background: #22C55E;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 20px;
}
.form-success h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 10px;
}
.form-success p {
  font-size: 15px;
  color: var(--gray-600);
}

/* ============================================
   FOOTER
   ============================================ */
/* @class site-footer
   @label Site Footer
   @applies footer
   @group Footer
   @desc Used on <footer> in partial:footer. Sets: background: var(--navy-dark); padding: 72px 0 0; color: rgba(255,255,255,0.6); (auto) */
.site-footer {
  background: var(--navy-dark);
  padding: 72px 0 0;
  color: rgba(255,255,255,0.6);
}
/* @class footer-grid
   @label Footer Grid
   @applies div
   @group Footer
   @desc Used on <div> in partial:footer. Sets: display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 60px; bo… (auto) */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* @class footer-brand
   @label Footer Brand
   @applies div
   @group Footer
   @desc Used on <div> in partial:footer. Sets: margin-bottom: 16px; (auto) */
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
  margin-bottom: 12px;
}
/* @class footer-legal
   @label Footer Legal
   @applies p
   @group Footer
   @desc Used on <p> in partial:footer. Sets: font-size: 12px !important; color: rgba(255,255,255,0.35) !important; max-width: 300px !im… (auto) */
.footer-legal {
  font-size: 12px !important;
  color: rgba(255,255,255,0.35) !important;
  max-width: 300px !important;
}

/* @class footer-col
   @label Footer Col
   @applies div
   @group Footer
   @desc Used on <div> in partial:footer. Sets: font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color… (auto) */
.footer-col h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }

/* @class footer-bottom
   @label Footer Bottom
   @applies div
   @group Footer
   @desc Used on <div> in partial:footer. Sets: display: flex; align-items: center; justify-content: space-between; padding: 24px 0; gap: … (auto) */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }
/* @class footer-links
   @label Footer Links
   @applies div
   @group Footer
   @desc Used on <div> in partial:footer. Sets: display: flex; gap: 24px; (auto) */
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* ============================================
   HERO ENTRANCE
   ============================================ */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-headline { animation: heroFadeUp 0.9s var(--ease) 0.28s both; }
.hero-sub     { animation: heroFadeUp 0.8s var(--ease) 0.48s both; }
.hero-actions { animation: heroFadeUp 0.8s var(--ease) 0.64s both; }
.hero-scroll-hint { animation: heroFadeUp 0.8s var(--ease) 0.9s both; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section labels slide in from left instead of up */
.section-label[data-animate] {
  transform: translateX(-20px);
}
.section-label[data-animate].visible {
  transform: translateX(0);
}

/* Cards scale in as they rise */
.pillar-card[data-animate],
.issue-card[data-animate] {
  transform: translateY(28px) scale(0.96);
}
.pillar-card[data-animate].visible,
.issue-card[data-animate].visible {
  transform: translateY(0) scale(1);
}

[data-animate-delay="1"] { transition-delay: 0.08s; }
[data-animate-delay="2"] { transition-delay: 0.16s; }
[data-animate-delay="3"] { transition-delay: 0.24s; }
[data-animate-delay="4"] { transition-delay: 0.32s; }

/* ============================================
   MOBILE NAV
   ============================================ */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    border-top: 1px solid var(--gray-200);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a {
    color: var(--navy-dark) !important;
    padding: 12px 16px;
    border-radius: var(--radius);
  }
  .nav-links a:hover { background: var(--gray-100) !important; }
  .nav-cta,
  .nav-donate {
    display: block !important;
    width: 100%;
    text-align: center;
    padding: 12px 16px !important;
    margin-left: 0 !important;
    border-radius: var(--radius);
  }
  li:has(> .nav-donate) {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--gray-200);
  }
  .nav-logo-icon {
    display: flex;
  }
  .nav-icon-img { height: 36px; }

  /* Mobile dropdowns — expand inline */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    color: var(--navy-dark) !important;
    padding: 12px 16px;
  }
  .nav-dropdown-toggle:hover { background: var(--gray-100) !important; }
  .nav-dropdown-toggle.nav-cta,
  .nav-dropdown-toggle.nav-donate { display: flex !important; justify-content: center; }
  .nav-dropdown-toggle.nav-cta:hover { background: var(--red-light) !important; }
  .nav-dropdown-menu {
    display: none;
    position: static;
    animation: none !important;
    box-shadow: none;
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 6px;
    margin-top: 2px;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu li a { color: var(--navy-dark) !important; }
}

/* ============================================
   FOOTER SOCIAL ICONS
   ============================================ */
/* @class footer-social
   @label Footer Social
   @applies div
   @group Footer
   @desc Used on <div> in partial:footer. Sets: display: flex; gap: 10px; margin-top: 20px; (auto) */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social a:hover {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}

/* ============================================
   ABOUT LOGO
   ============================================ */
/* @class about-logo-wrap
   @label About Logo Wrap
   @applies div
   @group About
   @desc Used on <div> in index. Sets: margin-bottom: 24px; display: flex; justify-content: center; (auto) */
.about-logo-wrap {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}
/* @class about-logo-img
   @label About Logo Img
   @applies img
   @group About
   @desc Used on <img> in index. Sets: max-width: 220px; width: 100%; height: auto; border-radius: var(--radius-lg); (auto) */
.about-logo-img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* ============================================
   DONATE SECTION
   ============================================ */
/* @class donate
   @label Donate
   @applies section
   @group Donations
   @desc Used on <section> in index. Sets: background: var(--cream); (auto) */
.donate { background: var(--cream); }

/* @class donate-inner
   @label Donate Inner
   @applies div
   @group Donations
   @desc Used on <div> in index. Sets: display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; (auto) */
.donate-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* @class donate-text
   @label Donate Text
   @applies div
   @group Donations
   @desc Used on <div> in index. Sets: color: var(--gray-600); margin-bottom: 16px; line-height: 1.7; (auto) */
.donate-text p { color: var(--gray-600); margin-bottom: 16px; line-height: 1.7; }
/* @class donate-legal
   @label Donate Legal
   @applies p
   @group Donations
   @desc Used on <p> in index. Sets: font-size: 0.82rem; color: var(--gray-400); margin-top: 24px; (auto) */
.donate-legal { font-size: 0.82rem; color: var(--gray-400); margin-top: 24px; }

/* @class donation-tracker
   @label Donation Tracker
   @applies div
   @group Donations
   @desc Used on <div> in index. Sets: margin: 28px 0 0; opacity: 0; transition: opacity 0.4s ease; (auto) */
.donation-tracker {
  margin: 28px 0 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
/* Hidden entirely (no reserved space) until JS confirms there are donors to show */
.donation-tracker[aria-hidden="true"] { display: none; }
.donation-tracker.tracker-loaded { opacity: 1; }

/* @class tracker-recent-heading
   @label Tracker Recent Heading
   @applies 
   @group Donations
   @desc Not used by any template today (script- or state-toggled, or spare). Sets: font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; c… (auto) */
.tracker-recent-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 20px 0 0;
  padding: 14px 16px 0;
}
/* @class tracker-recent
   @label Tracker Recent
   @applies ul
   @group Donations
   @desc Used on <ul> in index. Sets: list-style: none; display: flex; flex-direction: column; gap: 0; background: var(--navy); … (auto) */
.tracker-recent {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 10px 16px 4px;
  margin-top: 8px;
}
.tracker-recent li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tracker-recent li:last-child { border-bottom: none; }
/* @class tracker-donor-name
   @label Tracker Donor Name
   @applies 
   @group Donations
   @desc Not used by any template today (script- or state-toggled, or spare). Sets: font-weight: 600; color: var(--white); (auto) */
.tracker-donor-name { font-weight: 600; color: var(--white); }
/* @class tracker-donor-amount
   @label Tracker Donor Amount
   @applies 
   @group Donations
   @desc Not used by any template today (script- or state-toggled, or spare). Sets: font-weight: 500; color: rgba(255,255,255,0.55); (auto) */
.tracker-donor-amount { font-weight: 500; color: rgba(255,255,255,0.55); }

/* @class donate-form-wrap
   @label Donate Form Wrap
   @applies div
   @group Donations
   @desc Used on <div> in index. Sets: background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: 0 4p… (auto) */
.donate-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

/* @class donate-type-toggle
   @label Donate Type Toggle
   @applies div
   @group Donations
   @desc Used on <div> in index. Sets: display: flex; background: var(--gray-100); border-radius: 8px; padding: 4px; margin-botto… (auto) */
.donate-type-toggle {
  display: flex;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}

/* @class toggle-btn
   @label Toggle Btn
   @applies button
   @group Donations
   @desc Used on <button> in index. Sets: flex: 1; padding: 10px; border: none; background: transparent; border-radius: 6px; font-fa… (auto) */
.toggle-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.toggle-btn.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

/* @class donate-tiers
   @label Donate Tiers
   @applies div
   @group Donations
   @desc Used on <div> in index. Sets: display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 20px; (auto) */
.donate-tiers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

/* @class tier-btn
   @label Tier Btn
   @applies button
   @group Donations
   @desc Used on <button> in index. Sets: padding: 14px 6px; border: 2px solid var(--gray-200); border-radius: var(--radius); backgr… (auto) */
.tier-btn {
  padding: 14px 6px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: center;
  line-height: 1.1;
}
.tier-btn span { display: block; font-size: 0.65rem; font-weight: 500; color: var(--gray-400); margin-top: 2px; }
.tier-btn:hover { border-color: var(--navy); }
.tier-btn.active { border-color: var(--navy); background: var(--navy); color: var(--white); }
.tier-btn.active span { color: rgba(255,255,255,0.6); }
/* @class tier-custom
   @label Tier Custom
   @applies button
   @group Donations
   @desc Used on <button> in index. Sets: font-size: 0.85rem; (auto) */
.tier-custom { font-size: 0.85rem; }

/* @class donate-custom-wrap
   @label Donate Custom Wrap
   @applies div
   @group Donations
   @desc Used on <div> in index. Sets: margin-bottom: 20px; (auto) */
.donate-custom-wrap {
  margin-bottom: 20px;
}
.donate-custom-wrap label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.donate-custom-wrap input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--gray-900);
  box-sizing: border-box;
}
.donate-custom-wrap input:focus { outline: none; border-color: var(--navy); }

/* @class donate-fields
   @label Donate Fields
   @applies div
   @group Donations
   @desc Used on <div> in index. Sets: margin-bottom: 20px; (auto) */
.donate-fields { margin-bottom: 20px; }
/* @class form-row
   @label Form Row
   @applies div
   @group Forms
   @desc Used on <div> in index. Sets: display: grid; grid-template-columns: 1fr 1fr; gap: 12px; (auto) */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* @class form-group-check
   @label Form Group Check
   @applies div
   @group Forms
   @desc Used on <div> in index. Sets: margin-bottom: 16px; (auto) */
.form-group-check { margin-bottom: 16px; }
/* @class check-label
   @label Check Label
   @applies label
   @group Forms
   @desc Used on <label> in index. Sets: display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--gray-600);… (auto) */
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray-600);
  cursor: pointer;
}
.check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}

/* @class donate-error
   @label Donate Error
   @applies p
   @group Donations
   @desc Used on <p> in index. Sets: color: var(--red); font-size: 0.85rem; margin-top: 10px; text-align: center; (auto) */
.donate-error {
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 10px;
  text-align: center;
}

@media (max-width: 900px) {
  .donate-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .donate-tiers { grid-template-columns: repeat(3, 1fr); }
  .donate-form-wrap { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   DONATION MODAL
   ============================================ */
/* @class modal-overlay
   @label Modal Overlay
   @applies div
   @group Modal
   @desc Used on <div> in index. Sets: position: fixed; inset: 0; background: rgba(15, 30, 51, 0.75); backdrop-filter: blur(4px);… (auto) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 51, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.modal-overlay.modal-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 0.35s var(--ease);
}
/* @class modal-card
   @label Modal Card
   @applies div
   @group Modal
   @desc Used on <div> in index. Sets: background: var(--white); border-radius: var(--radius-lg); padding: 48px 40px 40px; max-wi… (auto) */
.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: translateY(28px);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
}
.modal-overlay.modal-visible .modal-card {
  transform: translateY(0);
}
/* @class modal-close
   @label Modal Close
   @applies button
   @group Modal
   @desc Used on <button> in index. Sets: position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;… (auto) */
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--gray-200); }
/* @class modal-badge
   @label Modal Badge
   @applies div
   @group Modal
   @desc Used on <div> in index. Sets: display: inline-block; background: var(--red); color: var(--white); font-size: 11px; font-… (auto) */
.modal-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 20px;
}
/* @class modal-title
   @label Modal Title
   @applies h2
   @group Modal
   @desc Used on <h2> in index. Sets: font-family: var(--font-serif); font-size: clamp(24px, 4vw, 32px); font-weight: 800; color… (auto) */
.modal-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}
/* @class modal-body
   @label Modal Body
   @applies p
   @group Modal
   @desc Used on <p> in index. Sets: font-size: 16px; color: var(--gray-600); line-height: 1.7; margin-bottom: 32px; (auto) */
.modal-body {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 32px;
}
/* @class modal-actions
   @label Modal Actions
   @applies div
   @group Modal
   @desc Used on <div> in index. Sets: display: flex; flex-direction: column; gap: 10px; (auto) */
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* @class modal-cta-btn
   @label Modal Cta Btn
   @applies a
   @group Modal
   @desc Used on <a> in index. Sets: justify-content: center; (auto) */
.modal-cta-btn { justify-content: center; }
/* @class modal-dismiss
   @label Modal Dismiss
   @applies button
   @group Modal
   @desc Used on <button> in index. Sets: font-size: 14px; color: var(--gray-400); padding: 8px; text-align: center; transition: col… (auto) */
.modal-dismiss {
  font-size: 14px;
  color: var(--gray-400);
  padding: 8px;
  text-align: center;
  transition: color 0.15s;
}
.modal-dismiss:hover { color: var(--gray-600); }
@media (max-width: 480px) {
  .modal-card { padding: 36px 24px 32px; }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 600px) {
  :root { --section-pad: 64px; }
  .hero { padding: 100px 24px 60px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-scroll-hint { display: none; }
  .mission-text { padding: 0; }
  .impact-stat { padding: 24px 20px; }
}

/* ============================================
   SUBPAGE HERO (shared across subpages)
   ============================================ */
/* @class subpage-hero
   @label Report hero
   @applies div section
   @group Report pages
   @desc Dark gradient hero banner with the report title (long-form pages). */
.subpage-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #1B3A5C 100%);
  padding: 160px 48px 80px;
  text-align: center;
}
.subpage-hero .section-label { color: rgba(255,255,255,0.5); }
.subpage-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.subpage-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}
@media (max-width: 640px) {
  .subpage-hero { padding: 140px 24px 64px; }
}

/* ============================================
   NEWS & MEDIA CARDS (blog.html + projects.html)
   ============================================ */
/* @class news-section
   @label News Section
   @applies div
   @group News & coverage
   @desc Used on <div> in blog. Sets: padding: 80px 48px 100px; background: var(--cream); (auto) */
.news-section {
  padding: 80px 48px 100px;
  background: var(--cream);
}
/* @class news-inner
   @label News Inner
   @applies div
   @group News & coverage
   @desc Used on <div> in blog. Sets: max-width: 860px; margin: 0 auto; (auto) */
.news-inner {
  max-width: 860px;
  margin: 0 auto;
}
/* @class news-section-label
   @label News section label
   @applies div
   @group Report pages
   @desc Uppercase label separating groups of news cards. */
.news-section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 32px;
}
/* @class news-card
   @label News Card
   @applies a
   @group News & coverage
   @desc Used on <a> in blog, projects. Sets: display: flex; gap: 32px; background: var(--white); border-radius: var(--radius-lg); paddi… (auto) */
.news-card {
  display: flex;
  gap: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
/* @class news-outlet
   @label News Outlet
   @applies div
   @group News & coverage
   @desc Used on <div> in blog, projects. Sets: flex-shrink: 0; width: 80px; display: flex; align-items: flex-start; padding-top: 4px; (auto) */
.news-outlet {
  flex-shrink: 0;
  width: 80px;
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}
/* @class outlet-badge
   @label Outlet badge
   @applies span
   @group Report pages
   @desc Coloured pill naming a news outlet. Pair with a c-<hex> colour class from css/colors.css. */
.outlet-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: #e8272a;
  padding: 5px 9px;
  border-radius: 4px;
  line-height: 1;
}
/* @class news-content
   @label News Content
   @applies div
   @group News & coverage
   @desc Used on <div> in blog, projects. Sets: flex: 1; (auto) */
.news-content { flex: 1; }
/* @class news-meta
   @label News Meta
   @applies div
   @group News & coverage
   @desc Used on <div> in blog, projects. Sets: font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; colo… (auto) */
.news-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 10px;
}
/* @class news-headline
   @label News Headline
   @applies h2 h3
   @group News & coverage
   @desc Used on <h2>, <h3> in blog, projects. Sets: font-size: 18px; font-weight: 700; color: var(--navy-dark); line-height: 1.4; letter-spaci… (auto) */
.news-headline {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
/* @class news-excerpt
   @label News Excerpt
   @applies div
   @group News & coverage
   @desc Used on <div> in blog, projects. Sets: font-size: 15px; color: var(--gray-600); line-height: 1.7; margin-bottom: 16px; (auto) */
.news-excerpt {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}
/* @class news-read-more
   @label News Read More
   @applies div
   @group News & coverage
   @desc Used on <div> in blog, projects. Sets: font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: 0.02em; (auto) */
.news-read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.02em;
}
/* @class news-more-cta
   @label News More Cta
   @applies div
   @group News & coverage
   @desc Used on <div> in blog. Sets: margin-top: 48px; padding: 36px 40px; background: var(--navy-dark); border-radius: var(--r… (auto) */
.news-more-cta {
  margin-top: 48px;
  padding: 36px 40px;
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.news-more-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
/* @class video-card
   @label Video Card
   @applies div
   @group News & coverage
   @desc Used on <div> in blog, projects. Sets: background: var(--white); border-radius: var(--radius-lg); padding: 32px 36px; margin-bott… (auto) */
.video-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}
/* @class video-card-header
   @label Video Card Header
   @applies div
   @group News & coverage
   @desc Used on <div> in blog, projects. Sets: display: flex; align-items: center; gap: 16px; margin-bottom: 20px; (auto) */
.video-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
/* @class video-embed
   @label Video embed
   @applies div
   @group Report pages
   @desc Responsive 16:9 wrapper for an embedded video iframe. */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
/* ============================================================
   DOCUMENT PROSE (admin Documents: the body of a report, statement
   or explainer written outside and pasted in; docs/systems/documents.md
   "Authoring kit"). A document body lands bare between the header and
   footer, and the reset above zeroes every margin, so running text needs
   a wrapper that styles plain tags. The writer writes plain <h2>, <p>,
   <ul>, <blockquote>, <table>, <figure> inside .prose and nothing else.
   The migrated reports (alpr, privacy-report, ...) still carry their own
   per-page CSS; this group is for every new document.
   ============================================================ */

/* @class prose
   @label Document prose
   @applies div
   @group Document prose
   @desc Wrapper for the running text of a document. Styles every plain tag inside it (headings, paragraphs, lists, quotes, tables, figures, links) on a centred 760px measure. Put it inside section > container; write plain tags inside it. */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.8;
  color: #2c2c2c;
}
.prose > :last-child { margin-bottom: 0; }
.prose h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy-dark);
  letter-spacing: -0.01em;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0,0,0,0.08);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
}
.prose h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 24px 0 8px;
}
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px 24px; padding: 0; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 10px; line-height: 1.75; }
.prose a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover { color: var(--navy-dark); }
.prose strong { color: var(--navy-dark); }
.prose blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--red);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--navy-dark);
}
.prose blockquote p { margin: 0 0 8px; }
.prose blockquote p:last-child { margin: 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-size: 14px;
  line-height: 1.5;
  margin: 20px 0;
}
.prose caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  padding: 0 0 8px;
}
.prose th {
  background: var(--navy-dark);
  color: var(--white);
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prose td {
  padding: 12px 14px;
  border-top: 1px solid var(--gray-200);
  vertical-align: top;
}
.prose figure { margin: 28px 0; }
.prose figcaption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray-600);
  margin-top: 8px;
}
.prose img { border-radius: 8px; }
.prose hr {
  border: 0;
  border-top: 1px solid var(--gray-200);
  margin: 40px 0;
}
.prose code {
  font-family: ui-monospace, Consolas, Menlo, monospace;
  font-size: 0.9em;
  background: var(--gray-100);
  padding: 1px 5px;
  border-radius: 4px;
}
.prose pre {
  background: var(--navy-dark);
  color: #e6edf3;
  padding: 16px 20px;
  border-radius: 8px;
  overflow: auto;
  font-size: 13px;
  margin: 0 0 18px;
}
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
@media (max-width: 720px) {
  .prose { font-size: 16px; }
  .prose h2 { font-size: 23px; margin-top: 40px; }
  .prose table { display: block; overflow-x: auto; }
}

/* @class callout
   @label Callout
   @applies div aside
   @group Document prose
   @desc White box with a red bar inside the prose: a note on sources, an aside, a key figure in words. Optional first line <strong class="callout-label">. */
.callout {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 24px 0;
}
.callout p { font-size: 15.5px; line-height: 1.7; margin: 0 0 10px; }
.callout p:last-child { margin: 0; }

/* @class callout-label
   @label Callout label
   @applies strong span div
   @group Document prose
   @desc Small red uppercase label on the first line of a callout ("A note on this investigation"). */
.callout-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

/* @class callout-dark
   @label Callout, dark
   @applies div aside
   @group Document prose
   @desc Navy box with light text for a quoted finding or a warning that should stand out from the page. Same inner shape as callout. */
.callout-dark {
  background: var(--navy-dark);
  border-left: 4px solid var(--red-light);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 24px 0;
  color: rgba(255,255,255,0.9);
}
.callout-dark p { font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,0.9); margin: 0 0 10px; }
.callout-dark p:last-child { margin: 0; }
.callout-dark .callout-label { color: rgba(255,255,255,0.6); }

/* ============================================================
   DOCUMENT BLOCKS (admin Documents builder; docs/systems/document-builder.md)
   The components the builder writes. Until 2026-10-08 every one of these
   lived in a migrated report's own page CSS (how-did-this-happen, alpr,
   stratos, weber-county), copied page to page, so a new document could not
   use them: the ingest strips any class the site sheet does not know. This
   group is the one canonical copy, modelled on how-did-this-happen where the
   pages disagreed (finding-box = navy; the grey red-bar box is violation-box).
   The reading column is div.doc-body > div.doc-inner; blocks sit inside it.
   Converted legacy documents keep their page CSS (selectors rewritten to
   .doc-inner) so their look is unchanged.
   ============================================================ */

/* ---- hero additions ---- */
.subpage-hero p strong { color: var(--white); font-weight: 700; }

/* @class hero-ctas
   @label Hero buttons row
   @applies div
   @group Document blocks
   @desc Centred row of buttons under the hero text (hero-download / hero-secondary links inside). */
.hero-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 32px auto 8px; }

/* @class hero-download
   @label Hero button, red
   @applies a
   @group Document blocks
   @desc Red filled button in the hero: the main download or the next page. */
.hero-download { display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: var(--white); padding: 14px 28px; border-radius: var(--radius); font-size: 15px; font-weight: 700; transition: background 0.2s; }
.hero-download:hover { background: var(--red-light); }

/* @class hero-secondary
   @label Hero button, outline
   @applies a
   @group Document blocks
   @desc White-outline button in the hero for the secondary action. */
.hero-secondary { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,0.35); color: var(--white); padding: 14px 28px; border-radius: var(--radius); font-size: 15px; font-weight: 700; transition: background 0.2s, border-color 0.2s; }
.hero-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

/* @class hero-provenance
   @label Hero note
   @applies p
   @group Document blocks
   @desc Small muted line under the hero buttons: where every figure on the page comes from. */
.hero-provenance { font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 20px; }

/* ---- the reading column ---- */

/* @class doc-body
   @label Document band
   @applies div
   @group Document blocks
   @desc White full-width band holding the reading column (doc-inner). A multi-part piece has one per part. */
.doc-body { background: var(--white); padding: 72px 48px 104px; }

/* @class doc-inner
   @label Reading column
   @applies div
   @group Document blocks
   @desc 780px centred column; styles the plain headings, paragraphs, lists and quotations inside a document body. */
.doc-inner { max-width: 780px; margin: 0 auto; }
.doc-inner h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 800; color: var(--navy-dark); letter-spacing: -0.02em; margin: 56px 0 20px; padding-top: 10px; border-top: 3px solid var(--red); scroll-margin-top: 100px; }
.doc-inner h3 { font-size: 17px; font-weight: 700; color: var(--navy-dark); margin: 32px 0 12px; }
.doc-inner h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin: 24px 0 8px; }
.doc-inner p { font-size: 16px; color: var(--gray-600); line-height: 1.8; margin-bottom: 16px; }
.doc-inner p a, .doc-inner li a { color: var(--navy); text-decoration: underline; }
.doc-inner p a:hover, .doc-inner li a:hover { color: var(--red); }
.doc-inner ul { list-style: none; margin: 0 0 20px; padding: 0; }
.doc-inner ul li { font-size: 16px; color: var(--gray-600); line-height: 1.75; padding: 6px 0 6px 24px; position: relative; }
.doc-inner ul li::before { content: ''; position: absolute; left: 4px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.doc-inner ol { margin: 0 0 20px; padding-left: 24px; }
.doc-inner ol li { font-size: 16px; color: var(--gray-600); line-height: 1.75; padding: 6px 0; }
.doc-inner hr { border: 0; border-top: 1px solid var(--gray-200); margin: 40px 0; }
.doc-inner img { max-width: 100%; height: auto; }
.doc-inner > :last-child { margin-bottom: 0; }

/* @class doc-part
   @label Section wrapper
   @applies div
   @group Document block parts
   @desc Wrapper the builder writes around a section that carries extra classes (migrated per-part styles). */
.doc-part { display: block; }

/* ---- byline strip ---- */

/* @class release-meta
   @label Byline strip
   @applies div
   @group Document blocks
   @desc Row above a rule: organisation badge, optional status pill, date line, "By Author, Title", optional download link. */
.release-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--gray-200); }

/* @class release-badge
   @label Byline badge
   @applies span
   @group Document block parts
   @desc Navy uppercase pill ("Utah Civic Compact") in the byline strip. */
.release-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--navy-dark); color: var(--white); padding: 5px 12px; border-radius: 4px; }

/* @class release-badge-status
   @label Byline status pill
   @applies span
   @group Document block parts
   @desc Red uppercase pill for a status word ("Active") beside the badge. */
.release-badge-status { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--red); color: var(--white); padding: 5px 12px; border-radius: 4px; }

/* @class release-date
   @label Byline date
   @applies span
   @group Document block parts
   @desc Grey date line in the byline strip. */
.release-date { font-size: 14px; color: var(--gray-400); }

/* @class release-author
   @label Byline author
   @applies span
   @group Document block parts
   @desc Bold navy "By Name, Title" in the byline strip; the name links to the author page. */
.release-author { font-size: 14px; font-weight: 700; color: var(--navy); }
.release-author a { color: inherit; }
.release-author a:hover { color: var(--red); }

/* @class download-inline
   @label Byline download link
   @applies a
   @group Document block parts
   @desc Small red-outlined download link at the right end of the byline strip. */
.download-inline { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--red); border: 1.5px solid var(--red); padding: 8px 18px; border-radius: var(--radius); transition: background 0.15s, color 0.15s; }
.download-inline:hover { background: var(--red); color: var(--white); }

/* @class paper-provenance
   @label Byline note
   @applies p
   @group Document blocks
   @desc Italic grey paragraph with a left rule under the byline: adapted from testimony, how to read citations. */
.doc-inner .paper-provenance { font-size: 14.5px; font-style: italic; color: var(--gray-400); line-height: 1.75; margin-bottom: 40px; padding-left: 18px; border-left: 3px solid var(--gray-200); }
.paper-provenance a { color: var(--gray-400); text-decoration: underline; }
.paper-provenance a:hover { color: var(--red); }

/* ---- contents ---- */

/* @class paper-toc
   @label Contents list
   @applies nav div
   @group Document blocks
   @desc Cream rounded box with a "Contents" label and a two-column list of links to the section headings. */
.paper-toc { background: var(--cream); border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 8px; }

/* @class paper-toc-label
   @label Contents label
   @applies div
   @group Document block parts
   @desc Small uppercase "Contents" label in the contents box. */
.paper-toc-label { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px; }
.paper-toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.paper-toc li { font-size: 14.5px; line-height: 1.6; margin-bottom: 8px; padding: 0; break-inside: avoid; }
.paper-toc a, .doc-inner .paper-toc li a { color: var(--navy-dark); text-decoration: none; }
.paper-toc a:hover, .doc-inner .paper-toc li a:hover { color: var(--red); text-decoration: underline; }

/* @class part-header
   @label Part header
   @applies div
   @group Document blocks
   @desc Eyebrow, large heading and a standfirst at the start of a part of a multi-part piece, above a rule. */
.part-header { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--gray-200); }

/* @class part-header-eyebrow
   @label Part eyebrow
   @applies div
   @group Document block parts
   @desc Small red uppercase label above a part heading ("Part 1 · May 26, 2026"). */
.part-header-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.doc-inner .part-header h2 { font-size: clamp(22px, 3.5vw, 30px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.2; margin: 0 0 8px; border-top: none; padding-top: 0; }
.doc-inner .part-header p { font-size: 17px; color: var(--gray-600); font-weight: 500; line-height: 1.5; margin: 0; }

/* @class parts-nav
   @label Part navigation
   @applies div nav
   @group Document blocks
   @desc Full-width navy row of linked cards, one per part, under a red rule. */
.parts-nav { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--navy-dark); border-bottom: 3px solid var(--red); }

/* @class part-card
   @label Part card
   @applies a
   @group Document block parts
   @desc One card in the part navigation: number, title, description. */
.part-card { display: block; padding: 28px 32px; border-right: 1px solid rgba(255,255,255,0.1); transition: background 0.15s; text-decoration: none; }
.part-card:last-child { border-right: none; }
.part-card:hover { background: rgba(255,255,255,0.06); }
/* @class part-card-num
   @label Part card number
   @applies div
   @group Document block parts
   @desc Red uppercase label in a part card ("Part 1 · May 26, 2026"). */
.part-card-num { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
/* @class part-card-title
   @label Part card title
   @applies div
   @group Document block parts
   @desc White title line in a part card. */
.part-card-title { font-size: 15px; font-weight: 700; color: var(--white); line-height: 1.4; margin-bottom: 8px; }
/* @class part-card-desc
   @label Part card description
   @applies div
   @group Document block parts
   @desc Muted description line in a part card. */
.part-card-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.5; }

/* ---- quotations ---- */
.doc-inner blockquote { margin: 24px 0 32px; padding: 24px 32px; background: var(--cream); border-radius: var(--radius-lg); border-left: 4px solid var(--navy); }
.doc-inner blockquote p { font-size: 16.5px; font-style: italic; color: var(--navy-dark); line-height: 1.7; margin-bottom: 8px; }
.doc-inner blockquote cite { font-size: 13px; font-style: normal; font-weight: 600; color: var(--gray-400); }
.doc-inner blockquote cite a { color: var(--gray-400); text-decoration: underline; }
.doc-inner blockquote cite a:hover { color: var(--red); }

/* @class quote-source
   @label Quotation source label
   @applies span
   @group Document block parts
   @desc Small red uppercase label at the top of a quotation ("Utah Code", "Contract § 1.3"). */
.quote-source { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); font-style: normal; margin-bottom: 10px; }

/* @class pull-quote
   @label Pull quote
   @applies div blockquote
   @group Document blocks
   @desc Navy centred card with one sentence set large in white and a small attribution. */
.pull-quote { margin: 36px 0; padding: 36px 40px; background: var(--navy-dark); border-radius: var(--radius-lg); text-align: center; }
.doc-inner .pull-quote p { font-family: var(--font-serif); font-size: clamp(22px, 3.5vw, 30px); font-weight: 700; color: var(--white); line-height: 1.4; margin-bottom: 10px; }
.pull-quote cite { font-size: 13px; font-style: normal; color: rgba(255,255,255,0.5); }

/* ---- boxes ---- */

/* @class scope-box
   @label Scope box
   @applies div aside
   @group Document blocks
   @desc Cream box with a navy border and a labelled rule: what this analysis does and does not claim. */
.scope-box { background: var(--cream); border: 2px solid var(--navy); border-radius: var(--radius-lg); padding: 32px 36px; margin: 32px 0; box-shadow: 0 4px 20px rgba(27,47,78,0.08); }

/* @class scope-box-label
   @label Scope box label
   @applies div
   @group Document block parts
   @desc Small navy uppercase label with a hairline to the right, first line of a scope box. */
.scope-box-label { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.scope-box-label::after { content: ''; flex: 1; height: 1px; background: rgba(27,47,78,0.2); }
.doc-inner .scope-box p { margin-bottom: 14px; font-size: 16px; color: var(--navy-dark); line-height: 1.75; }
.doc-inner .scope-box p:last-child { margin-bottom: 0; }

/* @class finding-box
   @label Finding, navy
   @applies div aside
   @group Document blocks
   @desc Navy box with a faint uppercase heading and one large white statement: the finding a section lands on. */
.finding-box { background: var(--navy-dark); border-radius: var(--radius-lg); padding: 28px 32px; margin: 32px 0; }
.doc-inner .finding-box h3 { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin: 0 0 12px; }
.doc-inner .finding-box p { font-size: 18px; font-weight: 600; color: var(--white); line-height: 1.6; margin: 0; }
.doc-inner .finding-box strong { color: var(--white); }

/* @class violation-box
   @label Finding, grey
   @applies div aside
   @group Document blocks
   @desc Grey box with a red left bar and a red uppercase heading: a violation, a key finding in a briefing. */
.violation-box { background: var(--gray-50); border-left: 4px solid var(--red); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding: 28px 32px; margin: 32px 0; }
.doc-inner .violation-box h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red); }
.doc-inner .violation-box p { margin-bottom: 0; font-size: 15px; }

/* @class update-note
   @label Update note
   @applies div aside
   @group Document blocks
   @desc Grey box with a navy left bar and a small navy label: an update added after publication. */
.update-note { background: var(--gray-50); border-left: 4px solid var(--navy); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding: 26px 32px; margin: 32px 0; }

/* @class update-note-label
   @label Update note label
   @applies div
   @group Document block parts
   @desc Small navy uppercase label on the first line of an update note. */
.update-note-label { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.doc-inner .update-note p { font-size: 15.5px; margin-bottom: 12px; }
.doc-inner .update-note p:last-child { margin-bottom: 0; }

/* @class draft-def
   @label Draft definition
   @applies div
   @group Document blocks
   @desc Cream box with a navy left bar for proposed statutory language; the defined term in bold (def-term). */
.draft-def { background: var(--cream); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 24px 28px; margin: 20px 0; }
.doc-inner .draft-def p { font-size: 15.5px; color: var(--navy-dark); line-height: 1.75; }
.doc-inner .draft-def p:last-child { margin-bottom: 0; }
.doc-inner .draft-def li { color: var(--navy-dark); }

/* @class def-term
   @label Defined term
   @applies span
   @group Document block parts
   @desc Bold defined term at the start of a draft definition. */
.def-term { font-weight: 800; }

/* ---- key figures ---- */

/* @class stats-grid
   @label Stat cards
   @applies div
   @group Document blocks
   @desc Two-column grid of grey cards, each a large red number with a description. */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 8px; }

/* @class stat-card
   @label Stat card
   @applies div
   @group Document block parts
   @desc One grey card in a stats grid; add "wide" to span both columns. */
.stat-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 26px 28px; }
/* @class wide
   @label Full width (stat card)
   @applies div
   @group Document block parts
   @desc On a stat card: span both columns of the grid. */
.stat-card.wide { grid-column: 1 / -1; }
/* @class stat-num
   @label Stat number
   @applies div
   @group Document block parts
   @desc The large red number in a stat card. */
.stat-num { font-size: clamp(30px, 5vw, 40px); font-weight: 900; color: var(--red); letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
/* @class stat-desc
   @label Stat description
   @applies div
   @group Document block parts
   @desc The description under a stat card's number. */
.stat-desc { font-size: 14.5px; color: var(--gray-600); line-height: 1.65; }
.stat-desc strong { color: var(--navy-dark); }

/* ---- figures and tables ---- */

/* @class evidence-figure
   @label Figure
   @applies figure
   @group Document blocks
   @desc Full-width bordered image with a small grey caption underneath. */
.evidence-figure { margin: 32px 0; }
.evidence-figure img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); display: block; }
.evidence-figure figcaption { font-size: 13px; color: var(--gray-400); margin-top: 10px; line-height: 1.5; }

/* @class table-wrap
   @label Table wrapper
   @applies div
   @group Document block parts
   @desc Horizontal-scroll wrapper around a wide table. */
.table-wrap { overflow-x: auto; margin: 24px 0 32px; }

/* @class doc-table-wrap
   @label Data table wrapper
   @applies div
   @group Document block parts
   @desc Bordered, rounded, horizontal-scroll wrapper around a data table. */
.doc-table-wrap { overflow-x: auto; margin: 24px 0 32px; border-radius: var(--radius); border: 1px solid var(--gray-200); }

/* @class doc-table
   @label Data table
   @applies table
   @group Document blocks
   @desc Table with a navy header row, light row rules and a bold first column. */
.doc-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 14.5px; }
.doc-table caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--gray-400); padding: 10px 16px; }
.doc-table th { background: var(--navy-dark); color: var(--white); text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.doc-table td { padding: 14px 16px; border-top: 1px solid var(--gray-200); color: var(--gray-600); line-height: 1.6; vertical-align: top; }
.doc-table td:first-child { font-weight: 700; color: var(--navy-dark); white-space: nowrap; }

/* @class own-table
   @label Plain table
   @applies table
   @group Document blocks
   @desc Table with a grey uppercase header row and a bold first column; no outer border. */
.own-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.own-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-400); padding: 10px 16px; border-bottom: 2px solid var(--gray-200); }
.own-table td { padding: 16px; color: var(--gray-600); line-height: 1.6; vertical-align: top; border-bottom: 1px solid var(--gray-100); }
.own-table td:first-child { font-weight: 600; color: var(--navy-dark); width: 210px; }

/* @class own-no
   @label Row number tag
   @applies span
   @group Document block parts
   @desc Small red uppercase tag before a table cell's text. */
.own-no { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-right: 6px; }

/* @class table-scroll
   @label Scrolling table wrapper
   @applies div
   @group Document block parts
   @desc Bordered box that scrolls vertically for a long ranked table with a sticky header. */
.table-scroll { max-height: 620px; overflow-y: auto; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); margin: 24px 0; }

/* @class rank-table
   @label Ranked table
   @applies table
   @group Document blocks
   @desc Dense table with a sticky navy header, right-aligned numbers in columns 3 and 4, and bold subtotal rows (tr.subtotal). */
.rank-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rank-table th { position: sticky; top: 0; background: var(--navy-dark); color: var(--white); text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 14px; }
.rank-table td { padding: 8px 14px; color: var(--gray-600); line-height: 1.5; border-bottom: 1px solid var(--gray-100); }
.rank-table td:first-child { font-weight: 600; color: var(--gray-400); width: 60px; }
.rank-table td:nth-child(3), .rank-table td:nth-child(4), .rank-table th:nth-child(3), .rank-table th:nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* @class subtotal
   @label Subtotal row
   @applies tr
   @group Document block parts
   @desc On a ranked table row: bold, grey background, rule above. */
.rank-table tr.subtotal td { font-weight: 700; color: var(--navy-dark); background: var(--gray-50); border-top: 2px solid var(--gray-200); }

/* @class timeline-table
   @label Timeline table
   @applies table
   @group Document blocks
   @desc Date-first table with a grey header row; tr.highlight tints a row pink. */
.timeline-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.timeline-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-400); padding: 10px 16px; border-bottom: 2px solid var(--gray-200); }
.timeline-table td { padding: 14px 16px; color: var(--gray-600); line-height: 1.6; vertical-align: top; border-bottom: 1px solid var(--gray-100); }
.timeline-table td:first-child { white-space: nowrap; font-weight: 600; color: var(--navy-dark); width: 130px; }
/* @class highlight
   @label Highlighted row
   @applies tr
   @group Document block parts
   @desc On a timeline table row: pink tint. */
.timeline-table tr.highlight td { background: #fff5f5; }

/* ---- downloads, calls to action ---- */

/* @class table-downloads
   @label Download buttons row
   @applies div
   @group Document blocks
   @desc Wrapping row of red file buttons (btn-file). */
.table-downloads { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }

/* @class btn-file
   @label File button
   @applies a
   @group Document block parts
   @desc Red filled button for a file download; navy inside a related-cta box. */
.btn-file { display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: var(--white); padding: 12px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 700; transition: background 0.2s; }
.btn-file:hover { background: var(--red-light); }

/* @class related-cta
   @label Related reading box
   @applies div
   @group Document blocks
   @desc Centred cream box with a heading, a sentence and navy buttons: the full investigation, the archive. */
.related-cta { background: var(--cream); border-radius: var(--radius-lg); padding: 32px 36px; margin-top: 56px; text-align: center; }
.doc-inner .related-cta h3 { margin-top: 0; }
.doc-inner .related-cta p { margin-bottom: 20px; }
.related-cta .btn-file { background: var(--navy-dark); font-size: 14.5px; margin: 4px; }
.related-cta .btn-file:hover { background: var(--red); }

/* @class download-cta
   @label Download box
   @applies div
   @group Document blocks
   @desc Centred navy box with a sentence and one red download button (btn-download). */
.download-cta { background: var(--navy-dark); border-radius: var(--radius-lg); padding: 40px; text-align: center; margin-top: 64px; }
.doc-inner .download-cta p { color: rgba(255,255,255,0.65); margin-bottom: 20px; }
/* @class btn-download
   @label Download button
   @applies a
   @group Document block parts
   @desc Large red button inside a download box. */
.btn-download { display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: var(--white); padding: 15px 32px; border-radius: var(--radius); font-size: 16px; font-weight: 700; transition: background 0.2s; }
.btn-download:hover { background: var(--red-light); }

/* @class contact-cta
   @label Contact box
   @applies div
   @group Document blocks
   @desc Centred navy box with a white heading, a muted sentence and a red email button (btn-contact). */
.contact-cta { background: var(--navy-dark); border-radius: var(--radius-lg); padding: 40px; text-align: center; margin-top: 40px; }
.doc-inner .contact-cta h3 { color: var(--white); font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 10px; }
.doc-inner .contact-cta p { color: rgba(255,255,255,0.65); font-size: 15px; max-width: 460px; margin: 0 auto 24px; }
/* @class btn-contact
   @label Contact button
   @applies a
   @group Document block parts
   @desc Large red button inside a contact box. */
.btn-contact { display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: var(--white); padding: 15px 32px; border-radius: var(--radius); font-size: 16px; font-weight: 700; transition: background 0.2s; }
.btn-contact:hover { background: var(--red-light); }

/* ---- sources, asks, cards, accordion ---- */

/* @class sources-list
   @label Sources, paragraphs
   @applies div
   @group Document blocks
   @desc Slightly smaller paragraphs for an appendix of sources; bold source names in navy. */
.doc-inner .sources-list p { font-size: 15px; line-height: 1.75; }
.sources-list strong { color: var(--navy-dark); }

/* @class sources-grid
   @label Sources, cards
   @applies div
   @group Document blocks
   @desc Two-column grid of small grey source cards (source-item), each with a name, a line of detail and a link. */
.sources-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }

/* @class source-item
   @label Source card
   @applies div
   @group Document block parts
   @desc One card in a sources grid. */
.source-item { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 14px 16px; font-size: 13px; color: var(--gray-600); line-height: 1.5; }
.source-item strong { display: block; font-weight: 600; color: var(--navy-dark); margin-bottom: 4px; }
.doc-inner .source-item p { font-size: 13px; line-height: 1.5; margin: 0; }
.source-item a { color: var(--red); word-break: break-all; font-size: 12px; text-decoration: none; }
.source-item a:hover { text-decoration: underline; }

/* @class ask-list
   @label Asks
   @applies div
   @group Document blocks
   @desc Stacked headed items (ask-item: h3 + p): what we are asking for. */
.ask-list { margin: 8px 0; }
/* @class ask-item
   @label Ask
   @applies div
   @group Document block parts
   @desc One headed item (h3 + p) in an asks list. */
.ask-item { margin-bottom: 28px; }
.doc-inner .ask-item h3 { margin: 0 0 8px; }
.doc-inner .ask-item p { margin-bottom: 0; }

/* @class join-grid
   @label Card grid
   @applies div
   @group Document blocks
   @desc Two-column grid of grey cards (join-card), each a red uppercase heading and a short paragraph. */
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }

/* @class join-card
   @label Card
   @applies div
   @group Document block parts
   @desc One grey card in a card grid. */
.join-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px 26px; }
.join-card strong { display: block; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--red); margin-bottom: 8px; }
.doc-inner .join-card p { font-size: 14.5px; line-height: 1.7; margin-bottom: 0; }
.join-card a { color: var(--red); font-weight: 600; text-decoration: none; }
.join-card a:hover { text-decoration: underline; }

/* @class doc-accordion
   @label Collapsible sections
   @applies div
   @group Document blocks
   @desc A run of details/summary sections: large heading with a red disc marker, opens to its text (section-body). */
.doc-accordion details { border-top: 3px solid var(--red); margin-top: 32px; }
.doc-accordion details + details { margin-top: 8px; }
.doc-accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0 16px; cursor: pointer; list-style: none; font-size: clamp(18px, 3vw, 24px); font-weight: 800; color: var(--navy-dark); letter-spacing: -0.02em; user-select: none; }
.doc-accordion summary::-webkit-details-marker { display: none; }
.doc-accordion summary::after { content: ''; flex-shrink: 0; width: 22px; height: 22px; background: var(--red); border-radius: 50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; transition: transform 0.2s var(--ease); }
.doc-accordion details[open] summary::after { transform: rotate(180deg); }
.doc-accordion summary:hover { color: var(--red); }

/* @class section-body
   @label Collapsible section body
   @applies div
   @group Document block parts
   @desc The text inside one collapsible section. */
.section-body { padding-bottom: 32px; }
.section-body > :first-child { margin-top: 0; }

@media (max-width: 700px) {
  .doc-body { padding: 56px 24px 80px; }
  .release-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .download-inline { margin-left: 0; }
  .paper-toc ol { columns: 1; }
  .scope-box { padding: 24px 22px; }
  .doc-inner blockquote { padding: 20px 22px; }
  .stats-grid, .sources-grid, .join-grid { grid-template-columns: 1fr; }
  .parts-nav { grid-template-columns: 1fr; }
  .part-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .part-card:last-child { border-bottom: none; }
  .timeline-table td:first-child { white-space: normal; width: auto; }
  .download-cta, .contact-cta { padding: 28px 20px; }
}

/* @class video-meta
   @label Video Meta
   @applies div
   @group News & coverage
   @desc Used on <div> in blog, projects. Sets: font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; colo… (auto) */
.video-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 8px;
}
/* @class video-headline
   @label Video Headline
   @applies h2 h3
   @group News & coverage
   @desc Used on <h2>, <h3> in blog, projects. Sets: font-size: 17px; font-weight: 700; color: var(--navy-dark); line-height: 1.4; letter-spaci… (auto) */
.video-headline {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
@media (max-width: 640px) {
  .news-section { padding: 56px 24px 72px; }
  .news-card { flex-direction: column; gap: 16px; padding: 24px 20px; }
  .news-more-cta { flex-direction: column; text-align: center; }
  .video-card { padding: 24px 20px; }
}

/* ── Utilities (replace the last inline style attributes; CSP style-src 'self') ── */
[hidden] { display: none !important; } /* author display rules must not un-hide */
/* @class bg-cream
   @label Cream background
   @applies div section
   @group Utilities
   @desc Cream page background band. */
.bg-cream { background: var(--cream); }
/* @class nowrap
   @label No wrap
   @applies a span
   @group Utilities
   @desc Keeps the text on one line. */
.nowrap { white-space: nowrap; }
/* @class is-hidden
   @label Hidden
   @applies div p span
   @group Utilities
   @desc display: none — hidden until a script shows it. */
.is-hidden { display: none; }
/* @class mt-40
   @label Margin top 40
   @applies div p
   @group Utilities
   @desc 40px top margin. */
.mt-40 { margin-top: 40px; }
/* @class mt-56
   @label Margin top 56
   @applies div p
   @group Utilities
   @desc 56px top margin. */
.mt-56 { margin-top: 56px; }
/* @class mb-16
   @label Margin bottom 16
   @applies div p
   @group Utilities
   @desc 16px bottom margin. */
.mb-16 { margin-bottom: 16px; }
/* @class consent-label
   @label Consent label
   @applies label
   @group Forms
   @desc Small muted label for a consent checkbox. */
.consent-label { font-size: 12.5px; color: var(--gray-600); }
/* @class consent-link
   @label Consent link
   @applies a
   @group Forms
   @desc Underlined navy link inside a consent label. */
.consent-link { color: var(--navy); text-decoration: underline; }
/* @class req-star
   @label Required marker
   @applies span
   @group Forms
   @desc Red asterisk marking a required field. */
.req-star { color: var(--red); }

/* Document → project link bar (templates/documents/report.html; docs/systems/projects.md "Nesting") */
/* @class doc-breadcrumb
   @label Project link bar
   @applies nav
   @group Navigation
   @desc Developer-owned strip under a Document that links back to its project on /projects. */
.doc-breadcrumb {
  background: var(--cream);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 20px 48px;
  font-size: 14px;
  color: var(--gray-600);
}
.doc-breadcrumb a {
  color: var(--navy-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc-breadcrumb p { margin: 0 0 8px; }
.doc-breadcrumb-path span[aria-current] { color: var(--gray-600); font-weight: 400; }
.doc-breadcrumb-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-top: 16px; }
.doc-breadcrumb-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 768px) { .doc-breadcrumb { padding: 16px 24px; } }

/* Opinion label strip above a Document whose Category is "Opinions" (templates/documents/report.html; docs/systems/documents.md "Opinion pieces") */
/* @class doc-opinion-label
   @label Staff opinion strip
   @applies div
   @group Navigation
   @desc Developer-owned strip above a UCC Staff Opinion: the label and the one-line disclaimer. */
.doc-opinion-label {
  background: var(--navy-dark);
  color: #fff;
  padding: 12px 48px;
  font-size: 14px;
  line-height: 1.5;
}
.doc-opinion-label p { margin: 0; }
.doc-opinion-label strong { color: var(--red-light); letter-spacing: 0.04em; text-transform: uppercase; font-size: 12px; margin-right: 6px; }
@media (max-width: 768px) { .doc-opinion-label { padding: 10px 24px; } }
