/* ============================================================
   MMTLP ACTION HUB — Master Stylesheet
   A legal advocacy platform demanding accountability.
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary:        #0B1120;
  --bg-secondary:      #151D2E;
  --bg-tertiary:       #1A2332;
  --bg-elevated:       #1E293B;
  --bg-surface:        #0F172A;

  /* Borders */
  --border-default:    #1E293B;
  --border-subtle:     #1a2436;
  --border-strong:     #334155;
  --border-accent:     #D4A843;

  /* Accent: Gold — justice, authority */
  --gold:              #D4A843;
  --gold-light:        #E4C36A;
  --gold-dark:         #B8922E;
  --gold-muted:        rgba(212, 168, 67, 0.15);
  --gold-glow:         rgba(212, 168, 67, 0.25);

  /* Accent: Blue — interactive */
  --blue:              #3B82F6;
  --blue-light:        #60A5FA;
  --blue-dark:         #2563EB;
  --blue-muted:        rgba(59, 130, 246, 0.15);

  /* Semantic */
  --danger:            #EF4444;
  --danger-muted:      rgba(239, 68, 68, 0.15);
  --success:           #10B981;
  --success-muted:     rgba(16, 185, 129, 0.15);
  --warning:           #F59E0B;
  --warning-muted:     rgba(245, 158, 11, 0.15);
  --neon-orange:       #FF6A00;
  --neon-orange-muted: rgba(255, 106, 0, 0.16);
  --neon-red:          #FF1744;
  --neon-red-muted:    rgba(255, 23, 68, 0.16);

  /* Text */
  --text-primary:      #F1F5F9;
  --text-secondary:    #CBD5E1;
  --text-muted:        #94A3B8;
  --text-dark:         #64748B;
  --text-inverse:      #0B1120;

  /* Typography */
  --font-sans:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:         'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Type Scale (Major Third — 1.25) */
  --text-xs:           0.75rem;    /* 12px */
  --text-sm:           0.875rem;   /* 14px */
  --text-base:         1rem;       /* 16px */
  --text-lg:           1.125rem;   /* 18px */
  --text-xl:           1.25rem;    /* 20px */
  --text-2xl:          1.563rem;   /* 25px */
  --text-3xl:          1.953rem;   /* 31px */
  --text-4xl:          2.441rem;   /* 39px */
  --text-5xl:          3.052rem;   /* 49px */
  --text-6xl:          3.815rem;   /* 61px */

  --leading-tight:     1.2;
  --leading-normal:    1.5;
  --leading-relaxed:   1.75;

  --tracking-tight:    -0.025em;
  --tracking-normal:   0;
  --tracking-wide:     0.025em;
  --tracking-widest:   0.1em;

  /* Spacing */
  --space-1:           0.25rem;
  --space-2:           0.5rem;
  --space-3:           0.75rem;
  --space-4:           1rem;
  --space-5:           1.25rem;
  --space-6:           1.5rem;
  --space-8:           2rem;
  --space-10:          2.5rem;
  --space-12:          3rem;
  --space-16:          4rem;
  --space-20:          5rem;
  --space-24:          6rem;

  /* Radii */
  --radius-sm:         0.25rem;
  --radius-md:         0.5rem;
  --radius-lg:         0.75rem;
  --radius-xl:         1rem;
  --radius-2xl:        1.5rem;
  --radius-full:       9999px;

  /* Shadows */
  --shadow-sm:         0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:         0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg:         0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl:         0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-2xl:        0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-gold:       0 4px 14px rgba(212, 168, 67, 0.25);
  --shadow-blue:       0 4px 14px rgba(59, 130, 246, 0.25);
  --shadow-inner:      inset 0 2px 4px rgba(0, 0, 0, 0.3);

  /* Glass */
  --glass-bg:          rgba(11, 17, 32, 0.75);
  --glass-border:      rgba(255, 255, 255, 0.08);
  --glass-blur:        16px;

  /* Transitions */
  --ease-out:          cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:       cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast:     150ms;
  --duration-normal:   250ms;
  --duration-slow:     400ms;
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;

  /* Layout */
  --nav-height:        4rem;
  --container-max:     1100px;
  --sidebar-width:     280px;
}


/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-height) + var(--space-4));
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--gold-light);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

::selection {
  background: var(--gold);
  color: var(--text-inverse);
}


/* ── Custom Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dark);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--bg-primary);
}


/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }
.text-2xl   { font-size: var(--text-2xl); }
.text-3xl   { font-size: var(--text-3xl); }
.text-4xl   { font-size: var(--text-4xl); }
.text-5xl   { font-size: var(--text-5xl); }
.text-6xl   { font-size: var(--text-6xl); }

.font-light    { font-weight: 300; }
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-black    { font-weight: 900; }

.text-gold     { color: var(--gold); }
.text-blue     { color: var(--blue); }
.text-muted    { color: var(--text-muted); }
.text-dark     { color: var(--text-dark); }
.text-danger   { color: var(--danger); }
.text-success  { color: var(--success); }
.text-warning  { color: var(--warning); }

.uppercase {
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
}

.mono { font-family: var(--font-mono); }


/* ── Layout & Container ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto !important;
  margin-right: auto !important;
  padding-inline: var(--space-6);
  box-sizing: border-box;
}

/* Prevent grid children from overflowing their column */
.grid > * {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section {
  padding-block: var(--space-16);
  text-align: center;
}

.section + .section {
  border-top: 1px solid var(--border-default);
}

.section-header {
  margin-bottom: var(--space-10);
  text-align: center;
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

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


/* ── Navigation (clean rewrite) ──────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
}

.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1rem;
}

/* ── Logo (left) ── */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__logo:hover { color: var(--text-primary); }
.nav__logo-img { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; }
.nav__logo-text { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); letter-spacing: 0.04em; }
.nav__logo-accent { color: var(--gold); font-weight: 800; }

/* ── Links (center) ── */
.nav__links {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__link {
  padding: 0.4rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  transition: color 0.15s;
}
.nav__link:hover { color: var(--text-primary); }
.nav__link.active { color: var(--gold); }

/* ── Right side wrapper ── */
.nav__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}
.auth-area { display: none; }
.auth-login-btn { font-size: 0.75rem; white-space: nowrap; text-decoration: none; }
.nav__factsheet {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--gold);
  background: rgba(212,168,67,0.08);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.nav__factsheet:hover {
  color: var(--bg-primary);
  background: var(--gold);
}
.nav__drawer-factsheet {
  color: var(--gold) !important;
  font-weight: 800 !important;
}
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  color: var(--text-muted); cursor: pointer; background: none; border: none;
}
.theme-toggle:hover { color: var(--gold); }

.nav__mobile-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 6px;
  color: var(--gold); border: 1.5px solid var(--border-default);
  background: rgba(212,168,67,0.06); cursor: pointer;
}
.nav__mobile-toggle svg { width: 22px; height: 22px; }
.nav__mobile-toggle:hover { background: rgba(212,168,67,0.12); border-color: var(--gold); }

@media (max-width: 480px) {
  .nav__inner {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .nav__donate {
    display: none !important;
  }

  .nav__factsheet {
    display: none !important;
  }
}

/* ── Responsive: progressively show links, hide hamburger ── */

/* 768px+: show 5 core links + hamburger */
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__links li[data-priority="2"],
  .nav__links li[data-priority="3"] { display: none; }
  .auth-area { display: flex; align-items: center; }
}

/* 1100px+: show priority 2 links too */
@media (min-width: 1100px) {
  .nav__links li[data-priority="2"] { display: block; }
}

@media (max-width: 1180px) {
  .nav__factsheet span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .nav__factsheet {
    width: 2rem;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }
}

/* 1440px+: show everything, hide hamburger */
@media (min-width: 1440px) {
  .nav__links li[data-priority="3"] { display: block; }
  .nav__mobile-toggle { display: none; }
}

/* Mobile nav drawer */
.nav__drawer {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg-primary);
  border-bottom: 2px solid var(--gold);
  padding: var(--space-4) var(--space-6);
  margin: 0;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.25s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.nav__drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Only hide drawer when ALL links are visible (hamburger hidden) */
@media (min-width: 1440px) {
  .nav__drawer {
    display: none !important;
  }
}

.nav__drawer li {
  list-style: none;
}

