:root {
  color-scheme: light;
  --ink: #203b35;
  --ink-soft: #40574f;
  --muted: #596c63;
  --navy: #173e35;
  --navy-deep: #102b26;
  --rust: #874725;
  --rust-dark: #6c351b;
  --gold: #f1c99e;
  --cream: #f8f7f1;
  --paper: #fffefa;
  --sage: #e8efe7;
  --line: #deded3;
  --focus: #a45d2f;
  --shadow: 0 12px 34px rgb(29 57 48 / 8%);
  --content: 1184px;
  --body-font: "DM Sans", system-ui, sans-serif;
  --display-font: "Fraunces", Georgia, serif;
  --landscape: url("assets/connecticut-river.webp");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-block-start: 6rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 16px/1.55 var(--body-font);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
a { color: var(--rust); text-underline-offset: .2em; }
a:hover { color: var(--rust-dark); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
h2 {
  color: var(--navy-deep);
  font: 600 clamp(1.75rem, 3.25vw, 2.65rem)/1.08 var(--display-font);
  letter-spacing: -.035em;
}
h3 { color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 10;
  inset: 10px auto auto 10px;
  padding: 12px 16px;
  border-radius: 8px;
  color: white;
  background: var(--navy);
  transform: translateY(-140%);
}
.skip-link:focus { transform: none; }
.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.section-wrap { width: min(var(--content), calc(100% - 72px)); margin-inline: auto; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.eyebrow-dark { color: var(--rust); }

.site-header {
  position: sticky;
  z-index: 4;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--content), calc(100% - 72px));
  min-height: 72px;
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--navy-deep);
  font: 600 1.25rem/1.1 var(--display-font);
  letter-spacing: -.045em;
  text-decoration: none;
}
.brand:hover { color: var(--navy-deep); }
.brand-mark {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #f7d4b3;
  background: var(--navy);
}
.brand-mark svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}
.desktop-nav { display: flex; align-items: center; gap: 5px; }
.desktop-nav a, .header-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.desktop-nav a:hover, .desktop-nav a[aria-current] { color: var(--navy); background: var(--sage); }
.header-help { border: 1px solid var(--line); color: var(--navy); }
.header-help:hover, .header-help[aria-current] { color: var(--navy); background: var(--sage); }
.region-label, .mobile-nav { display: none; }
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { min-height: 88px; }
.footer-inner > a:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: .85rem;
}
.brand-footer { font-size: 1.1rem; }
.brand-footer .brand-mark { width: 34px; height: 34px; }
.brand-footer .brand-mark svg { width: 24px; }

