/*
  TSAEW public site stylesheet
  ------------------------------------------------------------
  Scope: one-page public site plus shared button/form utilities used by
  the officer dashboard. Keep dashboard-only layout overrides in
  css/dashboard.css.
*/

/* 01. Design tokens */
:root {
  color-scheme: light;
  --ink: #081522;
  --ink-soft: #183451;
  --muted: #5d6b7b;
  --muted-strong: #41566d;
  --line: rgba(22, 52, 87, 0.13);
  --line-strong: rgba(15, 108, 200, 0.24);
  --paper: #ffffff;
  --paper-soft: rgba(255, 255, 255, 0.82);
  --mist: #f3f8ff;
  --mist-2: #eaf4ff;
  --blue: #0f6cc8;
  --blue-2: #1f8af0;
  --blue-dark: #0a3e7d;
  --gold: #f7c628;
  --gold-soft: #fff4c9;
  --gold-ink: #8a6800;
  --red: #c9222a;
  --red-dark: #8f1620;
  --warning: #7a5a00;
  --danger: #b3261e;
  --shadow-sm: 0 10px 28px rgba(16, 40, 76, 0.08);
  --shadow: 0 24px 70px rgba(16, 40, 76, 0.15);
  --shadow-lg: 0 34px 90px rgba(16, 40, 76, 0.19);
  --radius-sm: 18px;
  --radius: 28px;
  --radius-lg: 38px;
  --container: min(1220px, calc(100% - 44px));
  --ease: cubic-bezier(.2, .8, .2, 1);
  --focus: 0 0 0 4px rgba(15, 108, 200, 0.16);
}

/* 02. Base and accessibility */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 108, 200, 0.10), transparent 32rem),
    radial-gradient(circle at 86% 8%, rgba(247, 198, 40, 0.18), transparent 26rem),
    linear-gradient(180deg, #fbfdff 0%, #f7fbff 42%, #ffffff 100%);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15,108,200,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,108,200,.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.64), transparent 74%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 0; box-shadow: var(--focus); }
::selection { background: rgba(247, 198, 40, .45); color: var(--ink); }

.skip-link {
  position: fixed;
  left: 16px;
  top: -90px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
  transition: top .22s var(--ease);
}
.skip-link:focus { top: 16px; }

.container { width: var(--container); margin-inline: auto; }
.section { position: relative; padding: clamp(72px, 8vw, 108px) 0; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 10.8ch;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 5.75vw, 6.45rem);
  line-height: .93;
  letter-spacing: -.058em;
  word-spacing: .045em;
  text-wrap: balance;
}
h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 3.8vw, 4.1rem);
  line-height: .98;
  letter-spacing: -.055em;
}
h3 { margin-bottom: 10px; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.02em; }

.hero-lede,
.section-copy p,
.section-header p,
.event-panel p,
.contact-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow span {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

/* 03. Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(24, 53, 88, .08);
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: rgba(24, 53, 88, .12);
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 34px rgba(16, 40, 76, 0.10);
}
.header-inner { position: relative; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.brand span { display: grid; min-width: 0; line-height: 1.15; }
.brand strong { letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: .82rem; }
.site-nav { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.site-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 10px 13px;
  border-radius: 999px;
  color: #27415f;
  font-size: .92rem;
  white-space: nowrap;
  font-weight: 800;
  transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="true"] {
  background: rgba(15,108,200,.09);
  color: var(--blue-dark);
}
.site-nav a:hover { transform: translateY(-1px); }
.dashboard-nav { border: 1px solid rgba(15,108,200,.22); background: rgba(15,108,200,.06); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(16, 40, 76, .06);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 04. Hero, atmospheric blueprint background, and map */
.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  padding-top: clamp(54px, 6vw, 82px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,.95), transparent 28rem),
    radial-gradient(circle at 72% 12%, rgba(15,108,200,.10), transparent 34rem),
    radial-gradient(circle at 86% 72%, rgba(247,198,40,.12), transparent 30rem),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 42%, #edf6ff 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Very light drafting grid and diagonal infrastructure accents. */
