:root {
  color-scheme: light;
  --paper: #f4f7fb;
  --paper-soft: #ffffff;
  --ink: #06152d;
  --muted: #526173;
  --line: #d6dde8;
  --line-dark: #9aa8ba;
  --navy: #001b40;
  --blue: #266dd3;
  --blue-dark: #164f9e;
  --blue-soft: #bed3f2;
  --sky: #e8f1ff;
  --silver: #bbbec0;
  --red: #b22134;
  --gold: #f1b434;
  --green: #2f7d59;
  --shadow: 0 20px 55px rgba(0, 27, 64, 0.18);
  --shell: min(100% - clamp(24px, 4vw, 56px), 1600px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(0, 27, 64, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 27, 64, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header,
main,
.site-footer {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  padding: 18px 0 28px;
}

.utility-bar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--navy);
  color: #fff;
  padding: 7px 14px;
  font-size: 0.86rem;
  font-weight: 720;
}

.utility-bar > span {
  min-width: 0;
}

.utility-brand {
  color: #fff;
}

.utility-brand .brand-mark {
  width: 30px;
  height: 30px;
  background: var(--blue);
  box-shadow: inset 0 -4px 0 rgba(0, 27, 64, 0.28);
}

.utility-bar div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.utility-bar a {
  color: var(--blue-soft);
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 74px;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-top: 0;
  background: rgba(255, 255, 255, 0.96);
  padding: 0 18px;
  box-shadow: 0 12px 28px rgba(0, 27, 64, 0.08);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 950;
  box-shadow: inset 0 -5px 0 rgba(0, 27, 64, 0.28);
}

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

.nav-links a {
  color: var(--navy);
  font-size: 0.93rem;
  font-weight: 790;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue-dark);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 470px;
  align-items: end;
  overflow: visible;
  position: relative;
  border: 1px solid var(--line);
  border-top: 0;
  background:
    linear-gradient(90deg, rgba(0, 27, 64, 0.92) 0%, rgba(0, 27, 64, 0.78) 48%, rgba(0, 27, 64, 0.35) 100%),
    url("assets/blanchester-north-broadway.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  min-height: 470px;
  max-width: 820px;
  flex-direction: column;
  justify-content: center;
  padding: 36px 52px;
  color: #fff;
}

.notice,
.section-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .notice {
  width: max-content;
  background: rgba(190, 211, 242, 0.16);
  border-left: 5px solid var(--blue-soft);
  color: var(--blue-soft);
  padding: 5px 9px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 4.8rem;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: 1.95rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.12rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
}

.hero-search {
  display: grid;
  gap: 8px;
  max-width: 760px;
  position: relative;
  z-index: 5;
}

.hero-search label,
.intake-form span {
  color: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 860;
  letter-spacing: 0;
  text-transform: uppercase;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-row input,
.intake-form input,
.intake-form select,
.intake-form textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.search-row input {
  min-height: 58px;
  border: 0;
  padding: 13px 15px;
  font-size: 1.02rem;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  width: 100%;
  max-height: min(390px, 58vh);
  overflow: auto;
  border: 1px solid var(--line-dark);
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 27, 64, 0.26);
}

.search-suggestions[hidden] {
  display: none;
}

.suggestion-item,
.suggestion-all {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 14px;
  text-decoration: none;
}

.suggestion-item:hover,
.suggestion-item:focus-visible,
.suggestion-item.active-suggestion,
.suggestion-all:hover,
.suggestion-all:focus-visible,
.suggestion-all.active-suggestion {
  background: var(--sky);
}

.suggestion-item span {
  width: max-content;
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.suggestion-item strong {
  color: var(--navy);
  font-size: 1rem;
}

.suggestion-item small {
  color: var(--muted);
  font-size: 0.86rem;
}

.suggestion-all {
  color: var(--blue-dark);
  font-weight: 900;
}

.search-row input:focus,
.intake-form input:focus,
.intake-form select:focus,
.intake-form textarea:focus {
  box-shadow: 0 0 0 4px rgba(190, 211, 242, 0.7);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  padding: 10px 16px;
  font-weight: 840;
  text-decoration: none;
}

.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--navy);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  max-width: 760px;
  margin-top: 14px;
  border: 1px solid rgba(190, 211, 242, 0.45);
  background: rgba(190, 211, 242, 0.45);
}

