/* ==========================================
   Cancel Act 250 — Custom Styles
   ========================================== */

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

:root {
  --base: #0A0A0A;
  --elevated: #141414;
  --card: #1A1A1A;
  --warm: #E8E4DF;
  --muted: #6B6B6B;
  --green: #2E7D32;
  --green-light: #4CAF50;
  --green-dark: #1B5E20;
  --crisis: #E53935;
  --crisis-orange: #FF6D00;
}

/* scroll-behavior handled by JS for proper nav-height offset */

/* --- Password Gate --- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--base);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.gate.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gate-inner {
  text-align: center;
  max-width: 400px;
  padding: 2rem;
}
.gate-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: gateFadeUp 0.8s ease forwards;
}
.gate-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--warm);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: gateFadeUp 0.8s ease 0.15s forwards;
}
.gate-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: gateFadeUp 0.8s ease 0.3s forwards;
}
.gate-form {
  opacity: 0;
  animation: gateFadeUp 0.8s ease 0.45s forwards;
}
.gate-input {
  width: 100%;
  background: var(--elevated);
  border: 1px solid rgba(232, 228, 223, 0.08);
  border-radius: 10px;
  padding: 14px 20px;
  font-family: 'Space Mono', monospace;
  font-size: 0.95rem;
  letter-spacing: 4px;
  text-align: center;
  color: var(--warm);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.gate-input::placeholder {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
}
.gate-input:focus {
  border-color: rgba(46, 125, 50, 0.4);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.08);
}
.gate-input.shake {
  animation: gateShake 0.5s ease;
  border-color: rgba(229, 57, 53, 0.5);
}
.gate-error {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: var(--crisis);
  margin-top: 0.75rem;
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gate-error.visible {
  opacity: 1;
}

@keyframes gateFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

::selection {
  background: rgba(229, 57, 53, 0.3);
  color: var(--warm);
}

/* --- Noise Texture Overlay --- */
.noise-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Navigation --- */
#nav {
  background: transparent;
  backdrop-filter: none;
}

#nav.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 228, 223, 0.05);
}

#nav.scrolled .nav-link {
  opacity: 0.7;
}

/* --- Hero Section --- */
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(27, 94, 32, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 30% 80%, rgba(229, 57, 53, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, #0D120D 0%, var(--base) 100%);
  z-index: 0;
}

.mountain-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 250px;
  z-index: 1;
  opacity: 0.15;
}

.mountain-silhouette::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5%;
  right: -5%;
  height: 100%;
  background: var(--green-dark);
  clip-path: polygon(
    0% 100%,
    0% 75%,
    5% 55%,
    10% 65%,
    15% 40%,
    20% 50%,
    25% 30%,
    30% 45%,
    35% 25%,
    40% 38%,
    45% 20%,
    50% 35%,
    55% 18%,
    60% 30%,
    65% 22%,
    70% 42%,
    75% 28%,
    80% 50%,
    85% 35%,
    90% 55%,
    95% 45%,
    100% 65%,
    100% 100%
  );
}

.mountain-silhouette::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--base), transparent);
  z-index: 1;
}

/* Hero reveal — CSS-only animation, no JS dependency (fixes LCP) */
.hero-reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-reveal.hero-d1 { animation-delay: 0.1s; }
.hero-reveal.hero-d2 { animation-delay: 0.2s; }
.hero-reveal.hero-d3 { animation-delay: 0.3s; }
.hero-reveal.hero-d4 { animation-delay: 0.5s; }

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

/* Hero text gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--warm) 0%, var(--crisis) 50%, var(--crisis-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero stat cards */
.stat-card-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.stat-card-hero:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(229, 57, 53, 0.2);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-arrow {
  width: 20px;
  height: 30px;
  border: 2px solid rgba(232, 228, 223, 0.15);
  border-radius: 10px;
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: rgba(232, 228, 223, 0.3);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.3; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 0.8; }
}

/* --- Section Divider --- */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(232, 228, 223, 0.08), transparent);
}

/* --- Timeline --- */
.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -2.55rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

@media (min-width: 768px) {
  .timeline-dot {
    left: -3.55rem;
  }
}

