/* ==========================================================================
   D4ARF Custom Theme — Pico CSS Overrides + Campaign Branding
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  /* Primary palette — WCAG AA compliant on white */
  --d4arf-red: #B91C1C;
  --d4arf-green: #166534;

  /* Teal accent for links, borders, section markers */
  --d4arf-accent: #0C7489;
  --d4arf-accent-light: #E0F2F7;

  /* Warm neutrals */
  --d4arf-black: #1b2127;
  --d4arf-white: #f8f7f5;
  --d4arf-gray: #556068;
  --d4arf-gray-light: #f0efec;
  --d4arf-border: #dee3e6;

  /* Functional colors */
  --d4arf-red-light: #FEE2E2;
  --d4arf-green-light: #DCFCE7;

  /* Semantic tokens */
  --color-text-primary: var(--d4arf-black);
  --color-text-secondary: var(--d4arf-gray);
  --color-bg-page: var(--d4arf-white);
  --color-bg-panel: var(--d4arf-gray-light);
  --color-bg-surface: #ffffff; /* Pure white for card elevation against warm off-white page */
  --color-link: var(--d4arf-accent);
  --color-link-hover: #095c6e;
  --color-cta: var(--d4arf-red);
  --color-cta-hover: #991b1b;
  --color-success: var(--d4arf-green);
  --color-border: var(--d4arf-border);

  /* Link styling */
  --d4arf-link: var(--color-link);
  --d4arf-link-hover: var(--color-link-hover);

  /* Typography */
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif; /* Brand spec says Work Sans; Inter retained — both are excellent, metrics nearly identical */
  --font-mono: 'IBM Plex Mono', 'Cascadia Code', 'Fira Code', monospace;
  --font-display: var(--font-serif);
  --font-body: var(--font-sans);

  /* Modular scale — 1.2 ratio (Minor Third) */
  --text-xs: 0.694rem;
  --text-sm: 0.833rem;
  --text-base: 1rem;
  --text-md: 1.2rem;
  --text-lg: 1.44rem;
  --text-xl: 1.728rem;
  --text-2xl: 2.074rem;
  --text-3xl: 2.488rem;
  --text-4xl: 2.986rem;
  --text-5xl: 3.583rem;

  /* Spacing scale — consistent rhythm */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */
}

/* --- Pico Overrides --- */
:root {
  --pico-font-family: var(--font-body);
  --pico-font-size: 100%;
  --pico-line-height: 1.65;
  --pico-color: var(--d4arf-black);
  --pico-background-color: var(--color-bg-page);
  --pico-primary: var(--d4arf-red);
  --pico-primary-hover: var(--color-link-hover);
}

/* --- Logo theme swap — CSS only, no flash --- */
[data-theme="light"] .logo-dark,
[data-theme="dark"] .logo-light {
  display: none;
}

[data-theme="light"] .logo-light,
[data-theme="dark"] .logo-dark {
  display: block;
}

/* Fallback: show light logo if data-theme hasn't been set (JS disabled) */
:root:not([data-theme]) .logo-light { display: block; }
:root:not([data-theme]) .logo-dark  { display: none; }

/* --- Base --- */
body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-page);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1, .h1 {
  font-size: var(--text-3xl);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: var(--text-2xl);
}

h3, .h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: var(--text-lg);
  line-height: 1.3;
}

h5, h6 {
  line-height: 1.3;
}

/* Utility classes need font-family since they may apply to non-heading elements */
.h1, .h2, .h3 {
  font-family: var(--font-serif);
}

/* Sans-serif for UI elements */
nav, footer, .meta, .label, .badge, .section-label, .stat-label, .btn, .nav-title,
.hero-eyebrow, .footer-heading, .evidence-source, .card-label, figcaption,
.table-caption, caption {
  font-family: var(--font-sans);
}

/* Monospace for data */
.stat-number, .amount, .data-value, code, pre, .font-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Constrain body text for optimal line length (50-70 chars) */
article p, article ul, article ol, article blockquote,
.container-prose p, .container-prose ul, .container-prose ol {
  max-width: 38rem;
}

a {
  color: var(--color-link);
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-link-hover);
}

/* --- Skip Link (a11y) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--d4arf-red);
  color: #fff;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--d4arf-black);
  outline-offset: 2px;
}

/* --- Screen Reader Only (a11y) --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* --- Focus States (a11y) --- */
:focus-visible {
  outline: 3px solid var(--d4arf-red);
  outline-offset: 2px;
}

.nav-links a:focus-visible {
  outline-offset: -2px;
  border-radius: 6px;
}

.pathway-card:focus-visible {
  outline-offset: -2px;
  border-color: var(--d4arf-red);
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.1);
}

.btn:focus-visible {
  outline-offset: 3px;
}

.footer-nav-col a:focus-visible,
.footer-contact-email a:focus-visible {
  outline-color: #fff;
}

/* --- Container --- */
.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Body text constraint — prevent long lines (only at widths where container is wide enough to matter) */
@media (min-width: 800px) {
  .container-prose li,
  .container-prose blockquote {
    max-width: 38rem;
  }
}

/* === Section Rhythm === */
.evidence-finding,
.page-content section,
article section {
  margin-top: 3.5rem;
  padding-top: 2rem;
}

/* First section shouldn't have top margin */
.page-content > section:first-child,
article > section:first-child {
  margin-top: 0;
  padding-top: 0;
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
}