.hero-highlights a,
.hero-highlights button {
  flex: 1 1 auto;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  padding: 8px 10px;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.hero-highlights a {
  display: inline-flex;
}

.hero-highlights a:hover,
.hero-highlights a:focus-visible {
  background: #fff;
  color: var(--navy);
}

.town-panel {
  display: none;
}

main {
  display: grid;
  gap: 58px;
  padding-bottom: 48px;
}

main > section {
  min-width: 0;
}

.trust-strip,
.values-strip {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(0, 27, 64, 0.06);
}

.trust-strip {
  border-top: 5px solid var(--red);
}

.values-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--navy);
  color: #fff;
}

.values-strip span {
  display: block;
  min-height: 46px;
  align-content: center;
  border-left: 5px solid var(--blue);
  padding-left: 12px;
  font-weight: 820;
}

.trust-strip span,
.section-note,
.question-panel p,
.popular-card p,
.task-card p,
.hub-card p,
.feature-card p,
.spotlight-card p,
.data-card p,
.details-body p,
.guide-grid p,
.source-box p,
.form-note,
.site-footer {
  color: var(--muted);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 252px), 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: 0 14px 34px rgba(0, 27, 64, 0.09);
}

.quick-actions > a,
.utility-routes {
  display: grid;
  min-height: 116px;
  align-content: start;
  gap: 6px;
  background: #fff;
  padding: 14px;
  text-decoration: none;
}

.quick-actions > a:hover,
.utility-routes:hover {
  background: var(--sky);
}