/* --- Criteria Cards --- */
.criteria-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.875rem;
  color: rgba(232, 228, 223, 0.6);
  transition: all 0.3s ease;
}

.criteria-card:hover {
  border-color: rgba(46, 125, 50, 0.3);
  background: rgba(46, 125, 50, 0.05);
}

.criteria-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(46, 125, 50, 0.15);
  color: var(--green-light);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Process Fact Cards --- */
.process-fact-card {
  padding: 1.5rem;
  text-align: center;
  background: var(--elevated);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

/* --- Steelman Section --- */
.steelman-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(27, 94, 32, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, rgba(27, 94, 32, 0.03) 0%, var(--base) 50%);
  z-index: 0;
}

.steelman-card {
  padding: 2rem;
  background: rgba(27, 94, 32, 0.04);
  border: 1px solid rgba(46, 125, 50, 0.15);
  border-radius: 16px;
  transition: all 0.4s ease;
}

.steelman-card:hover {
  background: rgba(27, 94, 32, 0.07);
  border-color: rgba(46, 125, 50, 0.3);
  transform: translateY(-4px);
}

.steelman-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(46, 125, 50, 0.1);
  color: var(--green-light);
  margin-bottom: 1.25rem;
}

/* --- Transition Gradient --- */
.transition-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      var(--base) 0%,
      rgba(229, 57, 53, 0.03) 50%,
      var(--base) 100%
    );
  z-index: 0;
}