.nav__drawer .nav__link {
  display: block;
  padding: var(--space-3) var(--space-3);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.nav__drawer .nav__link:hover,
.nav__drawer .nav__link.active {
  color: var(--gold);
  padding-left: var(--space-5);
}

/* Spacer to push content below fixed nav */
.nav-spacer {
  height: var(--nav-height);
}


/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-20) var(--space-4) var(--space-16);
  overflow: hidden;
  border-bottom: 2px solid var(--border-default);
  background:
    linear-gradient(180deg, rgba(11,17,32,0.72), rgba(11,17,32,0.94)),
    url('../assets/mmtlp-logo.png') left 8vw center / min(42vw, 520px) auto no-repeat,
    var(--bg-primary);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 20%, rgba(212, 168, 67, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, rgba(11, 17, 32, 0.15) 0%, rgba(21, 29, 46, 0.72) 100%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: var(--gold);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  margin-bottom: var(--space-8);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
  padding-bottom: var(--space-2);
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: var(--radius-full);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero__title {
  font-size: var(--text-3xl);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

.hero__title-accent {
  display: block;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  font-size: 1.3em;
  margin-top: var(--space-2);
}

.hero__description {
  font-size: var(--text-base);
  color: var(--text-dark);
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  line-height: var(--leading-relaxed);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .hero__title {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: var(--text-5xl);
  }

  .hero__description {
    font-size: var(--text-lg);
  }
}


/* ── Counter / Clock Display ──────────────────────────────── */
.counter {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.counter__segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.counter__value {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--gold);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-5);
  min-width: 5rem;
  text-align: center;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform var(--duration-fast) var(--ease-out);
}

.counter__value.tick {
  transform: scale(1.05);
}

.counter__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-dark);
}

.counter__separator {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-dark);
  align-self: flex-start;
  padding-top: var(--space-3);
  animation: blink 1s step-end infinite;
}

@media (min-width: 640px) {
  .counter__value {
    font-size: var(--text-5xl);
    padding: var(--space-4) var(--space-6);
    min-width: 6rem;
  }
}

@media (min-width: 1024px) {
  .counter {
    gap: var(--space-6);
  }

  .counter__value {
    font-size: var(--text-6xl);
    min-width: 7.5rem;
  }
}


/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

/* Primary — Gold */
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--text-inverse);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 6px 20px rgba(212, 168, 67, 0.35);
  color: var(--text-inverse);
  transform: translateY(-1px);
}

/* Secondary — Blue */
.btn-secondary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn-secondary:hover {
  background: var(--blue-light);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* Danger */
.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #DC2626;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

/* Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

/* Icon button */
.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-icon.btn-sm {
  width: 2rem;
  height: 2rem;
}

/* Full width */
.btn-block {
  width: 100%;
}

/* Disabled */
.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button group */
.btn-group {
  display: inline-flex;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.btn-group .btn:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.btn-group .btn + .btn {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}


/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.card-interactive:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--gold-muted);
  cursor: pointer;
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.card__title {
  font-size: var(--text-lg);
  font-weight: 700;
}

.card__subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.card__body {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-default);
}

/* Card accent variants */
.card--gold {
  border-top: 3px solid var(--gold);
}

.card--blue {
  border-top: 3px solid var(--blue);
}

.card--danger {
  border-top: 3px solid var(--danger);
}

.card--success {
  border-top: 3px solid var(--success);
}

/* Stat card */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6rem;
  height: 6rem;
  border-radius: 0 0 0 100%;
  opacity: 0.06;
  pointer-events: none;
}

.stat-card--gold::before  { background: var(--gold); }
.stat-card--blue::before  { background: var(--blue); }
.stat-card--danger::before { background: var(--danger); }
.stat-card--success::before { background: var(--success); }

.stat-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
}

.stat-card__icon--gold    { background: var(--gold-muted); color: var(--gold); }
.stat-card__icon--blue    { background: var(--blue-muted); color: var(--blue); }
.stat-card__icon--danger  { background: var(--danger-muted); color: var(--danger); }
.stat-card__icon--success { background: var(--success-muted); color: var(--success); }

.stat-card__value {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-1);
}

.stat-card__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.stat-card__trend {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: var(--space-3);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
}

.stat-card__trend--up {
  color: var(--success);
  background: var(--success-muted);
}

.stat-card__trend--down {
  color: var(--danger);
  background: var(--danger-muted);
}


/* ── Badges / Pills ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.125rem var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  line-height: 1.6;
}

.badge--default {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.badge--gold {
  background: var(--gold-muted);
  color: var(--gold-light);
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.badge--blue {
  background: var(--blue-muted);
  color: var(--blue-light);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge--danger {
  background: var(--danger-muted);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge--success {
  background: var(--success-muted);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge--warning {
  background: var(--warning-muted);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Larger category pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.pill:hover {
  border-color: var(--border-strong);
  background: var(--bg-tertiary);
}

.pill.active {
  border-color: var(--gold);
  background: var(--gold-muted);
  color: var(--gold-light);
}


/* ── Status Indicators ────────────────────────────────────── */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.status--active .status__dot {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

.status--active {
  color: var(--success);
}

.status--pending .status__dot {
  background: var(--warning);
  box-shadow: 0 0 6px var(--warning);
}

.status--pending {
  color: var(--warning);
}

.status--closed .status__dot {
  background: var(--text-dark);
}

.status--closed {
  color: var(--text-dark);
}

.status--urgent .status__dot {
  background: var(--danger);
  box-shadow: 0 0 6px var(--danger);
  animation: pulse-dot 1s ease-in-out infinite;
}

.status--urgent {
  color: var(--danger);
}


/* ── Data Tables ──────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  background: var(--bg-secondary);
}

.table {
  width: 100%;
  font-size: var(--text-sm);
}

.table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-dark);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
  user-select: none;
}

.table th:first-child {
  border-radius: var(--radius-xl) 0 0 0;
}

.table th:last-child {
  border-radius: 0 var(--radius-xl) 0 0;
}

.table th.sortable {
  cursor: pointer;
  transition: color var(--duration-fast);
}

.table th.sortable:hover {
  color: var(--text-primary);
}

.table th.sortable::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: var(--space-2);
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--text-dark);
  opacity: 0.4;
}

.table th.sort-asc::after {
  border-top: none;
  border-bottom: 4px solid var(--gold);
  opacity: 1;
}

.table th.sort-desc::after {
  border-top: 4px solid var(--gold);
  opacity: 1;
}

.table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

.table tbody tr {
  transition: background var(--duration-fast);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}

.table tbody tr:nth-child(even):hover {
  background: rgba(255, 255, 255, 0.03);
}

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

.table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 var(--radius-xl);
}

.table tbody tr:last-child td:last-child {
  border-radius: 0 0 var(--radius-xl) 0;
}

/* Table toolbar */
.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-tertiary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.table-toolbar__title {
  font-weight: 700;
  font-size: var(--text-base);
}

.table-toolbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Table pagination */
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border-default);
  background: var(--bg-tertiary);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.table-pagination__pages {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.table-pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--duration-fast);
}

.table-pagination__page:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.table-pagination__page.active {
  background: var(--gold-muted);
  color: var(--gold);
  font-weight: 700;
}


/* ── Forms & Inputs ───────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.form-label .required {
  color: var(--danger);
  margin-left: var(--space-1);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dark);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--border-strong);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-muted);
  outline: none;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

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

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-dark);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--danger);
}

.form-input.error,
.form-select.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-muted);
}

/* Search bar */
.search-bar {
  position: relative;
}

.search-bar__icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dark);
  pointer-events: none;
}

.search-bar__input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) var(--ease-out);
}

.search-bar__input:hover {
  border-color: var(--border-strong);
}

.search-bar__input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-muted);
}

.search-bar__input::placeholder {
  color: var(--text-dark);
}

.search-bar__clear {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-dark);
  font-size: var(--text-xs);
  transition: all var(--duration-fast);
}

.search-bar__clear:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
}

.filter-bar__group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.filter-bar__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-dark);
  white-space: nowrap;
}

.filter-bar__divider {
  width: 1px;
  height: 1.5rem;
  background: var(--border-default);
}

/* Checkbox / Radio custom */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid var(--border-strong);
  background: var(--bg-primary);
  cursor: pointer;
  transition: all var(--duration-fast);
  flex-shrink: 0;
}

.form-check input[type="checkbox"] {
  border-radius: var(--radius-sm);
}

.form-check input[type="radio"] {
  border-radius: var(--radius-full);
}

.form-check input[type="checkbox"]:checked,
.form-check input[type="radio"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.form-check input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'%3E%3Cpath d='M2 5L4 7L8 3' stroke='%230B1120' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.form-check input[type="radio"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' viewBox='0 0 6 6'%3E%3Ccircle cx='3' cy='3' r='3' fill='%230B1120'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.form-check__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}


/* ── Tabs ─────────────────────────────────────────────────── */
.tabs {
  border-bottom: 1px solid var(--border-default);
}

.tabs__list {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tabs__tab {
  position: relative;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}

.tabs__tab:hover {
  color: var(--text-primary);
}

.tabs__tab.active {
  color: var(--gold);
  font-weight: 600;
}

.tabs__tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: var(--radius-full) var(--radius-full) 0 0;
}

.tabs__tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 var(--space-1);
  margin-left: var(--space-2);
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dark);
}

.tabs__tab.active .tabs__tab-count {
  background: var(--gold-muted);
  color: var(--gold);
}

.tabs__panel {
  padding-top: var(--space-6);
}

.foia-tabs .tabs__tab {
  font-size: var(--text-base);
  font-weight: 800;
}

/* Boxed tabs variant */
.tabs--boxed {
  border-bottom: none;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: var(--space-1);
  display: inline-flex;
}

.tabs--boxed .tabs__tab {
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
}