.site-nav .container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-logo img {
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--d4arf-black);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin: 0;
  margin-left: auto;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--d4arf-gray);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: color 0.15s, background-color 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--d4arf-red);
  background-color: var(--d4arf-red-light);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-title {
    font-size: 0.95rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  @keyframes navSlideDown {
    from {
      opacity: 0;
      transform: translateY(-0.5rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links.nav-open {
    display: flex;
  }

  @media (prefers-reduced-motion: no-preference) {
    .nav-links.nav-open {
      animation: navSlideDown 0.25s ease-out;
    }
  }

  .nav-links a {
    padding: 0.85rem 0.75rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-links {
    margin-left: 0;
  }

  .nav-end {
    margin-left: auto;
  }
}

@media (max-width: 400px) {
  .nav-title { display: none; }
}

/* ==========================================================================
   HERO — Dark editorial hero with geometric texture
   ========================================================================== */
.hero {
  background-color: var(--d4arf-black);
  border-top: 3px solid var(--d4arf-red);
  padding: var(--space-4xl) var(--space-lg) var(--space-3xl);
  position: relative;
  overflow: hidden;
}

/* Subtle grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Red accent stripe at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--d4arf-red);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
}

.hero-eyebrow {
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-sans);
  margin: 0 0 1.5rem;
  padding-left: 1.75rem;
  position: relative;
}

.hero-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 2px;
  background: var(--d4arf-red);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw + 0.75rem, var(--text-5xl));
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 18ch;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-sub,
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, var(--text-md));
  color: rgba(255, 255, 255, 0.7);
  max-width: 38rem;
  margin: 0 0 var(--space-2xl);
  line-height: 1.6;
  text-align: left;
}

/* Hero anchor stat — a single striking number */
.hero-stat {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.hero-stat-number {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--d4arf-red);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* In dark mode hero is always dark — pin red to the light-mode value */
[data-theme="dark"] .hero-stat-number {
  color: #EF4444;
}

.hero-stat-label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .hero {
    padding: var(--space-2xl) var(--space-lg) var(--space-2xl);
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stat {
    margin-bottom: var(--space-lg);
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
  line-height: 1.4;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-cta);
  color: #fff;
  border-color: var(--color-cta);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: #fff;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.25);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--d4arf-accent);
  border: 2px solid var(--d4arf-accent);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--d4arf-accent);
  color: #fff;
  text-decoration: none;
}

/* --- Text Button (tertiary CTA) --- */
.btn-text {
  color: var(--d4arf-accent);
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.btn-text:hover,
.btn-text:focus-visible {
  border-bottom-color: var(--d4arf-accent);
}

.btn-text::after {
  content: " \2192";
}

/* Light outline button for dark backgrounds */
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

/* ==========================================================================
   STATS BAR — Impact numbers with scroll counter animation
   ========================================================================== */
.stats-bar {
  padding: var(--space-3xl) var(--space-lg);
  background-color: var(--color-bg-surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  position: relative;
}

/* Vertical red dividers between stats on desktop */
.stat-card + .stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 2px;
  background: var(--d4arf-red);
  opacity: 0.2;
  border-radius: 1px;
}

.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, var(--text-4xl));
  font-weight: 600;
  color: var(--d4arf-red);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.4;
  max-width: 240px;
  margin: 0 auto;
}

/* Zero stat — the most damning finding */
.stat-card--zero {
  background: var(--d4arf-red-light);
  border-radius: 8px;
  border: 2px solid var(--d4arf-red);
}

.stat-card--zero .stat-number {
  position: relative;
  display: inline-block;
  font-size: clamp(3rem, 8vw, var(--text-5xl));
  font-weight: 700;
}

.stat-card--zero .stat-number::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 3px;
  background: var(--d4arf-red);
  border-radius: 2px;
}

.stat-card--zero .stat-label {
  font-weight: 600;
  color: var(--d4arf-black);
}

/* Zero pulse animation */
@keyframes stat-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.stat-number--revealed {
  animation: stat-pulse 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  .stat-number--revealed {
    animation: none;
  }
}

/* Remove divider next to zero card (needs .stat-card for specificity) */
.stat-card.stat-card--zero::before {
  display: none;
}

/* Provenance annotation below stats */
.stats-provenance {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.stats-provenance p {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  margin: 0;
  max-width: none;
}

@media (max-width: 600px) {
  .stats-bar {
    padding: var(--space-2xl) var(--space-lg);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stat-card {
    padding: var(--space-lg) var(--space-md);
  }

  /* Transform vertical dividers into horizontal on mobile */
  .stat-card + .stat-card::before {
    position: static;
    display: block;
    width: 3rem;
    height: 2px;
    margin: 0 auto var(--space-lg);
    transform: none;
    top: auto;
    left: auto;
  }

  .stat-card:last-child {
    border-bottom: none;
  }

  .stat-card--zero {
    border-bottom: none;
  }

  /* Re-show divider next to zero card on mobile since it's now horizontal */
  .stat-card.stat-card--zero::before {
    display: block;
  }
}

/* ==========================================================================
   PATHWAY CARDS — Audience conversion paths
   ========================================================================== */
.pathways {
  padding: var(--space-3xl) var(--space-lg) var(--space-4xl);
  background-color: var(--d4arf-gray-light);
}

.section-heading {
  text-align: center;
  margin-bottom: var(--space-2xl);
  font-size: clamp(1.5rem, 3vw, 2rem);
  position: relative;
  padding-bottom: var(--space-md);
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3px;
  background: var(--d4arf-red);
  border-radius: 2px;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.pathway-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-bg-surface);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  border-left: 4px solid transparent;
  text-decoration: none;
  color: var(--d4arf-black);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pathway-card:hover {
  border-left-color: var(--d4arf-red);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
  color: var(--d4arf-black);
}

.pathway-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--d4arf-red-light);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.pathway-icon svg {
  color: var(--d4arf-red);
  width: 24px;
  height: 24px;
}

.pathway-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.pathway-card p {
  font-size: 0.95rem;
  color: var(--d4arf-gray);
  margin: 0;
  line-height: 1.6;
  flex-grow: 1;
}

.pathway-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--d4arf-red);
  margin-top: 1.25rem;
  transition: gap 0.2s ease;
}

.pathway-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.pathway-card:hover .pathway-arrow {
  gap: 0.55rem;
}

.pathway-card:hover .pathway-arrow svg {
  transform: translateX(2px);
}

@media (max-width: 768px) {
  .pathway-grid {
    grid-template-columns: 1fr;
  }

  .pathways {
    padding: 3rem 1.5rem 4rem;
  }
}

/* ==========================================================================
   ABOUT SECTION (Homepage)
   ========================================================================== */
.about-section {
  padding: var(--space-3xl) var(--space-lg) var(--space-4xl);
}

.about-section .container-prose h2 {
  text-align: center;
}

.about-section .container-prose p {
  text-align: left;
}

.about-section .container-prose .btn {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.about-section h2 {
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.about-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3px;
  background: var(--d4arf-red);
  border-radius: 2px;
}

.about-section p {
  color: var(--d4arf-gray);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Page Content --- */
.page-content {
  padding: 3rem 0 4rem;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--d4arf-red);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-description {
  font-size: 1.1rem;
  color: var(--d4arf-gray);
  margin: 0;
}

/* --- Responsive Tables --- */
.table-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-content table {
  width: 100%;
}

.page-content tbody tr:nth-child(even) {
  background-color: var(--d4arf-gray-light);
}

[data-theme="dark"] .page-content tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .page-content th {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--d4arf-black);
}

@media (max-width: 768px) {
  .page-content table {
    font-size: 0.875rem;
  }
}

/* --- Post Content --- */
.post-content {
  padding: 3rem 0 4rem;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--d4arf-red);
}

.post-header h1 {
  margin-bottom: 0.5rem;
}

.post-header time {
  font-size: 0.95rem;
  color: var(--d4arf-gray);
}

/* --- Landing Page --- */
.landing-hero {
  background-color: var(--d4arf-gray-light);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.landing-hero h1 {
  margin-bottom: 0.5rem;
}

.landing-description {
  font-size: 1.15rem;
  color: var(--d4arf-gray);
  margin: 0.75rem auto 0;
  max-width: 600px;
  line-height: 1.7;
}

.landing-content .container-prose {
  padding-bottom: 4rem;
}

/* --- CTA Box --- */
.cta-box {
  margin-top: 3rem;
  padding: 2rem;
  background-color: var(--d4arf-red-light);
  border-left: 4px solid var(--d4arf-red);
  border-radius: 0 8px 8px 0;
}

.cta-box h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.cta-box p {
  margin-bottom: 1rem;
  color: var(--d4arf-gray);
}

/* --- Letter Template --- */
.letter-template {
  margin: 1.5rem 0;
  padding: 2rem;
  background-color: var(--color-bg-surface);
  border: 2px solid var(--d4arf-border);
  border-radius: 8px;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.letter-template .letter-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--d4arf-gray);
  margin: -2rem -2rem 1.5rem;
  padding: 0.75rem 6rem 0.75rem 2rem;
  background: var(--d4arf-gray-light);
  border-radius: 6px 6px 0 0;
  border-bottom: 1px solid var(--d4arf-border);
}

.letter-template p,
.letter-template ol {
  font-size: 0.95rem;
  line-height: 1.7;
}

.letter-template ol {
  padding-left: 1.25rem;
}

.letter-template ol li {
  margin-bottom: 0.5rem;
}

/* === Blockquotes — evidence/source quotes === */
blockquote {
  border-left: 4px solid var(--d4arf-red);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: var(--d4arf-red-light);
  border-radius: 0 4px 4px 0;
  font-style: normal;
}

blockquote p {
  margin: 0;
}

/* --- Callout / Pull Quote --- */
.callout {
  border-left: 4px solid var(--d4arf-green);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: var(--d4arf-green-light);
  border-radius: 0 4px 4px 0;
}

.callout p {
  margin: 0;
}

/* === Key Finding highlight box === */
.key-finding {
  border-left: 4px solid var(--d4arf-accent);
  background: var(--d4arf-accent-light);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

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

.key-finding strong:first-child {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--d4arf-accent);
}

/* --- Social Share --- */
.social-share {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--d4arf-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.share-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--d4arf-gray);
}