/* --- Crisis Cards --- */
.crisis-card {
  background: var(--elevated);
  border: 1px solid rgba(229, 57, 53, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.crisis-card:hover {
  border-color: rgba(229, 57, 53, 0.25);
}

.crisis-card-inner {
  padding: 1.5rem 2rem;
}

/* Bar fill animation */
.bar-fill {
  width: 0;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-fill.animated {
  width: var(--target-width);
}

/* --- Spiral Cards --- */
.spiral-card {
  padding: 1.5rem;
  background: var(--elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-align: center;
}

.spiral-card-highlight {
  border-color: rgba(229, 57, 53, 0.2);
  background: rgba(229, 57, 53, 0.04);
}

/* --- Homeless Cards --- */
.homeless-card {
  padding: 1.5rem;
  background: var(--elevated);
  border: 1px solid rgba(229, 57, 53, 0.08);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.homeless-card:hover {
  border-color: rgba(229, 57, 53, 0.2);
}

/* --- Irony Cards --- */
.irony-card {
  padding: 2rem 2.5rem;
}

.irony-1970 {
  background: rgba(27, 94, 32, 0.05);
  border: 1px solid rgba(46, 125, 50, 0.15);
  border-radius: 16px 16px 0 0;
}

.irony-2025 {
  background: rgba(229, 57, 53, 0.04);
  border: 1px solid rgba(229, 57, 53, 0.15);
  border-top: none;
  border-radius: 0 0 16px 16px;
}

@media (min-width: 768px) {
  .irony-1970 {
    border-radius: 16px 0 0 16px;
    border-right: none;
  }
  .irony-2025 {
    border-radius: 0 16px 16px 0;
    border-top: 1px solid rgba(229, 57, 53, 0.15);
    border-left: none;
  }
}

/* --- Process Cards --- */
.process-card {
  padding: 1.5rem;
  background: var(--elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-align: center;
}

/* --- Permit Timeline --- */
.permit-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.permit-step {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 639px) {
  .permit-step {
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
  }
  .permit-desc {
    grid-column: 1 / -1;
  }
}

.permit-bar {
  height: 24px;
  border-radius: 4px;
  width: var(--step-width);
  min-width: 20px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.permit-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: rgba(232, 228, 223, 0.5);
  white-space: nowrap;
}

.permit-desc {
  font-size: 0.8125rem;
  color: rgba(232, 228, 223, 0.55);
}

/* --- Example Cards --- */
.example-card {
  padding: 1.5rem 2rem;
  background: var(--elevated);
  border: 1px solid rgba(229, 57, 53, 0.1);
  border-radius: 12px;
}

/* --- Comparison Cards --- */
.compare-card {
  overflow: hidden;
}

.compare-vt {
  border: 1px solid rgba(229, 57, 53, 0.15);
  border-radius: 16px 16px 0 0;
}

.compare-nh {
  border: 1px solid rgba(46, 125, 50, 0.15);
  border-top: none;
  border-radius: 0 0 16px 16px;
}

@media (min-width: 768px) {
  .compare-vt {
    border-radius: 16px 0 0 16px;
    border-right: none;
  }
  .compare-nh {
    border-radius: 0 16px 16px 0;
    border-top: 1px solid rgba(46, 125, 50, 0.15);
    border-left: none;
  }
}

.compare-header {
  padding: 1rem 1.5rem;
}

.compare-body {
  padding: 0.5rem 0;
}

.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.compare-row:last-child {
  border-bottom: none;
}

/* --- Forward Section --- */
.forward-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(232, 228, 223, 0.02) 0%, transparent 70%);
  z-index: 0;
}

.forward-card {
  padding: 2rem;
  background: var(--elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.forward-card:hover {
  border-color: rgba(232, 228, 223, 0.12);
  transform: translateY(-2px);
}

.forward-card-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: rgba(232, 228, 223, 0.15);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

/* --- CTA Section --- */
.cta-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(229, 57, 53, 0.06) 0%, transparent 70%);
  z-index: 0;
}

.cta-button-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  background: var(--crisis);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button-primary:hover {
  background: #C62828;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(229, 57, 53, 0.3);
}

.cta-button-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--warm);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(232, 228, 223, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button-secondary:hover {
  background: rgba(232, 228, 223, 0.05);
  border-color: rgba(232, 228, 223, 0.4);
  transform: translateY(-2px);
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.reveal-up {
  transform: translateY(30px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.5s; }

/* ==========================================
   MOBILE MENU
   ========================================== */

#mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
#mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 1.5rem;
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */

@media (max-width: 640px) {
  .steelman-card {
    padding: 1.5rem;
  }

  .irony-card {
    padding: 1.5rem;
  }

  .crisis-card-inner {
    padding: 1.25rem 1.5rem;
  }
}

/* --- Smooth focus styles --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--crisis);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================
   CITATION TOOLTIP SYSTEM
   ========================================== */

/* Cited stat indicator */
[data-cite-source] {
  cursor: pointer;
  position: relative;
}

[data-cite-source]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  border-bottom: 1px dotted rgba(232, 228, 223, 0.15);
  pointer-events: none;
}

/* Small source dot indicator */
[data-cite-source] .cite-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(232, 228, 223, 0.2);
  margin-left: 6px;
  vertical-align: super;
  transition: background 0.2s ease;
}

[data-cite-source]:hover .cite-dot {
  background: var(--crisis);
}

/* Tooltip */
.cite-tooltip {
  position: fixed;
  z-index: 200;
  background: #1C1C1E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
  max-width: 320px;
  min-width: 200px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  font-family: 'Outfit', sans-serif;
}

.cite-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cite-tooltip-source {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(232, 228, 223, 0.9);
  margin-bottom: 2px;
  line-height: 1.3;
}

.cite-tooltip-detail {
  font-size: 0.6875rem;
  color: rgba(232, 228, 223, 0.4);
  line-height: 1.4;
  margin-bottom: 8px;
}

.cite-tooltip-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--crisis);
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.03em;
  transition: color 0.15s ease;
}

.cite-tooltip-link:hover {
  color: #FF6D00;
}

.cite-tooltip-link svg {
  width: 10px;
  height: 10px;
}

/* Mobile bottom-sheet tooltip */
@media (max-width: 768px) {
  .cite-tooltip {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    max-width: none;
    border-radius: 16px 16px 0 0;
    padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .cite-tooltip.visible {
    transform: translateY(0);
  }

  .cite-tooltip::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 auto 12px;
  }

  .cite-tooltip-source {
    font-size: 0.9375rem;
  }

  .cite-tooltip-detail {
    font-size: 0.8125rem;
    margin-bottom: 12px;
  }

  .cite-tooltip-link {
    font-size: 0.8125rem;
    padding: 8px 0;
  }
}

/* Backdrop for mobile tooltip */
.cite-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cite-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================
   LEGISLATOR FINDER
   ========================================== */

.finder-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.finder-input-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.finder-input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  background: var(--elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--warm);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.finder-input::placeholder {
  color: rgba(232, 228, 223, 0.25);
}

.finder-input:focus {
  border-color: var(--crisis);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

.finder-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(232, 228, 223, 0.3);
  pointer-events: none;
}

/* Autocomplete dropdown */
.finder-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1C1C1E;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 50;
  display: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.finder-dropdown.open {
  display: block;
}

.finder-dropdown-item {
  padding: 10px 16px;
  font-size: 0.9375rem;
  color: rgba(232, 228, 223, 0.7);
  cursor: pointer;
  transition: background 0.1s ease;
}

.finder-dropdown-item:first-child {
  border-radius: 12px 12px 0 0;
}

.finder-dropdown-item:last-child {
  border-radius: 0 0 12px 12px;
}

.finder-dropdown-item:hover,
.finder-dropdown-item.active {
  background: rgba(229, 57, 53, 0.1);
  color: var(--warm);
}

.finder-dropdown-item mark {
  background: none;
  color: var(--crisis);
  font-weight: 600;
}

/* Legislator result cards */
.finder-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.legislator-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.legislator-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.leg-chamber-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.leg-chamber-badge.house {
  background: rgba(229, 57, 53, 0.12);
  color: var(--crisis);
}

.leg-chamber-badge.senate {
  background: rgba(46, 125, 50, 0.12);
  color: var(--green-light);
}

.leg-info {
  flex: 1;
  min-width: 0;
}

.leg-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--warm);
  line-height: 1.3;
}