.tabs--boxed .tabs__tab.active {
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.tabs--boxed .tabs__tab.active::after {
  display: none;
}


/* ── Timeline ─────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.9375rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--gold),
    var(--border-default) 10%,
    var(--border-default) 90%,
    transparent
  );
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-8);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--space-8) + 0.5rem);
  top: 0.125rem;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 2px solid var(--border-strong);
  z-index: 1;
  transition: all var(--duration-normal);
}

.timeline__item:hover .timeline__dot {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}

.timeline__item--highlight .timeline__dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}

.timeline__item--danger .timeline__dot {
  background: var(--danger);
  border-color: var(--danger);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.timeline__item--success .timeline__dot {
  background: var(--success);
  border-color: var(--success);
}

.timeline__date {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}

.timeline__content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--duration-normal);
  min-width: 0;
  overflow-wrap: anywhere;
}

.timeline__item:hover .timeline__content {
  border-color: var(--border-strong);
}

.timeline__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.timeline__description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.timeline__date,
.timeline .btn {
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* ── Modal ────────────────────────────────────────────────── */
body.modal-open {
  overflow: hidden !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.open {
  display: flex !important;
}

.modal {
  width: 100%;
  max-width: 40rem;
  margin: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  overflow-y: auto;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-default);
}

.modal__title {
  font-size: var(--text-xl);
  font-weight: 700;
}

.modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-size: var(--text-lg);
  transition: all var(--duration-fast);
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.modal__body {
  padding: var(--space-6);
  overflow-y: auto;
  flex: 1;
}

.modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-default);
  background: var(--bg-tertiary);
}

/* Modal sizes */
.modal--sm {
  max-width: 28rem;
}

.modal--lg {
  max-width: 56rem;
}

.modal--full {
  max-width: calc(100vw - var(--space-8));
  max-height: calc(100vh - var(--space-8));
}


/* ── Resource / Link Cards ────────────────────────────────── */
.resource-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.resource-card__thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}

.resource-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.resource-card:hover .resource-card__thumbnail img {
  transform: scale(1.05);
}

.resource-card__thumbnail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.resource-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
}

.resource-card__category {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.resource-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-default);
  font-size: var(--text-xs);
  color: var(--text-dark);
}


/* ── Memoriam Section ─────────────────────────────────────── */
.memoriam {
  position: relative;
  background: linear-gradient(
    to bottom,
    var(--bg-primary),
    #0D0F18,
    var(--bg-primary)
  );
  text-align: center;
  overflow: hidden;
}

.memoriam::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 30% at 50% 0%, rgba(212, 168, 67, 0.04), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(212, 168, 67, 0.04), transparent);
  pointer-events: none;
}

.memoriam__title {
  font-size: var(--text-3xl);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.memoriam__divider {
  width: 4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: var(--space-6) auto;
}

.memoriam__text {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 48ch;
  margin-inline: auto;
  line-height: var(--leading-relaxed);
  font-style: italic;
}

.memoriam__names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.memoriam__name {
  padding: var(--space-4) var(--space-6);
  background: rgba(212, 168, 67, 0.04);
  border: 1px solid rgba(212, 168, 67, 0.1);
  border-radius: var(--radius-lg);
  transition: all var(--duration-slow);
}

.memoriam__name:hover {
  background: rgba(212, 168, 67, 0.08);
  border-color: rgba(212, 168, 67, 0.2);
}

.memoriam__name-text {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.memoriam__name-detail {
  font-size: var(--text-xs);
  color: var(--text-dark);
}

.memoriam__candle {
  display: inline-block;
  margin-top: var(--space-8);
  font-size: var(--text-4xl);
  opacity: 0.5;
  animation: flicker 3s ease-in-out infinite;
}


/* ── Take Action / CTA Section ────────────────────────────── */
.cta-section {
  position: relative;
  padding: var(--space-20) var(--space-4);
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin-inline: auto;
}

.cta-section__title {
  font-size: var(--text-4xl);
  font-weight: 900;
  margin-bottom: var(--space-4);
}

.cta-section__description {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-10);
  line-height: var(--leading-relaxed);
}

.cta-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .cta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cta-card {
  text-align: left;
  padding: var(--space-6);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-out);
}

.cta-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.cta-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
  background: var(--gold-muted);
  color: var(--gold);
}

.cta-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.cta-card__text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}


/* ── Skeleton Loading ─────────────────────────────────────── */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  color: transparent !important;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.04),
    transparent
  );
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
}

.skeleton * {
  visibility: hidden;
}

.skeleton-text {
  height: 0.875rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-heading {
  height: 1.5rem;
  width: 40%;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.skeleton-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
}

.skeleton-card {
  height: 12rem;
  border-radius: var(--radius-xl);
}

.skeleton-image {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
}


/* ── Alerts / Notices ─────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.alert--info {
  background: var(--blue-muted);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--blue-light);
}

.alert--success {
  background: var(--success-muted);
  border-color: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
}

.alert--warning {
  background: var(--warning-muted);
  border-color: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
}

.alert--danger {
  background: var(--danger-muted);
  border-color: rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
}

.alert__icon {
  flex-shrink: 0;
  font-size: var(--text-lg);
  margin-top: 0.0625rem;
}

.alert__content {
  flex: 1;
}

.alert__title {
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.alert__dismiss {
  flex-shrink: 0;
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  opacity: 0.7;
  transition: opacity var(--duration-fast);
}

.alert__dismiss:hover {
  opacity: 1;
}


/* ── Tooltip ──────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  z-index: 3000;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ── Progress Bar ─────────────────────────────────────────── */
.progress {
  width: 100%;
  height: 0.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width var(--duration-slow) var(--ease-out);
}

.progress__bar--blue {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
}

.progress__bar--danger {
  background: linear-gradient(90deg, #DC2626, var(--danger));
}

.progress__bar--success {
  background: linear-gradient(90deg, #059669, var(--success));
}

.progress--lg {
  height: 0.75rem;
}


/* ── Dividers ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-default);
  border: none;
  margin: var(--space-6) 0;
}

.divider--gold {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider--with-text {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: auto;
  background: none;
}

.divider--with-text::before,
.divider--with-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-default);
}

.divider--with-text span {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-dark);
}


/* ── Avatar ───────────────────────────────────────────────── */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--gold-muted);
  color: var(--gold);
  font-weight: 700;
  font-size: var(--text-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--sm { width: 2rem; height: 2rem; font-size: var(--text-xs); }
.avatar--lg { width: 3.5rem; height: 3.5rem; font-size: var(--text-lg); }
.avatar--xl { width: 5rem; height: 5rem; font-size: var(--text-2xl); }

.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  border: 2px solid var(--bg-secondary);
  margin-left: -0.5rem;
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}


/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-4);
  text-align: center;
}

.empty-state__icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-6);
  opacity: 0.3;
}

.empty-state__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.empty-state__text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 32ch;
  margin-bottom: var(--space-6);
}


/* ── Animations & Keyframes ───────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

@keyframes skeleton-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes flicker {
  0%, 100% { opacity: 0.5; }
  25%      { opacity: 0.55; }
  50%      { opacity: 0.45; }
  75%      { opacity: 0.52; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

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

/* Scroll-triggered animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll:nth-child(2)  { transition-delay: 75ms; }
.animate-on-scroll:nth-child(3)  { transition-delay: 150ms; }
.animate-on-scroll:nth-child(4)  { transition-delay: 225ms; }
.animate-on-scroll:nth-child(5)  { transition-delay: 300ms; }
.animate-on-scroll:nth-child(6)  { transition-delay: 375ms; }
.animate-on-scroll:nth-child(7)  { transition-delay: 450ms; }
.animate-on-scroll:nth-child(8)  { transition-delay: 525ms; }

.animate-fade-in {
  animation: fadeIn var(--duration-slow) var(--ease-out) both;
}

.animate-fade-in-up {
  animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Stagger delays */
.delay-100  { animation-delay: 100ms; }
.delay-200  { animation-delay: 200ms; }
.delay-300  { animation-delay: 300ms; }
.delay-400  { animation-delay: 400ms; }
.delay-500  { animation-delay: 500ms; }
.delay-600  { animation-delay: 600ms; }
.delay-700  { animation-delay: 700ms; }
.delay-800  { animation-delay: 800ms; }

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}


/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-default);
  background: var(--bg-surface);
  padding: var(--space-12) var(--space-4) var(--space-8);
}

.footer__grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__brand {
  max-width: 20rem;
}

.footer__logo {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.footer__description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.footer__heading {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-dark);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: var(--gold);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-default);
  font-size: var(--text-xs);
  color: var(--text-dark);
}


/* ── Responsive Breakpoints ───────────────────────────────── */
/* sm: 640px */
@media (min-width: 640px) {
  .container {
    padding-inline: var(--space-6);
  }

  .section {
    padding-block: var(--space-20);
  }

  .section-title {
    font-size: var(--text-4xl);
  }
}

/* md: 768px */
@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }

  h1 { font-size: var(--text-6xl); }
  h2 { font-size: var(--text-5xl); }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-24);
  }
}

/* xl: 1280px */
@media (min-width: 1280px) {
  .container {
    padding-inline: var(--space-10);
  }
}

