/* ═══════════════════════════════════════════════════════════════════════
   YourWaterReport.com — Shared Design System
   ═══════════════════════════════════════════════════════════════════════ */

/* Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Design Tokens ────────────────────────────────────────────────────────── */
:root {
  --navy:       #0F172A;
  --navy-mid:   #1E293B;
  --navy-light: #334155;
  --teal:       #0284C7;
  --teal-dark:  #0369a1;
  --teal-light: #38BDF8;
  --teal-pale:  #E0F2FE;
  --gold:       #F59E0B;
  --white:      #FFFFFF;
  --off-white:  #F8FAFC;
  --text-light: #94A3B8;
  --text-mid:   #64748B;
  --border:     #e2e8f0;
  --serif:      'DM Serif Display', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Body ──────────────────────────────────────────────────────────────────── */
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container ────────────────────────────────────────────────────────────── */
.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Nav ────────────────────────────────────────────────────────────────────── */
nav.site-nav {
  background: var(--navy);
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 200;
}

nav.site-nav .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.site-nav .logo {
  font-family: var(--serif);
  color: var(--white);
  font-size: 1.25rem;
  text-decoration: none;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav .logo-drop {
  width: 22px;
  height: 22px;
  background: var(--teal);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  flex-shrink: 0;
}

.site-nav .logo span {
  color: var(--teal-light);
}

.site-nav .nav-center {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.site-nav .nav-center a {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav .nav-center a:hover {
  color: var(--white);
}

.site-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn--cta-nav {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  background: var(--teal);
  color: var(--white);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn--cta-nav:hover {
  background: var(--teal-dark);
}

.btn--teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn--teal:hover {
  background: var(--teal-dark);
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 32px;
}

.hamburger-btn span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hamburger Drawer */
.nav-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5); /* --navy at 50% opacity */
  z-index: 300;
}

.nav-drawer-overlay.open {
  display: block;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--navy);
  z-index: 301;
  padding: 2rem 1.5rem;
  transition: right 0.25s ease;
  overflow-y: auto;
}

.nav-drawer.open {
  right: 0;
}

.nav-drawer .drawer-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 2rem;
  display: block;
  margin-left: auto;
}

.nav-drawer a {
  display: block;
  padding: 0.75rem 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.15s;
}

.nav-drawer a:hover {
  color: var(--teal-light);
}

@media (max-width: 640px) {
  .site-nav .nav-center {
    display: none;
  }
}


/* Page Hero ────────────────────────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 64px 0 48px;
}

.page-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: var(--white);
  max-width: 760px;
  margin-bottom: 20px;
}

.page-hero .lead {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-light);
  max-width: 640px;
  line-height: 1.7;
}

/* Tab Navigation ────────────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px;
  overflow-x: auto;
}

.tab-btn {
  padding: 14px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--navy);
}

.tab-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.tab-btn.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.logo:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 4px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Article Body ────────────────────────────────────────────────────────── */
.article-body {
  padding: 56px 0 80px;
}

.article-body h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  margin: 48px 0 16px 0;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 32px 0 10px 0;
}

.article-body p {
  margin-bottom: 18px;
  color: var(--navy-light);
  line-height: 1.75;
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px 24px;
}

.article-body a {
  color: var(--teal);
  text-decoration: underline;
}

.article-body a:hover {
  color: var(--navy);
}

/* Data Table ────────────────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  text-align: left;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.data-table tr:nth-child(even) td {
  background: var(--off-white);
}

/* Callout Box ────────────────────────────────────────────────────────────── */
.callout {
  background: var(--teal-pale);
  border-left: 4px solid var(--teal);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}

/* Citations ───────────────────────────────────────────────────────────────── */
.citations {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 24px;
}

.citations h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  margin: 0 0 12px 0;
}