.utility-routes div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.utility-routes div a {
  display: inline-flex;
  flex: 1 1 auto;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  background: var(--sky);
  color: var(--blue-dark);
  padding: 4px 7px;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.12;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.utility-routes div a.priority-link {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.utility-routes div a:hover,
.utility-routes div a:focus-visible {
  background: #fff;
}

.quick-actions span,
.calendar-list span {
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quick-actions strong {
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.16;
}

.quick-actions small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.22;
}

.quick-actions .emergency-card {
  border-top: 4px solid var(--red);
}

.quick-actions .emergency-card span {
  color: var(--red);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  border-left: 7px solid var(--blue);
  padding-left: 14px;
}

.popular-grid,
.question-grid,
.result-grid,
.spotlight-grid,
.task-grid,
.hub-grid,
.data-grid,
.guide-grid,
.updates-layout,
.topic-grid,
.archive-grid,
.answer-grid {
  display: grid;
  gap: 18px;
}

.popular-grid,
.question-grid,
.topic-grid,
.task-grid,
.spotlight-grid,
.guide-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.result-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.hub-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.data-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.updates-layout {
  grid-template-columns: 1.12fr 0.94fr 0.94fr;
}

.popular-card,
.result-card,
.topic-card,
.task-card,
.hub-card,
.data-card,
.question-panel,
.section-disclosure,
.spotlight-card,
.feature-card,
.guide-grid article,
.intake-form,
.source-box {
  border: 1px solid var(--line);
  background: var(--paper-soft);
  box-shadow: 0 12px 28px rgba(0, 27, 64, 0.08);
}

.search-results-section {
  scroll-margin-top: 16px;
}

.search-page .site-header {
  padding-bottom: 18px;
}

.search-page main {
  padding-top: 20px;
}

.page-search {
  position: relative;
  display: grid;
  max-width: 880px;
  gap: 8px;
  margin-bottom: 18px;
}

.intent-search {
  max-width: 980px;
  margin: 18px 0 0;
}

.page-search label {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.page-search .search-row input {
  border: 1px solid var(--line-dark);
}

.result-card {
  display: grid;
  min-width: 0;
  min-height: 230px;
  align-content: start;
  gap: 12px;
  overflow: hidden;
  padding: 22px;
  border-top: 6px solid var(--blue);
}

.result-card > * {
  min-width: 0;
}

.result-card h3,
.topic-card strong {
  margin: 0;
  color: var(--navy);
  font-size: 1.16rem;
  line-height: 1.18;
}

.result-card p,
.topic-card p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.result-detail {
  border-left: 4px solid var(--blue-soft);
  padding-left: 12px;
  font-size: 0.94rem;
}

.verified-detail {
  border-left-color: var(--green);
}

.result-meta,
.result-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-meta span,
.topic-card span {
  width: max-content;
  max-width: 100%;
  border-left: 5px solid var(--blue);
  background: var(--sky);
  color: var(--navy);
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.result-links {
  margin-top: auto;
}

.answer-actions {
  min-width: 0;
  margin-top: auto;
  border: 1px solid var(--line);
  background: var(--paper);
}

.answer-actions summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-size: 0.86rem;
  font-weight: 880;
  list-style: none;
  padding: 10px 12px;
}

.answer-actions summary::-webkit-details-marker {
  display: none;
}

.answer-actions summary::after {
  content: "+";
  float: right;
  color: var(--navy);
  font-weight: 950;
}

.answer-actions[open] summary {
  border-bottom: 1px solid var(--line);
}

.answer-actions[open] summary::after {
  content: "-";
}

.answer-actions .result-links {
  display: grid;
  gap: 8px;
  margin-top: 0;
  padding: 10px 12px 12px;
}

.result-links a {
  color: var(--blue-dark);
  font-weight: 820;
  min-width: 0;
  overflow-wrap: anywhere;
}

.primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.primary-actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  padding: 8px 11px;
  font-weight: 850;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.primary-actions a:hover,
.primary-actions a:focus-visible {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.empty-result {
  border-top-color: var(--red);
}

.topic-card {
  display: grid;
  min-height: 210px;
  align-content: start;
  gap: 12px;
  border-top: 6px solid var(--blue);
  cursor: pointer;
  padding: 22px;
  text-align: left;
}

.topic-card:hover,
.topic-card:focus-visible {
  background: var(--sky);
}

.question-panel,
.section-disclosure {
  overflow: hidden;
}

.question-panel summary,
.section-disclosure > summary,
.hub-card summary,
.data-card summary {
  cursor: pointer;
  list-style: none;
}

.question-panel summary::-webkit-details-marker,
.section-disclosure > summary::-webkit-details-marker,
.hub-card summary::-webkit-details-marker,
.data-card summary::-webkit-details-marker {
  display: none;
}

.question-panel summary,
.hub-card summary,
.data-card summary {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.question-panel summary::after,
.hub-card summary::after,
.data-card summary::after,
.section-disclosure > summary::after {
  content: "+";
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-dark);
  color: var(--navy);
  font-weight: 900;
}

.question-panel[open] summary::after,
.hub-card[open] summary::after,
.data-card[open] summary::after,
.section-disclosure[open] > summary::after {
  content: "-";
  background: var(--navy);
  color: #fff;
}

.question-panel summary,
.hub-card summary,
.data-card summary {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.question-panel summary .hub-label,
.hub-card summary .hub-label,
.data-card summary .hub-label {
  grid-column: 1;
}

.question-panel summary strong,
.hub-card summary strong,
.data-card summary strong,
.section-disclosure > summary strong {
  color: var(--navy);
  font-size: 1.12rem;
  line-height: 1.18;
}

.question-panel summary::after,
.hub-card summary::after,
.data-card summary::after {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.question-list,
.hub-body,
.details-body {
  display: grid;
  gap: 16px;
  padding: 0 22px 22px;
}

.question-list article {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.question-list h3 {
  margin-bottom: 6px;
}

.section-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: center;
  padding: 22px;
}

.section-disclosure > summary .section-kicker,
.section-disclosure > summary strong,
.section-disclosure > summary .section-note {
  grid-column: 1;
}

.section-disclosure > summary strong {
  font-size: 1.95rem;
}

.section-disclosure > summary::after {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.disclosure-body {
  padding: 0 22px 22px;
}

.document-disclosure-body {
  display: grid;
  gap: 14px;
}

.document-disclosure-body .archive-actions {
  margin-top: 0;
}

.popular-card,
.spotlight-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 22px;
  border-top: 6px solid var(--blue);
}

.popular-card h3,
.spotlight-card h3,
.task-card h3 {
  margin-top: 16px;
}

.popular-card a,
.spotlight-card a,
.task-links a,
.mini-links a,
.hub-card a,
.source-box a {
  color: var(--blue-dark);
  font-weight: 800;
}

.popular-card a,
.spotlight-card a {
  width: max-content;
  margin-top: auto;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-row button {
  min-height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  padding: 8px 14px;
  font-weight: 760;
}

.filter-row button[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.task-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 20px;
}

.task-card.hidden {
  display: none;
}

.task-source,
.hub-label {
  width: max-content;
  border-left: 5px solid var(--blue);
  background: var(--sky);
  color: var(--navy);
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.task-links,
.button-row,
.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
}

.hub-card {
  min-height: 0;
  padding: 0;
  border-top: 7px solid var(--blue);
  overflow: hidden;
}

.hub-card.village {
  border-top-color: var(--blue);
}

.hub-card.utility {
  border-top-color: var(--red);
}

.hub-card.school {
  border-top-color: var(--navy);
}

.hub-card.chamber {
  border-top-color: var(--gold);
}

.hub-body ul,
.source-box ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.data-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.feature-card {
  min-height: 300px;
  padding: 24px;
}

.utility-data {
  border-top: 7px solid var(--red);
  background:
    linear-gradient(135deg, rgba(178, 33, 52, 0.09), transparent 62%),
    var(--paper-soft);
}

.election-data,
.social-card {
  border-top: 7px solid var(--blue);
  background:
    linear-gradient(135deg, rgba(38, 109, 211, 0.12), transparent 62%),
    var(--paper-soft);
}

.calendar-strip {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) 1fr;
  gap: 18px;
  margin-top: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(0, 27, 64, 0.08);
}

.calendar-list,
.calendar-board,
.calendar-route-list {
  display: grid;
  gap: 12px;
}

.calendar-board {
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(0, 27, 64, 0.08);
}

.calendar-toolbar {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.calendar-toolbar p {
  margin: 0;
  color: var(--muted);
}

.calendar-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 14px;
  align-items: start;
}

.calendar-month,
.calendar-day-panel {
  min-width: 0;
}

.calendar-month h3,
.calendar-day-panel h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.05rem;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.calendar-weekdays span {
  background: var(--navy);
  color: #fff;
  padding: 7px 4px;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 900;
}

.calendar-day {
  display: grid;
  min-height: 58px;
  align-content: space-between;
  border: 0;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  padding: 7px;
  text-align: left;
}

.calendar-day:disabled {
  cursor: default;
}

.calendar-day span {
  font-weight: 880;
}

.calendar-day small {
  width: max-content;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  padding: 2px 6px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.calendar-day.has-event {
  background: var(--sky);
}

.calendar-day[aria-pressed="true"] {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
  background: #fff;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 2px var(--red);
}

.calendar-day.muted-day {
  color: var(--muted);
  opacity: 0.58;
}

.calendar-day-panel {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 14px;
}

.calendar-event {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.calendar-event span {
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-event strong {
  color: var(--navy);
  line-height: 1.2;
}

.calendar-event p,
.calendar-day-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.calendar-event a,
.calendar-route-list a {
  color: var(--blue-dark);
  font-weight: 820;
}

.calendar-sources {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.calendar-sources summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
  list-style: none;
}

.calendar-sources summary::-webkit-details-marker {
  display: none;
}

.calendar-route-list {
  margin-top: 10px;
}

.calendar-route-list p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.calendar-route-list span {
  color: var(--muted);
  font-size: 0.78rem;
}

.archive-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.answer-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--answer-card-min, 330px)), 1fr));
}

.answers-hub .answer-grid {
  --answer-card-min: 280px;
}

.search-answer-grid {
  margin-bottom: 18px;
}

.answer-card {
  display: grid;
  min-width: 0;
  min-height: 290px;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--green);
  background: #fff;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(0, 27, 64, 0.08);
  scroll-margin-top: 18px;
}

.answer-card.compact {
  min-height: 0;
}

.answer-card.compact .result-meta span {
  width: auto;
  min-width: 0;
}

.answer-card > .result-meta {
  gap: 5px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.answer-card .result-meta span {
  width: auto;
  min-width: 0;
  border-left: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 0.66rem;
  font-weight: 760;
  line-height: 1.2;
  text-transform: none;
  overflow-wrap: anywhere;
}

.answer-card h2,
.answer-card h3 {
  margin: 0;
  color: var(--navy);
}

.answer-card h2 {
  font-size: 1.28rem;
}

.answer-card h3 {
  font-size: 1.1rem;
}

.answer-card p {
  margin: 0;
  color: var(--muted);
}

.answer-documents {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

.answer-documents summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
  list-style: none;
  padding: 12px 14px;
}

.answer-documents summary::-webkit-details-marker {
  display: none;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  cursor: pointer;
  padding: 0;
  font-weight: 820;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.archive-card {
  display: grid;
  min-height: 230px;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--red);
  background: var(--paper-soft);
  padding: 20px;
  box-shadow: 0 12px 28px rgba(0, 27, 64, 0.08);
}

.archive-card span {
  width: max-content;
  border-left: 5px solid var(--blue);
  background: var(--sky);
  color: var(--navy);
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.archive-card h3 {
  margin: 0;
}

.archive-card p {
  margin: 0;
  color: var(--muted);
}

.archive-card a {
  color: var(--blue-dark);
  font-weight: 820;
}

.archive-actions {
  margin-top: 18px;
}

.archive-page main {
  padding-top: 22px;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 142px), 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.archive-stat {
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  background: #fff;
  min-width: 0;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(0, 27, 64, 0.06);
}

.archive-stat strong {
  display: block;
  color: var(--navy);
  font-size: 1.42rem;
  line-height: 1;
}

.archive-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1.15;
}

.archive-search-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0, 27, 64, 0.06);
}

.archive-search-field {
  display: grid;
  gap: 6px;
}

.archive-filter-disclosure {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.archive-filter-disclosure summary {
  display: flex;
  width: max-content;
  max-width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  color: var(--navy);
  padding: 7px 10px;
  font-weight: 900;
  list-style: none;
}

.archive-filter-disclosure summary::-webkit-details-marker {
  display: none;
}

.archive-filter-disclosure summary::after {
  content: "+";
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-size: 0.88rem;
  line-height: 1;
}

.archive-filter-disclosure[open] summary::after {
  content: "-";
}

.archive-filter-disclosure small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  text-transform: none;
}

.archive-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px;
  margin-top: 12px;
}

.archive-shortcuts {
  margin-bottom: 18px;
}

.archive-answer-band {
  margin-top: 28px;
}

.archive-answer-band .answer-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.archive-answer-band .answer-card.compact {
  flex: 0 0 min(330px, 84vw);
  scroll-snap-align: start;
}

.archive-controls label,
.archive-search-field {
  display: grid;
  gap: 6px;
}

.archive-controls span,
.archive-search-field span {
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.archive-controls input,
.archive-controls select,
.archive-search-field input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
}

.archive-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
  margin: -4px 0 10px;
}

