/* ============================================================
   CENTEX RAC — Main Stylesheet
   Last updated: March 2026
   ============================================================ */

/* --- FONTS (loaded via <link> in HTML <head>) --- */

/* --- RESET & VARIABLES --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Colors */
  --navy:        #132039;
  --navy-mid:    #1B2A4A;
  --navy-light:  #2D4263;
  --red:         #C2272D;
  --red-dark:    #9B1F24;
  --red-glow:    rgba(194, 39, 45, 0.12);
  --slate:       #475569;
  --slate-mid:   #64748B;
  --slate-light: #94A3B8;
  --surface:     #F7F9FC;
  --surface-alt: #EEF2F7;
  --white:       #FFFFFF;
  --border:      #E2E8F0;
  --border-light:#F1F5F9;

  /* Fonts */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Outfit', 'Segoe UI', sans-serif;

  /* Radius */
  --radius:    14px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  /* Shadows */
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);

  /* Z-index scale */
  --z-content: 2;
  --z-tooltip: 10;
  --z-popup: 20;
  --z-sticky: 999;
  --z-nav: 1000;

  /* Transitions */
  --ease: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--navy-mid);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); }


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 16px rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Brand / Logo */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-brand:hover .logo-mark { transform: scale(1.08); }
.logo-mark { transition: transform var(--ease); }
.logo-mark img { display: block; width: 40px; height: 40px; object-fit: contain; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-sub {
  display: block;
  font-size: 10.5px;
  color: var(--slate-mid);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: -1px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  border-radius: var(--radius-sm);
  transition: var(--ease);
}
.nav-link:hover {
  color: var(--red);
  background: var(--red-glow);
}
.nav-link.active {
  color: var(--red);
  font-weight: 600;
  background: var(--red-glow);
}
.nav-phone {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  padding: 8px 20px;
  border: 1.5px solid var(--navy);
  background: var(--navy);
  border-radius: 999px;
  margin-left: 10px;
  transition: var(--ease);
}
.nav-phone:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: #fff;
}
.nav-link-portal {
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  padding: 8px 20px;
  background: var(--red);
  border-radius: 999px;
  margin-left: 4px;
  transition: var(--ease);
}
.nav-link-portal:hover {
  background: var(--red-dark) !important;
  color: #fff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  width: 44px;
  height: 44px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  margin: 5px auto;
  transition: var(--ease);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 20px 20px;
  gap: 2px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--slate);
  border-radius: var(--radius-sm);
  transition: var(--ease);
}
.mobile-menu a:hover { background: var(--surface); }
.mobile-menu a.active { color: var(--red); font-weight: 600; background: var(--red-glow); }
.mobile-menu .mobile-phone {
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-menu .mobile-phone svg { flex-shrink: 0; }

@media (max-width: 960px) {
  .nav-links { display: none !important; }
  .hamburger { display: block !important; }
  /* .mobile-menu.open uses max-height animation instead of display toggle */
}


/* ============================================================
   HERO (Home Page)
   ============================================================ */
.hero {
  position: relative;
  padding: 140px 28px 80px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(155deg, #070e1a 0%, var(--navy) 35%, var(--navy-mid) 60%, var(--navy-light) 100%);
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  top: -300px; right: -250px;
  background: radial-gradient(circle, rgba(194,39,45,0.12) 0%, transparent 65%);
  animation: glow-pulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glow-pulse {
  0%   { opacity: 0.35; transform: scale(1); }
  100% { opacity: 0.6;  transform: scale(1.15); }
}
.hero-content {
  position: relative;
  max-width: 820px;
  z-index: 2;
}

/* Hero Logo Background */
.hero-logo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}
.hero-logo-bg img {
  width: 560px;
  height: 560px;
  object-fit: contain;
  opacity: 0.09;
  filter: grayscale(0.2) brightness(1.6);
  user-select: none;
  -webkit-user-drag: none;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px var(--red);
  display: inline-block;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse { 0%,100% { opacity:1; } 50% { opacity:0.35; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.8vw, 68px);
  color: #fff;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.hero-accent { color: var(--red); }
.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 36px;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Stats Bar */
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 72px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  overflow: hidden;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 40px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  color: #fff;
}
.stat-label {
  font-size: 11px;
  color: var(--slate-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 5px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .stat-divider { display: none; }
  .stat { padding: 20px 24px; flex: 1 1 45%; min-width: 140px; }
}


/* ============================================================
   PAGE HERO (Interior pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 140px 28px 72px;
  text-align: center;
  overflow: hidden;
}
/* Reuses .hero-bg, .hero-grid-overlay, .hero-glow */
.page-hero-content { position: relative; z-index: 2; }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.page-hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 300;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background-color var(--ease), color var(--ease);
  text-decoration: none;
  line-height: 1.3;
}
.btn-accent {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(194,39,45,0.25);
}
.btn-accent:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(194,39,45,0.3);
}
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}
.btn-outline:hover {
  background: var(--red-glow);
}


/* ============================================================
   LAYOUT — Sections & Containers
   ============================================================ */
.section         { padding: 100px 28px; }
.section-alt     { background: var(--surface); }
.section-dark    {
  background: linear-gradient(155deg, #070e1a, var(--navy), var(--navy-mid));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 64px 64px;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.container-narrow { max-width: 800px; margin: 0 auto; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 800px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
}


/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head        { margin-bottom: 44px; text-align: center; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 14px;
}
.section-tag::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 2.5px;
  background: var(--red);
  border-radius: 2px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.section-title.light { color: #fff; }
.section-subtitle {
  font-size: 16px;
  color: var(--slate-mid);
  margin-top: 16px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  font-weight: 400;
}
.section-subtitle.light { color: var(--slate-light); }


/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.body-text {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: 16px;
}
.body-text-lg {
  font-size: 18px;
  max-width: 800px;
  line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
}


/* ============================================================
   AVATAR PLACEHOLDERS
   ============================================================ */
.avatar {
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  flex-shrink: 0;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 20px rgba(19,32,57,0.25);
}
.avatar-sm  { width: 52px;  height: 52px;  font-size: 18px; }
.avatar-md  { width: 72px;  height: 72px;  font-size: 24px; }
.avatar-lg  { width: 100px; height: 100px; font-size: 34px; }


/* ============================================================
   CARDS — General patterns
   ============================================================ */

/* --- County Card (Home) --- */
.county-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
  transition: all var(--ease);
}
.county-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.county-card-icon { margin-bottom: 8px; color: var(--red); }
.county-card-title { font-family: var(--font-display); font-size: 22px; color: var(--navy); }
.county-card-sub { font-size: 14px; color: var(--slate-mid); margin: 4px 0 20px; }
.county-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.county-chip {
  padding: 14px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  transition: all var(--ease);
}
.county-chip:hover {
  border-color: var(--red);
  background: var(--red-glow);
  color: var(--red);
  transform: translateY(-2px);
}
.counties-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.county-large {
  background: var(--navy);
  color: #fff;
  padding: 24px 40px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  transition: all var(--ease);
  box-shadow: var(--shadow-sm);
}
.county-large:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); background: var(--navy-mid); }