.button, .text-button, .icon-button, .back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button {
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: .93rem;
  line-height: 1.25;
  text-align: center;
  transition: background-color .16s, border-color .16s, transform .16s;
}
.button:active { transform: translateY(1px); }
.button-dark { color: #fff; background: var(--navy); }
.button-dark:hover { color: #fff; background: var(--navy-deep); }
.button-outline { border-color: #bdc8be; color: var(--navy); background: var(--paper); }
.button-outline:hover { border-color: #8a9e90; color: var(--navy); background: var(--sage); }
.button-light { color: var(--navy-deep); background: var(--gold); }
.button-light:hover { color: var(--navy-deep); background: #f9dfbd; }
.button:disabled, .text-button:disabled {
  opacity: .55;
  cursor: default;
  transform: none;
}
.text-button, .back-link {
  padding: 3px 0;
  border: 0;
  color: var(--rust);
  background: transparent;
  font-size: .875rem;
  text-align: left;
}
.text-button:hover, .back-link:hover { text-decoration: underline; }
.icon-button {
  flex: none;
  width: 44px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: var(--navy);
  background: transparent;
}
.icon-button:hover { background: var(--sage); }

.hero, .library-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 455px;
  margin-top: 24px;
  padding: clamp(36px, 5.6vw, 72px);
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background: #183a33;
}
.hero-photo, .hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 59% 45%; }
.hero::after {
  content: "";
  background: linear-gradient(90deg, rgb(12 34 29 / 90%), rgb(12 34 29 / 68%) 40%, rgb(12 34 29 / 22%) 70%, transparent);
}
.hero-copy { max-width: 550px; }
.hero h1, .library-banner h1 {
  margin-bottom: 18px;
  font: 600 clamp(3.5rem, 6.3vw, 5.6rem)/.98 var(--display-font);
  letter-spacing: -.05em;
}
.hero h1 em, .library-banner h1 em { color: var(--gold); font-weight: 500; }
.hero-lede, .library-banner-inner > p:last-child {
  max-width: 385px;
  margin-bottom: 22px;
  color: #f1f3ee;
  font-size: 1.0625rem;
  line-height: 1.55;
}
.hero .button { gap: 14px; min-height: 50px; padding-inline: 17px; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: #e4eee6;
  font-size: .8125rem;
}
.hero-note .icon { color: var(--gold); }

.first-step { padding-block: 36px 20px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 19px;
}
.section-heading .eyebrow { margin-bottom: 7px; }
.launch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.launch-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: center;
  gap: 13px 10px;
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.launch-card:hover {
  border-color: #9cac9e;
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.launch-card:active { transform: translateY(0); }
.launch-card > .icon { grid-area: 1 / 2; color: var(--rust); }
.launch-card strong, .launch-card small { display: block; }
.launch-card strong { font-size: 1.0625rem; }
.launch-card small { margin-top: 3px; color: var(--ink-soft); font-size: .875rem; line-height: 1.4; }
.launch-icon {
  display: grid;
  flex: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  font-size: 1.18rem;
}
.tone-peach { color: #874725; background: #f6e7da; }
.tone-sage { color: #315d4d; background: #e3eee1; }
.tone-blue { color: #365c62; background: #e3edef; }

.disclosure { min-width: 0; }
.disclosure > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--navy);
  font-size: .875rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin: -3px 2px 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .15s;
}
.disclosure[open] > summary::after { transform: rotate(225deg); }
.privacy-settings { max-width: 720px; margin-top: 8px; }
.privacy-settings > summary { justify-content: flex-start; color: var(--muted); font-size: .8125rem; }
.privacy-settings > summary::after { margin-inline-start: 2px; }
.analytics-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  background: var(--paper);
  cursor: pointer;
}
.analytics-consent input, .need-options input, .evidence-grid input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--navy);
}
.analytics-consent strong, .analytics-consent small { display: block; }
.analytics-consent strong { margin-bottom: 3px; font-size: .875rem; }
.analytics-consent small { font-size: .8125rem; }

.directory-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 20px;
  padding: 23px 26px;
  border: 1px solid #d5ded3;
  border-radius: 16px;
  background: #edf1e8;
}
.directory-intro { display: flex; align-items: center; gap: 12px; }
.directory-intro h2 { margin-bottom: 4px; font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.directory-intro p { color: var(--ink-soft); font-size: .9rem; }
.directory-links { display: flex; flex-wrap: wrap; gap: 7px; grid-row: 2; }
.directory-links a, .topic-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 13px;
  border: 1px solid #ced8cd;
  border-radius: 999px;
  color: var(--navy);
  background: var(--paper);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}
.directory-links a:hover, .topic-chip:hover { border-color: #8caa97; color: var(--navy); }
.directory-promo > .text-button { grid-area: 1 / 2; }

.resources {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 6vw, 90px);
  padding-block: 64px 36px;
}
.resources-title h2 { max-width: 450px; }
.resources-title > p:not(.eyebrow) { max-width: 38ch; margin-block: 12px 17px; color: var(--ink-soft); }
.resource-list { display: grid; gap: 8px; }
.resource-item, .resource-callout {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
}
.resource-item:hover { border-color: #9cac9e; color: var(--ink); box-shadow: var(--shadow); }
.resource-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 10px;
  color: var(--rust);
  background: #f5e8db;
}
.resource-item strong, .resource-item small, .resource-callout strong, .resource-callout small { display: block; }
.resource-item strong, .resource-callout strong { font-size: .9375rem; }
.resource-item small, .resource-callout small { color: var(--ink-soft); font-size: .8125rem; }
.resource-arrow, .resource-callout a { color: var(--rust); }
.resource-callout { grid-template-columns: 35px minmax(0, 1fr); background: var(--sage); }
.resource-callout > span:first-child { text-align: center; }
.resource-callout a { display: inline-flex; align-items: center; min-height: 44px; }

.interest-section {
  margin-bottom: 32px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.interest-section > summary { min-height: 50px; }
.interest-section summary span { margin-left: auto; color: var(--muted); font-size: .8125rem; font-weight: 500; }
.interest-section summary::after { margin-left: 2px; }
.interest-card { display: grid; gap: 12px; padding-block: 8px 18px; }
.interest-intro { color: var(--ink-soft); font-size: .9375rem; }
.interest-options { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-choice {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--cream);
  font-weight: 600;
  cursor: pointer;
}
.interest-choice:hover, .interest-choice[aria-pressed="true"] { border-color: #8caa97; background: var(--sage); }
.interest-choice:disabled:not([aria-pressed="true"]) { opacity: .55; }
.interest-privacy, .interest-results { color: var(--ink-soft); font-size: .8125rem; }
.interest-results { padding: 12px; border-radius: 9px; background: var(--sage); }
.interest-popular { font-weight: 700; }
.interest-count-list { max-width: 520px; margin: 8px 0 0; padding: 0; list-style: none; }
.interest-count-list li { display: flex; justify-content: space-between; gap: 8px; padding-block: 3px; }
.boundary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(var(--content), calc(100% - 72px));
  margin: 0 auto 36px;
  padding: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}
.boundary-mark {
  display: grid;
  flex: none;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--sage);
  font-weight: 700;
}
.boundary strong { color: var(--ink); }
.boundary p { margin-top: 4px; }

.journey-view { min-height: 62vh; padding-block: 22px 44px; }
.journey-view > section {
  width: min(856px, calc(100% - 48px));
  animation: enter .22s ease-out;
}
@keyframes enter {
  from { opacity: .72; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.journey-heading { margin-bottom: 22px; }
.journey-heading .eyebrow { margin-bottom: 8px; }
.back-link { margin-bottom: 12px; }
.journey-heading h1 {
  margin-bottom: 10px;
  color: var(--navy-deep);
  font: 600 clamp(2.3rem, 5.2vw, 3.6rem)/1.04 var(--display-font);
  letter-spacing: -.04em;
}
.journey-summary { max-width: 62ch; color: var(--ink-soft); }
.benefit-intake-card, .need-finder-card, .response-card, .interpreter-card {
  min-width: 0;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.not-sure-card { display: grid; gap: 10px; }
.not-sure-card .launch-card {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  padding: 14px;
}
.not-sure-card .launch-card > .icon { grid-area: auto; }
.intake-privacy, .need-privacy, .field-hint { margin-block: 10px 14px; color: var(--muted); font-size: .875rem; }
.intake-error, .form-status { margin-top: 9px; color: var(--rust-dark); font-size: .875rem; }
.intake-error:empty, .form-status:empty { display: none; }
.form-status { color: var(--navy); }
.journey-alternatives { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0 18px; margin-top: 8px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 5px; color: var(--ink); font-size: .9375rem; font-weight: 700; }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #bac8bc;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
}
.field textarea { min-height: 86px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .library-search input::placeholder { color: #65766c; }
.field :is(input, select, textarea):focus-visible, .library-search:focus-within {
  outline: 2px solid #698a78;
  outline-offset: 1px;
}
.benefit-intake-fields, .checklist-grid, .response-fields, .housing-fields, .need-options, .need-result-list, .evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field-wide { grid-column: 1 / -1; }
.optional-label { color: var(--muted); font-size: .8125rem; font-weight: 500; }
.benefit-match, .result, .need-results {
  margin-top: 18px;
  padding: 18px;
  overflow-wrap: anywhere;
  border: 1px solid #d4e0d3;
  border-radius: 12px;
  background: #f1f5ed;
}
.benefit-match h3, .result h3 { margin-bottom: 9px; font: 600 1.5rem/1.15 var(--display-font); }
.benefit-match p, .result p { margin-block: 7px; }
.benefit-match > a, .need-result-item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}
.benefit-match-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 6px; }
.need-options, .housing-evidence { min-width: 0; margin: 0; padding: 0; border: 0; }
.need-options legend, .housing-evidence legend { margin-bottom: 9px; padding: 0; font-size: .9375rem; font-weight: 700; }
.need-options label, .evidence-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: .9rem;
  cursor: pointer;
}
.hm5-paragraph-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.hm5-paragraph-question { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.hm5-paragraph-question legend { padding-inline: 5px; color: var(--ink); font-size: .875rem; font-weight: 700; }
.hm5-fields > fieldset.housing-evidence { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.check-label { display: flex; align-items: flex-start; gap: 9px; color: var(--ink-soft); font-size: .875rem; line-height: 1.55; }
.check-label input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--rust); }
.hm5-vault { margin-top: 24px; padding: 20px; border: 1px solid #d8e4d9; border-radius: 14px; background: var(--sage); color: #405c4c; }
.hm5-vault h3 { margin: 0 0 8px; color: #294637; font-size: 1.25rem; }
.hm5-vault p { font-size: .875rem; line-height: 1.6; }
.hm5-vault-consent { margin-block: 16px; }
.vault-result, .hm5-vault-retrieve { margin-top: 16px; padding: 15px; border-radius: 10px; background: white; }
.vault-result textarea, .hm5-vault-retrieve textarea { width: 100%; margin: 10px 0; }
.vault-result > div, .hm5-vault-retrieve > div { display: flex; flex-wrap: wrap; gap: 9px; }
.hm5-vault-retrieve summary { cursor: pointer; font-weight: 700; }
.need-options label:has(input:checked), .evidence-grid label:has(input:checked) {
  border-color: #85a391;
  background: var(--sage);
}
.need-result-intro, .need-result-note { font-size: .875rem; }
.need-result-group { margin-top: 17px; }
.need-result-group h3 { margin-bottom: 8px; font-size: 1.125rem; }
.need-result-item { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.need-result-item h4 { margin: 0 0 5px; font-size: .9375rem; }
.need-result-item p, .need-result-item a { font-size: .875rem; }
.need-result-note { margin-top: 14px; color: var(--ink-soft); }

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #d9e3d8;
  border-radius: 10px;
  color: var(--ink-soft);
  background: var(--sage);
  font-size: .875rem;
}
.privacy-note strong { color: var(--navy-deep); }
.privacy-note .icon { margin-top: 2px; color: var(--navy); }
.field-heading, .form-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; }
.field-heading label { margin: 0; }
.form-row { color: var(--muted); font-size: .875rem; }
.notice-field textarea { min-height: 120px; }
.notice-field .field-hint { margin: 0; }
.checklist-details, .housing-help-disclosure {
  margin-block: 13px 16px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafaf5;
}
.checklist-details[open] { padding-bottom: 12px; }
.instructions-field { margin-top: 12px; }
.instructions-field .field-hint { display: block; margin-bottom: 0; }
.builder-link { margin-top: 6px; }
.result h4 { margin: 0 0 8px; }
.result-group { margin-top: 11px; padding: 11px; border-radius: 8px; background: var(--paper); }
.result-group ul { margin: 6px 0 0; padding-left: 21px; }
.found-quote, .result-warning {
  padding: 10px 12px;
  border-left: 3px solid #81a08c;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: .875rem;
}
.result-warning { border-color: #b47b44; background: #fcf4e7; }
.checklist-answer { padding: 7px 0; border-bottom: 1px solid var(--line); }
.result .checklist-answer p { margin: 2px 0; }
.checklist-footnote { color: var(--ink-soft); font-size: .875rem; }

.response-route-field { margin-bottom: 18px; }
.route-source, .route-message {
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid #e8d9c5;
  border-radius: 10px;
  color: #59442e;
  background: #fbf2e5;
  font-size: .9rem;
  overflow-wrap: anywhere;
}
.route-source > strong { display: block; margin-bottom: 4px; }
.route-source > p + p { margin-top: 6px; }
.route-source > a, .housing-help-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}
.housing-help-links { display: grid; padding-bottom: 8px; }
.step-flow { padding-top: 5px; }
.flow-progress {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 15px;
  color: var(--ink-soft);
  font-size: .875rem;
  font-weight: 700;
}
.flow-progress progress {
  flex: 1;
  min-width: 0;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e3eae1;
  color: #508067;
  accent-color: #508067;
}
.flow-progress progress::-webkit-progress-bar { background: #e3eae1; }
.flow-progress progress::-webkit-progress-value { background: #508067; }
.flow-progress progress::-moz-progress-bar { background: #508067; }
.flow-step { animation: enter .2s ease-out; scroll-margin-block-start: 5px; }
.flow-step h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.step-description { margin: 6px 0 15px; color: var(--ink-soft); font-size: .9375rem; }
.flow-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
}
.flow-actions > [data-step-next] { margin-left: auto; }
.draft-preview {
  max-height: 26rem;
  padding: 16px;
  overflow: auto;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #faf9f2;
  font: .875rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
}
.draft-actions p { margin-bottom: 9px; color: var(--ink-soft); font-size: .875rem; }
.draft-actions > div { display: flex; flex-wrap: wrap; gap: 8px 10px; }

.library-banner {
  min-height: 260px;
  padding-block: 36px;
  background: linear-gradient(90deg, #173b31 6%, rgb(20 50 41 / 86%) 45%, rgb(15 39 33 / 27%) 100%), var(--landscape) center 42% / cover;
}
.library-banner h1 { margin-bottom: 10px; font-size: clamp(2.75rem, 5vw, 4.5rem); }
.library-banner-inner > p:last-child { max-width: 46ch; margin: 0; }
.library-shell { padding-block: 34px 28px; }
.library-shell .section-heading h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
.library-tabs {
  display: flex;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #e8ede4;
}
.library-tab {
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 9px;
  color: var(--ink-soft);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.library-tab[aria-selected="true"] { color: var(--navy-deep); background: var(--paper); box-shadow: 0 2px 7px #142e2320; }
.library-controls, .forms-controls { display: flex; align-items: center; gap: 9px; }
.library-search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 50px;
  padding: 0 4px 0 12px;
  border: 1px solid #bac8bc;
  border-radius: 11px;
  color: var(--muted);
  background: #fff;
}
.library-search input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}
.library-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
#open-filters { min-height: 50px; }
.filter-count {
  min-width: 20px;
  padding: 2px 4px;
  border-radius: 99px;
  color: white;
  background: var(--navy);
  font-size: .75rem;
}
.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  padding: 4px;
}
.topic-chip { flex: none; white-space: nowrap; cursor: pointer; }
.topic-chip[aria-pressed="true"] { border-color: var(--navy); color: white; background: var(--navy); }
.library-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-block: 11px;
  color: var(--muted);
  font-size: .875rem;
}
.library-results-bar p { color: var(--navy); font-weight: 700; }
.library-results-bar > span { display: flex; align-items: center; gap: 5px; }
.resource-listing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.library-record {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 17px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.record-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.record-heading h3 { margin-top: 4px; font-size: 1.125rem; letter-spacing: -.02em; }
.record-category {
  color: #426b55;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.provider-badge {
  flex: none;
  max-width: 38%;
  padding: 4px 7px;
  border-radius: 8px;
  color: #31584a;
  background: var(--sage);
  font-size: .75rem;
  font-weight: 700;
}
.provider-nonprofit { color: #754d24; background: #f6ead9; }
.provider-directory { color: #365b64; background: #e6eef0; }
.record-description { margin-block: 8px 5px; color: var(--ink-soft); font-size: .9375rem; }
.record-details { margin-bottom: 9px; border-block: 1px solid #ecece4; }
.record-details > summary { gap: 8px; }
.record-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 2px 0 8px;
  color: var(--ink-soft);
  font-size: .8125rem;
}
.record-metadata dt { color: var(--ink); font-weight: 700; }
.record-metadata dd { margin: 2px 0 0; }
.record-status { display: block; padding-bottom: 8px; color: var(--muted); font-size: .8125rem; }
.record-footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.record-footer .button { min-height: 44px; padding: 9px 12px; font-size: .875rem; }
.form-guidance { margin-bottom: 12px; padding: 0 13px; border-radius: 9px; background: #fbf1e2; }
.form-guidance p, .form-record-note { padding-bottom: 9px; color: #604b37; font-size: .875rem; }
.form-topic { width: min(215px, 100%); }
.no-resources {
  padding: 26px;
  border: 1px dashed #a8b8ad;
  border-radius: 13px;
  color: var(--ink);
  background: var(--paper);
  text-align: center;
}
.no-resources p { margin: 4px 0 10px; color: var(--ink-soft); }
.library-disclaimer { max-width: 88ch; margin: 13px 0 0; color: var(--muted); font-size: .875rem; }
.library-urgent {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 14px;
  margin-bottom: 36px;
  padding: 15px;
  border: 1px solid #d5ded3;
  border-radius: 12px;
  background: var(--sage);
}
.library-urgent > div { display: flex; align-items: center; flex: 1 1 270px; gap: 12px; }
.library-urgent p { color: var(--ink-soft); font-size: .875rem; }
.filter-dialog {
  width: min(450px, calc(100% - 32px));
  max-height: 90dvh;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 18px 70px #0f261c4d;
}
.filter-dialog::backdrop { background: rgb(17 35 29 / 58%); }
body:has(.filter-dialog[open]) { overflow: hidden; }
.filter-form { padding: 16px 20px 20px; }
.filter-head, .filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.filter-head h2 { font-size: 1.65rem; }
.filter-fields { display: grid; gap: 11px; margin-block: 9px 15px; }

@media (max-width: 840px) {
  .section-wrap, .header-inner, .footer-inner, .boundary { width: calc(100% - 40px); }
  .desktop-nav a, .header-help { padding-inline: 11px; }
  .hero { min-height: 415px; }
  .directory-intro { align-items: flex-start; }
}

@media (max-width: 680px) {
  :root { --landscape: url("assets/connecticut-river-small.webp"); }
  html { scroll-padding-block-start: 4.5rem; scroll-padding-block-end: 5rem; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .section-wrap, .header-inner, .footer-inner, .boundary { width: calc(100% - 28px); }
  .header-inner { min-height: 62px; gap: 8px; }
  .brand { gap: 8px; font-size: 1.125rem; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark svg { width: 24px; }
  .desktop-nav, .header-help { display: none; }
  .region-label {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 99px;
    color: #3b5e4c;
    background: var(--sage);
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
  }
  .mobile-nav {
    position: fixed;
    z-index: 5;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 5px max(10px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 -5px 22px rgb(29 57 48 / 8%);
  }
  .mobile-nav a {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
    min-height: 56px;
    border-radius: 10px;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
  }
  .mobile-nav a[aria-current] { color: var(--navy-deep); background: var(--sage); }
  .mobile-nav .icon { width: 21px; height: 21px; }
  .footer-inner { gap: 8px; min-height: 65px; }
  .footer-inner > a:last-child { max-width: 135px; text-align: right; }

  .hero, .library-banner { min-height: 0; margin-top: 12px; padding: 28px 21px 25px; border-radius: 18px; }
  .hero::after {
    background: linear-gradient(90deg, rgb(13 37 31 / 87%), rgb(13 37 31 / 55%) 63%, rgb(13 37 31 / 23%)),
                linear-gradient(0deg, rgb(13 37 31 / 56%), transparent 78%);
  }
  .hero-photo img { object-position: 66% 47%; }
  .hero h1 { margin-bottom: 13px; font-size: clamp(2.3rem, 11.1vw, 4rem); }
  .hero-lede { margin-bottom: 16px; font-size: 1rem; }
  .hero .eyebrow { margin-bottom: 13px; font-size: .6875rem; letter-spacing: .08em; }
  .hero-note { margin-top: 12px; }
  .first-step { padding-block: 23px 15px; }
  .first-step .section-heading { margin-bottom: 8px; }
  .first-step .section-heading > a { min-height: 44px; }
  .launch-grid { grid-template-columns: 1fr; gap: 8px; }
  .launch-card {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    min-height: 71px;
    padding: 11px;
    border-radius: 13px;
  }
  .launch-card > .icon { grid-area: auto; }
  .launch-card strong { font-size: 1rem; }
  .launch-card small { margin-top: 2px; font-size: .835rem; }
  .directory-promo { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 15px; }
  .directory-promo > .text-button { grid-area: auto; justify-self: start; }
  .resources { grid-template-columns: 1fr; padding-block: 36px 22px; }
  .interest-section, .boundary { margin-bottom: 20px; }
  .boundary { padding-inline: 3px; }

  .journey-view { padding-block: 9px 26px; }
  .journey-view > section { width: calc(100% - 28px); }
  .journey-heading { margin-bottom: 14px; }
  .journey-heading .eyebrow { margin-bottom: 5px; }
  .back-link { margin-bottom: 5px; }
  .journey-heading h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .benefit-intake-card, .need-finder-card, .response-card, .interpreter-card { padding: 14px; border-radius: 14px; }
  .benefit-intake-fields, .checklist-grid, .response-fields, .housing-fields, .need-options, .need-result-list, .evidence-grid, .hm5-paragraph-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .benefit-intake-card > .button, .need-finder-card > .button, .interpreter-card > .button { width: 100%; }
  .benefit-match-actions .button, .flow-actions > [data-step-next] { flex: 1; }
  .draft-preview { padding: 12px; }
  .draft-actions .button { flex: 1 1 auto; }
  .result, .need-results, .benefit-match { padding: 12px; }

  .library-banner {
    background: linear-gradient(90deg, rgb(15 43 34 / 94%) 9%, rgb(15 43 34 / 67%) 69%, rgb(15 43 34 / 38%)), var(--landscape) 67% 45% / cover;
  }
  .library-banner h1 { font-size: clamp(2.35rem, 9.3vw, 3.5rem); }
  .library-banner-inner > p:last-child { font-size: .9375rem; }
  .library-shell { padding-block: 19px; }
  .library-shell .section-heading { margin-bottom: 8px; }
  .library-tabs { width: 100%; }
  .library-tab { flex: 1 1 auto; padding-inline: 9px; font-size: .875rem; }
  #open-filters { gap: 4px; padding-inline: 8px; font-size: .875rem; }
  #open-filters .icon { width: 16px; height: 16px; }
  .topic-chips {
    flex-wrap: nowrap;
    margin-inline: -4px;
    padding-bottom: 7px;
    overflow: auto;
    scrollbar-width: thin;
  }
  .resource-listing { grid-template-columns: minmax(0, 1fr); }
  .library-record { padding: 14px; }
  .forms-controls { align-items: stretch; flex-direction: column; }
  .form-topic { width: 100%; }
  .filter-dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .filter-form { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .library-urgent { margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  body { padding: 0; color: black; background: white; }
  .site-header, .mobile-nav, .site-footer, .skip-link { display: none !important; }
  body:has(#prepare-response:not([hidden]) :is(#dss-builder, #housing-route):not([hidden]) .flow-step:not([hidden]) .draft-preview) :is(
    .journey-heading, .boundary, .route-source, .route-message, .privacy-note, .housing-help-disclosure,
    .response-route-field, .flow-progress, .flow-step h2, .step-description, .flow-actions, .draft-actions, .form-status
  ) { display: none !important; }
  .journey-view, .response-section, .response-card { width: 100%; min-height: 0; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .draft-preview { max-height: none; margin: 0; padding: 0; overflow: visible; border: 0; color: black; background: white; font: 11pt/1.5 Georgia, serif; }
}
