@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:opsz,wght@8..60,500;8..60,650;8..60,700&display=swap");

:root {
  --navy: #1e3a5f;
  --navy-deep: #152a46;
  --ink: #1b2430;
  --muted: #5a6570;
  --rule: #d0d5dc;
  --paper: #f4f1ea;
  --white: #fff;
  --brass: #8a734a;
  --focus: #2b6cb0;
  --danger: #8b2e2e;
  --shadow: 0 10px 30px rgba(21, 42, 70, 0.08);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Calibri, system-ui, sans-serif;
  --wrap: 1080px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
}

img { max-width: 100%; }

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--navy-deep); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  left: 12px;
  top: 12px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 12px;
  z-index: 100;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.site-header,
header.top {
  background: var(--white);
  border-bottom: 2.5px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 40;
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 0 max(20px, calc((100% - var(--wrap)) / 2));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}

.logo-glyph {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 auto;
}

.logo-text,
header.top .brand {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 6px 10px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--paper);
  color: var(--navy);
}

.site-nav,
header.top nav {
  display: flex;
  gap: 22px;
}

.site-nav a,
header.top nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
header.top nav a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero { padding: 56px 0 36px; }

.sample-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.sample-row a {
  display: block;
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  padding: 16px 14px;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sample-row a:hover { border-color: var(--navy); color: var(--navy-deep); }

.kicker {
  margin: 0 0 14px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
}

.hero h1 { max-width: 16ch; }

h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.lede {
  margin: 0 0 28px;
  max-width: 42em;
  font-size: 1.08rem;
  color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover,
button:hover { background: var(--navy-deep); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
}

.btn-ghost:hover { background: var(--white); color: var(--navy); }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section { padding: 56px 0; }

.section-rule { border-top: 1px solid var(--rule); }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head p {
  margin: 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 16px;
}

.grid-3,
.grid-2,
.sample-grid {
  display: grid;
  gap: 18px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.sample-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card,
.box,
.form {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
}

.card p, .box p { margin: 0; }

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.card:hover { border-color: var(--navy); color: inherit; }

.card h3 { margin-bottom: 10px; }

.num {
  display: block;
  margin-bottom: 10px;
  color: var(--brass);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fine, .muted { color: var(--muted); font-size: 15px; }

.call,
.ask {
  background: var(--white);
  border-left: 3px solid var(--navy);
  padding: 16px 18px;
  margin: 22px 0;
}

.call p, .ask p { margin: 0 0 10px; }
.call p:last-child, .ask p:last-child { margin-bottom: 0; }

.page-hero { padding: 48px 0 8px; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

.field { margin: 0 0 16px; }

label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-weight: 600;
  text-transform: none;
}

input, select, textarea {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  min-height: 44px;
}

textarea { min-height: 140px; max-width: none; resize: vertical; }

#districts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

#districts a {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  text-decoration: none;
  color: var(--navy);
  font-size: 15px;
}

#districts a:hover {
  border-color: var(--navy);
  color: var(--navy-deep);
}

.err {
  color: var(--danger);
  min-height: 1.2em;
}

body > main:not(#main) {
  width: min(720px, calc(100% - 40px));
  margin: 48px auto 56px;
}

body > footer:not(.site-footer) {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  margin-top: 24px;
  padding: 36px 0 28px;
  border-top: 2.5px solid var(--navy);
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h2 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer p { margin: 0 0 8px; }
.site-footer a { color: var(--navy); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.banner {
  background: var(--navy);
  color: var(--white);
  padding: 36px 0;
}

.banner h2 { color: var(--white); }
.banner p { margin: 0 0 18px; max-width: 40em; }
.banner .btn-primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.banner h2 a {
  color: var(--white);
  text-decoration: none;
}
.banner h2 a:hover { color: var(--paper); }
.banner .btn-primary:hover { background: var(--paper); color: var(--navy); }

@media (max-width: 880px) {
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .site-header { position: sticky; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    padding: 14px 20px 18px;
    gap: 14px;
  }
  .site-nav.open { display: flex; }
  .header-inner { position: relative; }
  .site-header { position: sticky; }
  .section-head { display: block; }
  .section-head p { margin-top: 8px; }
  .hero h1 { max-width: none; }
  .sample-row { grid-template-columns: 1fr; }
  header.top { flex-wrap: wrap; padding: 14px 20px; }
}

@media print {
  .site-header, header.top, .nav-toggle, .actions, .banner, .site-footer { display: none !important; }
  body { background: #fff; }
  a { text-decoration: none; color: inherit; }
}

.method-list { margin: 8px 0 0; padding-left: 1.2em; max-width: 38em; }
.method-list li { margin: 0 0 14px; }
.map-lock-wrap { position: relative; }
button.map-lock {
  position: absolute;
  inset: 0;
  z-index: 800;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}
button.map-lock:hover,
button.map-lock[hidden] { background: transparent; color: transparent; }
button.map-lock[hidden] { display: none; }
.home-map { padding: 8px 0 40px; }
.home-map h2 { font-size: 1.45rem; }
.home-map #sample-map { height: 54vh; min-height: 380px; }
.map-page { padding: 28px 0 48px; }
.map-page h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
#sample-map { height: 68vh; min-height: 420px; border: 1px solid var(--rule); background: #e7eef5; }
.map-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.map-tools button {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--rule);
  min-height: 36px;
  padding: 6px 10px;
  font-size: 14px;
}
.map-tools button.on { background: var(--navy); color: var(--white); }
.map-stage { position: relative; }
.map-card {
  position: absolute;
  z-index: 500;
  left: 12px;
  bottom: 16px;
  width: min(380px, calc(100% - 24px));
  max-height: 42vh;
  overflow: auto;
  background: var(--white);
  border-top: 3px solid var(--navy);
  padding: 14px 36px 14px 14px;
}
.map-card h2 { font-size: 1.15rem; margin: 0 0 6px; }
.map-card p { margin: 0 0 6px; }
.map-card .x {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  min-height: 0;
  padding: 0 6px;
}
.leaflet-div-icon.pin { background: transparent; border: none; }
.pin-body {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.pin-body svg { width: 54%; height: 54%; display: block; }
.pin-body.on { background: var(--navy); color: #fff; }
.leaflet-container { font: inherit; }