/* --- PHWB Video Cards --- */
.phwb-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.phwb-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.phwb-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 40px 36px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  min-width: 260px;
  transition: all var(--ease);
  color: #fff;
}
.phwb-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(194,39,45,0.12);
}
.phwb-play {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--red);
  transition: all var(--ease);
}
.phwb-card:hover .phwb-play { background: var(--red); color: #fff; transform: scale(1.1); }
.phwb-label { font-weight: 600; font-size: 17px; text-align: center; }
.phwb-cta { font-size: 13px; color: var(--red); font-weight: 600; }


/* --- Document Links --- */
.docs-col { display: flex; flex-direction: column; gap: 12px; }
.doc-link {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  transition: all var(--ease);
}
.doc-link:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateX(6px); }
.doc-link-icon {
  color: var(--red);
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-glow);
  border-radius: var(--radius-xs);
}
.doc-link-text { flex: 1; }
.doc-link-arrow { color: var(--slate-light); transition: transform var(--ease); }
.doc-link:hover .doc-link-arrow { transform: translateX(4px); color: var(--red); }


/* --- Mission Cards --- */
.mission-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin-top: 48px; }
.mission-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid transparent;
  transition: all var(--ease);
  width: calc(33.333% - 16px);
  min-width: 280px;
}
.mission-card:hover { border-color: var(--border); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.mission-icon { margin-bottom: 18px; color: var(--red); }
.mission-card-title { font-family: var(--font-display); font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.mission-card-desc { font-size: 15px; color: var(--slate-mid); line-height: 1.6; }


/* --- Purpose Cards (grid) --- */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.purpose-card {
  position: relative;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--ease);
  overflow: hidden;
}
.purpose-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.purpose-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--red);
  opacity: 0;
  transition: opacity var(--ease);
}
.purpose-card:hover::before { opacity: 1; }
.purpose-card-num {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--red);
  opacity: 0.12;
  font-style: italic;
  position: absolute;
  top: 10px; right: 16px;
  user-select: none;
}
.purpose-card-text {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.6;
}
@media (max-width: 900px) { .purpose-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .purpose-grid { grid-template-columns: 1fr; } }


/* --- Staff Cards --- */
.staff-grid { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.staff-card {
  flex: 1 1 300px;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 44px 32px;
  text-align: center;
  transition: all var(--ease);
}
.staff-card:hover { border-color: var(--border); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.staff-name { font-family: var(--font-display); font-size: 24px; color: var(--navy); margin-top: 22px; }
.staff-role {
  font-size: 12px; font-weight: 700; color: var(--red);
  margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; display: block;
}
.staff-bio { font-size: 14px; color: var(--slate-mid); margin-top: 16px; line-height: 1.65; }


/* --- Board --- */
.board-docs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; justify-content: center; }
.board-doc-chip {
  font-size: 13px; color: var(--red); font-weight: 600;
  padding: 12px 20px; background: var(--white);
  border: 1px solid var(--border); border-radius: 999px;
  transition: all var(--ease);
}
.board-doc-chip:hover { background: var(--red-glow); border-color: var(--red); }

.board-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.board-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--ease);
  width: calc(50% - 7px);
  min-width: 300px;
}
.board-card:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.board-info { display: flex; flex-direction: column; min-width: 0; }
.board-role { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); }
.board-name { font-size: 16px; font-weight: 600; color: var(--navy); margin-top: 3px; }
.board-org  { font-size: 13px; color: var(--slate-mid); margin-top: 2px; line-height: 1.4; }
.board-exp  { font-size: 12px; color: var(--slate-light); margin-top: 3px; }

@media (max-width: 700px) {
  .board-card { width: 100%; min-width: unset; }
}


/* --- Committee Cards --- */
.committee-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.committee-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background-color var(--ease), color var(--ease);
  position: relative;
  overflow: hidden;
  width: calc(33.333% - 14px);
  min-width: 300px;
  display: flex;
  flex-direction: column;
}
.committee-card:hover { border-color: var(--red); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.committee-header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.committee-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border-radius: var(--radius-sm);
  flex-shrink: 0; transition: all var(--ease);
  color: var(--red);
}
.committee-card:hover .committee-icon { background: var(--red-glow); }
.committee-name { font-family: var(--font-display); font-size: 19px; color: var(--navy); }
.committee-desc { font-size: 14px; color: var(--slate-mid); line-height: 1.6; flex: 1; }
.committee-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.committee-card:hover .committee-bar { transform: scaleX(1); }

@media (max-width: 1000px) { .committee-card { width: calc(50% - 10px); } }
@media (max-width: 660px)  { .committee-card { width: 100%; min-width: unset; } }

.archive-note {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 40px; padding: 22px 28px;
  background: var(--red-glow); border-radius: var(--radius);
  font-size: 14px; color: var(--slate);
  border: 1px solid rgba(194,39,45,0.12);
}


/* --- Benefit Cards --- */
.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.benefit-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background-color var(--ease), color var(--ease);
  position: relative;
  overflow: hidden;
  width: calc(33.333% - 11px);
  min-width: 280px;
  display: flex;
  flex-direction: column;
}
.benefit-card:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.benefit-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background: var(--red);
  opacity: 0; transition: opacity var(--ease);
}
.benefit-card:hover::before { opacity: 1; }
.benefit-num {
  font-family: var(--font-display); font-size: 36px;
  color: var(--red-glow); position: absolute; top: 12px; right: 16px;
  opacity: 0.5; user-select: none; font-style: italic;
}
.benefit-title { font-family: var(--font-display); font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.benefit-desc  { font-size: 14px; color: var(--slate-mid); line-height: 1.55; flex: 1; }

@media (max-width: 900px) { .benefit-card { width: calc(50% - 8px); } }
@media (max-width: 600px) { .benefit-card { width: 100%; min-width: unset; } }


/* --- Category Cards --- */
.cat-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 36px; }
.cat-card {
  display: flex; align-items: center; gap: 16px;
  padding: 24px 28px; background: var(--white);
  border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 16px; font-weight: 600; color: var(--navy);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background-color var(--ease), color var(--ease);
  width: calc(50% - 8px); min-width: 240px;
}
.cat-card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-num { font-family: var(--font-display); font-size: 28px; color: var(--red); opacity: 0.35; }
@media (max-width: 520px) {
  .cat-card { width: 100%; min-width: unset; }
}