.share-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  text-decoration: none;
}

/* --- Footer --- */
.site-footer {
  background: var(--d4arf-black);
  color: #d1d5db;
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: 0;
}

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

.footer-brand img {
  margin-bottom: 1rem;
  border-radius: 4px;
}

.footer-brand .footer-tagline {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  color: #d1d5db;
  margin-top: 1rem;
  line-height: 1.5;
}

.footer-contact-email { margin-top: 0.75rem; }
.footer-contact-email a { color: var(--d4arf-accent); }
.footer-contact-email a:hover { color: #5ec4d4; }

.footer-heading {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #f3f4f6;
  margin-bottom: 1rem;
}

.footer-nav-col ul { list-style: none; padding: 0; margin: 0; }
.footer-nav-col li { margin-bottom: 0.5rem; }
.footer-nav-col a {
  color: #9ca3af;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  transition: color 0.2s;
}
.footer-nav-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: #6b7280;
  margin: 0;
  max-width: none;
}

.footer-bottom a { color: #9ca3af; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- News/Blog List --- */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--d4arf-border);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list h3 {
  margin-bottom: 0.25rem;
}

.post-list h3 a {
  text-decoration: none;
}

.post-list time {
  font-size: 0.9rem;
  color: var(--d4arf-gray);
}

.post-list p {
  margin-top: 0.5rem;
  color: var(--d4arf-gray);
}

/* ==========================================================================
   EVIDENCE PAGE — Timeline, pull quotes, findings, legal reference
   ========================================================================== */

/* --- Evidence Findings — Visual hierarchy for numbered findings --- */
.evidence-findings h3 {
  padding-left: 1rem;
  border-left: 4px solid var(--d4arf-red);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.evidence-findings h3:first-child {
  margin-top: 0;
}

/* Separator between findings */
.evidence-findings hr {
  border: none;
  border-top: 1px solid var(--d4arf-border);
  margin: 2.5rem 0;
}

/* --- Pull Quote — Elevated callout for official statements --- */
.pull-quote {
  padding: 1.75rem 1.75rem 1.75rem 2rem;
  background-color: var(--d4arf-gray-light);
  border-left: 6px solid var(--d4arf-red);
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Decorative open-quote */
.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.25rem;
  left: 0.75rem;
  font-size: 4rem;
  font-family: var(--font-display);
  color: var(--d4arf-red);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
}

.pull-quote p {
  margin: 0 0 1rem;
  position: relative;
}

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

.pull-quote-attribution {
  display: block;
  font-size: 0.85rem;
  color: var(--d4arf-gray);
  font-style: normal;
  margin-top: 0.25rem;
}

/* --- Evidence Timeline — Vertical timeline component --- */
.evidence-timeline {
  position: relative;
  padding-left: 2.5rem;
  margin: 2rem 0 1rem;
}

/* Vertical line */
.evidence-timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: rgba(185, 28, 28, 0.2);
  border-radius: 1px;
}

.evidence-timeline .timeline-event {
  position: relative;
  padding-bottom: 2rem;
}

.evidence-timeline .timeline-event:last-child {
  padding-bottom: 0;
}

/* Dot marker on the line */
.timeline-marker {
  position: absolute;
  left: -2.25rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  background: var(--d4arf-red);
  border-radius: 50%;
  border: 2px solid var(--d4arf-white);
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.2);
}

.timeline-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--d4arf-red);
  margin-bottom: 0.35rem;
}

.timeline-content {
  font-size: 0.95rem;
  color: var(--d4arf-gray);
  line-height: 1.65;
}

/* Escalation events — stronger visual treatment */
.timeline-event--escalation .timeline-marker {
  width: 14px;
  height: 14px;
  left: -2.375rem;
  top: 0.25rem;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.25);
}

.timeline-event--escalation .timeline-content {
  background: var(--d4arf-red-light);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border-left: 3px solid var(--d4arf-red);
  color: var(--d4arf-black);
}

.timeline-event--escalation .timeline-date {
  font-size: 1rem;
}

