:root {
  --ink: #23303b;
  --muted: #55636f;
  --sky: #2f6f8f;
  --sky-dark: #1f5570;
  --sand: #fbf6ee;
  --paper: #ffffff;
  --accent: #c8553d;
  --heritage-purple: #482078;
  --ok: #1d6b3a;
  --bad: #a3271a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1,
h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  color: var(--heritage-purple);
}

.brand,
.eyebrow,
.button,
label,
.nav-list a {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow {
  max-width: 40rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

a {
  color: var(--sky-dark);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(90deg, #edf4f6 0%, var(--paper) 62%);
  border-bottom: 1px solid #d5e0e4;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  padding-top: .45rem;
  padding-bottom: .45rem;
}

.site-search-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem .65rem;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  max-width: 100%;
  padding: .35rem .75rem;
  border-left: 5px solid var(--accent);
  background: rgba(255, 255, 255, .78);
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #102b38;
  object-fit: cover;
}

.nav-list {
  display: flex;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: .6rem .8rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  border-radius: .4rem;
}

.nav-list a:hover {
  background: var(--sand);
}

.nav-list a[aria-current="page"] {
  background: var(--sand);
  box-shadow: inset 0 -3px 0 var(--accent);
  font-weight: 600;
}

.coverage-checkpoint {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #d5dce2;
}

.coverage-checkpoint h3 {
  margin: 1.25rem 0 .5rem;
  font-size: 1.15rem;
}

.coverage-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1.5rem;
  margin: .75rem 0 1rem;
}

.coverage-metrics div { min-width: 0; }
.coverage-metrics dt { color: var(--muted); font-size: .92rem; }
.coverage-metrics dd { margin: .15rem 0 0; font-weight: 650; }
.coverage-metrics strong { color: var(--ink); }
.coverage-note { color: var(--muted); font-size: .94rem; }

@media (max-width: 40rem) {
  .coverage-metrics { grid-template-columns: minmax(0, 1fr); }
}

.page-header {
  background: linear-gradient(180deg, #e8f1f6 0%, var(--sand) 100%);
  padding: 2.5rem 0 2rem;
}

.page-header h1 {
  margin: 0;
}

.section h2 {
  margin-top: 2rem;
}

.notice {
  padding: .85rem 1rem;
  border: 2px dashed var(--muted);
  border-radius: .4rem;
  background: var(--sand);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  display: inline-block;
  padding: .6rem .4rem;
  min-height: 44px;
}

.hero {
  background: linear-gradient(180deg, #e8f1f6 0%, var(--sand) 100%);
  padding: 4rem 0 4.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: var(--sky-dark);
  margin: 0 0 .5rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.2rem;
  max-width: 36rem;
  color: var(--muted);
}

.button {
  display: inline-block;
  min-height: 44px;
  padding: .75rem 1.5rem;
  background: var(--sky-dark);
  color: #fff;
  border: 0;
  border-radius: .4rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--sky);
}

.button:disabled {
  background: #7a8a94;
  cursor: not-allowed;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

fieldset:disabled {
  opacity: .55;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section {
  padding: 3.5rem 0;
}

.section.alt {
  background: var(--sand);
}

.field {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: .7rem .8rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid #8b98a2;
  border-radius: .4rem;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--bad);
}

.error {
  color: var(--bad);
  margin: .35rem 0 0;
  font-size: .95rem;
}

.status {
  margin: 1rem 0;
  padding: 0;
  border-radius: .4rem;
}

.status:not(:empty) {
  padding: .85rem 1rem;
  border: 2px solid;
  background: #fff;
}

.status[data-state="success"] {
  border-color: var(--ok);
  color: var(--ok);
}

.status[data-state="error"] {
  border-color: var(--bad);
  color: var(--bad);
}

.status[data-state="unavailable"],
.status[data-state="sending"] {
  border-color: var(--muted);
  color: var(--ink);
}

/* Honeypot: off-screen rather than display:none so naive bots still fill it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid #e3ddd2;
  color: var(--muted);
  font-size: .95rem;
}

@media (max-width: 40rem) {
  html {
    scroll-padding-top: 7rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-list {
    flex-wrap: wrap;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.banner {
  max-width: 72rem;
  margin: 0 auto;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-compact {
  padding: 2rem 0 2.5rem;
}

.hero-compact h1 {
  margin-bottom: 1rem;
}

select {
  width: 100%;
  padding: .7rem .8rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid #8b98a2;
  border-radius: .4rem;
}

.record {
  border: 2px solid #c9d2d8;
  border-radius: .4rem;
  margin: .5rem 0;
  background: #fff;
}

.record>summary {
  cursor: pointer;
  padding: .75rem 1rem;
  min-height: 44px;
  font-family: system-ui, sans-serif;
  font-weight: 600;
}

.record-body {
  padding: 0 1rem .75rem;
}

.record-meta {
  color: var(--muted);
  font-size: .95rem;
}

.record a {
  overflow-wrap: anywhere;
}

dt {
  font-weight: 700;
  margin-top: .75rem;
}

dd {
  margin: 0;
}

.pre-wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.inline {
  display: inline-block;
  margin: 0 .5rem .5rem 0;
}

.choices {
  border: 0;
  padding: 0;
  margin: 0 0 1.25rem;
}

.choices legend {
  font-family: system-ui, sans-serif;
  font-weight: 600;
  padding: 0;
  margin-bottom: .5rem;
}

.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: .75rem;
  align-items: start;
  margin-bottom: .9rem;
}

.choice input {
  width: 1.5rem;
  height: 1.5rem;
  margin: .1rem 0 0;
}

.choice label {
  margin: 0;
}

.choice .hint {
  grid-column: 2;
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.contact-page {
  overflow-wrap: anywhere;
}

.contact-page h1 {
  font-size: 2.5rem;
  letter-spacing: 0;
}

.contact-page h2 {
  font-size: 1.5rem;
  letter-spacing: 0;
}

.contact-page .lead {
  margin: 1rem 0 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: start;
}

.contact-intro {
  border-top: 3px solid var(--accent);
  padding-top: 1.25rem;
}

.contact-intro h2 {
  margin-top: 0;
}

.contact-intro p {
  margin: 0 0 1rem;
}
.contact-correction-note {
  margin: 1.25rem 0;
  padding: 1rem;
  border-left: 4px solid var(--sky-dark);
  background: #f0f7fb;
  color: #23303b;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}
.contact-correction-note h3 { margin: 0 0 .5rem; color: var(--sky-dark); font-size: 1.1rem; }
.contact-correction-note p { margin: .5rem 0 0; }

.contact-page .hint {
  color: var(--muted);
  font-size: .95rem;
  margin: .4rem 0 0;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-page .field {
  margin-bottom: 1.5rem;
}

.field-note {
  font-weight: 400;
  color: var(--muted);
}

.contact-page textarea {
  min-height: 12rem;
  resize: vertical;
  line-height: 1.6;
}

.contact-page input,
.contact-page textarea {
  scroll-margin-top: 11rem;
}

.contact-page input:focus-visible,
.contact-page textarea:focus-visible {
  border-color: var(--sky-dark);
  outline: 3px solid var(--sky-dark);
  outline-offset: 3px;
}

.field-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  justify-content: space-between;
  align-items: baseline;
}

.field-meta .hint {
  flex: 1 1 16rem;
}

#message-count {
  color: var(--muted);
  font-size: .85rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.contact-page .choices {
  padding-top: 1rem;
  border-top: 1px solid #c9d2d8;
}

.contact-page .choices legend {
  padding-right: .75rem;
}

.contact-page .choice {
  margin-bottom: 1.25rem;
}

.contact-page .choice label {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.contact-page .choice input {
  margin-top: .6rem;
  accent-color: var(--sky-dark);
}

.contact-page .choice .hint {
  margin-top: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding-top: .5rem;
}

.contact-actions .button {
  min-width: 10rem;
  min-height: 48px;
}

.contact-actions .hint {
  flex: 1 1 15rem;
}

.contact-page .status {
  scroll-margin-top: 11rem;
  margin-top: 0;
}

.contact-page .status:empty {
  display: none;
}

.contact-page .status[data-state="success"] {
  background: #f0f8f2;
}

.contact-page .status[data-state="error"] {
  background: #fff4f1;
}

.contact-page fieldset:disabled {
  opacity: .75;
}

@media (max-width: 48rem) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .contact-page .section {
    padding: 2rem 0;
  }

  .contact-page .nav-list {
    flex-wrap: wrap;
  }
}

@media (max-width: 30rem) {
  .contact-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .contact-actions .button {
    width: 100%;
  }
}

:root {
  --site-sidebar-width: 19rem;
}

.home-menu-toggle,
.location-drawer-toggle,
.site-sidebar-close {
  flex: 0 0 auto;
  min-width: 6.5rem;
  min-height: 44px;
  padding: .55rem .85rem;
  border: 1px solid #b8c5ce;
  border-radius: .35rem;
  background: #fff;
  color: var(--ink);
  font: 650 1rem system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.home-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.home-menu-open, .home-menu-close { line-height: 1; }
.home-menu-close,
.home-menu-toggle[aria-expanded="true"] .home-menu-open { display: none; }
.home-menu-toggle[aria-expanded="true"] .home-menu-close { display: inline; }
.home-menu-toggle[hidden], .location-drawer-toggle[hidden] { display: none; }

.site-sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: var(--site-sidebar-width);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  border-right: 1px solid #d5dce2;
  background: #fff;
  color: var(--ink);
  font: 1rem/1.45 system-ui, sans-serif;
  box-shadow: 3px 0 14px rgba(35, 48, 59, .08);
}

.site-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid #e3ddd2;
}

.site-sidebar-title {
  margin: 0;
  font-weight: 800;
  color: var(--sky-dark);
}

.site-sidebar-close { display: inline-flex; align-items: center; justify-content: center; }

.site-sidebar-nav ul {
  list-style: none;
  margin: .75rem 0 1.25rem;
  padding: 0;
}

.site-sidebar-nav li { margin: 0; }

.site-sidebar-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: .45rem .6rem;
  border-radius: .3rem;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.site-sidebar-nav a:hover,
.site-sidebar-nav a[aria-current="page"] {
  background: #f4f8fa;
  box-shadow: inset 3px 0 var(--accent);
}

.site-location {
  padding-top: .8rem;
  border-top: 2px solid #e3ddd2;
}

.site-location h2 {
  margin: 0 0 .6rem;
  font: 750 1.15rem/1.3 system-ui, sans-serif;
  color: var(--ink);
}

.site-location-form label {
  margin: .65rem 0 .25rem;
  font: 650 .95rem system-ui, sans-serif;
}

.site-location-form input,
.site-location-form select {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: .45rem .6rem;
  border: 1px solid #8998a3;
  border-radius: .3rem;
  background: #fff;
  color: var(--ink);
  font: 1rem system-ui, sans-serif;
}

.site-location-form select:disabled {
  color: #596773;
  background: #f2f4f5;
}

.site-location-help,
.site-location-status {
  margin: .4rem 0 .65rem;
  color: var(--muted);
  font-size: .88rem;
}

.site-location-status { min-height: 2.5em; }

.site-location-save { width: 100%; min-height: 42px; padding: .45rem .75rem; }

.site-sidebar-backdrop { display: none; }

@media (min-width: 60.001rem) {
  body.has-site-sidebar .site-header,
  body.has-site-sidebar main,
  body.has-site-sidebar .site-footer {
    margin-left: var(--site-sidebar-width);
  }

  body.has-site-sidebar .site-header,
  body.has-site-sidebar main,
  body.has-site-sidebar .site-footer { width: calc(100% - var(--site-sidebar-width)); }

  .location-drawer-toggle { display: inline-flex; }
}

@media (max-width: 60rem) {
  .site-sidebar {
    width: min(22rem, 88vw);
    transform: translateX(-105%);
    transition: transform .18s ease-out;
  }

  .site-sidebar.is-open { transform: translateX(0); }

  .site-sidebar-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    z-index: 19;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(24, 38, 48, .42);
  }

  body.site-sidebar-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .site-sidebar { transition: none; }
}
