* { box-sizing: border-box; }
:root {
  --navy: #071b35;
  --navy-2: #0e2d51;
  --red: #bd1d2a;
  --green: #16845b;
  --gold: #d79a22;
  --ink: #17202f;
  --muted: #5c6b78;
  --line: #d8e1ea;
  --soft: #f2f5f8;
  --paper: #fff;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  color: #fff;
  background: rgba(7, 27, 53, .97);
  border-bottom: 4px solid var(--red);
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.topbar-inner {
  max-width: 1180px;
  min-height: 74px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 900;
  font-style: italic;
  white-space: nowrap;
}
.brand span { color: #9be7c8; }
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
  background: rgba(255,255,255,.07);
}
.nav a:hover, .nav a:focus { background: rgba(255,255,255,.16); }
.hero, .directory-hero, .county-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7,27,53,.97), rgba(7,27,53,.72)),
    url("../images/unitedstatesmap.jpg") center/cover;
  border-bottom: 1px solid var(--line);
}
.hero-inner, .directory-hero-inner, .county-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 18px 44px;
}
.hero-grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 30px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: #9be7c8;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: .98;
}
h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.12;
}
h3 { margin: 0 0 8px; color: var(--navy); font-size: 22px; }
.hero-copy, .directory-hero p, .county-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #edf3fa;
  font-size: 20px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}
.button.primary, button.primary { color: #fff; background: var(--red); }
.button.secondary {
  color: #fff;
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.5);
}
.finder, .callout-panel {
  padding: 22px;
  color: var(--ink);
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 8px;
  box-shadow: 0 20px 45px rgba(0,0,0,.27);
}
.finder h2, .callout-panel h2 { margin-bottom: 8px; font-size: 29px; }
.finder p, .callout-panel p { margin: 0 0 16px; color: var(--muted); }
.finder-link {
  display: block;
  padding: 14px 15px;
  color: var(--navy);
  background: #f8fafc;
  border: 1px solid #cbd6e0;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 900;
}
.finder-link + .finder-link { margin-top: 9px; }
.finder-link:hover, .finder-link:focus { border-color: var(--red); color: var(--red); }
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 18px;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-title p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}
.stats-grid, .network-grid, .county-grid, .related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat-card, .network-card, .county-card, .related-card {
  min-height: 130px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(11,34,62,.05);
  text-decoration: none;
}
.stat-card strong, .county-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--red);
  font-size: 28px;
  line-height: 1.1;
}
.directory {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.directory-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  color: #fff;
  background: var(--navy);
}
.directory-top strong { display: block; font-size: 23px; }
.state-links, .state-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 22px 22px;
}
.state-links a, .state-jumps a {
  min-width: 42px;
  padding: 7px 8px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #cbd6e0;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}
.state-links a:hover, .state-jumps a:hover { color: #fff; background: var(--red); border-color: var(--red); }
.network-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.network-card p, .county-card p, .related-card p { margin: 0; color: var(--muted); }
.network-card strong, .related-card strong { margin-top: 16px; color: var(--red); }
.sponsor-band {
  padding: 28px;
  color: #fff;
  background: linear-gradient(90deg, var(--navy), #0f3d2a);
  border-radius: 8px;
  text-align: center;
}
.sponsor-band h2 { margin: 0 0 8px; color: #fff; font-size: 30px; }
.sponsor-band p { max-width: 760px; margin: 0 auto 18px; color: #e2edf5; }
.search-panel { max-width: 1180px; margin: -24px auto 28px; padding: 0 18px; position: relative; z-index: 2; }
.search-box { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(7,27,53,.16); }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
#county-search { width: 100%; min-height: 50px; padding: 12px 14px; color: var(--ink); background: #f8fafc; border: 2px solid #bdc9d5; border-radius: 5px; font: inherit; font-size: 17px; }
#county-search:focus { border-color: var(--red); outline: 3px solid rgba(189,29,42,.13); }
.search-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 14px; }
#all-county-text-links {
  max-width: 1180px;
  margin: 12px auto 36px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}
#all-county-text-links h2 {
  margin: 26px 0 10px;
  padding-bottom: 7px;
  color: var(--navy);
  border-bottom: 2px solid #d7e0e8;
  font-size: 23px;
  scroll-margin-top: 95px;
}
#all-county-text-links h2:first-of-type { margin-top: 0; }
#all-county-text-links .county-list { column-count: 3; column-gap: 30px; line-height: 1.75; }
#all-county-text-links a { color: #173f70; text-decoration: none; }
#all-county-text-links a:hover, #all-county-text-links a:focus { color: var(--red); text-decoration: underline; }
.no-results { display: none; max-width: 1180px; margin: 0 auto 36px; padding: 26px 18px; color: var(--muted); background: #fff; border: 1px solid var(--line); text-align: center; }
.breadcrumb {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 18px 0;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumb a { color: var(--navy); font-weight: 800; text-decoration: none; }
.footer {
  margin-top: 36px;
  padding: 30px 18px;
  color: #dce6f2;
  background: var(--navy);
  text-align: center;
}
.footer p { margin: 7px 0; }
.footer a { color: #fff; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .stats-grid, .network-grid, .county-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-title { display: block; }
  .section-title p { margin-top: 7px; text-align: left; }
}
@media (max-width: 720px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .nav a { flex: 1 1 42%; text-align: center; }
  .directory-top, .search-row { grid-template-columns: 1fr; }
  #all-county-text-links .county-list { column-count: 2; }
}
@media (max-width: 520px) {
  .stats-grid, .network-grid, .county-grid, .related-grid { grid-template-columns: 1fr; }
  #all-county-text-links .county-list { column-count: 1; }
}
