@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --soft: #f7f7f8;
  --ink: #111111;
  --muted: #666666;
  --rule: #d9d9dd;
  --blue: #002fa7;
  --blue-dark: #00247f;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --wrap: 1440px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

h1,
h2,
h3,
legend {
  text-wrap: balance;
}

p,
li,
label,
summary {
  text-wrap: pretty;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: 60px;
  font-weight: 600;
  line-height: 1;
}

h2 {
  margin-bottom: 24px;
  font-size: 36px;
  font-weight: 600;
  line-height: 40px;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: var(--paper);
  background: var(--blue);
  transform: translateY(-160%);
  transition: transform 450ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 64px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: stretch;
  width: min(100%, var(--wrap));
  height: 64px;
  margin: 0 auto;
  border-right: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 2px;
  width: 18px;
  height: 18px;
}

.brand-mark span {
  background: var(--ink);
}

.brand-mark span:last-child {
  background: var(--blue);
}

.desktop-nav {
  display: flex;
  height: 100%;
}

.desktop-nav a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-left: 1px solid var(--rule);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  transition: color 450ms var(--ease), background-color 450ms var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--paper);
  background: var(--blue);
}

.menu-button {
  display: none;
  position: relative;
  width: 64px;
  height: 64px;
  border: 0;
  border-left: 1px solid var(--rule);
  background: var(--paper);
}

.menu-button span {
  position: absolute;
  left: 20px;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 450ms var(--ease), top 450ms var(--ease);
}

.menu-button span:first-child {
  top: 25px;
}

.menu-button span:last-child {
  top: 37px;
}

.menu-button[aria-expanded="true"] span:first-child {
  top: 31px;
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  top: 31px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 90;
  inset: 64px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  background: rgba(255, 255, 255, 0.98);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-24px);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease), visibility 450ms;
}

.mobile-menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu nav {
  border-top: 1px solid var(--rule);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid var(--rule);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: color 450ms var(--ease), opacity 650ms var(--ease), transform 650ms var(--ease);
}

.mobile-menu[data-open="true"] a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu[data-open="true"] a:nth-child(2) { transition-delay: 50ms; }
.mobile-menu[data-open="true"] a:nth-child(3) { transition-delay: 100ms; }
.mobile-menu[data-open="true"] a:nth-child(4) { transition-delay: 150ms; }
.mobile-menu[data-open="true"] a:nth-child(5) { transition-delay: 200ms; }

.mobile-menu a[aria-current="page"] {
  color: var(--blue);
}

.mobile-menu a::after {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.page-shell {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  border-right: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.folio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.folio::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--blue);
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 28px;
}

.trust-line {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--blue);
  border-radius: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  transition: color 450ms var(--ease), background-color 450ms var(--ease), transform 450ms var(--ease);
}

.primary-button {
  color: var(--paper);
  background: var(--blue);
}

.primary-button:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.secondary-button {
  color: var(--blue);
  background: var(--paper);
}

.secondary-button:hover {
  color: var(--paper);
  background: var(--blue);
}

.primary-button:active,
.secondary-button:active,
.text-button:active {
  transform: translateY(1px);
}

.primary-button[disabled],
.secondary-button[disabled] {
  cursor: wait;
  color: var(--muted);
  border-color: var(--rule);
  background: var(--soft);
  transform: none;
}

.button-arrow::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.hero-question {
  min-width: 0;
}

.hero-question fieldset {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.hero-question legend {
  width: 100%;
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.segment-option {
  position: relative;
  min-width: 0;
}

.segment-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segment-option label {
  display: flex;
  align-items: center;
  min-height: 64px;
  height: 100%;
  padding: 12px 16px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  transition: color 450ms var(--ease), background-color 450ms var(--ease), box-shadow 450ms var(--ease);
}

.segment-option label:hover {
  color: var(--blue);
  background: var(--soft);
}

.segment-option input:checked + label {
  z-index: 1;
  color: var(--paper);
  background: var(--blue);
  box-shadow: inset 0 -4px 0 var(--ink);
}

.segment-option input:focus-visible + label {
  outline: 3px solid var(--blue);
  outline-offset: -4px;
}

.hero-homepage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: calc(100vh - 64px);
  border-bottom: 1px solid var(--rule);
}

.hero-homepage .hero-media {
  grid-column: span 6;
  min-width: 0;
  overflow: hidden;
}

.hero-homepage .hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  animation: image-in 900ms var(--ease) both;
}