/* Timeline mobile adjustments */
@media (max-width: 600px) {
  .evidence-timeline {
    padding-left: 2rem;
  }

  .timeline-marker {
    left: -1.75rem;
  }

  .timeline-event--escalation .timeline-marker {
    left: -1.875rem;
  }

  .timeline-event--escalation .timeline-content {
    padding: 0.6rem 0.75rem;
  }
}

/* --- Legal Reference Block — Highlighted legal standards sidebar --- */
.legal-reference {
  background: var(--d4arf-red-light);
  border-radius: 8px;
  padding: 2rem;
  margin: 1.5rem 0 2rem;
}

.legal-reference h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--d4arf-red);
}

.legal-reference ul {
  margin: 0;
  padding-left: 0.25rem;
  list-style: none;
}

.legal-reference li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(185, 28, 28, 0.12);
  line-height: 1.65;
}

.legal-reference li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-reference li strong {
  color: var(--d4arf-black);
}

.legal-reference p {
  margin-top: 1.25rem;
  margin-bottom: 0;
  color: var(--d4arf-gray);
  line-height: 1.65;
}

/* ==========================================================================
   THE ISSUE PAGE — Agency table, red flags, symmetry, demands
   ========================================================================== */

/* --- Agency Table — Responsive table with red accent --- */
.issue-agency-table {
  margin: 1.5rem 0 2rem;
}

.issue-agency-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.issue-agency-table thead {
  background: var(--d4arf-red);
  color: #fff;
}

.issue-agency-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: none;
}

.issue-agency-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--d4arf-border);
  line-height: 1.5;
  vertical-align: top;
}

.issue-agency-table tbody tr:last-child td {
  border-bottom: 2px solid var(--d4arf-red);
}

.issue-agency-table td strong {
  color: var(--d4arf-black);
  font-size: 1rem;
}

/* Mobile: stack table into cards */
@media (max-width: 600px) {
  .issue-agency-table table,
  .issue-agency-table thead,
  .issue-agency-table tbody,
  .issue-agency-table th,
  .issue-agency-table td,
  .issue-agency-table tr {
    display: block;
  }

  .issue-agency-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .issue-agency-table tbody tr {
    background: var(--d4arf-gray-light);
    border-left: 4px solid var(--d4arf-red);
    border-radius: 0 8px 8px 0;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .issue-agency-table td {
    padding: 0.35rem 0;
    border-bottom: none;
    font-size: 0.95rem;
  }

  .issue-agency-table tbody tr:last-child td {
    border-bottom: none;
  }

  .issue-agency-table td:first-child {
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--d4arf-border);
  }

  .issue-agency-table td:nth-child(2)::before {
    content: 'Amount: ';
    font-weight: 600;
    color: var(--d4arf-gray);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .issue-agency-table td:nth-child(3)::before {
    content: 'Date: ';
    font-weight: 600;
    color: var(--d4arf-gray);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
}

/* --- Red Flags — Accented findings with separators --- */

/* Red accent bar on finding paragraphs (those starting with bold lead-in) */
.issue-red-flags > p:has(> strong:first-child) {
  border-left: 4px solid var(--d4arf-red);
  padding-left: 1.25rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}

/* Separator between red flag items */
.issue-red-flags > p:has(> strong:first-child) + p:has(> strong:first-child) {
  padding-top: 1.75rem;
  border-top: 1px solid var(--d4arf-border);
}

/* --- Symmetry Section — Visually distinct argument section --- */
.issue-symmetry {
  background: var(--d4arf-gray-light);
  margin: 2.5rem -1.5rem 2.5rem;
  padding: 2.5rem 1.5rem 2rem;
  border-radius: 8px;
}

.issue-symmetry h2 {
  margin-top: 0;
}

/* Questions summary box */
.issue-questions {
  background: var(--color-bg-surface);
  border: 1px solid var(--d4arf-border);
  border-left: 4px solid var(--d4arf-red);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.issue-questions ul {
  margin: 0;
  padding-left: 1.25rem;
}

.issue-questions li {
  padding: 0.4rem 0;
  line-height: 1.6;
  color: var(--d4arf-black);
}

.issue-questions li + li {
  border-top: 1px solid var(--d4arf-border);
}

/* --- Demands — Numbered action list with visual weight --- */
.issue-demands ol {
  list-style: none;
  padding: 0;
  counter-reset: demands;
}

.issue-demands ol li {
  counter-increment: demands;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  margin-bottom: 1rem;
  background: var(--d4arf-gray-light);
  border-radius: 8px;
  border: 1px solid var(--d4arf-border);
  line-height: 1.65;
}

.issue-demands ol li::before {
  content: counter(demands);
  position: absolute;
  left: 1.25rem;
  top: 1.15rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--d4arf-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50%;
  line-height: 1;
}

.issue-demands ol li strong {
  color: var(--d4arf-black);
}

@media (max-width: 600px) {
  .issue-symmetry {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    border-radius: 0;
  }

  .issue-demands ol li {
    padding-left: 3.5rem;
  }

  .issue-demands ol li::before {
    left: 0.85rem;
    top: 1.1rem;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   AUDIENCE LANDING PAGES + TAKE ACTION — Visual elevation
   ========================================================================== */

/* --- Landing Hero — Red accent stripe (mirrors homepage hero motif) --- */
.landing-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--d4arf-red);
}

/* --- Copy to Clipboard Button --- */
.copy-letter-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  background: transparent;
  color: var(--d4arf-red);
  border: 2px solid var(--d4arf-red);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  min-height: 36px;
  line-height: 1;
  z-index: 1;
}

.copy-letter-btn:hover {
  background: var(--d4arf-red);
  color: #fff;
}

.copy-letter-btn:focus-visible {
  outline: 3px solid var(--d4arf-red);
  outline-offset: 2px;
}

.copy-letter-btn--copied,
.copy-letter-btn--copied:hover {
  background: var(--d4arf-green);
  color: #fff;
  border-color: var(--d4arf-green);
}

/* --- Compact Letter Template (shorter letters on take-action page) --- */
.letter-template--compact {
  padding: 3rem 1.5rem 1.5rem;
}

.letter-template--compact p:first-of-type {
  margin-top: 0;
}

.letter-template--compact p:last-of-type {
  margin-bottom: 0;
}

/* --- Email Callout — Distinct shorter-version styling --- */
.email-callout {
  background: var(--color-bg-surface);
  border: 1px solid var(--d4arf-border);
  border-left: 4px solid var(--d4arf-green);
  font-size: 0.95rem;
}

/* --- Meeting Info Card — Accent-bordered details card --- */
.meeting-info {
  border-left: 4px solid var(--d4arf-red);
  background: var(--d4arf-gray-light);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem 1rem;
  margin: 1.5rem 0;
}

.meeting-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.meeting-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--d4arf-border);
  line-height: 1.6;
  font-size: 0.95rem;
}