/* Responsive visibility helpers */
.hide-mobile    { display: none !important; }
.show-mobile    { display: block !important; }

@media (min-width: 768px) {
  .hide-mobile  { display: block !important; }
  .show-mobile  { display: none !important; }
  .hide-desktop { display: none !important; }
}


/* ── Utility Classes ──────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.items-end     { align-items: flex-end; }
.justify-center   { justify-content: center; }
.justify-between  { justify-content: space-between; }
.justify-end      { justify-content: flex-end; }
.gap-1  { gap: var(--space-1); }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.w-full    { width: 100%; }
.max-w-sm  { max-width: 24rem; }
.max-w-md  { max-width: 28rem; }
.max-w-lg  { max-width: 32rem; }
.max-w-xl  { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

.mx-auto  { margin-inline: auto; }
.mt-4     { margin-top: var(--space-4); }
.mt-6     { margin-top: var(--space-6); }
.mt-8     { margin-top: var(--space-8); }
.mb-4     { margin-bottom: var(--space-4); }
.mb-6     { margin-bottom: var(--space-6); }
.mb-8     { margin-bottom: var(--space-8); }

.p-4  { padding: var(--space-4); }
.p-6  { padding: var(--space-6); }
.p-8  { padding: var(--space-8); }

.rounded-md  { border-radius: var(--radius-md); }
.rounded-lg  { border-radius: var(--radius-lg); }
.rounded-xl  { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ── Print Styles ─────────────────────────────────────────── */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .nav,
  .nav-spacer,
  .footer,
  .btn,
  .modal-overlay,
  .filter-bar,
  .search-bar,
  .tabs,
  .cta-section {
    display: none !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

  .table th {
    background: #eee !important;
    border-bottom: 2px solid #000;
  }

  .table td {
    border-bottom: 1px solid #ccc;
  }

  a {
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555 !important;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  .timeline::before {
    background: #ccc !important;
  }

  .badge {
    border: 1px solid #999;
  }

  @page {
    margin: 2cm;
  }
}


/* ============================================================
   APP-SPECIFIC STYLES
   Page routing, dashboard components, data tables, filters,
   and additional UI patterns used by the JS application.
   ============================================================ */

/* ── App Layout & Page Routing ─────────────────────────────── */

/* Page sections - shown/hidden by JS router */
.page-section {
  /* Hidden by default, shown when active */
  min-height: calc(100vh - 80px);
  padding: var(--space-8) 0;
}

.page-section.active {
  display: block !important;
}

/* Page header (used at top of each page) */
.page-header {
  text-align: center;
  margin-bottom: var(--space-12);
  padding: var(--space-16) var(--space-6) var(--space-8);
}

.page-header h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.page-header-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* ── FOIA Disparity Section ─────────────────────────────────── */

.foia-disparity {
  text-align: center;
}

.disparity-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.disparity-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-10);
  flex: 1;
  min-width: 250px;
  max-width: 380px;
}

.disparity-card.disparity-mmtlp {
  border-color: var(--danger);
  background: var(--danger-muted);
}

.disparity-card.disparity-sec {
  border-color: var(--gold);
  background: var(--gold-muted);
}

.disparity-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-3);
}

.disparity-value {
  display: block;
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}

.disparity-mmtlp .disparity-value {
  color: var(--danger);
}

.disparity-sec .disparity-value {
  color: var(--gold);
}

.disparity-context {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-dark);
  margin-top: var(--space-2);
}

.disparity-vs {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-dark);
  padding: var(--space-4);
}

.disparity-callout {
  background: linear-gradient(135deg, var(--danger-muted), var(--bg-secondary));
  border: 1px solid var(--danger);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-10);
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
}

.callout-multiplier {
  font-size: var(--text-5xl);
  font-weight: 900;
  color: var(--danger);
  line-height: 1;
}

.callout-text {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── Dashboard Updates Columns ─────────────────────────────── */

.updates-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

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

.updates-column-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-default);
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.update-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.update-item:hover {
  border-color: var(--gold);
  background: var(--bg-tertiary);
  transform: translateY(-1px);
}

.update-item-date {
  font-size: var(--text-xs);
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.update-item-title {
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-top: var(--space-1);
  line-height: var(--leading-normal);
}

/* ── Section Block ─────────────────────────────────── */

.section-block {
  max-width: 1200px;
  margin: 0 auto var(--space-16);
  padding: 0 var(--space-6);
}

/* ── Clock Grid ─────────────────────────────────── */

.clock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.clock-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.clock-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.clock-value {
  display: block;
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-mono);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.clock-label {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.clock-date {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-dark);
}

/* ── Stats Grid ─────────────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.stat-value {
  display: block;
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Filter Bar Additions ─────────────────────────────────── */

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.filter-pill {
  /* Use .pill from main CSS, but add specific filter styling */
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.filter-pill:hover {
  border-color: var(--gold);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--text-inverse);
  font-weight: 600;
}

.filter-search {
  flex: 1;
  min-width: 200px;
}

.filter-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  transition: border-color var(--transition-fast);
}

.filter-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-muted);
}

.filter-input::placeholder {
  color: var(--text-dark);
}

.filter-dropdown {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2394A3B8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.filter-dropdown:focus {
  outline: none;
  border-color: var(--gold);
}

.filter-select {
  min-width: 150px;
}

.filter-selects {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ── Results Count & Pagination ─────────────────────────────── */

.results-count {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  padding: 0 var(--space-1);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding: var(--space-4) 0;
}

.pagination-info {
  font-size: var(--text-sm);
  color: var(--text-muted);
  min-width: 80px;
  text-align: center;
}

/* ── Load More ─────────────────────────────────── */

.load-more-container {
  text-align: center;
  padding: var(--space-8) 0;
}

/* ── Table Container (alias) ─────────────────────────────────── */

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: var(--bg-secondary);
}

/* Make data-table work like .table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table thead {
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-size: var(--text-xs);
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
  user-select: none;
}

.data-table td {
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--bg-tertiary);
}

.data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}

.data-table tbody tr:nth-child(even):hover {
  background: var(--bg-tertiary);
}

/* ── Tabs Additions ─────────────────────────────────── */

.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--border-default);
  margin-bottom: var(--space-8);
  overflow-x: auto;
}

.tab {
  padding: var(--space-3) var(--space-5);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  font-family: var(--font-sans);
  transition: color var(--transition-fast);
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--gold);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px 1px 0 0;
}

.tab-panel[hidden] {
  display: none;
}

/* ── FOIA Stats Section ─────────────────────────────────── */

.foia-stats-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.foia-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.foia-stat-card h3 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.foia-stat-value {
  font-size: var(--text-5xl);
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--space-3);
}

.foia-stat-card p {
  font-size: var(--text-sm);
  color: var(--text-dark);
  line-height: var(--leading-normal);
}

.foia-stat-denied {
  border-color: var(--danger);
}

.foia-stat-denied .foia-stat-value {
  color: var(--danger);
}

.foia-stat-overall .foia-stat-value {
  color: var(--gold);
}

.foia-stat-disparity {
  border-color: var(--warning);
}

.foia-stat-disparity .foia-stat-value {
  color: var(--warning);
}

.foia-yearly-breakdown {
  margin-bottom: var(--space-12);
}

.foia-yearly-breakdown h3,
.foia-key-findings h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.findings-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ── Violations ─────────────────────────────────── */

.violations-intro {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-8);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.violations-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ── Action Cards ─────────────────────────────────── */

.action-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.action-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-normal);
}

.action-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.1);
}

.action-card-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.action-card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.action-card-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.action-card-btn {
  width: 100%;
}

/* ── Evidence List ─────────────────────────────────── */

.evidence-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.evidence-card__header {
  align-items: flex-start;
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
}

.evidence-card__badge {
  max-width: min(100%, 26rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-card__date {
  flex: 0 0 auto;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

.bombshell-primary-card {
  overflow: hidden;
}

.bombshell-pdf-frame {
  display: block;
}

.bombshell-additional {
  border-top: 1px solid var(--border-default);
  padding-top: var(--space-8);
}

@media (min-width: 1024px) {
  .bombshell-pdf-frame,
  #bombshell-tab-pdf iframe {
    height: calc(100vh - 110px) !important;
    min-height: 1050px !important;
  }
}

/* ── Memoriam Additions ─────────────────────────────────── */

.memoriam-intro,
.memoriam-note {
  max-width: 800px;
  margin: 0 auto var(--space-10);
  padding: 0 var(--space-6);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  font-style: italic;
}

.memoriam-note {
  margin-top: var(--space-12);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-8);
}

.memoriam-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.memoriam-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: border-color var(--transition-normal);
}

.memoriam-card:hover {
  border-color: var(--gold);
}

.memoriam-card-name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.memoriam-card-date {
  font-size: var(--text-sm);
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.memoriam-card-detail {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-normal);
}

.page-header-memoriam {
  /* Solemn design for memoriam */
}

.page-header-memoriam h1 {
  color: var(--gold);
  font-weight: 300;
  letter-spacing: var(--tracking-wide);
}

/* ── Resources List ─────────────────────────────────── */

.resources-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
}