.hero-homepage .hero-panel {
  display: flex;
  grid-column: span 6;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 40px 48px;
  background: var(--paper);
}

.hero-homepage h1 {
  margin-bottom: 16px;
  font-size: 44px;
  line-height: 48px;
}

.hero-lead-form {
  width: 100%;
  min-width: 0;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.hero-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin-bottom: 16px;
  min-width: 0;
}

.hero-lead-form .field label {
  margin-bottom: 4px;
}

.hero-lead-form .field input,
.hero-lead-form .field select {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 10px;
}

.compact-consent {
  margin: 12px 0;
  font-size: 12px;
  line-height: 17px;
}

.optional-consent {
  color: var(--muted);
}

.hero-lead-form .primary-button {
  margin-top: 4px;
}

.hero-form-result {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--blue);
  background: var(--soft);
}

.hero-form-result h3 {
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 28px;
}

.hero-household {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(320px, 1fr) auto;
  min-height: calc(100vh - 64px);
  max-height: 880px;
  border-bottom: 1px solid var(--rule);
}

.hero-household .hero-heading {
  display: flex;
  grid-column: 1 / span 5;
  grid-row: 1;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  background: var(--paper);
}

.hero-household .hero-media {
  grid-column: 6 / -1;
  grid-row: 1 / -1;
  min-width: 0;
  overflow: hidden;
}

.hero-household .hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  animation: image-in 900ms var(--ease) both;
}

.hero-household .hero-question {
  z-index: 2;
  grid-column: 1 / span 7;
  grid-row: 2;
  padding: 32px 48px;
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: var(--soft);
}

.hero-connectivity {
  position: relative;
  min-height: calc(100vh - 64px);
  max-height: 880px;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
}

.hero-connectivity .hero-media,
.hero-connectivity .hero-media img {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero-connectivity .hero-media img {
  object-fit: cover;
  object-position: 55% center;
  animation: image-in 900ms var(--ease) both;
}

.connectivity-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  min-height: calc(100vh - 64px);
  max-height: 880px;
  padding: 48px;
  color: var(--paper);
}

.connectivity-copy .folio,
.connectivity-copy .trust-line {
  color: var(--paper);
}

.connectivity-copy .folio::before {
  background: var(--paper);
}

.connectivity-copy .segment-grid {
  border-color: rgba(255, 255, 255, 0.4);
}

.connectivity-copy .segment-option label {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(17, 17, 17, 0.76);
}

.connectivity-copy .segment-option input:checked + label {
  background: var(--blue);
  box-shadow: inset 0 -4px 0 var(--paper);
}

.hero-business {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: calc(100vh - 64px);
  max-height: 880px;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
}

.hero-business .hero-media {
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
}

.hero-business .hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: image-in 900ms var(--ease) both;
}

.business-copy {
  z-index: 2;
  display: flex;
  grid-column: 1 / span 6;
  grid-row: 1;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 48px;
  color: var(--paper);
}

.business-copy .folio,
.business-copy .trust-line {
  color: var(--paper);
}

.business-copy .folio::before {
  background: var(--paper);
}

.business-copy .hero-question {
  padding: 24px;
  color: var(--ink);
  background: var(--paper);
}

.hero-referral {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(360px, 1fr);
  min-height: calc(100vh - 64px);
  max-height: 880px;
  border-bottom: 1px solid var(--rule);
}

.hero-referral .hero-heading {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: 40px 48px;
  border-bottom: 1px solid var(--rule);
}

.hero-referral .hero-heading > div:first-child {
  grid-column: 1 / span 7;
}