.meeting-info li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Meeting info header (bold-only paragraph used as card title) */
.meeting-info > p:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--d4arf-border);
}

/* --- Meeting Grid — Side-by-side on desktop, stacked on mobile --- */
.meeting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.meeting-grid .meeting-info {
  margin: 0;
}

@media (max-width: 768px) {
  .meeting-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* --- Script Card — Rehearsal card for public comment scripts --- */
.script-card {
  background: var(--color-bg-surface);
  border: 2px solid var(--d4arf-border);
  border-left: 6px solid var(--d4arf-red);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
}

/* --- Action Jump Nav — Pill-style anchor links --- */
.action-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-2xl);
}

.action-nav a {
  display: block;
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-link);
  border: 1px solid var(--color-link);
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.action-nav a:hover,
.action-nav a:focus-visible {
  background: var(--d4arf-accent);
  color: #fff;
  outline: 2px solid var(--d4arf-accent);
  outline-offset: 2px;
}

/* --- Action Ladder (Take Action page) — Numbered action cards --- */
.page-content .container-prose {
  counter-reset: action-steps;
}

.action-step {
  counter-increment: action-steps;
  position: relative;
  background: var(--d4arf-gray-light);
  border: 1px solid var(--d4arf-border);
  border-radius: 8px;
  padding: 2rem 2rem 1.5rem 4.5rem;
  margin-bottom: 2rem;
}

.action-step h2 {
  margin-top: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.action-step h2::before {
  content: counter(action-steps);
  position: absolute;
  left: 1.25rem;
  top: 1.85rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--d4arf-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  line-height: 1;
}

/* Elevated backgrounds for nested components inside action cards */
.action-step .callout {
  background: var(--color-bg-surface);
}

.action-step .letter-template {
  background: var(--color-bg-surface);
}

.action-step .meeting-grid {
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .action-step {
    padding: 1.5rem 1.25rem 1.25rem 3.5rem;
  }

  .action-step h2::before {
    left: 0.75rem;
    top: 1.35rem;
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   LEGISLATORS, PRESS KIT, ABOUT — Page elevation styles
   ========================================================================== */

/* --- Press Quotes — Pull quote cards with extra spacing --- */
.press-quotes .pull-quote {
  background: var(--color-bg-surface);
  border: 1px solid var(--d4arf-border);
  border-left: 6px solid var(--d4arf-red);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  margin: 1.5rem 0;
}

.press-quotes .pull-quote-attribution {
  font-size: 0.85rem;
  color: var(--d4arf-gray);
  font-style: italic;
}

/* --- Press Resources — Compact reference card --- */
.press-resources {
  background: var(--d4arf-gray-light);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.press-resources h2 {
  margin-top: 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--d4arf-border);
  margin-bottom: 1rem;
}

.press-resources ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.press-resources li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--d4arf-border);
  line-height: 1.6;
  font-size: 0.95rem;
}

.press-resources li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* --- Approach Pillars — Gray accent bar on bold-lead paragraphs --- */
.approach-pillars > p:has(> strong:first-child) {
  border-left: 4px solid var(--d4arf-gray);
  padding-left: 1.25rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}

.approach-pillars > p:has(> strong:first-child) + p:has(> strong:first-child) {
  padding-top: 1.75rem;
  border-top: 1px solid var(--d4arf-border);
}

/* --- FAQ Section — Visually distinct Q&A pairs --- */
.faq-section .faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--d4arf-border);
}

.faq-section .faq-item:first-of-type {
  padding-top: 0;
}

.faq-section .faq-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-section .faq-item > p:first-child {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--d4arf-black);
  margin-bottom: 0.5rem;
}

.faq-section .faq-item > p:last-child {
  color: var(--d4arf-gray);
  margin-bottom: 0;
  line-height: 1.7;
}

/* --- Campaign Attribution — Subtle footer note --- */
.campaign-attribution {
  font-size: 0.85rem;
  color: var(--d4arf-gray);
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--d4arf-border);
}

/* ==========================================================================
   AUDIENCE SUB-NAV — Cross-links between audience pages
   ========================================================================== */
.audience-nav {
  background: var(--d4arf-gray-light);
  border-bottom: 1px solid var(--d4arf-border);
}

.audience-nav .container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.audience-nav-list {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.audience-nav-list a {
  display: block;
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--d4arf-gray);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.audience-nav-list a:hover {
  color: var(--d4arf-red);
}

.audience-nav-list a[aria-current="page"] {
  color: var(--d4arf-red);
  border-bottom-color: var(--d4arf-red);
}

@media (max-width: 600px) {
  .audience-nav-list {
    justify-content: flex-start;
  }
}

/* === Directional Page Flow === */
.page-flow {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--d4arf-border);
  text-align: right;
}

.page-flow .btn-text {
  font-size: 1.1rem;
}

/* === Source Citations === */
.source-citation {
  font-size: 0.85rem;
  color: var(--d4arf-gray);
  border-left: 3px solid var(--d4arf-border);
  padding-left: 0.75rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.source-citation a {
  color: var(--d4arf-gray);
  text-decoration: underline;
}

.source-citation a:hover {
  color: var(--d4arf-red);
}

/* --- Fact/Detail table mobile labels (legislators, press kit) --- */
/* Scoped to --fact-detail modifier to avoid blanking labels on the-issue.md */
@media (max-width: 600px) {
  .issue-agency-table--fact-detail td:nth-child(2)::before {
    content: '';
  }
}


/* ==========================================================================
   THEME TOGGLE BUTTON
   ========================================================================== */
.nav-end {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--d4arf-gray);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.theme-toggle-btn:hover {
  color: var(--d4arf-black);
  background: var(--d4arf-gray-light);
  border-color: var(--d4arf-border);
}

.theme-toggle-btn:focus-visible {
  outline: 3px solid var(--d4arf-red);
  outline-offset: 2px;
}

.theme-toggle-btn svg {
  transition: transform 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle-btn svg {
    transition: none;
  }
}

.theme-toggle-btn:hover svg {
  transform: rotate(15deg);
}

/* Theme toggle icon visibility — driven by data-theme, no JS needed */
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none; }

/* Mobile: keep toggle visible alongside hamburger */
@media (max-width: 768px) {
  .nav-end {
    gap: 0;
  }
}