.fee-box {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}


/* --- Training Cards --- */
.training-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 8px;
}
.training-card {
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--ease);
  width: calc(33.333% - 16px);
  min-width: 280px;
  display: flex;
  flex-direction: column;
}
.training-card:hover { border-color: var(--red); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.training-icon  { margin-bottom: 16px; color: var(--red); }
.training-title { font-family: var(--font-display); font-size: 24px; color: var(--navy); margin-bottom: 8px; }
.training-desc  { font-size: 14px; color: var(--slate-mid); line-height: 1.65; flex: 1; }
.training-links { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-light); }
.training-link {
  font-size: 14px; color: var(--red); font-weight: 600;
  transition: all var(--ease); padding: 4px 0; display: inline-block;
}
.training-link:hover { color: var(--red-dark); transform: translateX(6px); }

/* --- Featured Training Card --- */
.featured-training {
  display: flex; gap: 32px; padding: 40px 36px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: all var(--ease);
}
.featured-training:hover { border-color: var(--red); box-shadow: var(--shadow-lg); }
.featured-training-badge {
  display: flex; align-items: flex-start; justify-content: center;
  min-width: 80px; height: 80px; padding: 16px;
  background: var(--red-glow); border-radius: 16px; color: var(--red); flex-shrink: 0;
}
.featured-training-body { flex: 1; }
.featured-training-title { font-family: var(--font-display); font-size: 28px; color: var(--navy); margin: 8px 0 12px; }
.featured-training-desc { font-size: 15px; color: var(--slate-mid); line-height: 1.7; margin-bottom: 20px; }
.featured-training-links { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-sm { font-size: 13px; padding: 8px 18px; }
@media (max-width: 700px) {
  .featured-training { flex-direction: column; gap: 20px; padding: 28px 24px; }
  .featured-training-badge { width: 64px; height: 64px; padding: 12px; }
}

/* --- Calendar Grid --- */
/* Upcoming Events List */
.upcoming-list { display: flex; flex-direction: column; gap: 14px; max-width: 780px; margin: 0 auto 32px; }
.upcoming-item {
  display: flex; gap: 20px; padding: 20px 24px; align-items: center;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer; text-decoration: none; color: inherit;
}
.upcoming-item:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.upcoming-date-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; padding: 10px 8px; background: var(--navy); border-radius: 10px;
  color: #fff; text-align: center; flex-shrink: 0;
}
.upcoming-date-month { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.8; }
.upcoming-date-day { font-family: var(--font-display); font-size: 24px; line-height: 1.1; margin-top: 2px; }
.upcoming-body { flex: 1; min-width: 0; }
.upcoming-title { font-family: var(--font-display); font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.upcoming-meta { font-size: 13px; color: var(--slate-mid); display: flex; flex-wrap: wrap; gap: 12px; }
.upcoming-meta span { display: inline-flex; align-items: center; gap: 4px; }
.upcoming-meta svg { width: 14px; height: 14px; color: var(--red); flex-shrink: 0; }
.upcoming-arrow { color: var(--slate-light); flex-shrink: 0; transition: transform 0.2s ease, color 0.2s ease; }
.upcoming-item:hover .upcoming-arrow { color: var(--red); transform: translateX(4px); }
.upcoming-empty { text-align: center; padding: 24px; color: var(--slate-mid); font-size: 14px; }
@media (max-width: 600px) {
  .upcoming-item { flex-direction: column; gap: 12px; align-items: flex-start; }
  .upcoming-date-badge { flex-direction: row; gap: 8px; padding: 6px 14px; }
  .upcoming-date-day { font-size: 18px; margin-top: 0; }
}

.cal-wrapper {
  max-width: 780px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: visible;
}
.cal-header { border-radius: var(--radius) var(--radius) 0 0; }
.cal-header {
  padding: 16px 28px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
}
.cal-month-title { font-family: var(--font-display); font-size: 22px; margin: 0; }
.cal-nav-btn {
  background: none; border: 1px solid rgba(255,255,255,0.25); color: #fff;
  width: 38px; height: 38px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cal-nav-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--border);
}
.cal-day-label {
  padding: 12px 8px; text-align: center;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--slate-mid); background: var(--surface); border-bottom: 1px solid var(--border);
}
.cal-cell {
  position: relative; min-height: 64px; padding: 8px;
  border-bottom: 1px solid var(--border-light); border-right: 1px solid var(--border-light);
  transition: background 0.2s ease;
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-empty { background: var(--surface); }
.cal-num { font-size: 14px; font-weight: 500; color: var(--navy); }
.cal-today .cal-num { background: var(--navy); color: #fff; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.cal-has-event { cursor: pointer; }
.cal-has-event:hover { background: var(--red-glow); }
.cal-dot {
  display: block; width: 7px; height: 7px;
  background: var(--red); border-radius: 50%; margin-top: 6px;
}
.cal-event-card {
  display: none; position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%); z-index: var(--z-popup);
  background: var(--navy); color: #fff; padding: 14px 18px;
  border-radius: 10px; box-shadow: 0 8px 24px rgba(19,32,57,0.35);
  min-width: 230px; max-width: 260px; text-align: left;
  flex-direction: column; gap: 4px; white-space: normal;
}
.cal-event-card::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); border: 6px solid transparent;
  border-top-color: var(--navy);
}
/* Keep card in view for cells near right edge */
.cal-cell:nth-child(7n) .cal-event-card,
.cal-cell:nth-child(7n-1) .cal-event-card { left: auto; right: 0; transform: none; }
.cal-cell:nth-child(7n) .cal-event-card::after,
.cal-cell:nth-child(7n-1) .cal-event-card::after { left: auto; right: 16px; transform: none; }
/* Keep card in view for cells near left edge */
.cal-cell:nth-child(7n+8) .cal-event-card,
.cal-cell:nth-child(7n+9) .cal-event-card { left: 0; transform: none; }
.cal-cell:nth-child(7n+8) .cal-event-card::after,
.cal-cell:nth-child(7n+9) .cal-event-card::after { left: 16px; transform: none; }
.cal-event-card strong { font-family: var(--font-display); font-size: 15px; display: block; margin-bottom: 4px; }
.cal-event-card span { font-size: 12px; opacity: 0.8; display: block; line-height: 1.5; }
.cal-has-event:hover .cal-event-card { display: flex; }
.cal-event-card .cal-event-link { font-size: 11px; font-weight: 600; color: var(--red); opacity: 1; margin-top: 4px; letter-spacing: 0.03em; }
.cal-event-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 3px; margin-bottom: 4px; }
.cal-event-tag-training { background: rgba(76,175,130,0.2); color: #4CAF82; }
.cal-event-tag-community { background: rgba(91,143,204,0.2); color: #5B8FCC; }
.cal-note { font-size: 13px; color: var(--slate-light); padding: 16px 28px; text-align: center; border-top: 1px solid var(--border-light); }

@media (max-width: 600px) {
  .cal-cell { min-height: 48px; padding: 6px 4px; }
  .cal-num { font-size: 12px; }
  .cal-event-card { min-width: 180px; left: 0; transform: none; }
}

/* --- Logo Ticker --- */
.ticker-section { overflow: hidden; }
.ticker-wrap {
  width: 100%; overflow: hidden; position: relative;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.ticker-track {
  display: flex; align-items: center; gap: 16px;
  width: max-content;
  animation: ticker-scroll 80s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-logo-box {
  width: 120px; height: 80px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.ticker-logo {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.ticker-logo-box:hover .ticker-logo {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.12);
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .ticker-logo-box { width: 90px; height: 60px; padding: 6px; }
  .ticker-track { gap: 12px; }
}

/* --- Resource Cards --- */
.resource-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.resource-card {
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--ease);
  width: calc(33.333% - 16px);
  min-width: 280px;
  display: flex;
  flex-direction: column;
}
.resource-card:hover { border-color: var(--red); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.resource-icon  { margin-bottom: 14px; color: var(--red); }
.resource-title { font-family: var(--font-display); font-size: 24px; color: var(--navy); margin-bottom: 8px; }
.resource-desc  { font-size: 14px; color: var(--slate-mid); line-height: 1.65; flex: 1; }
.resource-tips  { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.resource-tip {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: 999px; padding: 6px 16px;
  font-size: 12px; font-weight: 500; color: var(--slate);
}
.resource-links { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-light); }

.coming-soon {
  margin-top: 32px; padding: 22px 28px;
  background: var(--red-glow);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 16px;
  font-size: 15px; color: var(--slate);
}
.coming-soon-badge {
  background: var(--red); color: #fff;
  padding: 5px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; white-space: nowrap;
}


/* --- Contact — Split Layout --- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  gap: 40px;
  align-items: start;
}
.contact-primary {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--ease);
}
.contact-row:first-child { padding-top: 0; }
.contact-row:last-child  { border-bottom: none; }
.contact-row:hover { padding-left: 8px; }
.contact-row-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: all var(--ease);
  color: var(--red);
}
.contact-row:hover .contact-row-icon {
  background: var(--red-glow);
  border-color: rgba(194,39,45,0.2);
}
.contact-row-body { min-width: 0; }
.contact-row-label {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 4px;
}
.contact-row-value {
  font-size: 16px;
  color: var(--red);
  font-weight: 500;
  line-height: 1.5;
  display: block;
  word-break: break-word;
}

.contact-sidebar {
  position: sticky;
  top: 100px;
}
.contact-sidebar-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
}
.contact-sidebar-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
}
.contact-sidebar-text {
  font-size: 15px;
  color: var(--slate-mid);
  line-height: 1.6;
}

@media (max-width: 800px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-sidebar { position: static; }
}


/* --- RAC Map --- */
.rac-map-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  max-width: 720px; margin: 0 auto;
}
.rac-map-container {
  position: relative; width: 100%;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
#texas-rac-map { display: block; width: 100%; height: auto; filter: url(#map-shadow); }
.tsa-region {
  stroke: rgba(255,255,255,0.5); stroke-width: 1;
  cursor: pointer; transition: opacity 0.25s ease, stroke-width 0.2s ease;
}
.tsa-region:hover { opacity: 0.8; stroke: #fff; stroke-width: 2.5; }
.tsa-region.tsa-home { fill: var(--red) !important; }
.tsa-region.tsa-home:hover { opacity: 0.85; }
/* Color-code each TSA region */
#tsa-a { fill: #8B7EC8; } #tsa-b { fill: #9B8ED8; } #tsa-c { fill: #7B6EB8; }
#tsa-d { fill: #A89EDC; } #tsa-e { fill: #8878C0; }
#tsa-f { fill: #D4789B; } #tsa-g { fill: #C4688B; }
#tsa-h { fill: #E488AB; } #tsa-r { fill: #E498B5; }
#tsa-i { fill: #D4A843; } #tsa-j { fill: #C49833; } #tsa-k { fill: #DAB853; }
#tsa-m { fill: #4CAF82; } #tsa-n { fill: #3C9F72; } #tsa-o { fill: #5CBF92; }
#tsa-q { fill: #6CCF9A; }
#tsa-p { fill: #5B8FCC; } #tsa-s { fill: #7BAFDC; } #tsa-t { fill: #4B7FBC; }
#tsa-u { fill: #6B9FCC; } #tsa-v { fill: #8BBFEC; }
.tsa-labels text { opacity: 1; }

.rac-tooltip {
  position: absolute; pointer-events: none; z-index: var(--z-tooltip);
  background: var(--navy); color: #fff; padding: 12px 16px;
  border-radius: 8px; box-shadow: 0 8px 24px rgba(19,32,57,0.3);
  flex-direction: column; gap: 2px;
  min-width: 180px; transform: translate(-50%, -110%);
  display: none; opacity: 0;
}
.rac-tooltip.visible { display: flex; opacity: 1; }
.rac-tooltip::after {
  content: ''; position: absolute; bottom: -6px; left: 50%;
  transform: translateX(-50%); width: 12px; height: 12px;
  background: var(--navy); border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
}
.rac-tooltip-tsa { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); opacity: 0.9; }
.rac-tooltip-name { font-family: var(--font-display); font-size: 16px; }
.rac-tooltip-counties { font-size: 12px; opacity: 0.7; margin-top: 2px; }

@media (max-width: 600px) {
  .rac-map-container { padding: 16px; }
  .tsa-labels text { font-size: 11px; }
}

/* --- Event Detail Pages --- */
.event-breadcrumb { padding: 100px 28px 0; background: var(--surface); }
.breadcrumb-link {
  font-size: 14px; font-weight: 500; color: var(--red);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color 0.2s ease;
}
.breadcrumb-link:hover { color: var(--red-dark); }
.event-detail-section { padding-top: 40px; background: var(--surface); }
.event-detail-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start;
}
.event-detail-badges { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.event-type-badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: 6px;
}
.event-type-training { background: rgba(76,175,130,0.15); color: #2d8a5e; }
.event-type-community { background: rgba(91,143,204,0.15); color: #4070a0; }
.event-type-free { background: rgba(194,39,45,0.1); color: var(--red); }
.event-type-limited { background: rgba(212,168,67,0.15); color: #9a7b20; }
.event-detail-title { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); color: var(--navy); margin-bottom: 4px; }
.event-detail-tagline { font-size: 17px; color: var(--slate-mid); margin-bottom: 28px; }
.event-detail-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 36px; padding: 24px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.event-meta-item { display: flex; gap: 12px; align-items: flex-start; }
.event-meta-icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--red-glow); border-radius: 10px; color: var(--red); flex-shrink: 0;
}
.event-meta-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-light); display: block; }
.event-meta-value { font-size: 15px; font-weight: 500; color: var(--navy); display: block; margin-top: 2px; line-height: 1.45; }
.event-detail-description { margin-bottom: 28px; }
.event-detail-description h2 { font-family: var(--font-display); font-size: 24px; color: var(--navy); margin-bottom: 12px; }
.event-detail-description h3 { font-family: var(--font-display); font-size: 18px; color: var(--navy); margin: 20px 0 8px; }
.event-detail-description p { font-size: 15px; color: var(--slate); line-height: 1.7; margin-bottom: 12px; }
.event-detail-description ul { margin: 12px 0 16px 20px; }
.event-detail-description li { font-size: 15px; color: var(--slate); line-height: 1.7; margin-bottom: 6px; }
.event-detail-description a:not(.btn) { color: var(--red); font-weight: 500; }
.event-detail-description a:not(.btn):hover { color: var(--red-dark); }
.event-detail-partners {
  padding: 20px 24px; background: var(--surface-alt); border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.event-detail-partners p { font-size: 14px; color: var(--slate-mid); margin: 6px 0 0; }
.event-detail-flyer { position: sticky; top: 100px; }
.event-flyer-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.event-flyer-img {
  width: 100%; height: auto; border-radius: 8px; display: block;
}
.event-flyer-pdf {
  width: 100%; height: 480px; border-radius: 8px; display: block;
  border: 1px solid var(--border); background: var(--surface);
}
@media (max-width: 860px) {
  .event-flyer-pdf { height: 380px; }
}
@media (max-width: 860px) {
  .event-detail-layout { grid-template-columns: 1fr; }
  .event-detail-flyer { position: static; order: -1; max-width: 400px; }
  .event-detail-meta-grid { grid-template-columns: 1fr; }
}

/* --- Member Portal --- */
.portal-login { display: flex; justify-content: center; padding: 20px 0 40px; transition: opacity 0.4s ease; }
.portal-login[hidden] { display: none !important; }
#portal-content[hidden] { display: none !important; }
.portal-login-card {
  max-width: 480px; width: 100%; text-align: center;
  padding: 48px 40px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.portal-lock-icon { color: var(--red); margin-bottom: 20px; }
.portal-login-title { font-family: var(--font-display); font-size: 28px; color: var(--navy); margin-bottom: 10px; }
.portal-login-desc { font-size: 14px; color: var(--slate-mid); line-height: 1.65; margin-bottom: 28px; }
.portal-form { width: 100%; }
.portal-input-wrap { display: flex; flex-direction: column; gap: 12px; }
.portal-input {
  width: 100%; padding: 14px 18px; font-family: var(--font-body); font-size: 15px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--navy); outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.portal-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
.portal-submit { width: 100%; justify-content: center; }
.portal-error { color: var(--red); font-size: 13px; margin-top: 12px; font-weight: 500; }

.portal-content { animation: portalFadeIn 0.6s ease; }
@keyframes portalFadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.portal-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px; margin-top: 8px;
}
.portal-category {
  padding: 32px 28px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background-color var(--ease), color var(--ease);
}
.portal-category:hover { border-color: var(--red); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.portal-category-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light); color: var(--red);
}
.portal-category-header h3 { font-family: var(--font-display); font-size: 22px; color: var(--navy); }
.portal-doc-list { display: flex; flex-direction: column; gap: 8px; }
.portal-doc-link {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--navy); font-weight: 500;
  transition: all var(--ease); text-decoration: none;
}
.portal-doc-link:hover { background: var(--surface); color: var(--red); transform: translateX(4px); }
.portal-doc-link svg { flex-shrink: 0; color: var(--slate-light); }
.portal-doc-link:hover svg { color: var(--red); }
.portal-doc-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; letter-spacing: 0.05em;
  background: var(--red-glow); color: var(--red); flex-shrink: 0;
}
.portal-coming-soon { font-size: 14px; color: var(--slate-mid); line-height: 1.65; display: flex; align-items: center; gap: 10px; }
.portal-auth-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; margin-bottom: 32px;
  background: linear-gradient(135deg, #065f46, #047857); color: #fff;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
}
.portal-auth-banner svg { flex-shrink: 0; }
.portal-logout-link {
  margin-left: auto; background: none; border: 1px solid rgba(255,255,255,0.3);
  color: #fff; padding: 5px 14px; border-radius: 6px; font-size: 12px;
  font-family: var(--font-body); font-weight: 600; cursor: pointer;
  transition: all 0.2s ease;
}
.portal-logout-link:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.5); }