.hero::before {
  z-index: 0;
  opacity: .60;
  background-image:
    linear-gradient(rgba(15,108,200,.048) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,108,200,.048) 1px, transparent 1px),
    linear-gradient(122deg, transparent 0 48%, rgba(15,108,200,.055) 48.08% 48.22%, transparent 48.35% 100%);
  background-size: 48px 48px, 48px 48px, 280px 280px;
  background-position: center top, center top, 8% 4%;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.82), rgba(0,0,0,.54) 62%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.82), rgba(0,0,0,.54) 62%, transparent 100%);
}

/* Soft TSAEW blue/gold energy glows without creating a second Texas silhouette. */
.hero::after {
  z-index: 0;
  opacity: .78;
  background:
    radial-gradient(circle at 20% 72%, rgba(247,198,40,.16), transparent 19rem),
    radial-gradient(circle at 68% 26%, rgba(15,108,200,.15), transparent 29rem),
    radial-gradient(circle at 98% 40%, rgba(31,138,240,.10), transparent 20rem);
  filter: blur(.2px);
  animation: heroAuraDrift 28s var(--ease) infinite alternate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blueprint {
  position: absolute;
  top: -4%;
  bottom: -6%;
  left: -6%;
  width: 112%;
  height: 112%;
  opacity: .62;
  mix-blend-mode: multiply;
}

.hero-transmission-lines path,
.hero-energy-run {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-transmission-lines path {
  stroke: rgba(15,108,200,.18);
  stroke-width: 1.1;
  stroke-dasharray: 2 15;
}

.hero-transmission-lines path:nth-child(2n) { stroke: rgba(247,198,40,.17); }
.hero-transmission-lines path:nth-child(3n) { stroke: rgba(10,62,125,.12); }

.hero-energy-run {
  stroke-width: 2.35;
  stroke-dasharray: 68 760;
  stroke-dashoffset: 0;
  opacity: .23;
  animation: heroEnergyFlow 34s linear infinite;
}

.hero-energy-blue { stroke: url(#heroBlueTrace); }
.hero-energy-gold { stroke: url(#heroGoldTrace); animation-delay: -11s; animation-duration: 42s; }
.hero-energy-run-alt { animation-delay: -21s; animation-duration: 48s; opacity: .16; }

.hero-node {
  fill: #fff;
  stroke-width: 1.55;
  opacity: .44;
  transform-box: fill-box;
  transform-origin: center;
  animation: heroNodePulse 9s ease-in-out infinite;
}

.hero-node-blue { stroke: rgba(15,108,200,.58); filter: drop-shadow(0 0 8px rgba(15,108,200,.22)); }
.hero-node-gold { stroke: rgba(247,198,40,.74); filter: drop-shadow(0 0 8px rgba(247,198,40,.24)); }
.hero-blueprint-nodes .hero-node:nth-child(2n) { animation-delay: -2.8s; }
.hero-blueprint-nodes .hero-node:nth-child(3n) { animation-delay: -5.6s; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .93fr 1.07fr; gap: clamp(34px, 5vw, 58px); align-items: center; }
.hero-copy { min-width: 0; }
.hero-copy h1 { text-shadow: 0 10px 30px rgba(255,255,255,.72); }
.hero-copy h1 .city-pair { white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 24px; }
.signal-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.signal-chip {
  --chip-accent: var(--blue);
  --chip-bg: rgba(255,255,255,.76);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(15,108,200,.14);
  border-color: color-mix(in srgb, var(--chip-accent) 22%, transparent);
  border-radius: 999px;
  background: var(--chip-bg);
  color: #23415f;
  font-size: .88rem;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(16, 40, 76, .06);
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.signal-chip:nth-child(1) { --chip-accent: var(--blue); --chip-bg: rgba(255,255,255,.78); }
.signal-chip:nth-child(2) { --chip-accent: var(--gold-ink); --chip-bg: rgba(255,248,219,.82); }
.signal-chip:nth-child(3) { --chip-accent: var(--red); --chip-bg: rgba(255,255,255,.78); }
.signal-chip:nth-child(4) { --chip-accent: var(--blue-dark); --chip-bg: rgba(239,247,255,.84); }
.signal-chip:hover,
.signal-chip:focus-visible {
  color: var(--ink);
  transform: translateY(-2px);
  border-color: rgba(15,108,200,.28);
  border-color: color-mix(in srgb, var(--chip-accent) 42%, transparent);
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 40, 76, .10);
}
.chip-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--chip-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 950;
  text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
.btn:hover,
.btn:focus-visible { transform: translateY(-2px); }
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #114eb1 72%, var(--blue-dark));
  box-shadow: 0 14px 30px rgba(15, 108, 200, .28);
}
.btn.primary:hover,
.btn.primary:focus-visible { box-shadow: 0 18px 38px rgba(15, 108, 200, .36); }
.btn.secondary {
  color: var(--blue-dark);
  border-color: rgba(15,108,200,.18);
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 28px rgba(16, 40, 76, .08);
}
.btn.secondary:hover,
.btn.secondary:focus-visible { border-color: rgba(15,108,200,.32); background: #fff; }
.btn.full { width: 100%; border: 0; }
.btn:disabled { opacity: .62; cursor: not-allowed; transform: none; }

#map-card,
#education,
#safety-coordination,
#legislative-support,
#events,
#contact-form { scroll-margin-top: 104px; }

.map-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15,108,200,.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,252,255,.90));
  box-shadow: var(--shadow-lg);
  padding: clamp(18px, 2.6vw, 28px);
  isolation: isolate;
}
.map-shell::before,
.map-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.map-shell::before {
  inset: -2px;
  background:
    radial-gradient(circle at 68% 18%, rgba(247,198,40,.24), transparent 25rem),
    radial-gradient(circle at 32% 72%, rgba(15,108,200,.17), transparent 22rem);
}
.map-shell::after {
  width: 36rem;
  height: 36rem;
  right: -20rem;
  top: -18rem;
  border-radius: 50%;
  border: 1px solid rgba(15,108,200,.12);
  background: conic-gradient(from 0deg, rgba(15,108,200,.08), rgba(247,198,40,.16), rgba(201,34,42,.08), rgba(15,108,200,.08));
  animation: slowSpin 28s linear infinite;
  opacity: .9;
}
.map-card-top,
.map-wrap,
.active-local { position: relative; z-index: 1; }
.map-shell:focus-visible,
.feature-card:focus-visible,
.committee-card:focus-visible,
.event-panel:focus-visible,
.contact-form:focus-visible,
.section:focus-visible { outline: 0; box-shadow: var(--focus), var(--shadow-sm); }
.map-shell.is-spotlit,
.feature-card.is-spotlit,
.committee-card.is-spotlit,
.event-panel.is-spotlit,
.contact-form.is-spotlit,
.section.is-spotlit {
  border-color: rgba(247,198,40,.58);
  animation: targetSpotlight 1.35s ease-out;
}
.map-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.card-kicker { margin: 0 0 2px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 950; font-size: .74rem; }
.map-card-top h2 { margin: 0; font-size: clamp(1.35rem, 2vw, 2.1rem); letter-spacing: -.035em; }
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15,108,200,.08);
  color: var(--blue-dark);
  font-size: .82rem;
  font-weight: 950;
}
.live-indicator i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(247,198,40,.45);
  animation: livePulse 1.8s infinite;
}
.map-wrap { min-height: 520px; display: grid; place-items: center; }
.texas-map { width: 100%; height: auto; filter: drop-shadow(0 22px 28px rgba(20, 47, 78, .12)); }
.map-grid path { fill: none; stroke: rgba(15,108,200,.12); stroke-width: 1.2; stroke-dasharray: 6 10; animation: dashMove 18s linear infinite; }
.texas-outline { fill: url(#txGradient); stroke: rgba(17, 61, 105, .66); stroke-width: 2.7; filter: url(#softGlow); }
.network-line { stroke-linecap: round; stroke-dasharray: 8 10; animation: dashMove 12s linear infinite; }
.network-line.primary { stroke: rgba(15,108,200,.48); stroke-width: 2.25; }
.network-line.secondary { stroke: rgba(201,34,42,.27); stroke-width: 1.8; }
.city-node { cursor: pointer; outline: none; }
.node-halo {
  fill: rgba(247,198,40,.25);
  stroke: rgba(247,198,40,.62);
  stroke-width: 1;
  transform-origin: center;
  animation: nodePulse 2.5s ease-in-out infinite;
}
.nodes .city-node:nth-child(2n) .node-halo { animation-delay: .22s; }
.nodes .city-node:nth-child(3n) .node-halo { animation-delay: .48s; }
.node-core {
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 0 10px rgba(15,108,200,.55));
  transition: fill .2s var(--ease), r .2s var(--ease), filter .2s var(--ease);
}
.city-node:hover .node-core,
.city-node:focus-visible .node-core,
.city-node.is-active .node-core { fill: var(--red); r: 9; filter: drop-shadow(0 0 16px rgba(201,34,42,.55)); }
.city-node:hover .node-halo,
.city-node:focus-visible .node-halo,
.city-node.is-active .node-halo { fill: rgba(201,34,42,.14); stroke: rgba(201,34,42,.48); }
.pin-label {
  fill: #183a5f;
  font-size: 18px;
  font-weight: 950;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.city-node:hover .pin-label,
.city-node:focus-visible .pin-label,
.city-node.is-active .pin-label { opacity: 1; transform: translateY(0); }
.map-tooltip {
  position: absolute;
  left: 22px;
  bottom: 22px;
  min-width: 245px;
  max-width: 320px;
  padding: 14px 16px;
  border: 1px solid rgba(15,108,200,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 36px rgba(16,40,76,.13);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.map-tooltip strong,
.map-tooltip span { display: block; }
.map-tooltip strong { font-size: .98rem; }
.map-tooltip span { margin-top: 2px; color: var(--muted); font-size: .9rem; }
.active-local {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid rgba(15,108,200,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
}
.active-local p { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }
.pulse-dot { width: 12px; height: 12px; flex: 0 0 auto; margin-top: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 8px rgba(247,198,40,.16); }
.mini-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--blue-dark);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 3px;
}


.hero.is-offscreen .hero-energy-run,
.hero.is-offscreen .hero-node,
.hero.is-offscreen::after,
.hero.is-offscreen .map-grid path,
.hero.is-offscreen .network-line,
.hero.is-offscreen .node-halo,
.hero.is-offscreen .live-indicator i,
.hero.is-offscreen .map-shell::after { animation-play-state: paused; }

/* 05. Content sections and cards */
.split-grid,
.contact-grid,
.event-panel { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }
.split-grid { grid-template-columns: .8fr 1fr; }
.contact-grid { grid-template-columns: .82fr 1fr; }
.purpose-cards,
.committee-grid,
.announcement-grid,
.leader-grid { display: grid; gap: 18px; }
.purpose-cards,
.committee-grid,
.announcement-grid,
.leader-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card,
.committee-card,
.contact-card,
.contact-form,
.announcement-card,
.leader-card,
.timeline-item,
.event-panel {
  border: 1px solid rgba(15,108,200,.12);
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow-sm);
}
.feature-card,
.committee-card,
.announcement-card,
.leader-card {
  min-height: 245px;
  border-radius: 30px;
  padding: 28px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
.feature-card:hover,
.committee-card:hover,
.announcement-card:hover,
.leader-card:hover {
  transform: translateY(-5px);
  border-color: rgba(15,108,200,.20);
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 58px rgba(16,40,76,.13);
}
.feature-card p,
.committee-card p,
.announcement-card p,
.leader-card p,
.leader-card small { color: var(--muted); }
.feature-card p,
.committee-card p { margin: 0; }
.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 17px;
  background: linear-gradient(135deg, #eef6ff, var(--gold-soft));
  color: var(--blue-dark);
  font-weight: 950;
}
.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.education { background: linear-gradient(180deg, rgba(248,252,255,0), rgba(239,247,255,.72) 48%, rgba(248,252,255,0)); }
.section-header { max-width: 760px; margin-bottom: 32px; }
.committee-card { position: relative; overflow: hidden; }
.committee-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -84px;
  top: -84px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,108,200,.12), transparent 66%);
}
.bolt-mark {
  width: 44px;
  height: 44px;
  margin-bottom: 38px;
  background: var(--gold);
  clip-path: polygon(54% 0, 13% 56%, 46% 56%, 33% 100%, 88% 39%, 55% 39%);
  filter: drop-shadow(0 8px 14px rgba(247,198,40,.32));
}