.hero-referral .hero-heading .hero-copy {
  grid-column: 9 / -1;
  align-self: end;
}

.hero-referral h1 {
  margin-bottom: 0;
  font-size: 48px;
}

.hero-referral .hero-media {
  grid-column: 1 / span 7;
  grid-row: 2;
  min-width: 0;
  overflow: hidden;
}

.hero-referral .hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  animation: image-in 900ms var(--ease) both;
}

.hero-referral .hero-question {
  display: flex;
  grid-column: 8 / -1;
  grid-row: 2;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  background: var(--soft);
}

.campaign-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  min-height: calc(100vh - 64px);
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  color: var(--paper);
}

.campaign-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 64px;
}

.campaign-copy h1 {
  max-width: 800px;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.98;
}

.campaign-copy .folio,
.campaign-copy .hero-copy {
  color: var(--paper);
}

.campaign-copy .folio::before {
  background: var(--paper);
}

.campaign-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.light-button {
  color: var(--ink);
  border-color: var(--paper);
  background: var(--paper);
}

.light-button:hover {
  color: var(--paper);
  border-color: var(--paper);
  background: transparent;
}

.light-text {
  color: var(--paper);
  border-color: transparent;
  border-bottom-color: var(--paper);
}

.schedule-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--blue);
}

.schedule-card .schedule-label {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.schedule-card strong {
  margin: 24px 0 0;
  font-size: clamp(96px, 13vw, 170px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.schedule-card .schedule-zone {
  margin: 20px 0 36px;
  font-size: 24px;
  font-weight: 600;
}

.schedule-card p {
  max-width: 420px;
}

.schedule-card a {
  align-self: flex-start;
  margin-top: 16px;
  font-weight: 700;
}

.guide-hero {
  background: var(--blue);
}

.guide-cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 64px;
  padding: 48px;
  color: var(--ink);
  background: #faf8f2;
  box-shadow: 18px 18px 0 rgba(0, 0, 0, 0.26);
  transform: rotate(1.5deg);
}

.guide-cover > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.guide-cover > strong {
  margin: 24px 0 32px;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1;
}

.guide-cover ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-list;
}

.guide-cover li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  counter-increment: guide-list;
  font-size: 14px;
  font-weight: 600;
}

.guide-cover li::before {
  content: "0" counter(guide-list);
  color: var(--blue);
}

.guide-result .primary-button,
.opportunity-intake .form-result .primary-button {
  margin-top: 16px;
}

.compliance-band {
  background: var(--soft);
}

.admin-body {
  background: var(--soft);
}

.admin-shell {
  width: min(100% - 32px, 1360px);
  margin: 48px auto;
}