.citations ol {
  margin: 12px 0 0 20px;
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.citations li {
  margin-bottom: 8px;
}

/* Footer ────────────────────────────────────────────────────────────────── */
footer.site-footer {
  background: var(--navy);
  padding: 56px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: #94A3B8;
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--teal-light);
}

.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .wrapper {
    padding: 0 20px;
  }

  .page-hero {
    padding: 40px 0 32px;
  }

  .tab-btn {
    padding: 12px 16px;
    font-size: 0.82rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   County / State Page Components — added 2026-04-19
   ═══════════════════════════════════════════════════════════════════════ */

/* Risk Badges ─────────────────────────────────────────────────────────── */
.risk-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.risk-badge--high     { background: #FEE2E2; color: #991B1B; }
.risk-badge--moderate { background: #FEF3C7; color: #92400E; }
.risk-badge--low      { background: #FEF9C3; color: #854D0E; }
.risk-badge--safe     { background: #DCFCE7; color: #166534; }

/* Risk Summary Card — two-row redesign (Phase 3) — see bottom of file */

/* Contaminant Table ───────────────────────────────────────────────────── */
.contaminant-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-family: var(--sans); }
.contaminant-table th {
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.contaminant-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.contaminant-table tr:nth-child(even) td { background: var(--off-white); }
.ct-row--full td   { }
.ct-row--compact td  { color: var(--text-mid); }
.ct-row--minimal td  { color: var(--text-light); font-size: 0.8rem; }
.ct-accordion {
  background: var(--teal-pale);
  padding: 0.65rem 1rem;
  border-left: 3px solid var(--teal);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--navy-light);
}
.ct-above-mcl { color: #991B1B; font-weight: 600; }

/* Health Stat Cards ───────────────────────────────────────────────────── */
.health-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.health-stat-card {
  background: var(--off-white);
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
}
.health-stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--serif);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.health-stat-card .stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  font-family: var(--sans);
}
.health-stat-card .stat-state-avg {
  font-size: 0.78rem;
  color: var(--text-mid);
  font-family: var(--sans);
  margin-top: 0.2rem;
}
.health-stat-card .stat-contaminant-note {
  font-size: 0.8rem;
  color: var(--text-mid);
  font-family: var(--sans);
  margin-top: 0.75rem;
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}

/* Official Statement ──────────────────────────────────────────────────── */
.official-statement {
  border-left: 4px solid #22C55E;
  background: #F0FDF4;
  padding: 1.1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}
.official-statement blockquote {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 0.6rem;
  color: var(--navy);
}
.official-statement cite { font-size: 0.8rem; color: #166534; font-style: normal; font-weight: 600; }

/* Contaminant Nav ────────────────────────────────────────────────────– */
.contaminant-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.contaminant-nav a {
  padding: 0.3rem 0.8rem;
  background: var(--teal-pale);
  color: var(--teal);
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: var(--sans);
  text-decoration: none;
  font-weight: 500;
  border: 1px solid transparent;
  transition: border-color 0.15s;
}
.contaminant-nav a:hover { border-color: var(--teal); }

/* Resources Grid ─────────────────────────────────────────────────────── */
.resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.85rem; margin: 1.25rem 0; }
.resources-grid a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}
.resources-grid a:hover { background: var(--teal-pale); }

/* Nearby Pages ───────────────────────────────────────────────────────── */
.nearby-pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.nearby-pages a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.875rem;
}
.nearby-pages a:hover { border-color: var(--teal); }

/* News Cards ─────────────────────────────────────────────────────────── */
.news-card { background: var(--off-white); border: 1px solid var(--border); border-radius: 6px; padding: 0.9rem 1rem; margin-bottom: 0.6rem; }
.news-card a { color: var(--teal); font-weight: 500; font-size: 0.9rem; text-decoration: none; }
.news-card a:hover { text-decoration: underline; }
.news-date { font-size: 0.75rem; color: var(--text-mid); font-family: var(--sans); margin-top: 0.3rem; }

/* Lab Tiers ──────────────────────────────────────────────────────────── */
.lab-tier { border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; margin-bottom: 1rem; }
.lab-tier--recommended { border-color: var(--teal); background: var(--teal-pale); }
.lab-tier h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.4rem; font-family: var(--sans); color: var(--navy); }
.lab-tier .lab-price { font-size: 0.85rem; color: var(--text-mid); font-family: var(--sans); }