.announcements-section { padding-top: 72px; background: linear-gradient(180deg, rgba(239,247,255,.62), rgba(255,255,255,0)); }
.announcement-panel {
  border: 1px solid rgba(15,108,200,.12);
  border-radius: 36px;
  padding: clamp(26px, 4vw, 46px);
  background: rgba(255,255,255,.78);
  box-shadow: 0 20px 60px rgba(16,40,76,.08);
}
.section-header.compact { margin-bottom: 20px; }
.announcement-card b,
.leader-card span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue-dark);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.announcement-card h3,
.leader-card h3 { margin: 14px 0 8px; }
.announcement-card time { display: block; margin-bottom: 10px; color: var(--muted); font-size: .9rem; font-weight: 850; }
.leader-card small { display: block; margin-top: 12px; line-height: 1.55; }

/* 06. Events */
.event-panel {
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  border-radius: 36px;
  padding: clamp(30px, 5vw, 58px);
  background:
    radial-gradient(circle at 100% 0%, rgba(247,198,40,.18), transparent 22rem),
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(245,250,255,.92));
}
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.timeline-item {
  position: relative;
  min-height: 138px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
}
.timeline-item::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--red));
  transform-origin: left;
  animation: loadLine 3.5s ease-in-out infinite;
}
.timeline-item b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #eef6ff;
  color: var(--blue-dark);
}
.timeline-item span { display: block; font-weight: 950; line-height: 1.2; }
.event-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.event-meta span { border: 1px solid rgba(15,108,200,.12); background: rgba(255,255,255,.75); border-radius: 18px; padding: 14px; }
.event-meta strong { display: block; color: var(--blue-dark); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.event-meta em { display: block; margin-top: 5px; color: var(--ink); font-style: normal; font-weight: 850; }

/* 07. Contact */
.contact-card { border-radius: 24px; padding: 22px; margin-top: 28px; }
.contact-card p { margin-bottom: 0; font-size: .98rem; }
.contact-form {
  display: grid;
  gap: 16px;
  border-radius: 34px;
  padding: clamp(22px, 4vw, 36px);
  background:
    radial-gradient(circle at 100% 0%, rgba(15,108,200,.08), transparent 16rem),
    rgba(255,255,255,.88);
}
.contact-form label { display: grid; gap: 8px; color: #244765; font-weight: 900; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(15,108,200,.17);
  border-radius: 17px;
  padding: 13px 14px;
  background: #fbfdff;
  color: var(--ink);
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(15,108,200,.55);
  box-shadow: var(--focus);
  background: #fff;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.form-note { margin: 0; color: var(--muted); font-size: .9rem; }
.form-note[data-tone="ok"] { color: var(--blue-dark); font-weight: 850; }
.form-note[data-tone="bad"] { color: var(--danger); font-weight: 850; }
.form-note[data-tone="warn"] { color: var(--warning); font-weight: 850; }
.form-note[data-tone="working"] { color: var(--blue-dark); font-weight: 850; }
.encrypted-download { margin-top: -8px; }
.contact-form button:disabled { opacity: .65; cursor: wait; }

/* 08. Footer */
.site-footer {
  padding: 38px 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(15,108,200,.24), transparent 26rem),
    linear-gradient(180deg, #081522, #07131f);
  color: #fff;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand img { width: 48px; height: 48px; }
.footer-brand small,
.site-footer p { color: rgba(255,255,255,.72); }
.site-footer p { margin: 0; text-align: right; }
.footer-copy {
  display: grid;
  gap: 8px;
  justify-items: end;
}
.footer-credit {
  color: #fff;
  font-weight: 950;
  text-decoration: underline;
  text-decoration-color: rgba(247,198,40,.72);
  text-underline-offset: 4px;
}
.footer-credit:hover,
.footer-credit:focus-visible { color: var(--gold); }



/* 08a. Back-to-top control */
.back-to-top {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 54px;
  min-height: 54px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(15,108,200,.22);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(15,108,200,.96), rgba(10,62,125,.98));
  box-shadow: 0 18px 44px rgba(10,62,125,.24), 0 0 0 1px rgba(255,255,255,.52) inset;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(.96);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.back-to-top[hidden] { display: inline-flex !important; }
.show-back-to-top .back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}
.back-to-top.is-at-top {
  opacity: 0;
  transform: translateY(14px) scale(.96);
  visibility: hidden;
  pointer-events: none;
}
.back-to-top-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--blue-dark);
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(247,198,40,.18);
}
.back-to-top-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.back-to-top-label {
  padding-right: 2px;
  font-size: .9rem;
  font-weight: 950;
  letter-spacing: .01em;
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: linear-gradient(135deg, rgba(31,138,240,.98), rgba(10,62,125,1));
  box-shadow: 0 22px 54px rgba(10,62,125,.30), 0 0 0 1px rgba(255,255,255,.66) inset;
  transform: translateY(-2px) scale(1.01);
}
.back-to-top:focus-visible {
  box-shadow: var(--focus), 0 22px 54px rgba(10,62,125,.30), 0 0 0 1px rgba(255,255,255,.66) inset;
}
.back-to-top:active { transform: translateY(0) scale(.98); }