.archive-filter-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line-dark);
  background: var(--sky);
  color: var(--navy);
  padding: 5px 9px;
  font-size: 0.82rem;
  font-weight: 830;
}

.archive-filter-actions {
  margin: -4px 0 16px;
}

.archive-filter-actions[hidden] {
  display: none;
}

.archive-page-results,
.failure-list {
  display: grid;
  gap: 14px;
}

.archive-record,
.failure-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0, 27, 64, 0.06);
}

.archive-record > *,
.failure-card > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.archive-record .result-meta {
  min-width: 0;
  flex-wrap: wrap;
}

.archive-record {
  border-top: 5px solid var(--blue);
}

.archive-record h3,
.failure-card strong {
  margin: 0;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.18;
}

.archive-record p,
.failure-card p {
  margin: 0;
  color: var(--muted);
}

.archive-record a,
.failure-card a {
  color: var(--blue-dark);
  font-weight: 820;
  overflow-wrap: anywhere;
}

.failure-card {
  border-left: 6px solid var(--red);
}

.intent-page main {
  padding-top: 22px;
}

.intent-hero {
  border: 1px solid var(--line);
  border-top: 6px solid var(--blue);
  background: #fff;
  padding: 26px;
  box-shadow: 0 12px 28px rgba(0, 27, 64, 0.08);
}