.leg-detail {
  font-size: 0.8125rem;
  color: rgba(232, 228, 223, 0.4);
  margin-top: 2px;
}

.leg-party {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
}

.leg-email-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.2);
  border-radius: 8px;
  color: var(--crisis);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.leg-email-btn:hover {
  background: rgba(229, 57, 53, 0.2);
  border-color: rgba(229, 57, 53, 0.4);
  transform: translateY(-1px);
}

.leg-email-btn.no-email {
  background: rgba(107, 107, 107, 0.1);
  border-color: rgba(107, 107, 107, 0.15);
  color: var(--muted);
  cursor: default;
  font-weight: 400;
  font-size: 0.7rem;
}
.leg-email-btn.no-email:hover {
  transform: none;
  background: rgba(107, 107, 107, 0.1);
  border-color: rgba(107, 107, 107, 0.15);
}

.finder-email-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  margin-top: 12px;
  background: var(--crisis);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.finder-email-all:hover {
  background: #C62828;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(229, 57, 53, 0.3);
}

.finder-fallback {
  text-align: center;
  margin-top: 12px;
  font-size: 0.8125rem;
  color: rgba(232, 228, 223, 0.3);
}

.finder-fallback a {
  color: rgba(232, 228, 223, 0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.finder-fallback a:hover {
  color: var(--warm);
}

/* Selected town display */
.finder-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(229, 57, 53, 0.06);
  border: 1px solid rgba(229, 57, 53, 0.15);
  border-radius: 10px;
  margin-bottom: 4px;
}

.finder-selected-town {
  font-weight: 600;
  color: var(--warm);
  font-size: 0.9375rem;
}

.finder-selected-clear {
  background: none;
  border: none;
  color: rgba(232, 228, 223, 0.4);
  cursor: pointer;
  padding: 4px;
  font-size: 0.75rem;
  font-family: 'Space Mono', monospace;
  transition: color 0.15s ease;
}

.finder-selected-clear:hover {
  color: var(--warm);
}

@media (max-width: 640px) {
  .legislator-card {
    flex-direction: column;
    gap: 10px;
  }

  .leg-email-btn {
    align-self: flex-start;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .bar-fill {
    transition: none !important;
  }
  .scroll-arrow::after {
    animation: none !important;
  }
  .gate-label,
  .gate-title,
  .gate-subtitle,
  .gate-form {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* --- Print styles --- */
@media print {
  body {
    background: white;
    color: black;
  }
  .noise-overlay,
  .hero-gradient,
  .mountain-silhouette,
  .steelman-bg,
  .transition-gradient,
  .forward-bg,
  .cta-gradient,
  #progress-bar,
  #nav {
    display: none;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