@media (max-width: 600px) {
  .portal-login-card { padding: 36px 24px; }
  .portal-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  padding: 56px 28px 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { display: block; width: 36px; height: 36px; object-fit: contain; }
.footer-name { font-family: var(--font-display); font-size: 18px; color: #fff; }
.footer-sub  { font-size: 10px; color: var(--slate-light); letter-spacing: 0.08em; text-transform: uppercase; margin-top: -1px; }
.footer-nav  { display: flex; gap: 4px; flex-wrap: wrap; }
.footer-link {
  color: var(--slate-light); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-xs);
  transition: all var(--ease);
}
.footer-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.footer-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 28px 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.footer-contact { font-size: 13px; color: var(--slate-light); line-height: 1.7; display: flex; flex-direction: column; gap: 2px; }
.footer-contact a { color: var(--slate-light); transition: color var(--ease); }
.footer-contact a:hover { color: #fff; }
.footer-copy    { font-size: 13px; color: var(--slate); font-weight: 500; }


/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }


/* ============================================================
   FOCUS STYLES (Accessibility)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}
.btn:focus-visible,
.nav-link:focus-visible,
.nav-phone:focus-visible,
.footer-link:focus-visible,
.board-doc-chip:focus-visible,
.doc-link:focus-visible,
.phwb-card:focus-visible,
.hamburger:focus-visible,
.training-link:focus-visible,
.portal-doc-link:focus-visible,
.cal-has-event:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}


/* ============================================================
   HAMBURGER X ANIMATION
   ============================================================ */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================================
   NAV SCROLL EFFECT
   ============================================================ */
.nav {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav-inner {
  transition: height 0.3s ease;
}
.nav-scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.nav-scrolled .nav-inner {
  height: 64px;
}


/* ============================================================
   BOARD ACCORDION
   ============================================================ */
.board-accordion {
  margin-bottom: 12px;
}
.board-group-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 20px;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  user-select: none;
  transition: color var(--ease);
}
.board-group-title:hover {
  color: var(--red);
}
.board-group-title .chevron-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--ease);
  flex-shrink: 0;
}
.board-accordion.open .board-group-title .chevron-icon {
  transform: rotate(180deg);
}
.board-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.board-accordion.open .board-accordion-body {
  max-height: 2000px;
}