.intent-hero h1 {
  max-width: 980px;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 3rem;
  line-height: 1;
}

.utility-call-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-top: 6px solid var(--red);
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(0, 27, 64, 0.08);
}

.utility-call-strip h2 {
  margin-bottom: 8px;
}

.utility-call-strip p {
  margin-bottom: 0;
  color: var(--muted);
}

.utility-call-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 8px;
}

.utility-call-grid a {
  display: grid;
  min-height: 68px;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  background: var(--sky);
  color: var(--navy);
  padding: 10px;
  text-decoration: none;
}

.utility-call-grid a.urgent-call {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.utility-call-grid span {
  color: inherit;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.utility-call-grid strong {
  font-size: 0.92rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.route-card {
  display: grid;
  min-height: 280px;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--blue);
  background: #fff;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(0, 27, 64, 0.08);
}

.route-card.urgent,
.route-card.caution {
  border-top-color: var(--red);
}

.route-card span {
  width: max-content;
  max-width: 100%;
  border-left: 5px solid var(--blue);
  background: var(--sky);
  color: var(--navy);
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.route-card h2 {
  font-size: 1.28rem;
}

.route-card p {
  color: var(--muted);
}

.route-card a,
.source-strip a {
  color: var(--blue-dark);
  font-weight: 820;
  overflow-wrap: anywhere;
}

.source-strip {
  border: 1px solid var(--line);
  background: #fff;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(0, 27, 64, 0.08);
}

.source-hero p:not(.section-kicker):not(.section-note) {
  max-width: 960px;
  color: var(--muted);
}

.verification-grid,
.source-status-grid,
.source-page-list {
  display: grid;
  gap: 18px;
}

.verification-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.source-status-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.verification-card,
.source-status-card,
.source-pages-disclosure {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 27, 64, 0.08);
}

.verification-card,
.source-status-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 230px;
  padding: 22px;
  border-top: 6px solid var(--blue);
}

.verification-card span {
  width: max-content;
  max-width: 100%;
  border-left: 5px solid var(--blue);
  background: var(--sky);
  color: var(--navy);
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.verification-card h2,
.source-status-card h2 {
  font-size: 1.28rem;
}

.verification-card p,
.source-status-card p {
  margin: 0;
  color: var(--muted);
}

.correction-card {
  border-top-color: var(--gold);
}

.source-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.source-metrics div {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px;
}

.source-metrics strong {
  display: block;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1;
}

.source-metrics span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.source-pages-disclosure {
  overflow: hidden;
}

.source-pages-disclosure summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
}

.source-pages-disclosure summary::-webkit-details-marker {
  display: none;
}

.source-pages-disclosure summary strong {
  color: var(--navy);
}

.source-pages-disclosure summary span {
  color: var(--muted);
  font-weight: 820;
}

.source-pages-disclosure summary::after {
  content: "+";
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-dark);
  color: var(--navy);
  font-weight: 900;
}