/* Sticky Tab Nav ─────────────────────────────────────────────────────── */
.sticky-tab-nav {
  position: sticky;
  top: 64px;
  background: var(--white);
  z-index: 100;
  border-bottom: 2px solid var(--border);
  padding: 0;
  margin-bottom: 2rem;
  overflow-x: auto;
  white-space: nowrap;
}
.sticky-tab-nav .tab-btn {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.sticky-tab-nav .tab-btn:hover { color: var(--navy); }
.sticky-tab-nav .tab-btn--active { color: var(--teal); border-bottom-color: var(--teal); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════
   Homepage — Phase 2
   ═══════════════════════════════════════════════════════════════════════ */

.home-hero {
  background: var(--navy);
  padding: 80px 0 72px;
}
.home-hero__inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.home-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1rem;
}
.home-hero__h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1rem;
}
.home-hero__sub {
  font-size: 1.05rem;
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.home-hero__search {
  display: flex;
  gap: 0.5rem;
  max-width: 520px;
  margin: 0 auto 1.25rem;
}
.home-hero__search input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.9rem;
}
.home-hero__search input::placeholder { color: var(--text-light); }
.home-hero__sources {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}
.home-hero__sources span { font-weight: 600; color: rgba(255,255,255,0.5); }

.home-purpose { padding: 56px 0; border-bottom: 1px solid var(--border); }
.home-purpose__inner { max-width: 700px; }
.home-purpose__inner h2 { font-family: var(--serif); font-size: 1.75rem; margin-bottom: 0.75rem; color: var(--navy); }
.home-purpose__inner p { font-size: 1rem; color: var(--text-mid); line-height: 1.7; }

.home-steps { padding: 64px 0; background: var(--off-white); }
.home-steps__heading { font-family: var(--serif); font-size: 1.6rem; text-align: center; color: var(--navy); margin-bottom: 2.5rem; }
.home-steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.home-step { text-align: center; padding: 1.5rem; }
.home-step__num { width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: var(--white); font-family: var(--sans); font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.home-step h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.home-step p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }

.home-states { padding: 64px 0; }
.home-states__heading { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); margin-bottom: 1.5rem; }
.home-states__grid { display: grid; grid-template-columns: 1fr repeat(4, 1fr); gap: 1rem; }
.state-card { border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; text-decoration: none; color: var(--navy); transition: border-color 0.15s, box-shadow 0.15s; background: var(--white); display: block; }
.state-card:hover { border-color: var(--teal); box-shadow: 0 2px 8px rgba(2,132,199,0.1); }
.state-card--featured { grid-row: span 2; display: flex; flex-direction: column; background: var(--teal-pale); border-color: var(--teal); }
.state-card--soon { background: var(--off-white); opacity: 0.7; cursor: default; }
.state-card__badge { display: inline-block; padding: 0.2rem 0.6rem; background: var(--teal); color: var(--white); border-radius: 9999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.75rem; font-family: var(--sans); }
.state-card__badge--soon { background: var(--text-light); }
.state-card h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.state-card__sub { font-size: 0.8rem; color: var(--text-mid); margin-bottom: 0.75rem; }
.state-card__pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.contaminant-pill { padding: 0.2rem 0.6rem; background: var(--white); border: 1px solid var(--teal); color: var(--teal); border-radius: 9999px; font-size: 0.75rem; font-weight: 500; font-family: var(--sans); }
.state-card__link { font-family: var(--sans); font-size: 0.875rem; font-weight: 600; color: var(--teal); margin-top: auto; display: block; }