/* ==========================================================================
   THEME TRANSITION — Applied briefly during toggle, NOT on page load
   ========================================================================== */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color 0.3s ease,
              color 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              fill 0.3s ease !important;
}

/* ==========================================================================
   DARK MODE — Design Tokens
   ========================================================================== */
[data-theme="dark"] {
  --d4arf-red: #EF4444;
  --d4arf-green: #22C55E;
  --d4arf-accent: #5ec4d4;
  --d4arf-accent-light: #1a2f35;
  --d4arf-black: #E5E7EB;
  --d4arf-white: #121218;

  --d4arf-red-light: rgba(239, 68, 68, 0.12);
  --d4arf-green-light: rgba(34, 197, 94, 0.12);
  --d4arf-gray: #9CA3AF;
  --d4arf-gray-light: #1E1E28;
  --d4arf-border: #2D2D3A;

  --color-bg-page: #121218;
  --color-bg-panel: #1E1E28;
  --color-bg-surface: #15151D;
  --color-link: #5ec4d4;
  --color-link-hover: #7dd4e0;
  --color-text-primary: #E5E7EB;
  --color-text-secondary: #9CA3AF;
  --color-border: #2D2D3A;

  --d4arf-link: var(--color-link);
  --d4arf-link-hover: var(--color-link-hover);

  /* Pico overrides for dark */
  --pico-color: var(--d4arf-black);
  --pico-background-color: var(--color-bg-page);
  --pico-primary: var(--d4arf-red);
  --pico-primary-hover: var(--d4arf-link-hover);
  --pico-muted-color: var(--d4arf-gray);
  --pico-muted-border-color: var(--d4arf-border);
  --pico-card-background-color: #1A1A24;
  --pico-card-border-color: var(--d4arf-border);
  --pico-card-sectioning-background-color: #1E1E28;
}

/* ==========================================================================
   DARK MODE — Component Overrides
   ========================================================================== */