.source-pages-disclosure[open] summary::after {
  content: "-";
  background: var(--navy);
  color: #fff;
}

.source-page-links {
  display: grid;
  max-height: 360px;
  gap: 9px;
  overflow: auto;
  border-top: 1px solid var(--line);
  padding: 16px 18px;
}

.source-page-links a {
  color: var(--blue-dark);
  font-weight: 760;
  overflow-wrap: anywhere;
}

.guide-grid article {
  min-height: 200px;
  padding: 22px;
}

.guide-grid span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.intake-form {
  display: grid;
  max-width: 880px;
  gap: 14px;
  padding: 22px;
}

.intake-form label {
  display: grid;
  gap: 6px;
}

.intake-form span {
  color: var(--navy);
}

.intake-form input,
.intake-form select,
.intake-form textarea {
  padding: 10px 12px;
}

.intake-form textarea {
  resize: vertical;
}

.intake-form button {
  width: max-content;
  cursor: pointer;
}

.form-note {
  min-height: 22px;
  margin: 0;
}

.source-box {
  max-width: 920px;
  padding: 22px;
}

.site-footer {
  padding: 0 0 24px;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(150px, 0.65fr));
  align-items: start;
  gap: 14px;
  border-top: 5px solid var(--navy);
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(0, 27, 64, 0.08);
}

.footer-brand,
.footer-links,
.footer-sources {
  min-width: 0;
}

.footer-brand strong,
.footer-links strong {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 1rem;
}

.footer-brand p {
  margin-bottom: 0;
  line-height: 1.45;
}

.footer-brand p:last-child,
.footer-grid p:last-child {
  margin-bottom: 0;
}

.footer-links {
  display: grid;
  gap: 5px;
}

.footer-links a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 790;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.footer-sources {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  background: var(--paper);
}

.footer-sources summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
  list-style: none;
  padding: 10px 12px;
}

.footer-sources summary::-webkit-details-marker {
  display: none;
}

.footer-sources:not([open]) > .source-list,
.question-panel:not([open]) > .question-list,
.hub-card:not([open]) > .hub-body,
.data-card:not([open]) > .details-body {
  display: none;
}

.source-list {
  display: grid;
  max-height: 260px;
  gap: 8px;
  overflow: auto;
  padding: 0 12px 12px;
}

.source-list a {
  color: var(--blue-dark);
  font-weight: 760;
}

.source-list-compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.source-list-compact a {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 9px;
  text-decoration: none;
}

.source-list-compact strong {
  color: var(--navy);
  font-size: 0.82rem;
  line-height: 1.12;
}

.source-list-compact small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1.18;
}

.compact-site-footer {
  padding-bottom: 18px;
}

.footer-compact {
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(0, 1.8fr) max-content;
  align-items: center;
  gap: 10px 18px;
  border-top: 4px solid var(--navy);
  background: #fff;
  padding: 10px 14px;
  box-shadow: 0 10px 24px rgba(0, 27, 64, 0.07);
}

.footer-compact-status {
  display: block;
  min-width: 0;
}

.footer-compact-status strong {
  display: block;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.25;
  margin-bottom: 2px;
}

.footer-compact-status > span {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.footer-compact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  min-width: 0;
}

.footer-compact-links span {
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-compact-links span:not(:first-child) {
  margin-left: 8px;
}

.footer-link-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 8px 16px;
}

.footer-link-group {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
}