.resource-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  transition: all var(--transition-fast);
}

.resource-item:hover {
  border-color: var(--blue);
  background: var(--bg-tertiary);
}

.resource-item-date {
  font-size: var(--text-xs);
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}

.resource-item-title {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-2);
}

.resource-item-link {
  font-size: var(--text-xs);
  color: var(--blue);
  text-decoration: none;
  word-break: break-all;
}

.resource-item-link:hover {
  color: var(--blue-light);
  text-decoration: underline;
}

/* ── Skeleton Additions ─────────────────────────────────── */

.skeleton-row td {
  height: 20px;
}

.skeleton-wide {
  width: 200px;
}

.skeleton-timeline {
  height: 80px;
}

.skeleton-memoriam {
  height: 120px;
}

/* ── Responsive Filter Bar ─────────────────────────────────── */

@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
  }

  .filter-selects {
    flex-direction: column;
  }

  .filter-select {
    width: 100%;
  }

  .filter-dropdown {
    width: 100%;
  }

  .disparity-comparison {
    flex-direction: column;
  }

  .disparity-card {
    max-width: 100%;
  }

  .clock-value {
    font-size: var(--text-4xl);
  }

  .page-header h1 {
    font-size: var(--text-3xl);
  }
}

/* ── Hamburger Menu ─────────────────────────────────── */

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-default);
    flex-direction: column;
    padding: var(--space-4);
    z-index: 100;
  }

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

  .nav-links li {
    list-style: none;
  }

  .nav-links .nav-link {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
  }

  .nav-links .nav-link:hover,
  .nav-links .nav-link.active {
    background: var(--bg-tertiary);
    color: var(--gold);
  }
}


/* ================================================================
   DESIGN OVERHAUL — Breaking the generic AI template look
   ================================================================ */

/* Subtle texture on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.008'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

main, .nav-spacer, footer {
  position: relative;
  z-index: 1;
}

#site-header {
  position: relative;
  z-index: 1100;
}

#detail-modal {
  z-index: 2000 !important;
  position: fixed !important;
}

/* Alternating section backgrounds for depth */
.page-section .section:nth-child(even) {
  background: rgba(255, 255, 255, 0.008);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-left: calc(-1 * var(--space-4));
  margin-right: calc(-1 * var(--space-4));
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* Section title underline accent */
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-top: var(--space-3);
  margin-left: auto;
  margin-right: auto;
  margin-left: auto;
  margin-right: auto;
}

/* Staggered card entrances */
.card, .stat-card, .cta-card, .memoriam__name {
  opacity: 0;
  transform: translateY(12px);
  animation: cardReveal 0.4s ease forwards;
}

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid > :nth-child(1) { animation-delay: 0.05s; }
.grid > :nth-child(2) { animation-delay: 0.1s; }
.grid > :nth-child(3) { animation-delay: 0.15s; }
.grid > :nth-child(4) { animation-delay: 0.2s; }
.grid > :nth-child(5) { animation-delay: 0.25s; }
.grid > :nth-child(6) { animation-delay: 0.3s; }

/* More distinctive stat cards - ditch the flat look */
.stat-card {
  border: none;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-top: 2px solid var(--border-default);
  border-radius: var(--radius-md);
}

.stat-card--gold  { border-top-color: var(--gold); }
.stat-card--blue  { border-top-color: var(--blue); }
.stat-card--danger { border-top-color: var(--danger); }
.stat-card--success { border-top-color: var(--success); }

/* Bigger, bolder stat values */
.stat-card__value {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-family: var(--font-sans);
}

/* Page headers - less generic */
.page-header {
  text-align: center;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: var(--space-8);
}

.page-header h1 {
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  font-size: var(--text-3xl);
}

.page-header h1 strong,
.page-header h1 b {
  font-weight: 800;
  color: var(--text-primary);
}

/* Thin gold line above page headers */
.page-header::before {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto var(--space-6);
}

/* Tables - more refined look */
.table thead {
  background: transparent;
  border-bottom: 2px solid var(--gold);
}