/* --- Navigation --- */
[data-theme="dark"] .site-nav {
  background: #15151D;
  border-bottom-color: var(--d4arf-border);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a[aria-current="page"] {
  color: var(--d4arf-red);
  background-color: var(--d4arf-red-light);
}

@media (max-width: 768px) {
  [data-theme="dark"] .nav-links {
    background: #15151D;
    border-bottom-color: var(--d4arf-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

/* --- Skip Link --- */
/* Dark-mode --d4arf-red is #EF4444 which gives only ~3.7:1 against #fff.
   Pin to the light-mode red (#B91C1C → 5.7:1 ratio) for WCAG AA. */
[data-theme="dark"] .skip-link {
  background: #B91C1C;
}

[data-theme="dark"] .skip-link:focus {
  outline-color: var(--d4arf-red);
}

/* --- Focus States --- */
[data-theme="dark"] :focus-visible {
  outline-color: #F87171;
}

[data-theme="dark"] .footer-nav-col a:focus-visible,
[data-theme="dark"] .footer-contact-email a:focus-visible {
  outline-color: #fff;
}

/* --- Stats Bar --- */
[data-theme="dark"] .stats-bar {
  background-color: var(--color-bg-surface);
}



/* --- Pathway Cards --- */
[data-theme="dark"] .pathway-card {
  background: #1A1A24;
  border-color: var(--d4arf-border);
  color: var(--d4arf-black);
}

[data-theme="dark"] .pathway-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  color: var(--d4arf-black);
}

/* --- Letter Template --- */
[data-theme="dark"] .letter-template {
  background-color: #1A1A24;
  border-color: var(--d4arf-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .letter-template .letter-heading {
  background: var(--d4arf-gray-light);
  border-bottom-color: var(--d4arf-border);
}

/* --- Issue Questions --- */
[data-theme="dark"] .issue-questions {
  background: #1A1A24;
  border-color: var(--d4arf-border);
}

/* --- Script Card --- */
[data-theme="dark"] .script-card {
  background: #1A1A24;
  border-color: var(--d4arf-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* --- Email Callout --- */
[data-theme="dark"] .email-callout {
  background: #1A1A24;
  border-color: var(--d4arf-border);
}

/* --- Press Quotes --- */
[data-theme="dark"] .press-quotes .pull-quote {
  background: #1A1A24;
  border-color: var(--d4arf-border);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

/* --- Action Steps (nested white backgrounds) --- */
[data-theme="dark"] .action-step .callout {
  background: #1A1A24;
}

[data-theme="dark"] .action-step .letter-template {
  background: #1A1A24;
}

/* --- Footer: already dark, minor adjustments for dark-on-dark --- */
[data-theme="dark"] .site-footer {
  background-color: #0D0D12;
}

[data-theme="dark"] .footer-bottom {
  border-top-color: #1E1E28;
}

/* --- Blockquote --- */
[data-theme="dark"] blockquote {
  background-color: rgba(185, 28, 28, 0.1);
  border-left-color: var(--d4arf-red);
  color: var(--d4arf-gray);
}

/* --- Callout --- */
[data-theme="dark"] .callout {
  background-color: rgba(22, 101, 52, 0.1);
}

/* --- Key Finding --- */
[data-theme="dark"] .key-finding {
  background: var(--d4arf-accent-light);
  border-left-color: var(--d4arf-accent);
}

/* --- Tables --- */
[data-theme="dark"] .issue-agency-table td {
  border-bottom-color: var(--d4arf-border);
}

[data-theme="dark"] .issue-agency-table tbody tr:last-child td {
  border-bottom-color: var(--d4arf-red);
}

@media (max-width: 600px) {
  [data-theme="dark"] .issue-agency-table tbody tr {
    background: var(--d4arf-gray-light);
  }

  [data-theme="dark"] .issue-agency-table td:first-child {
    border-bottom-color: var(--d4arf-border);
  }
}

/* Pin table header to light-mode red in dark mode for WCAG AA contrast
   (#EF4444 bg + #fff text is only ~3.27:1; #991B1B + #fff is 5.7:1) */
[data-theme="dark"] .issue-agency-table thead {
  background: #991B1B;
}

/* --- Legal Reference --- */
[data-theme="dark"] .legal-reference {
  background: var(--d4arf-red-light);
}

[data-theme="dark"] .legal-reference li {
  border-bottom-color: rgba(239, 68, 68, 0.15);
}

/* --- Timeline --- */
[data-theme="dark"] .evidence-timeline::before {
  background: rgba(239, 68, 68, 0.25);
}

[data-theme="dark"] .timeline-marker {
  border-color: var(--d4arf-white);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

[data-theme="dark"] .timeline-event--escalation .timeline-marker {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .timeline-event--escalation .timeline-content {
  background: var(--d4arf-red-light);
  color: var(--d4arf-black);
}

/* --- Hero and Landing Hero: already dark or using variables, verify --- */
/* The hero uses --d4arf-black as bg, which is now light text in dark mode.
   The hero is always visually dark, so pin it. */
[data-theme="dark"] .hero {
  background-color: #0D0D12;
}

[data-theme="dark"] .landing-hero {
  background-color: var(--d4arf-gray-light);
}

/* --- Graph hint (used on graph page but has generic background) --- */
[data-theme="dark"] .graph-hint p {
  background: rgba(18, 18, 24, 0.85);
  border-color: var(--d4arf-border);
}

/* --- Audience Sub-Nav (dark mode) --- */
[data-theme="dark"] .audience-nav {
  background: #15151D;
  border-bottom-color: var(--d4arf-border);
}

[data-theme="dark"] .audience-nav-list a {
  color: var(--d4arf-gray);
}

[data-theme="dark"] .audience-nav-list a:hover {
  color: var(--d4arf-red);
}

[data-theme="dark"] .audience-nav-list a[aria-current="page"] {
  color: var(--d4arf-red);
  border-bottom-color: var(--d4arf-red);
}

/* --- 404 Page (dark mode) --- */
[data-theme="dark"] .not-found-message {
  color: var(--d4arf-gray);
}

/* --- Document Items (dark mode) --- */
[data-theme="dark"] .document-item {
  background: var(--d4arf-gray-light);
  border-left-color: var(--d4arf-red);
}

[data-theme="dark"] .document-item:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .doc-source {
  background: var(--d4arf-border);
  color: var(--d4arf-gray);
}

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

.not-found {
  padding: 4rem 1.5rem;
  text-align: center;
}

.not-found-message {
  color: var(--d4arf-gray);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.not-found-links {
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   EVIDENCE TIMELINE — CSS-only vertical timeline with year headers
   ========================================================================== */

/* Wrapper draws one continuous vertical line across all year groups */
.timeline-wrapper {
  position: relative;
  margin: 2rem 0;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--d4arf-border);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

/* Standalone timeline (no wrapper) still draws its own line */
.timeline:not(.timeline-wrapper .timeline)::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--d4arf-border);
}

.timeline .timeline-event {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.timeline .timeline-event::before {
  content: '';
  position: absolute;
  left: 0.55rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--d4arf-red);
  border: 3px solid var(--d4arf-white);
  z-index: 1;
}

[data-theme="dark"] .timeline .timeline-event::before {
  border-color: #121218;
}

.timeline .timeline-event.timeline-event--highlight::before {
  width: 18px;
  height: 18px;
  left: 0.4rem;
  top: 0.25rem;
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.2);
}

[data-theme="dark"] .timeline .timeline-event.timeline-event--highlight::before {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25);
}

.timeline .timeline-event time {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--d4arf-red);
  margin-bottom: 0.25rem;
}

.timeline .timeline-event h3,
.timeline .timeline-event > strong {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  display: block;
}

.timeline .timeline-event p {
  font-size: 0.95rem;
  color: var(--d4arf-gray);
  margin: 0;
}

.timeline-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--d4arf-black);
  padding-left: 3rem;
  margin: 2.5rem 0 1rem;
  position: sticky;
  top: 4rem;
  z-index: 2;
}

/* First year header inside wrapper needs less top margin */
.timeline-wrapper > .timeline-year:first-child {
  margin-top: 0;
}

@media (max-width: 600px) {
  .timeline-wrapper::before { left: 0.75rem; }
  .timeline:not(.timeline-wrapper .timeline)::before { left: 0.75rem; }
  .timeline .timeline-event { padding-left: 2.5rem; }
  .timeline .timeline-event::before { left: 0.35rem; }
  .timeline-year { padding-left: 2.5rem; }
}

/* ==========================================================================
   ACTION CARDS — Effort-tier grouping for take-action page
   ========================================================================== */
.action-tier {
  margin: 2.5rem 0;
}

.action-tier-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.action-tier-label--quick {
  background: var(--d4arf-green-light);
  color: var(--d4arf-green);
}

.action-tier-label--medium {
  background: #FEF3C7;
  color: #92400E;
}

.action-tier-label--ongoing {
  background: var(--d4arf-red-light);
  color: var(--d4arf-red);
}

[data-theme="dark"] .action-tier-label--quick {
  background: rgba(22, 101, 52, 0.15);
}

[data-theme="dark"] .action-tier-label--medium {
  background: rgba(146, 64, 14, 0.15);
}

[data-theme="dark"] .action-tier-label--ongoing {
  background: rgba(185, 28, 28, 0.1);
}

/* ==========================================================================
   CSS BAR CHART — Agency exposure visualization
   ========================================================================== */
.bar-chart {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  max-width: 36rem;
}

.bar-chart li {
  margin-bottom: 1.25rem;
}

.bar-chart-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.bar-chart-bar {
  height: 2rem;
  background: var(--d4arf-red);
  border-radius: 4px;
  position: relative;
}

.bar-chart-bar--secondary {
  background: var(--d4arf-green);
}

.bar-chart-bar--tertiary {
  background: var(--d4arf-gray);
}

/* ==========================================================================
   STICKY MOBILE CTA — Fixed bottom bar on small screens
   ========================================================================== */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--d4arf-white);
    border-top: 1px solid var(--d4arf-border);
    padding: 0.75rem 1rem;
    z-index: 100;
    text-align: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  }

  [data-theme="dark"] .mobile-cta-bar {
    background: #15151D;
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .mobile-cta-bar .btn-primary {
    display: block;
    width: 100%;
    padding: 0.85rem;
    font-size: 1.05rem;
  }

  /* Add padding to body so footer content isn't hidden behind the sticky bar */
  body {
    padding-bottom: 4.5rem;
  }
}

/* ==========================================================================
   SECTION LABELS — ProPublica/Texas Tribune pattern
   ========================================================================== */
.section-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--d4arf-accent);
  margin-bottom: 0.5rem;
  display: block;
}

/* --- Section Break Rule (short, colored bar) --- */
hr.section-break {
  border: none;
  border-top: 3px solid var(--d4arf-accent);
  max-width: 4rem;
  margin: 3rem 0;
}

/* ==========================================================================
   EVIDENCE CARD — Sourced finding with citation footer
   ========================================================================== */
.evidence-card {
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--d4arf-accent);
  padding: 1.5rem 2rem;
  background: var(--color-bg-surface);
  margin: 2rem 0;
  border-radius: 0 0 4px 4px;
}