.home-trust { background: var(--navy); padding: 72px 0; }
.home-trust__inner { display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: center; }
.quote-carousel { position: relative; min-height: 140px; }
.quote-slide { display: none; font-style: italic; }
.quote-slide.active { display: block; }
.quote-slide p { font-size: 1.05rem; color: rgba(255,255,255,0.85); line-height: 1.7; margin-bottom: 0.75rem; font-family: var(--sans); font-weight: 300; }
.quote-slide cite { font-size: 0.82rem; color: var(--teal-light); font-style: normal; font-weight: 500; }
.home-trust__method-link { margin-top: 1.5rem; font-size: 0.82rem; color: var(--text-light); }
.home-trust__method-link a { color: var(--teal-light); text-decoration: none; }
.home-trust__stats { display: flex; flex-direction: column; gap: 2rem; min-width: 180px; }
.trust-stat__val { font-family: var(--serif); font-size: 2.5rem; color: var(--teal-light); line-height: 1; margin-bottom: 0.3rem; }
.trust-stat__label { font-family: var(--sans); font-size: 0.875rem; color: var(--text-light); }

.home-signup { padding: 64px 0; background: var(--off-white); text-align: center; }
.home-signup__inner h2 { font-family: var(--serif); font-size: 1.75rem; color: var(--navy); margin-bottom: 0.5rem; }
.home-signup__inner > p { font-size: 0.95rem; color: var(--text-mid); margin-bottom: 1.5rem; }
.home-signup__form { display: flex; gap: 0.5rem; max-width: 440px; margin: 0 auto 0.75rem; }
.home-signup__form input { flex: 1; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 6px; font-family: var(--sans); font-size: 0.9rem; }
.home-signup__note { font-size: 0.75rem; color: var(--text-light); }

@media (max-width: 768px) {
  .home-steps__grid { grid-template-columns: 1fr; }
  .home-states__grid { grid-template-columns: repeat(2, 1fr); }
  .state-card--featured { grid-row: span 1; }
  .home-trust__inner { grid-template-columns: 1fr; }
  .home-trust__stats { flex-direction: row; flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════════════
   County Page Header — Phase 3
   ═══════════════════════════════════════════════════════════════════════ */
.county-page-header {
  padding-top: 2rem;
  padding-bottom: 0.5rem;
}
.county-page-h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--navy);
  margin: 0.5rem 0 1rem;
  max-width: 760px;
}

/* ═══════════════════════════════════════════════════════════════════════
   Risk Summary Card — 3-column redesign
   ═══════════════════════════════════════════════════════════════════════ */