.table th {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

/* CTA cards - less uniform */
.cta-card {
  text-align: left;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.cta-card__icon {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

/* Buttons - more refined */
.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 2px 8px rgba(212, 168, 67, 0.2);
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 4px 16px rgba(212, 168, 67, 0.3);
  transform: translateY(-1px);
}

/* Nav bottom border gold line */
.nav {
  border-bottom: 1px solid var(--border-default);
  border-bottom: 1px solid rgba(212, 168, 67, 0.15);
}

/* Footer - refined */
.footer {
  border-top: 2px solid var(--border-default);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--gold);
}

/* Tabs - cleaner */
.tabs__tab.active {
  color: var(--text-primary);
  font-weight: 700;
}

.tabs__tab.active::after {
  background: var(--gold);
  height: 3px;
}

/* Filter pills - less bubbly */
.pill {
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Timeline items - left border instead of dots on mobile */
@media (max-width: 768px) {
  .timeline__item {
    border-left: 2px solid var(--border-default);
    padding-left: var(--space-4);
  }
  .timeline__item:hover {
    border-left-color: var(--gold);
  }
}

/* Memoriam section - warm, not cold */
.memoriam {
  background: linear-gradient(180deg, var(--bg-primary), #0d0f16);
}

/* Alert boxes - left border accent only */
.alert {
  border-left: 3px solid;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.alert--warning {
  border-left-color: var(--gold);
}

/* Reduce everything that screams "template" */
.card {
  border-radius: var(--radius-md);
}

.badge {
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Make the disparity callout more impactful */
.alert--warning .alert__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--gold);
}

/* Hide the text-center override for section headers */
/* section-title::after is always centered via margin:auto */

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .card, .stat-card, .cta-card, .memoriam__name {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ── Theme Toggle Button ─────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  margin: 0 var(--space-2);
  transition: color 0.15s ease, background 0.15s ease;
}

.theme-toggle:hover {
  color: var(--gold);
  background: rgba(212, 168, 67, 0.1);
}

.theme-icon-moon { display: none; }
.theme-icon-sun  { display: block; }

html.light .theme-icon-moon { display: block; }
html.light .theme-icon-sun  { display: none; }

/* ── Light Mode ─────────────────────────────────── */
html.light {
  --bg-primary:     #F8F9FC;
  --bg-secondary:   #FFFFFF;
  --bg-tertiary:    #F1F3F7;
  --bg-elevated:    #E8EBF0;
  --bg-surface:     #FFFFFF;

  --border-default: #D4D9E2;
  --border-subtle:  #E8EBF0;
  --border-strong:  #B0B8C9;
  --border-accent:  #96760E;

  --gold:           #96760E;
  --gold-light:     #B8922E;
  --gold-dark:      #7A6000;
  --gold-muted:     rgba(150, 118, 14, 0.1);
  --gold-glow:      rgba(150, 118, 14, 0.15);

  --blue:           #2563EB;
  --blue-light:     #3B82F6;
  --blue-dark:      #1D4ED8;
  --blue-muted:     rgba(37, 99, 235, 0.08);

  --danger:         #DC2626;
  --danger-muted:   rgba(220, 38, 38, 0.08);
  --success:        #059669;
  --success-muted:  rgba(5, 150, 105, 0.08);
  --warning:        #D97706;
  --warning-muted:  rgba(217, 119, 6, 0.08);

  --text-primary:   #111827;
  --text-secondary: #374151;
  --text-muted:     #4B5563;
  --text-dark:      #6B7280;
  --text-inverse:   #FFFFFF;

  --glass-bg:       rgba(248, 249, 252, 0.92);
  --glass-border:   rgba(212, 217, 226, 0.6);

  --shadow-sm:      0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:      0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg:      0 10px 15px rgba(0,0,0,0.1);
}

html.light body::before {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

html.light .btn-primary {
  background: var(--gold-dark);
  color: #fff;
}

html.light .btn-primary:hover {
  background: var(--gold);
}

html.light .memoriam {
  background: linear-gradient(180deg, var(--bg-primary), #EDE8DF);
}

html.light ::selection {
  background: var(--gold);
  color: #fff;
}

/* ── Light mode: comprehensive overrides ── */
html.light .nav { background: rgba(248,249,252,0.95); border-bottom-color: #D4D9E2; }
html.light .nav__link:hover { color: #111827; background: rgba(0,0,0,0.04); }
html.light .nav__mobile-toggle { color: var(--gold); border-color: #D4D9E2; background: rgba(150,118,14,0.06); }
html.light .auth-login-btn { color: #111827; border-color: #B0B8C9; }
html.light .theme-toggle { color: #6B7280; }

html.light .hero { background: #F0F1F5; }
html.light .hero::before { background: radial-gradient(ellipse 50% 60% at 50% 20%, rgba(150,118,14,0.06) 0%, transparent 70%), linear-gradient(180deg, #F8F9FC 0%, #F0F1F5 100%); }
html.light .hero__title { color: #374151; }
html.light .hero__title-accent { color: #111827; -webkit-text-fill-color: #111827; background: none; }
html.light .hero__description { color: #6B7280; }
html.light .hero__eyebrow { color: #6B7280; border-bottom-color: #D4D9E2; }

html.light .card { background: #fff; border-color: #E5E7EB; }
html.light .card-interactive:hover { border-color: var(--gold); }
html.light .card__title { color: #111827; }
html.light .stat-card { background: linear-gradient(135deg, #fff 0%, #F9FAFB 100%); }
html.light .stat-card__value { color: #111827; }

html.light .table { color: #374151; }
html.light .table thead { background: #F9FAFB; }
html.light .table th { color: var(--gold); }
html.light .table td { color: #374151; border-bottom-color: #E5E7EB; }
html.light .table tbody tr:hover { background: #F3F4F6; }

html.light .section-title { color: #111827; }
html.light .section-subtitle { color: #6B7280; }
html.light .section + .section { border-top-color: #E5E7EB; }

html.light .badge { border-color: #E5E7EB; }
html.light .tabs__tab { color: #6B7280; }
html.light .tabs__tab.active { color: #111827; }
html.light .tabs { border-bottom-color: #E5E7EB; }

html.light .filter-bar { background: #F9FAFB; border-color: #E5E7EB; }
html.light .search-bar__input,
html.light .form-select,
html.light .form-input,
html.light .form-textarea,
html.light .filter-input,
html.light .filter-dropdown { background: #fff; border-color: #D1D5DB; color: #111827; }

html.light .alert { background: #fff; }
html.light .alert--info { border-left-color: var(--blue); }
html.light .alert--warning { border-left-color: var(--warning); }

html.light .footer { background: #1A1F2E; color: #F1F5F9; border-top-color: #1A1F2E; }
html.light .footer a { color: #D4A843; }

html.light .nav__drawer { background: #fff; border-bottom-color: var(--gold); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
html.light .nav__drawer .nav__link { color: #374151; border-bottom-color: #E5E7EB; }
html.light .nav__drawer .nav__link:hover,
html.light .nav__drawer .nav__link.active { color: var(--gold); }

html.light .modal-overlay { background: rgba(0,0,0,0.4); }
html.light .modal { background: #fff; border-color: #E5E7EB; }
html.light .modal__header { border-bottom-color: #E5E7EB; }
html.light .modal__title { color: #111827; }

html.light .cta-card { background: #fff; border-color: #E5E7EB; }
html.light .cta-card__title { color: #111827; }
html.light .cta-card__text { color: #6B7280; }

html.light .memoriam { background: linear-gradient(180deg, #F8F9FC, #F0EDE5); }

html.light .ava-overlay { background: #fff; }
html.light .ava-msg-content { background: #F3F4F6; color: #374151; }

html.light body::before { opacity: 0; }

/* ── Lucide Icon Sizing ─────────────────────────────────── */
.fas, .far, .fab {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  vertical-align: -0.125em;
}

.stat-card__icon .fas, .far, .fab {
  width: 1.5rem;
  height: 1.5rem;
}

.cta-card__icon .fas, .far, .fab {
  width: 2rem;
  height: 2rem;
  color: var(--gold);
}

.search-bar__icon .fas, .far, .fab {
  width: 1.125rem;
  height: 1.125rem;
}

.alert__icon .fas, .far, .fab {
  width: 1.25rem;
  height: 1.25rem;
}

/* ── Hero Logo ─────────────────────────────────── */
.hero__logo {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-8);
  border-radius: var(--radius-full);
  border: 2px solid rgba(212, 168, 67, 0.3);
  box-shadow: 0 0 40px rgba(212, 168, 67, 0.15), 0 0 80px rgba(212, 168, 67, 0.05);
  animation: logoGlow 4s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  from { box-shadow: 0 0 30px rgba(212, 168, 67, 0.1), 0 0 60px rgba(212, 168, 67, 0.03); }
  to   { box-shadow: 0 0 50px rgba(212, 168, 67, 0.2), 0 0 100px rgba(212, 168, 67, 0.08); }
}

/* ── Disparity Visual Bars ─────────────────────────────────── */
.disparity-bars {
  max-width: 600px;
  margin: var(--space-8) auto 0;
}

.disparity-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.disparity-bar-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  min-width: 160px;
  text-align: right;
}

.disparity-bar-track {
  flex: 1;
  height: 24px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-default);
}

.disparity-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1.5s ease;
  min-width: 3px;
}

.disparity-bar-gold {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
}

.disparity-bar-danger {
  background: linear-gradient(90deg, var(--danger), #f87171);
}

.disparity-bar-value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  min-width: 50px;
  font-family: var(--font-mono, monospace);
}

/* ── Visual Section Separators ─────────────────────────────────── */
.section + .section::before {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto var(--space-10);
}

/* ── Enhanced Card Hover with Icon Color ─────────────────────────────────── */
.cta-card:hover .cta-card__icon .fas, .far, .fab {
  color: var(--gold-light);
  transform: scale(1.1);
  transition: all 0.2s ease;
}

/* ── Requested Action Color Treatments ─────────────────────────────────── */
.strategy-action-heading {
  margin-bottom: 0.75rem;
  color: var(--neon-orange);
  font-size: var(--text-xl);
  font-weight: 900;
}

#page-strategy .alert--info {
  background: var(--neon-orange-muted);
  border-color: rgba(255, 106, 0, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.08), 0 12px 30px rgba(255, 106, 0, 0.08);
}

#page-strategy .alert--info .alert__icon,
#page-strategy .alert--info .alert__icon i,
#page-strategy .alert--info strong {
  color: var(--neon-orange) !important;
}

#page-action .cta-card {
  border-left-color: var(--neon-red);
}

#page-action .cta-card:hover {
  border-color: var(--neon-red);
  box-shadow: 0 4px 18px rgba(255, 23, 68, 0.28);
}

#page-action .cta-card__icon {
  background: var(--neon-red-muted);
  border: 1px solid rgba(255, 23, 68, 0.38);
  color: var(--neon-red);
}

#page-action .cta-card__icon i,
#page-action .cta-card__icon .fas,
#page-action .cta-card:hover .cta-card__icon i,
#page-action .cta-card:hover .cta-card__icon .fas {
  color: var(--neon-red) !important;
}

#page-action .cta-card__title {
  color: var(--neon-red);
  font-weight: 900;
}

#page-action .btn-primary {
  background: var(--neon-red);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 23, 68, 0.24);
}

#page-action .btn-primary:hover {
  background: #ff3b5f;
  box-shadow: 0 4px 18px rgba(255, 23, 68, 0.34);
}

/* ── Strategy Page Number Badges ─────────────────────────────────── */
.strategy-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-inverse);
  flex-shrink: 0;
}

/* ── Better Timeline Dot ─────────────────────────────────── */
.timeline__dot {
  position: relative;
}

.timeline__dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(212, 168, 67, 0.4);
}

/* ── Auth Area (Nav) ─────────────────────────────────── */
.auth-area {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: var(--space-3);
  margin-right: var(--space-2);
}

.auth-login-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  white-space: nowrap;
  text-decoration: none;
}

.auth-login-btn svg {
  flex-shrink: 0;
}

.auth-user-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--gold);
  object-fit: cover;
}

.auth-handle {
  font-size: var(--text-xs);
  color: var(--gold);
  font-weight: 600;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .auth-area {
    display: none;
  }
}

/* ── Form Inputs (Contribute) ─────────────────────────────────── */
.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  transition: border-color 0.15s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ================================================================
   Action Module Cards
   ================================================================ */
.action-module {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  padding: var(--space-6);
}

.action-module__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-muted);
  border-radius: var(--radius-lg);
  color: var(--gold);
  flex-shrink: 0;
}

.action-module__icon .fas, .far, .fab {
  width: 24px;
  height: 24px;
}

.action-module__body {
  flex: 1;
}

.action-module__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.action-module__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

/* ================================================================
   Ava Chat
   ================================================================ */
.ava-chat-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 500px;
}

.ava-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8);
}

.ava-overlay-content h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.ava-overlay-content p {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

.ava-chat {
  display: flex;
  flex-direction: column;
  height: 500px;
}

.ava-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ava-message {
  display: flex;
  gap: var(--space-3);
  max-width: 85%;
}

.ava-message-bot {
  align-self: flex-start;
}

.ava-message-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ava-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ava-msg-content {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.ava-message-user .ava-msg-content {
  background: var(--gold-muted);
  color: var(--text-primary);
}

.ava-input-area {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-top: 1px solid var(--border-default);
  background: var(--bg-secondary);
}

.ava-input-area input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}

.ava-input-area input:focus {
  outline: none;
  border-color: var(--gold);
}

/* Fix evidence cards overflowing grid */
.card__body {
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.card__title {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ================================================================
   TRUTH AI — ChatGPT-style Interface
   ================================================================ */

.truthai-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  height: calc(100vh - var(--nav-height) - 2rem);
  display: flex;
  flex-direction: column;
}

.tai-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1rem;
}

.tai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Messages */
.tai-msg {
  display: flex;
  gap: 0.75rem;
  max-width: 85%;
  animation: taiMsgIn 0.3s ease;
}

@keyframes taiMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tai-msg--bot { align-self: flex-start; }
.tai-msg--user { align-self: flex-end; flex-direction: row-reverse; }

.tai-msg__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 2px;
}

.tai-msg__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tai-msg--user .tai-msg__avatar {
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 0.75rem;
}

.tai-msg__bubble {
  padding: 0.875rem 1.125rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.tai-msg--bot .tai-msg__bubble {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.tai-msg--user .tai-msg__bubble {
  background: var(--gold);
  color: var(--bg-primary);
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.tai-typing {
  display: flex;
  gap: 4px;
  padding: 0.875rem 1.125rem;
}

.tai-typing span {
  width: 8px;
  height: 8px;
  background: var(--text-dark);
  border-radius: 50%;
  animation: taiBounce 1.2s ease infinite;
}

.tai-typing span:nth-child(2) { animation-delay: 0.15s; }
.tai-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes taiBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Suggested prompts */
.tai-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.tai-prompt {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-sans);
}

.tai-prompt:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-muted);
}

/* Input area */
.tai-input-area {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-default);
  background: var(--bg-surface);
}

.tai-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  padding: 0.25rem 0.25rem 0.25rem 0.75rem;
  transition: border-color 0.15s;
}

.tai-input-row:focus-within {
  border-color: var(--gold);
}

.tai-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  padding: 0.5rem 0;
}

.tai-input::placeholder {
  color: var(--text-dark);
}

.tai-voice-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.tai-voice-btn:hover {
  color: var(--gold);
  background: var(--gold-muted);
}

.tai-voice-btn.active {
  color: #fff;
  background: var(--danger);
  animation: taiPulse 1.5s ease infinite;
}

@keyframes taiPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.tai-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  color: var(--bg-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.tai-send-btn:hover {
  background: var(--gold-light);
  transform: scale(1.05);
}

.tai-send-btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

.tai-disclaimer {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-dark);
  margin-top: 0.5rem;
}

/* Light mode */
html.light .tai-chat { background: #fff; border-color: #E5E7EB; }
html.light .tai-msg--bot .tai-msg__bubble { background: #F3F4F6; }
html.light .tai-msg--user .tai-msg__bubble { background: var(--gold); color: #fff; }
html.light .tai-input-row { background: #F9FAFB; border-color: #D1D5DB; }
html.light .tai-input { color: #111827; }
html.light .tai-input-area { background: #fff; border-top-color: #E5E7EB; }
html.light .tai-prompt { border-color: #D1D5DB; color: #6B7280; }
html.light .tai-prompt:hover { border-color: var(--gold); color: var(--gold); }

.tai-citations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tai-citation {
  display: inline-flex;
  max-width: 100%;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.7rem;
  line-height: 1.2;
  text-decoration: none;
}

.tai-citation:hover {
  border-color: var(--gold);
  background: var(--gold-muted);
}

/* Mobile */
@media (max-width: 768px) {
  .truthai-page {
    padding: 0;
    height: calc(100vh - var(--nav-height));
  }
  .tai-chat { border-radius: 0; border-left: none; border-right: none; }
  .tai-msg { max-width: 95%; }
}

/* ── Hero search prompt chips ─────────────────────────────────── */
.hero-prompt {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  padding: 0.5rem 0.875rem;
  border-radius: 18px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.hero-prompt:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-muted);
  transform: translateY(-1px);
}

html.light .hero-prompt {
  background: #fff;
  border-color: #D1D5DB;
  color: #374151;
}

html.light .hero-prompt:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(150,118,14,0.08);
}

/* Mobile search fixes */
@media (max-width: 640px) {
  .section {
    padding-block: var(--space-12);
  }

  .section + .section::before {
    display: none;
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  .section-title {
    text-align: center;
    line-height: 1.12;
  }

  #hero-search-form {
    flex-wrap: wrap;
    padding: 0.5rem !important;
    border-radius: 12px !important;
  }
  #hero-search-form input {
    width: 100%;
    min-width: 0;
    font-size: 0.9rem !important;
    padding: 0.5rem !important;
    order: 2;
  }
  #hero-search-form i.fa-search {
    order: 1;
    padding-left: 0.5rem;
  }
  #hero-search-form button {
    width: 100%;
    order: 3;
    margin-top: 0.25rem;
  }
  .hero-prompt {
    font-size: 0.7rem !important;
    padding: 0.4rem 0.7rem !important;
  }
  .hero {
    padding: 1rem !important;
    min-height: auto !important;
  }
  .hero__logo {
    width: 80px !important;
    height: 80px !important;
  }

  #latest-updates > .section-header {
    margin-bottom: var(--space-7);
  }

  #latest-updates h3 {
    text-align: center;
    margin-bottom: var(--space-4);
  }

  #latest-court-filings .card,
  #latest-timeline-events .card {
    padding: 1.35rem 1.15rem;
    text-align: center;
  }

  #latest-court-filings .card > div,
  #latest-timeline-events .card > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--space-3) !important;
    text-align: center;
  }

  #latest-court-filings .font-semibold,
  #latest-timeline-events .font-semibold {
    max-width: 26ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
  }

  #latest-court-filings .badge,
  #latest-timeline-events .badge {
    max-width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  #latest-court-filings .btn,
  #latest-timeline-events .btn {
    align-self: center;
    margin-top: var(--space-2) !important;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before,
  .timeline__dot,
  .timeline__dot::after {
    display: none;
  }

  .timeline__item {
    border-left: 0 !important;
    padding-left: 0 !important;
    padding-bottom: var(--space-6);
  }

  .timeline__date {
    text-align: center;
    margin-bottom: var(--space-3);
  }

  .timeline__content {
    padding: var(--space-5) var(--space-4);
    text-align: center;
  }

  .timeline__title {
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.42;
  }

  .timeline__description {
    max-width: 30ch;
    margin-left: auto;
    margin-right: auto;
  }

  .timeline__content .badge,
  .timeline__content .btn {
    justify-content: center;
  }

  .timeline__content [style*="display:flex"] {
    justify-content: center;
  }

  .resource-featured {
    padding: 1.35rem 1.2rem !important;
  }

  .resource-featured__inner {
    display: grid !important;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    gap: var(--space-4) !important;
    margin-bottom: 0 !important;
    text-align: center;
  }

  .resource-featured__icon {
    width: 64px !important;
    height: 64px !important;
  }

  .resource-featured h3 {
    max-width: 18ch;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.18;
  }

  .resource-featured p {
    max-width: 22ch;
    margin: 0.35rem auto 0 !important;
    line-height: 1.45;
  }

  .resource-featured__button {
    min-width: 9.5rem;
    justify-content: center;
  }

  .evidence-card__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .evidence-card__badge {
    max-width: 100%;
    white-space: normal;
  }

  .evidence-card__date {
    text-align: left;
  }

  .bombshell-tabs .tabs__list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .foia-tabs .tabs__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .foia-tabs .tabs__tab {
    min-width: 0;
    padding: 0.75rem 0.35rem;
    font-size: 0.9rem;
    white-space: normal;
    text-align: center;
  }

  .bombshell-primary-card {
    padding: 1rem !important;
  }

  .bombshell-pdf-frame,
  #bombshell-tab-pdf iframe {
    height: calc(100vh - 110px) !important;
    min-height: 900px !important;
  }
}

/* Mobile data tables become labeled cards instead of sideways-scrolling grids. */
@media (max-width: 640px) {
  #court-table.table-wrapper,
  #page-foia .table-wrapper {
    overflow-x: visible;
    border: 0;
    background: transparent;
  }

  #court-table,
  #foia-yearly-table,
  #foia-mmtlp-yearly-table,
  #foia-responses-table {
    border: 0;
    background: transparent;
  }

  #court-table.table-wrapper,
  #foia-yearly-table,
  #foia-mmtlp-yearly-table,
  #foia-responses-table {
    max-width: 100%;
  }

  #court-table table,
  #foia-yearly-table,
  #foia-mmtlp-yearly-table,
  #foia-responses-table,
  #court-table thead,
  #foia-yearly-table thead,
  #foia-mmtlp-yearly-table thead,
  #foia-responses-table thead,
  #court-table tbody,
  #foia-yearly-table tbody,
  #foia-mmtlp-yearly-table tbody,
  #foia-responses-table tbody,
  #court-table tr,
  #foia-yearly-table tr,
  #foia-mmtlp-yearly-table tr,
  #foia-responses-table tr,
  #court-table td,
  #foia-yearly-table td,
  #foia-mmtlp-yearly-table td,
  #foia-responses-table td {
    display: block;
    width: 100%;
  }

  #court-table thead,
  #foia-yearly-table thead,
  #foia-mmtlp-yearly-table thead,
  #foia-responses-table thead {
    display: none;
  }

  #court-table tr,
  #foia-yearly-table tr,
  #foia-mmtlp-yearly-table tr,
  #foia-responses-table tr {
    margin: 0 0 var(--space-4);
    padding: var(--space-4);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
  }

  #court-table td,
  #foia-yearly-table td,
  #foia-mmtlp-yearly-table td,
  #foia-responses-table td {
    display: grid;
    grid-template-columns: minmax(6.5rem, 38%) minmax(0, 1fr);
    gap: var(--space-3);
    align-items: start;
    padding: var(--space-2) 0 !important;
    border-bottom: 1px solid var(--border-subtle);
    white-space: normal !important;
    text-align: left !important;
    overflow-wrap: anywhere;
  }

  #court-table td:last-child,
  #foia-yearly-table td:last-child,
  #foia-mmtlp-yearly-table td:last-child,
  #foia-responses-table td:last-child {
    border-bottom: 0;
  }

  #court-table td::before,
  #foia-yearly-table td::before,
  #foia-mmtlp-yearly-table td::before,
  #foia-responses-table td::before {
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  #court-table td[colspan],
  #foia-yearly-table td[colspan],
  #foia-mmtlp-yearly-table td[colspan],
  #foia-responses-table td[colspan] {
    display: block;
    text-align: center !important;
  }

  #court-table td[colspan]::before,
  #foia-yearly-table td[colspan]::before,
  #foia-mmtlp-yearly-table td[colspan]::before,
  #foia-responses-table td[colspan]::before {
    content: none;
  }

  #court-table td:nth-child(1)::before { content: "Date"; }
  #court-table td:nth-child(2)::before { content: "Court"; }
  #court-table td:nth-child(3)::before { content: "Document"; }
  #court-table td:nth-child(4)::before { content: "Type"; }
  #court-table td:nth-child(5)::before { content: "Case"; }
  #court-table td:nth-child(6)::before { content: "Details"; }

  #foia-yearly-table td:nth-child(1)::before,
  #foia-mmtlp-yearly-table td:nth-child(1)::before { content: "Year"; }
  #foia-yearly-table td:nth-child(2)::before,
  #foia-mmtlp-yearly-table td:nth-child(2)::before { content: "Submitted"; }
  #foia-yearly-table td:nth-child(3)::before,
  #foia-mmtlp-yearly-table td:nth-child(3)::before { content: "Granted"; }
  #foia-yearly-table td:nth-child(4)::before,
  #foia-mmtlp-yearly-table td:nth-child(4)::before { content: "Partial"; }
  #foia-yearly-table td:nth-child(5)::before,
  #foia-mmtlp-yearly-table td:nth-child(5)::before { content: "Denied"; }
  #foia-yearly-table td:nth-child(6)::before,
  #foia-mmtlp-yearly-table td:nth-child(6)::before { content: "Pending"; }
  #foia-yearly-table td:nth-child(7)::before,
  #foia-mmtlp-yearly-table td:nth-child(7)::before { content: "Grant Rate"; }

  #foia-responses-table td:nth-child(1)::before { content: "Date"; }
  #foia-responses-table td:nth-child(2)::before { content: "Agency"; }
  #foia-responses-table td:nth-child(3)::before { content: "Subject"; }
  #foia-responses-table td:nth-child(4)::before { content: "Status"; }
  #foia-responses-table td:nth-child(5)::before { content: "Details"; }

  #court-table .btn,
  #foia-responses-table .btn {
    justify-self: start;
    max-width: 100%;
  }

  #court-table .badge,
  #foia-yearly-table .badge,
  #foia-mmtlp-yearly-table .badge,
  #foia-responses-table .badge {
    justify-self: start;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ── Mobile polish pass: keep phone layouts centered, calm, and readable. */
@media (max-width: 640px) {
  html {
    scroll-padding-top: calc(var(--nav-height) + 2rem);
  }

  body,
  main,
  .page-section {
    overflow-x: clip;
  }

  .page-section > .container.section:first-child {
    padding-top: calc(var(--space-12) + var(--space-3));
  }

  .section-header {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .section-subtitle,
  .section-header > p {
    max-width: 30ch;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.45;
  }

  .card {
    max-width: 100%;
  }

  .filter-bar {
    align-items: center;
  }

  .filter-bar__group {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .filter-bar__group .search-bar {
    width: 100%;
  }

  #page-dashboard .grid-4 {
    gap: var(--space-5);
  }

  #page-dashboard .stat-card {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 9.25rem;
    padding: 1.75rem 1.1rem;
    text-align: center;
  }

  #page-dashboard .stat-card::before {
    opacity: 0;
  }

  #page-dashboard .stat-card__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto var(--space-4);
  }

  #page-dashboard .stat-card__value,
  #page-dashboard .stat-card__label {
    display: block;
    width: 100%;
  }

  #page-dashboard .stat-card__value {
    margin: 0 0 var(--space-2);
    font-size: 2.35rem;
    line-height: 1;
    letter-spacing: 0;
  }

  #page-dashboard .stat-card__label {
    max-width: 15rem;
    margin: 0 auto;
    line-height: 1.35;
    text-align: center;
  }

  #page-dashboard .section.container > .card[style*="max-width:780px"] > div {
    display: grid !important;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: var(--space-5) !important;
  }

  #page-dashboard .section.container > .card[style*="max-width:780px"] a.btn {
    width: min(100%, 17rem);
    justify-content: center;
  }

  #latest-updates .grid-2 {
    gap: var(--space-8);
  }

  #page-bombshell > .container.section:first-child {
    padding-top: calc(var(--space-14) + var(--space-2));
  }

  #page-bombshell .section-header {
    margin-bottom: var(--space-7);
  }

  #page-bombshell .section-header > div:first-child {
    margin-top: 0.25rem;
  }

  .bombshell-tabs {
    border-bottom: 0;
  }

  .bombshell-tabs .tabs__list {
    gap: var(--space-2);
    border-bottom: 1px solid var(--border-default);
  }

  .bombshell-tabs .tabs__tab {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 0.85rem 0.7rem;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }

  .bombshell-tabs .tabs__tab.active::after {
    left: 50%;
    right: auto;
    width: min(100%, 13rem);
    transform: translateX(-50%);
  }

  .bombshell-primary-card > div:first-child {
    display: grid !important;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: var(--space-4) !important;
  }

  .bombshell-primary-card > div:first-child > div {
    min-width: 0 !important;
    width: 100%;
  }

  .bombshell-primary-card > div:first-child > div:last-child {
    justify-content: center;
  }

  .bombshell-primary-card .btn {
    min-width: 8.75rem;
    justify-content: center;
  }

  #page-strategy details.card {
    text-align: left;
  }

  #page-strategy .card:not(details) > .card__header {
    display: grid !important;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--space-3) !important;
    text-align: center;
  }

  #page-strategy .card:not(details) > .card__header .badge {
    margin-left: auto;
    margin-right: auto;
  }

  #page-strategy .card:not(details) > .card__header .card__title {
    max-width: 20ch;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.22;
    text-align: center;
  }

  #page-strategy .card:not(details) > .card__body {
    text-align: left;
  }

  #page-strategy details.card > summary.card__header {
    align-items: center !important;
    gap: var(--space-3) !important;
    text-align: left;
  }

  #page-strategy details.card > summary.card__header .card__title {
    font-size: 1.08rem;
    line-height: 1.22;
    text-align: left;
  }

  #page-strategy .card__body {
    text-align: left;
  }

  #page-strategy .strategy-action-heading {
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    font-size: 1.28rem;
    line-height: 1.15;
    text-align: center;
  }

  #page-strategy .alert--info {
    display: block;
    padding: 1rem;
    border: 1px solid rgba(255, 106, 0, 0.48);
    border-left: 3px solid var(--neon-orange);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-align: left;
  }

  #page-strategy .alert--info .alert__content,
  #page-strategy .alert--info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.58;
    text-align: left;
  }

  #page-strategy .alert--info .alert__icon {
    display: none;
  }

  .footer {
    text-align: center;
  }

  .footer__logo {
    justify-content: center;
  }

  .footer__description {
    margin-left: auto;
    margin-right: auto;
  }

  .footer__bottom {
    justify-content: center !important;
    text-align: center;
  }
}