.admin-auth {
  max-width: 560px;
  padding: 48px;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.admin-auth h1,
.admin-toolbar h1 {
  margin-bottom: 16px;
  font-size: 48px;
}

.admin-auth form {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.admin-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.admin-actions {
  display: flex;
  gap: 12px;
}

.stage-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 24px;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.stage-summary > div {
  display: flex;
  min-height: 96px;
  padding: 16px;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.stage-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.stage-summary strong {
  color: var(--blue);
  font-size: 32px;
  line-height: 36px;
}

.lead-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.lead-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  font-size: 13px;
}

.lead-table th,
.lead-table td {
  padding: 12px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.lead-table th {
  color: var(--paper);
  background: var(--ink);
}

.lead-table select,
.lead-table textarea {
  width: 100%;
  min-width: 140px;
  padding: 8px;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.lead-table textarea {
  min-height: 68px;
  resize: vertical;
}

@keyframes image-in {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

.section-band {
  padding: 80px 48px;
  border-bottom: 1px solid var(--rule);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.section-heading {
  grid-column: 1 / span 4;
}

.section-content {
  grid-column: 6 / -1;
}

.intro-line {
  max-width: 680px;
  font-size: 24px;
  line-height: 32px;
}

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

.route-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(160px, 0.7fr);
  align-items: center;
  min-height: 80px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: color 450ms var(--ease), background-color 450ms var(--ease);
}

.route-row:hover {
  color: var(--paper);
  background: var(--blue);
}

.route-number {
  padding-left: 16px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.route-row:hover .route-number {
  color: var(--paper);
}

.route-name {
  padding: 16px;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.route-note {
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.route-row:hover .route-note {
  color: var(--paper);
}

.statement {
  padding: 96px 48px;
  border-bottom: 1px solid var(--rule);
  background: var(--soft);
}

.statement p {
  max-width: 680px;
  margin: 0;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
}

.word-reveal span {
  color: rgba(17, 17, 17, 0.3);
  transition: color 700ms var(--ease);
}

.word-reveal span.is-visible {
  color: var(--ink);
}

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

.process-step {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}

.process-step b {
  color: var(--blue);
  font-size: 30px;
  font-weight: 500;
  line-height: 36px;
}

.process-step p {
  max-width: 680px;
  color: var(--muted);
}

.intake-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}

.intake-aside {
  grid-column: 1 / span 4;
  padding: 64px 48px;
  border-right: 1px solid var(--rule);
  background: var(--blue);
  color: var(--paper);
}

.intake-aside p {
  color: var(--paper);
}

.intake-form {
  grid-column: 5 / -1;
  padding: 64px 48px;
}

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

.intake-form fieldset[hidden],
.official-route[hidden],
.form-result[hidden] {
  display: none;
}

.intake-form legend {
  margin-bottom: 24px;
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  transition: border-color 450ms var(--ease), box-shadow 450ms var(--ease);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--blue);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
  outline: 0;
}

.field-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.choice-row .segment-option label {
  min-height: 56px;
}

.consent {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 20px;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--blue);
}

.consent a {
  color: var(--blue);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.back-button {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 20px;
}

.form-status[data-state="error"] {
  color: #9d1c1c;
}

.form-status[data-state="success"] {
  color: var(--blue);
  font-weight: 600;
}

.official-route {
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--rule);
  background: var(--soft);
}

.official-route p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.official-route a {
  color: var(--blue);
  font-weight: 700;
}

.form-result {
  padding: 32px;
  border: 1px solid var(--blue);
  background: var(--soft);
}

.result-fields {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.copy-field {
  position: relative;
}

.copy-field input,
.copy-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.copy-field textarea {
  min-height: 112px;
  resize: vertical;
}

.copy-button {
  margin-top: 8px;
}

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

.faq-list details {
  border-bottom: 1px solid var(--rule);
}

.faq-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  min-height: 64px;
  padding: 16px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--blue);
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 680px;
  padding: 0 48px 24px 0;
  color: var(--muted);
}

.final-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding: 64px 48px;
  border-bottom: 1px solid var(--rule);
}

.final-action h2 {
  max-width: 680px;
  margin-bottom: 8px;
}

.site-footer {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  border-right: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  background: var(--ink);
  color: var(--paper);
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  padding: 64px 48px;
}

.footer-brand {
  grid-column: 1 / span 4;
}

.footer-brand strong {
  display: block;
  margin-bottom: 16px;
  font-size: 24px;
  line-height: 32px;
}

.footer-brand p {
  max-width: 320px;
  color: #d9d9dd;
  font-size: 14px;
  line-height: 20px;
}

.footer-links {
  display: grid;
  grid-column: 6 / span 3;
  align-content: start;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  line-height: 20px;
}

.footer-disclosure {
  grid-column: 9 / -1;
  color: #d9d9dd;
  font-size: 12px;
  line-height: 16px;
}

.footer-legal {
  border-top: 1px solid #666666;
}

.footer-legal details {
  border-bottom: 1px solid #666666;
}

.footer-legal summary {
  padding: 16px 48px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.legal-copy {
  max-width: 880px;
  padding: 0 48px 24px;
  color: #d9d9dd;
  font-size: 12px;
  line-height: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 48px;
  color: #d9d9dd;
  font-size: 12px;
  line-height: 16px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.no-script {
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--soft);
  color: var(--ink);
}

@media (max-width: 1120px) {
  .desktop-nav a {
    padding: 0 12px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-homepage .hero-panel,
  .hero-household .hero-heading,
  .connectivity-copy,
  .business-copy,
  .hero-referral .hero-question {
    padding: 32px;
  }

  .hero-household .hero-question {
    padding: 24px 32px;
  }

  .hero-referral .hero-heading {
    padding: 32px;
  }
}

@media (max-width: 840px) {
  .site-header,
  .header-inner {
    height: 64px;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) 64px;
    border: 0;
  }

  .brand {
    min-width: 0;
    padding: 0 16px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
    z-index: 2;
    place-items: center;
  }

  .page-shell,
  .site-footer {
    border-right: 0;
    border-left: 0;
  }

  h1,
  .hero-homepage h1,
  .hero-referral h1 {
    font-size: 36px;
    line-height: 40px;
  }

  h2 {
    font-size: 30px;
    line-height: 36px;
  }

  .hero-homepage,
  .hero-household,
  .hero-referral,
  .hero-business {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: none;
  }

  .campaign-hero {
    display: block;
    min-height: 0;
  }

  .campaign-copy {
    padding: 64px 24px;
  }

  .campaign-copy h1 {
    font-size: 48px;
    line-height: 52px;
  }

  .schedule-card {
    padding: 56px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-left: 0;
  }

  .schedule-card strong {
    font-size: 112px;
  }

  .guide-cover {
    margin: 0;
    padding: 56px 24px;
    box-shadow: none;
    transform: none;
  }

  .admin-shell {
    width: min(100% - 24px, 1360px);
    margin: 24px auto;
  }

  .admin-auth {
    padding: 32px 24px;
  }

  .admin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .stage-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-homepage .hero-panel {
    order: 1;
    min-height: 0;
    padding: 32px 24px;
  }

  .hero-homepage .hero-media {
    order: 2;
    height: 320px;
  }

  .hero-household .hero-heading {
    order: 1;
    padding: 32px 24px 24px;
  }

  .hero-household .hero-media {
    order: 3;
    height: 280px;
  }

  .hero-household .hero-question {
    order: 2;
    padding: 24px;
    border-right: 0;
  }

  .hero-connectivity {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: none;
    background: var(--ink);
  }

  .hero-connectivity .hero-media,
  .hero-connectivity .hero-media img {
    position: static;
    height: 280px;
  }

  .hero-connectivity .hero-media {
    order: 2;
  }

  .hero-connectivity .hero-media img {
    object-position: 64% center;
  }

  .connectivity-copy {
    order: 1;
    width: 100%;
    min-height: 0;
    max-height: none;
    padding: 32px 24px;
  }

  .hero-business .hero-media {
    order: 2;
    height: 280px;
  }

  .hero-business .hero-media img {
    object-position: 68% center;
  }

  .business-copy {
    order: 1;
    padding: 32px 24px;
  }

  .business-copy .hero-question {
    padding: 16px;
  }

  .hero-referral .hero-heading {
    order: 1;
    display: block;
    padding: 32px 24px;
  }

  .hero-referral .hero-heading .hero-copy {
    margin-top: 16px;
  }

  .hero-referral .hero-media {
    order: 3;
    height: 280px;
  }

  .hero-referral .hero-question {
    order: 2;
    padding: 32px 24px;
  }

  .section-band,
  .statement {
    padding: 64px 24px;
  }

  .section-grid {
    display: block;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .statement p {
    font-size: 36px;
    line-height: 40px;
  }

  .intake-section {
    display: block;
  }

  .intake-aside,
  .intake-form {
    padding: 48px 24px;
  }

  .intake-aside {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 48px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 24px;
  }

  .footer-links,
  .footer-disclosure {
    grid-column: auto;
  }

  .footer-legal summary,
  .legal-copy,
  .footer-bottom {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 520px) {
  .mobile-menu {
    padding: 16px 24px;
  }

  .hero-copy {
    font-size: 16px;
    line-height: 24px;
  }

  .campaign-copy h1 {
    font-size: 40px;
    line-height: 44px;
  }

  .campaign-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .campaign-actions .primary-button,
  .campaign-actions .text-button {
    width: 100%;
  }

  .hero-homepage .hero-panel {
    min-height: 0;
  }

  .hero-homepage .hero-media,
  .hero-household .hero-media,
  .hero-connectivity .hero-media,
  .hero-connectivity .hero-media img,
  .hero-business .hero-media,
  .hero-referral .hero-media {
    height: 240px;
  }

  .segment-grid,
  .choice-row {
    grid-template-columns: 1fr;
  }

  .segment-option label {
    min-height: 48px;
  }

  .section-band,
  .statement {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .route-row {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 72px;
  }

  .route-note {
    grid-column: 2;
    padding-top: 0;
  }

  .route-number {
    padding-left: 8px;
  }

  .route-name,
  .route-note {
    padding-right: 8px;
    padding-left: 8px;
  }

  .process-step {
    grid-template-columns: 64px minmax(0, 1fr);
  }

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

  .hero-form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .intake-aside,
  .intake-form {
    padding: 40px 24px;
  }

  .intake-form legend {
    font-size: 24px;
    line-height: 32px;
  }

  .final-action {
    display: block;
    padding: 48px 24px;
  }

  .final-action .primary-button {
    width: 100%;
    margin-top: 24px;
  }

  .footer-main {
    display: block;
  }

  .footer-links {
    margin: 32px 0;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-top: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal],
  .mobile-menu a {
    opacity: 1;
    transform: none;
  }

  .word-reveal span {
    color: var(--ink);
  }
}

/* Civic Switchboard finalist structures */

[id] {
  scroll-margin-top: 80px;
}

.page-shell,
.site-footer,
.hero-homepage > *,
.hero-household > *,
.hero-connectivity > *,
.hero-business > *,
.hero-referral > *,
.section-grid > *,
.intake-section > * {
  min-width: 0;
  max-width: 100%;
}

.hero-copy,
.trust-line,
.footer-disclosure,
.legal-copy,
.service-link,
.branch-copy,
.matrix-row,
.handoff-step {
  overflow-wrap: anywhere;
}

.mobile-menu[aria-hidden="true"] {
  pointer-events: none;
}

.hero-homepage h1,
.hero-household h1,
.hero-referral h1 {
  color: transparent;
  background: linear-gradient(90deg, #000000, #666666);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-connectivity h1,
.hero-business h1 {
  color: transparent;
  background: linear-gradient(90deg, #ffffff, #9b9b9b);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-action {
  align-self: flex-start;
  margin-top: 8px;
}

.optional-note {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.optional-note strong {
  color: var(--ink);
}

.section-kicker {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.official-directory {
  padding: 80px 48px;
  border-bottom: 1px solid var(--rule);
}

.directory-heading {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.directory-heading > div {
  grid-column: 1 / span 5;
}

.directory-heading > p {
  grid-column: 7 / -1;
  align-self: end;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
}

.service-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 112px;
  padding: 24px;
  border: 1px solid var(--rule);
  background: var(--paper);
  text-decoration: none;
  transition: color 700ms var(--ease), border-color 700ms var(--ease), background-color 700ms var(--ease), transform 700ms var(--ease);
}

.service-link:hover {
  color: var(--paper);
  border-color: var(--blue);
  background: var(--blue);
  transform: translateY(-2px);
}

.service-link:active {
  transform: translateY(1px);
}

.service-link-main {
  display: block;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.provider-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  transition: color 700ms var(--ease);
}

.service-link:hover .provider-label {
  color: var(--paper);
}

.service-link-action {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  transition: color 700ms var(--ease);
}

.service-link:hover .service-link-action {
  color: var(--paper);
}

.hero-household {
  grid-template-rows: minmax(520px, 1fr);
}

.hero-household .hero-heading {
  grid-column: 1 / span 6;
}

.hero-household .hero-media {
  grid-column: 7 / -1;
  grid-row: 1;
}

.home-intake {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  background: var(--soft);
}

.home-intake .intake-aside {
  grid-column: 1 / span 5;
  color: var(--ink);
  background: var(--paper);
}

.home-intake .intake-aside p {
  color: var(--muted);
}

.home-intake .intake-form {
  grid-column: 6 / -1;
}

.home-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 64px 48px;
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  color: var(--paper);
}

.home-note article {
  padding: 24px;
  border: 1px solid #666666;
}

.home-note p {
  color: #d9d9dd;
}

.connection-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}

.connection-branch {
  display: flex;
  min-height: 520px;
  padding: 64px 48px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--rule);
  border-top: 0;
  background: var(--paper);
}

.connection-branch + .connection-branch {
  color: var(--paper);
  border-color: #313131;
  background: var(--ink);
}

.connection-branch h2 {
  max-width: 480px;
  font-size: 48px;
  line-height: 1;
}

.connection-branch .branch-copy {
  max-width: 480px;
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
}

.connection-branch + .connection-branch .branch-copy,
.connection-branch + .connection-branch .provider-label {
  color: #d9d9dd;
}

.branch-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.connectivity-intake {
  display: block;
  background: var(--paper);
}

.connectivity-intake .intake-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 48px;
  padding: 48px;
  border: 0;
  background: var(--blue);
}

.connectivity-intake .intake-aside h2,
.connectivity-intake .intake-aside p {
  margin-bottom: 0;
}

.connectivity-intake .intake-form {
  width: min(100%, 960px);
  margin: 0 auto;
}

.connectivity-note {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
  gap: 24px;
  padding: 64px 48px;
  border-bottom: 1px solid var(--rule);
}

.connectivity-note article {
  padding: 24px;
  border: 1px solid var(--rule);
}

.business-directory {
  padding: 80px 48px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.business-matrix {
  border: 1px solid var(--ink);
}

.matrix-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(160px, 0.8fr) minmax(220px, 1fr) auto;
  align-items: center;
  min-height: 80px;
  border-bottom: 1px solid var(--rule);
}

.matrix-row:last-child {
  border-bottom: 0;
}

.matrix-row > * {
  padding: 16px;
}

.matrix-row strong {
  font-size: 18px;
  line-height: 28px;
}

.matrix-row span {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.matrix-row a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.business-intake {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.business-intake .intake-form {
  grid-column: 1 / span 8;
}

.business-intake .intake-aside {
  grid-column: 9 / -1;
  grid-row: 1;
  border-right: 0;
  border-left: 1px solid var(--rule);
  background: var(--ink);
}

.business-readiness {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 64px 48px;
  border-bottom: 1px solid var(--rule);
  background: var(--soft);
}

.business-readiness article {
  padding: 24px;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.hero-referral {
  grid-template-rows: auto minmax(420px, 1fr);
}

.referral-intro-panel {
  display: flex;
  grid-column: 8 / -1;
  grid-row: 2;
  padding: 48px;
  flex-direction: column;
  justify-content: center;
  background: var(--soft);
}

.handoff-editorial {
  padding: 80px 48px;
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  color: var(--paper);
}

.handoff-editorial > header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.handoff-editorial > header p {
  align-self: end;
  color: #d9d9dd;
  font-size: 18px;
  line-height: 28px;
}

.handoff-sequence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.handoff-step {
  min-height: 280px;
  padding: 24px;
  border: 1px solid #666666;
}

.handoff-step b {
  display: block;
  margin-bottom: 64px;
  color: #9b9b9b;
  font-size: 30px;
  font-weight: 500;
  line-height: 36px;
}

.handoff-step p {
  color: #d9d9dd;
}

.referral-builder {
  display: block;
  background: var(--soft);
}

.referral-builder .intake-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 48px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}

.referral-builder .intake-aside p {
  color: var(--muted);
}

.referral-builder .intake-form {
  width: min(100%, 960px);
  margin: 0 auto;
  background: var(--paper);
}

.recipient-note {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 48px;
  padding: 64px 48px;
  border-bottom: 1px solid var(--rule);
}

.recipient-note ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--rule);
}

.recipient-note li {
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
}

.recipient-note li:last-child {
  border-bottom: 0;
}

.gateway-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gateway-link {
  display: flex;
  min-height: 160px;
  padding: 24px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--rule);
  text-decoration: none;
  transition: color 700ms var(--ease), background-color 700ms var(--ease), transform 700ms var(--ease);
}

.gateway-link:hover {
  color: var(--paper);
  background: var(--blue);
  transform: translateY(-2px);
}

.gateway-link strong {
  font-size: 24px;
  line-height: 32px;
}

.gateway-link span {
  color: var(--muted);
  transition: color 700ms var(--ease);
}

.gateway-link:hover span {
  color: var(--paper);
}

.boundary-list {
  border: 1px solid var(--rule);
}

.boundary-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(180px, 0.7fr);
  align-items: center;
  min-height: 80px;
  border-bottom: 1px solid var(--rule);
}

.boundary-item:last-child {
  border-bottom: 0;
}

.boundary-item > * {
  padding: 16px;
}

.boundary-item b {
  color: var(--blue);
}

.boundary-item span:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

@media (max-width: 840px) {
  .official-directory,
  .business-directory,
  .handoff-editorial {
    padding: 64px 24px;
  }

  .directory-heading,
  .handoff-editorial > header {
    display: block;
  }

  .directory-heading > p,
  .handoff-editorial > header p {
    margin-top: 24px;
  }

  .hero-household .hero-heading {
    order: 1;
  }

  .hero-household .hero-media {
    order: 2;
  }

  .service-link-grid,
  .connection-branches,
  .home-note,
  .connectivity-note,
  .business-readiness,
  .handoff-sequence,
  .gateway-links {
    grid-template-columns: 1fr;
  }

  .connection-branch {
    min-height: 440px;
    padding: 48px 24px;
  }

  .connectivity-intake .intake-aside,
  .referral-builder .intake-aside,
  .recipient-note {
    display: block;
  }

  .connectivity-intake .intake-aside p,
  .referral-builder .intake-aside p {
    margin-top: 16px;
  }

  .connectivity-note,
  .business-readiness,
  .home-note,
  .recipient-note {
    padding: 48px 24px;
  }

  .matrix-row {
    grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.7fr);
  }

  .matrix-row > span:nth-of-type(2),
  .matrix-row > a {
    border-top: 1px solid var(--rule);
  }

  .business-intake,
  .home-intake {
    display: block;
  }

  .business-intake .intake-aside {
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }

  .referral-intro-panel {
    order: 2;
    padding: 32px 24px;
  }

  .hero-referral .hero-media {
    order: 3;
  }

  .handoff-step {
    min-height: 0;
  }

  .handoff-step b {
    margin-bottom: 32px;
  }
}

@media (max-width: 520px) {
  .brand {
    gap: 8px;
    padding: 0 16px;
    font-size: 16px;
    line-height: 24px;
  }

  .primary-button,
  .secondary-button,
  .text-button {
    max-width: 100%;
    min-height: 48px;
    white-space: normal;
  }

  .official-directory,
  .business-directory,
  .handoff-editorial {
    padding: 48px 24px;
  }

  .directory-heading {
    margin-bottom: 32px;
  }

  .service-link {
    display: block;
    min-height: 0;
  }

  .service-link-action {
    display: block;
    margin-top: 16px;
  }

  .connection-branch {
    min-height: 400px;
  }

  .connection-branch h2 {
    font-size: 36px;
    line-height: 40px;
  }

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

  .matrix-row {
    display: block;
  }

  .matrix-row > * {
    display: block;
    border-top: 1px solid var(--rule);
  }

  .matrix-row > *:first-child {
    border-top: 0;
  }

  .recipient-note {
    gap: 32px;
  }

  .boundary-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .boundary-item span:last-child {
    grid-column: 2;
    padding-top: 0;
  }
}