/* 09. Motion */
.reveal,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible,
.reveal-stagger > *.is-visible { opacity: 1; transform: none; }
.reveal-stagger > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger > *:nth-child(6) { transition-delay: .40s; }


@keyframes heroEnergyFlow { to { stroke-dashoffset: -828; } }
@keyframes heroNodePulse {
  0%, 100% { opacity: .28; transform: scale(.82); }
  50% { opacity: .68; transform: scale(1.24); }
}
@keyframes heroAuraDrift {
  from { transform: translate3d(-10px, 4px, 0) scale(1); }
  to { transform: translate3d(18px, -10px, 0) scale(1.03); }
}

@keyframes livePulse {
  70% { box-shadow: 0 0 0 12px rgba(247,198,40,0); }
  100% { box-shadow: 0 0 0 0 rgba(247,198,40,0); }
}
@keyframes nodePulse {
  0%, 100% { transform: scale(.72); opacity: .72; }
  50% { transform: scale(1.16); opacity: .34; }
}
@keyframes dashMove { to { stroke-dashoffset: -180; } }
@keyframes loadLine {
  0%, 100% { transform: scaleX(.24); opacity: .55; }
  50% { transform: scaleX(1); opacity: 1; }
}
@keyframes slowSpin { to { transform: rotate(1turn); } }
@keyframes targetSpotlight {
  0% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(247,198,40,.0); transform: translateY(0); }
  28% { box-shadow: var(--shadow-lg), 0 0 0 8px rgba(247,198,40,.24); transform: translateY(-2px); }
  100% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(247,198,40,0); transform: translateY(0); }
}