.footer-link-group strong {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.footer-compact-links a {
  color: var(--blue-dark);
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.2;
  text-decoration: none;
}

.footer-compact-links a:hover,
.footer-compact-links a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.footer-sources-compact {
  grid-column: auto;
  justify-self: end;
  width: max-content;
  max-width: 100%;
  border: 0;
  background: transparent;
}

.footer-sources-compact summary {
  width: max-content;
  min-height: 26px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 4px 8px;
  font-size: 0.78rem;
}

.footer-sources-compact[open] {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
}

.footer-sources-compact[open] summary {
  border: 0;
  background: transparent;
}

.footer-sources-compact[open] .source-list {
  max-height: 180px;
}

.footer-sources-compact[open] .source-list-compact {
  max-height: none;
}

.source-strip-footer {
  padding-bottom: 8px;
}

.footer-source-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 18px;
  border-top: 3px solid var(--navy);
  background: #fff;
  padding: 6px 12px;
  box-shadow: 0 10px 24px rgba(0, 27, 64, 0.07);
}

.footer-status-line {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-status-line strong {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
}

.disclaimer-badge {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 21px;
  align-items: center;
  background: var(--navy);
  color: #fff;
  padding: 3px 6px;
  font-size: 0.63rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.footer-source-nav {
  display: flex;
  min-width: 0;
  flex: 1 1 470px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 3px 0;
  color: var(--muted);
  line-height: 1.2;
  text-align: right;
}

.footer-source-cluster {
  display: inline-flex;
  min-width: 0;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 7px;
}

.footer-source-group {
  color: var(--navy);
  font-size: 0.64rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-link-row {
  display: inline-flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 7px;
}

.footer-source-nav > span {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  margin-right: 3px;
  color: var(--navy);
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-source-nav > span:first-child {
  margin-left: 0;
}

.footer-source-nav a {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  flex: 0 0 auto;
  border-left: 1px solid rgba(154, 168, 186, 0.72);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 790;
  padding: 0 7px;
  text-decoration: none;
  white-space: nowrap;
}

.footer-source-nav a:first-child {
  border-left: 0;
}

.footer-source-nav a:hover,
.footer-source-nav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.footer-source-nav .source-notes-link {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  font-weight: 860;
  margin-left: 7px;
  padding: 1px 8px;
}

.source-rail-footer {
  width: min(100% - clamp(12px, 1.4vw, 24px), 1760px);
  padding-bottom: 6px;
}

.source-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 27, 64, 0.06);
  overflow: hidden;
  padding: 0 8px;
}

.source-rail-status {
  display: flex;
  min-width: max-content;
  flex: 0 1 auto;
  align-items: center;
  gap: 6px;
  border-right: 1px solid rgba(154, 168, 186, 0.72);
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.1;
  margin: 0;
  padding: 3px 10px 3px 0;
  white-space: nowrap;
}

.source-rail-status strong {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 0.84rem;
  line-height: 1;
}

.source-rail-status > span:not(.disclaimer-badge) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-rail-nav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  color: var(--muted);
  line-height: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.source-rail-nav::-webkit-scrollbar {
  display: none;
}

.source-rail-group {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 0;
  align-items: center;
  gap: 0;
  min-height: 26px;
  padding: 0 8px;
}

.source-rail-group + .source-rail-group {
  border-left: 1px solid rgba(154, 168, 186, 0.72);
}

.source-rail-label {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  color: var(--navy);
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1;
  padding-right: 5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.source-rail-nav a {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-left: 1px solid rgba(154, 168, 186, 0.45);
  color: var(--blue-dark);
  font-size: 0.66rem;
  font-weight: 820;
  line-height: 1;
  padding: 0 5px;
  text-decoration: none;
  white-space: nowrap;
}

.source-rail-nav a:first-of-type {
  border-left: 0;
}

.source-rail-notes {
  color: var(--navy);
  font-weight: 930;
}

.source-rail-nav a:hover,
.source-rail-nav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.utility-bar a:hover,
.utility-bar a:focus-visible,
.quick-actions > a:hover,
.quick-actions > a:focus-visible,
.utility-routes a:hover,
.utility-routes a:focus-visible,
.button:hover,
.button:focus-visible,
.popular-card a:hover,
.popular-card a:focus-visible,
.task-links a:hover,
.task-links a:focus-visible,
.hub-card a:hover,
.hub-card a:focus-visible,
.spotlight-card a:hover,
.spotlight-card a:focus-visible,
.calendar-list a:hover,
.calendar-list a:focus-visible,
.archive-card a:hover,
.archive-card a:focus-visible,
.archive-record a:hover,
.archive-record a:focus-visible,
.failure-card a:hover,
.failure-card a:focus-visible,
.route-card a:hover,
.route-card a:focus-visible,
.source-strip a:hover,
.source-strip a:focus-visible,
.mini-links a:hover,
.mini-links a:focus-visible,
.source-box a:hover,
.source-box a:focus-visible,
.source-page-links a:hover,
.source-page-links a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.footer-compact-links a:hover,
.footer-compact-links a:focus-visible,
.source-rail-nav a:hover,
.source-rail-nav a:focus-visible,
.footer-source-nav a:hover,
.footer-source-nav a:focus-visible,
.footer-sources-compact summary:hover,
.footer-sources-compact summary:focus-visible,
.nav-links a:hover,
.nav-links a:focus-visible {
  outline: 3px solid rgba(38, 109, 211, 0.28);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-source-strip {
    align-items: start;
    gap: 6px;
  }

  .footer-status-line {
    white-space: normal;
  }

  .footer-source-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    text-align: left;
    scrollbar-width: thin;
  }

  .footer-source-cluster,
  .footer-link-row,
  .footer-source-group,
  .footer-source-nav > span,
  .footer-source-nav a {
    flex: 0 0 auto;
  }

  .footer-source-cluster,
  .footer-link-row {
    flex-wrap: nowrap;
  }

  .source-rail-nav {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .quick-actions,
  .values-strip,
  .popular-grid,
  .question-grid,
  .topic-grid,
  .answer-grid,
  .spotlight-grid,
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-grid,
  .task-grid,
  .calendar-strip,
  .calendar-list,
  .data-grid,
  .guide-grid,
  .updates-layout,
  .archive-controls,
  .utility-call-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy,
  .hero-grid {
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .footer-compact {
    grid-template-columns: 1fr;
  }

  .footer-sources-compact {
    justify-self: start;
  }

  .footer-link-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1220px);
  }

  .utility-bar,
  .topbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .utility-bar {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 9px;
    padding: 6px 10px;
  }

  .utility-brand {
    flex: 0 0 auto;
    gap: 7px;
    font-size: 0.95rem;
  }

  .utility-brand .brand-mark {
    width: 26px;
    height: 26px;
  }

  .utility-bar > span {
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.72rem;
  }

  .topbar {
    padding: 14px;
  }

  .search-row,
  .quick-actions,
  .values-strip,
  .popular-grid,
  .question-grid,
  .result-grid,
    .topic-grid,
    .answer-grid,
    .spotlight-grid,
  .task-grid,
  .hub-grid,
  .calendar-strip,
  .calendar-list,
  .data-grid,
  .guide-grid,
  .updates-layout,
  .archive-grid,
  .archive-controls,
  .utility-call-strip {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: start;
    background:
      linear-gradient(90deg, rgba(0, 27, 64, 0.95), rgba(0, 27, 64, 0.82)),
      url("assets/blanchester-north-broadway.jpg") center / cover no-repeat;
  }

  .hero-copy {
    padding: 20px 18px;
  }

  .search-suggestions {
    max-height: min(330px, 52vh);
  }

  h1 {
    margin-bottom: 12px;
    font-size: 2.35rem;
    line-height: 1;
  }

  .intent-hero h1 {
    font-size: 2.25rem;
  }

  .lead {
    margin-bottom: 16px;
    font-size: 0.96rem;
  }

  .hero-highlights {
    gap: 7px;
    margin-top: 12px;
  }

  .hero-highlights a,
  .hero-highlights button {
    padding: 7px 9px;
    font-size: 0.82rem;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .quick-actions > a,
  .utility-routes {
    min-height: 104px;
    padding: 14px;
  }

  .footer-source-strip {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    gap: 6px;
    padding: 8px 10px;
  }

  .footer-status-line {
    align-items: center;
    font-size: 0.75rem;
    flex-wrap: wrap;
  }

  .footer-source-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .footer-source-cluster,
  .footer-link-row,
  .footer-source-group,
  .footer-source-nav > span,
  .footer-source-nav a {
    flex: 0 0 auto;
  }

  .footer-source-cluster,
  .footer-link-row {
    flex-wrap: nowrap;
  }

  .source-rail-footer {
    width: min(100% - 16px, 1220px);
  }

  .source-rail {
    gap: 6px;
    min-height: 29px;
    padding: 0 6px;
  }

  .source-rail-status {
    font-size: 0.65rem;
    padding: 3px 7px 3px 0;
  }

  .source-rail-note,
  .source-rail-status > span:last-child {
    display: none;
  }

  .source-rail-nav {
    overflow-x: auto;
  }

  .source-rail-group {
    min-height: 26px;
    padding: 0 7px;
  }

  .quick-actions strong {
    font-size: 0.95rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