/* ============================================================
   CTA BAND (Homepage pre-footer)
   ============================================================ */
.cta-band {
  text-align: center;
}
.cta-band .section-title.light {
  margin-bottom: 12px;
}
.cta-band-sub {
  font-size: 17px;
  color: var(--slate-light);
  margin-bottom: 32px;
  font-weight: 300;
  line-height: 1.6;
}
.cta-band-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   PHWB METRICS SHOWCASE
   ============================================================ */
.phwb-metrics {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding: 40px 0;
}
.phwb-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
}
.phwb-metric-num {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 56px);
  color: #fff;
  line-height: 1;
}
.phwb-metric-label {
  font-size: 12px;
  color: var(--slate-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 10px;
}
.phwb-metric-suffix {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  color: var(--red);
}
@media (max-width: 600px) {
  .phwb-metrics { gap: 32px; }
  .phwb-metric { min-width: 120px; }
}


/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(194,39,45,0.3);
  z-index: var(--z-sticky);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(194,39,45,0.35);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}


/* ============================================================
   FOOTER — Non-Profit Line
   ============================================================ */
.footer-nonprofit {
  display: block;
  font-size: 12px;
  color: var(--slate);
  text-align: center;
  margin-top: 20px;
  letter-spacing: 0.02em;
}