/* Ensure body texture stays behind everything */
body::before {
  z-index: -1 !important;
}
/* Section content above texture */
main, footer { position: relative; z-index: 1; }

/* September 22 community event */
.event-feature { display:grid; grid-template-columns:1.1fr 1fr; align-items:center; gap:2.5rem; margin-top:2rem; margin-bottom:2rem; padding:2rem; border:1px solid var(--gold); border-radius:16px; background:var(--bg-secondary); }
.event-feature__eyebrow { color:var(--gold); font-size:.75rem; font-weight:700; letter-spacing:.08em; margin-bottom:.75rem; }
.event-feature h2 { font-size:clamp(2rem,4vw,3.25rem); line-height:1.1; margin-bottom:.5rem; }
.event-feature__subtitle { font-size:1.25rem; margin-bottom:1rem; }
.event-feature__time { font-size:1.1rem; font-weight:700; margin:1.25rem 0; }
.event-feature__video { display:block; width:100%; aspect-ratio:1470/1070; object-fit:contain; border-radius:10px; background:#111; }
.event-feature__reading { display:block; margin-top:1rem; color:var(--text-primary); text-decoration:underline; text-underline-offset:3px; }
@media(max-width:760px) { .event-feature { grid-template-columns:1fr; gap:1.5rem; padding:1.25rem; width:calc(100% - 2rem); } .event-feature .btn { white-space:normal; text-align:center; } }