/* 10. Responsive layout */
@media (max-width: 1180px) {
  .site-nav { gap: 4px; }
  .site-nav a { padding-inline: 10px; font-size: .89rem; }
}

@media (max-width: 1060px) {
  .header-inner { min-height: 74px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: min(360px, calc(100vw - 32px));
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.97);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-12px) scale(.98);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { width: 100%; padding: 12px 14px; font-size: .96rem; }
}

@media (max-width: 1080px) {
  .hero-grid,
  .split-grid,
  .contact-grid,
  .event-panel { grid-template-columns: 1fr; }
  h1 { max-width: 12ch; }
  .hero-copy { max-width: 780px; }
  .purpose-cards,
  .committee-grid,
  .announcement-grid,
  .leader-grid,
  .event-meta { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .map-wrap { min-height: 460px; }
}

@media (max-width: 820px) {
  :root { --container: min(100% - 30px, 1220px); }
  html { scroll-padding-top: 78px; }
  .section { padding: 72px 0; }
  .header-inner { min-height: 70px; }
  .brand img { width: 46px; height: 46px; }
  .brand small { display: none; }
  .site-nav { width: min(420px, calc(100vw - 30px)); }
  .hero { min-height: auto; padding-top: 52px; }
  .hero-blueprint { left: -22%; width: 148%; opacity: .58; }
  .hero::before { background-size: 42px 42px, 42px 42px, 230px 230px; opacity: .56; }
  .hero-grid { gap: 32px; }
  h1 { max-width: 11.6ch; font-size: clamp(2.85rem, 14vw, 4.6rem); line-height: .96; letter-spacing: -.048em; word-spacing: .035em; }
  h2 { font-size: clamp(2rem, 10vw, 3.25rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .map-shell { border-radius: 28px; }
  .map-card-top { align-items: flex-start; }
  .live-indicator { display: none; }
  .map-wrap { min-height: 360px; }
  .pin-label { font-size: 22px; opacity: 0; }
  .city-node:hover .pin-label,
  .city-node:focus-visible .pin-label,
  .city-node.is-active .pin-label { opacity: 1; transform: translateY(0); }
  .map-tooltip { position: static; width: 100%; max-width: none; margin-top: 10px; }
  .purpose-cards,
  .committee-grid,
  .announcement-grid,
  .leader-grid,
  .timeline,
  .event-meta { grid-template-columns: 1fr; }
  .feature-card,
  .committee-card,
  .announcement-card,
  .leader-card { min-height: auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { justify-items: start; }
  .site-footer p { text-align: left; }
  .back-to-top { right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 560px) {
  :root { --container: min(100% - 24px, 1220px); }
  .brand strong { max-width: 9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero-lede,
  .section-copy p,
  .section-header p,
  .event-panel p,
  .contact-copy p { font-size: 1rem; }
  .hero-blueprint { left: -44%; width: 188%; opacity: .44; }
  .hero::after { opacity: .62; }
  .signal-chip { flex: 1 1 calc(50% - 10px); justify-content: center; text-align: center; }
  .map-shell { padding: 14px; }
  .map-wrap { min-height: 300px; }
  .texas-map { width: 112%; max-width: none; }
  .active-local { padding: 14px; }
  .feature-card,
  .committee-card,
  .announcement-card,
  .leader-card,
  .contact-form,
  .event-panel { border-radius: 24px; }
  .back-to-top { width: 52px; min-width: 52px; min-height: 52px; padding: 9px; }
  .back-to-top-label { display: none; }
  .back-to-top-icon { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .hero::after,
  .hero-energy-run,
  .hero-node { animation: none !important; }
  .reveal,
  .reveal-stagger > * { opacity: 1; transform: none; }
}

/* 11. Privacy and error-state additions */
.privacy-section {
  padding-top: clamp(42px, 6vw, 72px);
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(239,247,255,.56));
}
.privacy-panel {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
  border: 1px solid rgba(15,108,200,.12);
  border-radius: 34px;
  padding: clamp(26px, 5vw, 46px);
  background:
    radial-gradient(circle at 100% 0%, rgba(15,108,200,.08), transparent 18rem),
    rgba(255,255,255,.86);
  box-shadow: var(--shadow-sm);
}
.privacy-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}
.privacy-copy p {
  margin-bottom: 14px;
  color: var(--muted);
}
.privacy-copy p:last-child { margin-bottom: 0; }
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 44px 0;
}
.error-card {
  width: var(--container);
  max-width: 760px;
  border: 1px solid rgba(15,108,200,.12);
  border-radius: 34px;
  padding: clamp(28px, 6vw, 58px);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
}
.error-card img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 24px; }
.error-card h1 { max-width: 100%; font-size: clamp(2.4rem, 8vw, 4.8rem); }
.error-card p { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 820px) {
  .privacy-panel { grid-template-columns: 1fr; }
}

/* Dashboard-managed item images ----------------------------------------- */
.leader-card.has-image,
.announcement-card.has-image {
  padding-top: 18px;
}
.leader-card-media,
.announcement-card-media {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid rgba(15,108,200,.12);
  border-radius: 22px;
  background: linear-gradient(135deg, #eef6ff, #fff7d6);
}
.leader-card-media {
  width: 104px;
  height: 104px;
  border-radius: 50%;
}
.announcement-card-media {
  aspect-ratio: 16 / 10;
}
.leader-card-media img,
.announcement-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.leader-card-media.is-image-missing,
.announcement-card-media.is-image-missing {
  display: grid;
  place-items: center;
}
.content-image-fallback {
  padding: 12px;
  color: var(--muted-strong);
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}
.leader-card.has-image h3,
.announcement-card.has-image h3 {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .leader-card-media { width: 88px; height: 88px; }
  .announcement-card-media { aspect-ratio: 16 / 11; }
}

/* Dashboard-managed content hydration safety.
   Cards inserted after the initial reveal observer should remain visible. */
.announcement-grid.is-content-hydrated > *,
.leader-grid.is-content-hydrated > * {
  opacity: 1;
  transform: none;
}