/* ============================================================
   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; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}


/* ============================================================
   REPORT FORM
   ============================================================ */
.report-hero {
  padding: 110px 28px 40px; background: var(--navy);
  text-align: center; color: #fff;
}
.report-hero-inner { max-width: 600px; margin: 0 auto; }
.report-hero-icon { color: var(--red); margin-bottom: 16px; }
.report-hero-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); margin-bottom: 6px; }
.report-hero-sub { font-size: 15px; opacity: 0.7; }
.report-section { padding-top: 48px; padding-bottom: 80px; background: var(--surface); }
.report-form { max-width: 840px; margin: 0 auto; }
.form-fieldset {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px 28px; margin-bottom: 24px;
  background: var(--white); box-shadow: var(--shadow);
}
.form-legend {
  font-family: var(--font-display); font-size: 20px; color: var(--navy);
  display: flex; align-items: center; gap: 12px;
  padding: 0 8px; margin-bottom: 4px;
}
.form-legend-num {
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; border-radius: 50%;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.form-col-2 { grid-column: span 2; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--navy); }
.form-req { color: var(--red); }
.form-input, .form-select {
  padding: 12px 14px; font-family: var(--font-body); font-size: 15px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus, .form-select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow);
}
.form-select { cursor: pointer; appearance: auto; }
.form-submit-area { text-align: center; padding: 32px 0 0; }
.form-disclaimer { font-size: 12px; color: var(--slate-light); margin-bottom: 20px; }
.form-input-readonly { background: var(--surface); color: var(--slate-mid); cursor: not-allowed; }