.risk-summary-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  flex-wrap: wrap;
}
.rsc-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.rsc-col--left {
  flex: 0 0 auto;
  min-width: 160px;
}
.rsc-col--middle {
  flex: 1;
  min-width: 160px;
  align-items: center;
}
.rsc-col--right {
  flex: 0 0 auto;
  margin-left: auto;
}
.rsc-level-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.rsc-icon { flex-shrink: 0; }
.rsc-icon--high     { color: #DC2626; }
.rsc-icon--moderate { color: #D97706; }
.rsc-icon--low      { color: #CA8A04; }
.rsc-icon--safe     { color: #16A34A; }
.rsc-risk-label {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}
.rsc-status-text {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
}
.rsc-sample-count {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-mid);
}
.rsc-concerns-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.rsc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.rsc-pill {
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}
.rsc-pill--1 { background: #DC2626; }
.rsc-pill--2 { background: #D97706; }
.rsc-pill--3 { background: #2563EB; }
.rsc-pill--4 { background: #7C3AED; }
.rsc-pill--5 { background: #16A34A; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}
.btn--primary {
  background: var(--teal);
  color: var(--white);
}
.btn--primary:hover { background: var(--teal-dark); }
.btn--secondary {
  background: var(--off-white);
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn--secondary:hover { border-color: var(--teal); }
.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}
@media (max-width: 640px) {
  .risk-summary-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .rsc-col--right { margin-left: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Contaminant Table — Phase 3 additions
   ═══════════════════════════════════════════════════════════════════════ */
.ct-th-inner {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.ct-tooltip {
  font-size: 0.7rem;
  color: var(--teal-light);
  cursor: help;
  position: relative;
}
.ct-tooltip::after {
  content: attr(aria-label);
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  font-family: var(--sans);
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  width: 200px;
  text-align: left;
  z-index: 100;
  pointer-events: none;
  white-space: normal;
}
.ct-tooltip:hover::after {
  display: block;
}
.ct-above-mcl-pill {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  background: #FEE2E2;
  color: #991B1B;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--sans);
  margin-left: 0.4rem;
  white-space: nowrap;
}
.ct-mean-val {
  font-weight: 500;
}

/* County two-column prose */
.county-prose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.county-prose--single {
  grid-template-columns: 1fr;
  max-width: 680px;
}
.county-prose__col h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.county-prose__col p, .county-prose__col div {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
}
.county-prose__col a { color: var(--teal); text-decoration: underline; }
@media (max-width: 640px) {
  .county-prose { grid-template-columns: 1fr; }
}

/* Local Resources — Phase 3 restyle */
.local-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.local-resource-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
  background: var(--white);
}
.local-resource-card:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
  color: var(--teal);
}
.local-resource-card__arrow {
  color: var(--teal);
  font-size: 1rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   State Page — Phase 4
   ═══════════════════════════════════════════════════════════════════════ */
.state-page-header {
  padding-top: 2rem;
  padding-bottom: 0;
}
.state-header-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
  margin: 1rem 0 1.5rem;
}
.state-page-h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--navy);
  margin: 0.4rem 0 0.75rem;
}
.state-lead {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 540px;
}
.risk-donut-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  background: var(--off-white);
}
.risk-donut-card__title {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 1rem;
  text-align: center;
}
.risk-donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(
    #991B1B calc(var(--high) * 1%),
    #F59E0B calc(var(--high) * 1%) calc((var(--high) + var(--mod)) * 1%),
    #0284C7 calc((var(--high) + var(--mod)) * 1%)
  );
  position: relative;
  margin: 0 auto 1rem;
}
.risk-donut__center {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}
.risk-donut__center span {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.risk-donut-legend { display: flex; flex-direction: column; gap: 0.3rem; }
.rdl-item { font-family: var(--sans); font-size: 0.78rem; color: var(--text-mid); padding-left: 0.75rem; position: relative; }
.rdl-item::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; }
.rdl-item--high::before { background: #991B1B; }
.rdl-item--mod::before  { background: #F59E0B; }
.rdl-item--low::before  { background: #0284C7; }
.section-county-finder { padding: 2rem 0; }
.county-finder-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.county-finder-bar h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--navy);
}
.county-finder-form {
  display: flex;
  gap: 0.5rem;
}
.county-finder-form input {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.875rem;
  width: 200px;
}
.county-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.filter-pill {
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-pill:hover { border-color: var(--teal); color: var(--teal); }
.filter-pill--active { background: var(--teal); color: var(--white); border-color: var(--teal); }
.county-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.county-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--white);
}
.county-card:hover { border-color: var(--teal); box-shadow: 0 2px 8px rgba(2,132,199,0.08); }
.county-card__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.county-card__name { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--navy); }
.county-card__label { font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mid); display: block; margin-bottom: 0.3rem; }
.county-card__pills { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.county-card__footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.county-card__samples { font-family: var(--sans); font-size: 0.78rem; color: var(--text-mid); }
.county-card__link { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--teal); }
.section-state-resources { padding: 2rem 0; }
.section-state-resources h2 { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); margin-bottom: 1rem; }
@media (max-width: 768px) {
  .state-header-grid { grid-template-columns: 1fr; }
  .county-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .county-cards-grid { grid-template-columns: 1fr; }
}
