:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --accent: #1d4ed8;
  --accent-2: #0f766e;
  --border: #dbe4f0;
  --shadow: 0 18px 60px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #ffffff, var(--bg));
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); }
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.site-header {
  border-bottom: 1px solid rgba(29, 78, 216, 0.08);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}
.nav nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.nav nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}
.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero {
  padding-top: 4.25rem;
  padding-bottom: 3rem;
}
.section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.stack > * + * { margin-top: 1.5rem; }
.grid.three-up {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent-2);
  margin-bottom: 1rem;
}
h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.95;
  margin: 0 0 1rem;
}
h2 {
  margin-top: 0;
  line-height: 1.1;
}
.lede {
  font-size: 1.15rem;
  max-width: 46rem;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.button {
  display: inline-block;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--border);
}
.button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.button.secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.cta-card {
  margin-bottom: 2rem;
}
.steps {
  margin: 0;
  padding-left: 1.25rem;
}
.steps li + li { margin-top: 0.75rem; }
.archive-item .meta,
.district-card .meta {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--muted);
}
.district-card ul { padding-left: 1.15rem; }
.text-link {
  font-weight: 700;
  text-decoration: none;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-size: 0.8rem;
}
.metric-value {
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  margin: 0.75rem 0;
}
.metric-note {
  margin: 0;
  color: var(--muted);
}
.list-table {
  display: grid;
  gap: 0.5rem;
}
.list-table .row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}
.list-table .row.header {
  font-weight: 700;
  border-top: 0;
  color: var(--muted);
}
.map-placeholder {
  min-height: 300px;
}
.map-box {
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.04), rgba(15, 118, 110, 0.04));
  color: var(--muted);
  padding: 2rem;
}
.map-box .small {
  font-size: 0.95rem;
}
.site-footer {
  padding-top: 1rem;
  padding-bottom: 4rem;
  color: var(--muted);
}
.footer-links a {
  text-decoration: none;
}
@media (max-width: 820px) {
  .grid.three-up,
  .split,
  .dashboard-grid { grid-template-columns: 1fr; }

  .list-table .row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    flex-direction: column;
  }
  .hero { padding-top: 3rem; }
  .card {
    padding: 1.25rem;
    border-radius: 18px;
  }
}