.evidence-card h3, .evidence-card h4 {
  margin-top: 0;
  font-size: var(--text-lg);
}

.evidence-card .evidence-source {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
  margin-top: 1rem;
}

[data-theme="dark"] .evidence-card {
  background: var(--color-bg-surface);
  border-color: var(--color-border);
  border-top-color: var(--d4arf-accent);
}

/* ==========================================================================
   CALLOUT BOX — Hard-edge, The Markup pattern
   ========================================================================== */
.callout-box {
  border: 2px solid var(--d4arf-black);
  box-shadow: 4px 4px 0 var(--d4arf-black);
  padding: 1.5rem 2rem;
  background: var(--color-bg-surface);
  margin: 2rem 0;
}

.callout-box h3, .callout-box h4 {
  margin-top: 0;
}

[data-theme="dark"] .callout-box {
  border-color: var(--color-border);
  box-shadow: 4px 4px 0 rgba(255,255,255,0.1);
  background: var(--color-bg-surface);
}

/* ==========================================================================
   ROLE CTA CARDS — Audience-segmented actions
   ========================================================================== */
.role-ctas {
  padding: 4rem 0;
  background: var(--color-bg-panel);
}

.role-ctas-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.role-ctas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

.role-card {
  display: block;
  padding: 1.5rem;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--d4arf-accent);
  border-radius: 0 4px 4px 0;
  text-decoration: none;
  color: var(--color-text-primary);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.role-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  color: var(--color-text-primary);
}

.role-card-label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--d4arf-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.role-card p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  max-width: none;
}

.role-card-link {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--d4arf-accent);
  font-size: var(--text-sm);
}

[data-theme="dark"] .role-card {
  background: var(--color-bg-surface);
  border-color: var(--color-border);
  border-left-color: var(--d4arf-accent);
}

[data-theme="dark"] .role-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  color: var(--color-text-primary);
}

.role-card:focus-visible {
  outline: 2px solid var(--d4arf-accent);
  outline-offset: -2px;
}

/* ==========================================================================
   LAYOUT — Section spacing and alternating backgrounds
   ========================================================================== */

/* Increased section spacing — scoped to page content areas */
.page-content section + section,
.landing-content section + section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Alternating section backgrounds */
.section-alt {
  background: var(--color-bg-panel);
  padding: 4rem 2rem;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

/* Edge-to-edge section band */
.section-band {
  background: var(--color-bg-panel);
  padding: 4rem 0;
}

.section-band .container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   PRINT STYLES — Clean output for letter templates, evidence summaries
   ========================================================================== */
@media print {
  /* Force light-mode design tokens for print */
  :root {
    --d4arf-red: #B91C1C;
    --d4arf-green: #166534;
    --d4arf-black: #1A1A1A;
    --d4arf-white: #FAFAFA;
    --d4arf-red-light: #FEE2E2;
    --d4arf-green-light: #DCFCE7;
    --d4arf-gray: #4B5563;
    --d4arf-gray-light: #F3F4F6;
    --d4arf-border: #E5E7EB;
    --d4arf-link: #B91C1C;
    --d4arf-link-hover: #991B1B;
  }

  /* Hide non-content elements */
  .site-nav,
  .site-footer,
  .social-share,
  .cta-box,
  .copy-letter-btn,
  .skip-link,
  .btn,
  .pathway-grid,
  .audience-nav,
  .theme-toggle-btn,
  .page-flow,
  .mobile-cta-bar,
  .role-ctas {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }

  /* Base print typography */
  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.5;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #000;
    break-after: avoid;
    page-break-after: avoid; /* legacy fallback */
  }

  /* Remove background colors from callouts — use borders only */
  .callout,
  .pull-quote,
  .meeting-info,
  .letter-template,
  .action-step {
    background: none !important;
    box-shadow: none !important;
    border: 1px solid #ccc;
    border-left: 4px solid #666;
  }

  /* Letter template: clean print with visible border */
  .letter-template {
    border: 2px solid #333;
    padding: 1.5rem;
  }

  /* Show URLs after external links */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
    word-break: break-all;
  }

  /* Don't show URLs for internal links */
  a[href^="/"]::after {
    content: none;
  }

  /* Full-width containers */
  .container,
  .container-prose {
    max-width: 100%;
    padding: 0;
  }

  /* Prevent page breaks inside key elements */
  .letter-template,
  .pull-quote,
  .meeting-info,
  .action-step {
    break-inside: avoid;
    page-break-inside: avoid; /* legacy fallback */
  }

  /* Keep tables together */
  table, thead, tbody, tr {
    break-inside: avoid;
    page-break-inside: avoid; /* legacy fallback */
  }

  /* Remove hero dark background */
  .hero {
    background: none;
    color: #000;
    padding: 1rem 0;
  }

  .hero h1,
  .hero-eyebrow,
  .hero-sub {
    color: #000;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  /* Footer attribution */
  body::after {
    content: "divestforarfuture.github.io";
    display: block;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8em;
    color: #999;
  }
}

/* ==========================================================================
   DOCUMENT ARCHIVE — Styled document listing cards
   ========================================================================== */
.document-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.document-item {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  background: var(--d4arf-gray-light);
  border-left: 4px solid var(--d4arf-red);
  border-radius: 0 8px 8px 0;
}

@media (prefers-reduced-motion: no-preference) {
  .document-item {
    transition: box-shadow 0.2s ease;
  }
}

.document-item:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.document-item a.doc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.document-item a.doc-title:hover {
  text-decoration: underline;
}

.doc-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 0.2rem;
  color: var(--d4arf-red);
}

/* ==========================================================================
   DOCUMENT LIST — Styling for document description/source spans
   ========================================================================== */
.doc-description {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--d4arf-gray);
  line-height: 1.5;
  margin-top: 0.25rem;
}

.doc-source {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--d4arf-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--d4arf-gray-light);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-top: 0.35rem;
}

/* === Nav CTA Button === */
.nav-cta {
  margin-left: auto;
  padding-left: 1rem;
  border-left: 1px solid var(--color-border);
}

.nav-cta .btn-nav-cta {
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.nav-cta .btn-nav-cta:hover,
.nav-cta .btn-nav-cta:focus-visible {
  background: var(--color-cta-hover);
  color: #fff;
  text-decoration: none;
}

/* On mobile, make CTA full-width inside the dropdown */
@media (max-width: 768px) {
  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    padding-left: 0;
    border-left: none;
  }

  .btn-nav-cta {
    display: block;
    text-align: center;
    padding: 0.75rem 1.1rem;
  }
}