/* Report selector page */
.report-selector {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 880px; margin: 0 auto 40px;
}
.report-card {
  display: flex; flex-direction: column;
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.report-card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: var(--shadow-lg); }
.report-card-icon {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-glow); color: var(--red);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.report-card-title { font-family: var(--font-display); font-size: 26px; color: var(--navy); margin-bottom: 10px; }
.report-card-desc { font-size: 14px; color: var(--slate-mid); line-height: 1.6; margin-bottom: 14px; flex: 1; }
.report-card-meta {
  font-size: 12px; font-weight: 600; color: var(--slate-light);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.report-card-cta {
  font-size: 14px; font-weight: 600; color: var(--red);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap 0.2s ease;
}
.report-card:hover .report-card-cta { gap: 10px; }
.report-help {
  max-width: 720px; margin: 48px auto 0;
  padding: 28px 32px;
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.report-help h3 { font-family: var(--font-display); font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.report-help h3:not(:first-child) { margin-top: 20px; }
.report-help p { font-size: 14px; color: var(--slate-mid); line-height: 1.65; }
.report-help a { color: var(--red); font-weight: 500; }
@media (max-width: 700px) {
  .report-selector { grid-template-columns: 1fr; }
  .report-card { padding: 28px 24px; }
}

/* Checkbox / radio groups — stack vertically with breathing room.
   When the parent has form-col-2 (full-width grid cell), use a 2-column
   grid for the options so they don't stack into a single tall list. */
.form-checkbox-group, .form-radio-group {
  display: flex; flex-direction: column; gap: 8px;
}
.form-col-2 .form-checkbox-group {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
@media (max-width: 600px) {
  .form-col-2 .form-checkbox-group { grid-template-columns: 1fr; }
}
.form-checkbox, .form-radio {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 14px; color: var(--slate);
}
.form-checkbox:hover, .form-radio:hover { border-color: var(--red); background: var(--red-glow); }
.form-checkbox input, .form-radio input { margin-top: 3px; flex-shrink: 0; cursor: pointer; accent-color: var(--red); }
.form-checkbox span, .form-radio span { line-height: 1.4; }
.form-hint { font-size: 12px; color: var(--slate-light); margin-top: 4px; }
.form-hint-inline { font-size: 11px; color: var(--slate-light); font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-submit-btn {
  font-size: 16px; padding: 16px 40px;
  display: inline-flex; align-items: center; gap: 10px;
}
.form-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.form-success { text-align: center; padding: 60px 20px; }
.form-success-inner {
  max-width: 440px; margin: 0 auto; padding: 48px 36px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.form-success-inner svg { color: #4CAF82; margin-bottom: 20px; }
.form-success-inner h2 { font-family: var(--font-display); font-size: 26px; color: var(--navy); margin-bottom: 10px; }
.form-success-inner p { font-size: 15px; color: var(--slate-mid); margin-bottom: 24px; }
.report-footer { padding: 24px 28px; text-align: center; background: var(--navy); }
.report-footer p { font-size: 12px; color: rgba(255,255,255,0.4); }
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-col-2 { grid-column: span 1; }
  .form-fieldset { padding: 24px 18px 20px; }
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-content { animation: portalFadeIn 0.6s ease; }
.dash-row-label {
  font-family: var(--font-display);
  font-size: 18px; color: var(--navy);
  margin: 8px 0 14px;
  letter-spacing: 0.01em;
}
.dash-row-label:not(:first-child) { margin-top: 32px; }
.dash-section { margin-bottom: 56px; }
.dash-section-head { margin-bottom: 24px; }
.dash-section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  color: var(--navy);
  margin-bottom: 8px;
}
.dash-section-sub {
  font-size: 15px; color: var(--slate-mid); line-height: 1.6;
  max-width: 700px;
}
.dash-cta {
  margin: 64px 0 24px;
  padding: 36px 32px;
  background: linear-gradient(135deg, var(--navy) 0%, #1B2A4A 100%);
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
}
.dash-cta-inner { max-width: 520px; margin: 0 auto; }
.dash-cta-title { font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; }
.dash-cta-text { font-size: 14px; color: rgba(255,255,255,0.78); margin-bottom: 20px; line-height: 1.6; }
.dash-kpi-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.dash-kpi {
  padding: 24px 20px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.dash-kpi:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dash-kpi-value { font-family: var(--font-display); font-size: 32px; color: var(--navy); display: block; }
.dash-kpi-label { font-size: 12px; font-weight: 600; color: var(--slate-mid); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; display: block; }
.dash-charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.dash-card {
  padding: 28px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dash-card-title { font-family: var(--font-display); font-size: 18px; color: var(--navy); margin-bottom: 20px; }
.dash-bar-chart { display: flex; flex-direction: column; gap: 14px; }
.dash-bar-item { display: grid; grid-template-columns: 90px 1fr 44px; gap: 10px; align-items: center; }
.dash-bar-label { font-size: 13px; font-weight: 500; color: var(--slate); }
.dash-bar-track { height: 24px; background: var(--surface); border-radius: 6px; overflow: hidden; }
.dash-bar-fill { height: 100%; background: var(--red); border-radius: 6px; transition: width 1s ease; }
.dash-bar-fill.dash-bar-blue { background: #5B8FCC; }
.dash-bar-fill.dash-bar-green { background: #4CAF82; }
.dash-bar-fill.dash-bar-gold { background: #D4A843; }
.dash-bar-value { font-size: 14px; font-weight: 600; color: var(--navy); text-align: right; }
.dash-donut-wrap { display: flex; align-items: center; gap: 24px; }
.dash-donut { width: 160px; height: 160px; flex-shrink: 0; }
.dash-donut-legend { display: flex; flex-direction: column; gap: 10px; }
.dash-legend-item { font-size: 13px; color: var(--slate); display: flex; align-items: center; gap: 8px; }
.dash-legend-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.dash-stat-row { display: flex; gap: 24px; }
.dash-stat-block { text-align: center; flex: 1; padding: 16px; background: var(--surface); border-radius: var(--radius-sm); }
.dash-stat-num { font-family: var(--font-display); font-size: 36px; color: var(--navy); display: block; }
.dash-stat-label { font-size: 12px; font-weight: 600; color: var(--slate-mid); text-transform: uppercase; margin-top: 2px; display: block; }
.dash-quick-links { padding: 28px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }
.dash-link-row { display: flex; flex-wrap: wrap; gap: 12px; }
.dash-quick-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px;
  font-size: 14px; font-weight: 500; color: var(--navy);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.dash-quick-link svg { color: var(--red); }
.dash-quick-link:hover { border-color: var(--red); color: var(--red); background: var(--red-glow); }
.dash-note { font-size: 12px; color: var(--slate-light); text-align: center; margin-top: 16px; }
@media (max-width: 768px) {
  .dash-charts-row { grid-template-columns: 1fr; }
  .dash-donut-wrap { flex-direction: column; }
  .dash-bar-item { grid-template-columns: 70px 1fr 36px; }
}

/* ============================================================
   404 / PAGE MOVED
   ============================================================ */
.notfound-section {
  min-height: calc(100vh - 72px);
  display: flex; align-items: center; justify-content: center;
  padding: 120px 28px 60px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%);
}
.notfound-card {
  max-width: 560px; width: 100%; text-align: center;
  padding: 56px 40px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.notfound-icon { color: var(--red); margin-bottom: 20px; display: flex; justify-content: center; }
.notfound-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red); padding: 4px 12px;
  background: var(--red-glow); border-radius: 999px; margin-bottom: 16px;
}
.notfound-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 38px); color: var(--navy); margin-bottom: 14px; }
.notfound-text { font-size: 15px; color: var(--slate-mid); line-height: 1.7; margin-bottom: 28px; }
.notfound-text #countdown { font-weight: 700; color: var(--red); }
.notfound-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.notfound-links { padding-top: 28px; border-top: 1px solid var(--border-light); }
.notfound-links-label { font-size: 13px; color: var(--slate-light); margin-bottom: 14px; }
.notfound-link-grid {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.notfound-link {
  padding: 8px 16px; font-size: 13px; font-weight: 500; color: var(--navy);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.notfound-link:hover { border-color: var(--red); color: var(--red); background: var(--red-glow); }
@media (max-width: 500px) {
  .notfound-card { padding: 40px 24px; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .nav, .mobile-menu, .back-to-top, .hero-glow, .hero-grid-overlay, .hamburger { display: none !important; }
  .hero, .page-hero, .section-dark, .cta-band { background: #fff !important; color: #000 !important; }
  .section-dark .section-title, .section-dark .body-text, .cta-band-sub { color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { font-size: 12pt; }
  .footer { background: #f7f9fc !important; }
  .footer-name, .footer-link, .footer-copy { color: #000 !important; }
}


/* ============================================================
   STROKE MODULE — Upload, Manual Form Extras, Dashboard
   ============================================================ */

/* ── Upload page form (slightly narrower than the manual form) ── */
.stroke-upload-form { max-width: 760px; }

/* ── Success-state CTA row (used by both stroke submit + upload) ── */
.form-success-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-success-actions .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .form-success-actions { flex-direction: column; align-items: stretch; }
  .form-success-actions .btn { justify-content: center; }
}

/* ── Upload dropzone (stroke-upload.html) ────────────────── */
.stroke-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--ease);
  color: var(--slate);
}
.stroke-dropzone:hover,
.stroke-dropzone:focus-visible {
  border-color: var(--red);
  background: #fff;
  outline: none;
}
.stroke-dropzone.dragging {
  border-color: var(--red);
  background: var(--red-glow);
  color: var(--red);
}
.stroke-dropzone svg { color: var(--slate-mid); margin-bottom: 14px; }
.stroke-dropzone.dragging svg { color: var(--red); }
.stroke-dropzone-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 6px;
}
.stroke-dropzone-sub {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 14px;
}
.stroke-dropzone-browse {
  background: none; border: none;
  color: var(--red); font-weight: 600;
  text-decoration: underline; cursor: pointer;
  font-size: inherit; font-family: inherit;
  padding: 0;
}
.stroke-dropzone-formats {
  font-size: 12px; color: var(--slate-light);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ── Preview after parse ────────────────────────────────── */
.stroke-preview { margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.stroke-preview-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.stroke-preview-file { font-weight: 600; color: var(--navy); margin-right: 10px; }
.stroke-preview-count { font-size: 13px; color: var(--slate); }
.stroke-preview-reset {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-xs);
  padding: 6px 12px; font-size: 12px; color: var(--slate); cursor: pointer;
  font-family: inherit; transition: var(--ease);
}
.stroke-preview-reset:hover { border-color: var(--red); color: var(--red); }
.stroke-preview-table-wrap { overflow-x: auto; max-height: 280px; }
.stroke-preview-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.stroke-preview-table th, .stroke-preview-table td {
  padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}
.stroke-preview-table th { background: var(--surface-alt); color: var(--navy); font-weight: 600; }
.stroke-preview-table td { color: var(--slate); }
.stroke-preview-more td { font-style: italic; color: var(--slate-light); text-align: center; }
.stroke-preview-warnings {
  padding: 12px 18px; background: #fff8e6; border-top: 1px solid #f2d680;
  font-size: 13px; color: #7a5a00;
}
.stroke-preview-warnings p { margin: 4px 0; }

/* ── Dashboard hero (compact, data-forward) ─────────────── */
.page-hero-compact { padding: 96px 28px 60px; }
.page-hero-compact .page-hero-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.page-hero-compact .page-hero-sub { font-size: 16px; }

/* ── Dashboard layout (stroke-dashboard.html) ───────────── */
.stroke-dash {
  padding: 40px 28px 80px;
  background: var(--surface);
  min-height: 60vh;
}
.stroke-dash-layout {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* Left filter panel */
.stroke-dash-filters {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overflow-x: hidden;
}
.stroke-dash-filter-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.stroke-dash-filter-head h3 {
  font-family: var(--font-display);
  font-size: 19px; color: var(--navy);
}
.stroke-dash-reset {
  background: none; border: none;
  font-size: 12px; color: var(--red);
  cursor: pointer; font-family: inherit; font-weight: 600;
  text-decoration: underline;
}
.stroke-dash-filter-group { margin-bottom: 22px; }
.stroke-dash-filter-label {
  display: block;
  font-size: 11px; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.stroke-dash-daterange {
  display: flex; flex-direction: column; gap: 8px;
}
.stroke-dash-daterange-field {
  display: flex; flex-direction: column; gap: 4px;
}
.stroke-dash-daterange-field span {
  font-size: 10px; font-weight: 600; color: var(--slate-mid);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.stroke-dash-daterange .form-input {
  padding: 7px 10px; font-size: 13px; width: 100%;
}
.stroke-dash-filter-list {
  display: flex; flex-direction: column; gap: 2px;
}
.stroke-dash-checkbox {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 5px 6px; border-radius: var(--radius-xs);
  font-size: 13px; color: var(--slate); cursor: pointer;
  transition: var(--ease);
  line-height: 1.35;
  min-width: 0;
}
.stroke-dash-checkbox:hover { background: var(--surface); color: var(--navy); }
.stroke-dash-checkbox input {
  accent-color: var(--red);
  margin-top: 2px;
  flex-shrink: 0;
}
.stroke-dash-checkbox span {
  flex: 1;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.stroke-dash-count {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 13px; color: var(--slate); font-weight: 600;
}

/* Main area */
.stroke-dash-main { min-width: 0; }
.stroke-dash-tabs {
  display: flex; gap: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  margin-bottom: 22px;
  overflow-x: auto;
}
.stroke-dash-tab {
  flex: 1;
  background: none; border: none;
  padding: 10px 16px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--slate);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}
.stroke-dash-tab:hover { color: var(--navy); background: var(--surface); }
.stroke-dash-tab.active { background: var(--navy); color: #fff; }

.stroke-dash-status {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--slate);
  font-size: 14px;
}
.stroke-dash-status-warning { background: #fff8e6; border-color: #f2d680; color: #7a5a00; }

.stroke-dash-note {
  background: #fff;
  border-left: 3px solid var(--red);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 14px; color: var(--slate);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}
.stroke-dash-note strong { color: var(--navy); }

.stroke-dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.stroke-dash-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}
.stroke-dash-card-wide { grid-column: 1 / -1; }
.stroke-dash-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 16px;
}
.stroke-dash-chart-wrap {
  position: relative;
  height: 300px;
}
.stroke-dash-card-wide .stroke-dash-chart-wrap { height: 360px; }

/* Mid-size: collapse 2-col → 1-col earlier so cards stay legible */
@media (max-width: 1180px) {
  .stroke-dash-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 980px) {
  .stroke-dash-layout { grid-template-columns: 1fr; }
  .stroke-dash-filters {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .stroke-dash-grid { grid-template-columns: 1fr; }
  .stroke-dash-card-wide { grid-column: auto; }
}
@media (max-width: 600px) {
  .stroke-dash { padding: 24px 18px 60px; }
  .stroke-dash-tabs { padding: 4px; }
  .stroke-dash-tab { padding: 8px 10px; font-size: 12px; }
}

