:root {
    --ink: #143346;
    --ink-soft: #4c6472;
    --navy: #123b54;
    --navy-deep: #0b2b3e;
    --teal: #0f6665;
    --teal-light: #dff5f0;
    --coral: #b9473c;
    --gold: #f5b942;
    --cream: #fff9ed;
    --paper: #ffffff;
    --mist: #eef5f5;
    --line: #dce8e8;
    --shadow: 0 18px 50px rgba(18, 59, 84, .12);
    --radius: 22px;
    --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.55; }
a { color: inherit; }
button, input, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid #f5b942; outline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy-deep); letter-spacing: -.035em; line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.3rem; }

.skip-link { position: fixed; z-index: 999; top: -100px; left: 1rem; padding: .8rem 1rem; color: #fff; background: var(--navy); border-radius: 10px; }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; max-width: var(--max); margin: 0 auto; padding: .85rem 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy-deep); }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; flex: none; color: #fff; background: var(--teal); border-radius: 16px 16px 16px 5px; font-weight: 900; letter-spacing: -.08em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.03rem; line-height: 1.1; }
.brand small { color: var(--ink-soft); font-size: .75rem; letter-spacing: .02em; margin-top: .22rem; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav > a { font-size: .92rem; font-weight: 750; text-decoration: none; }
.site-nav > a:hover { color: var(--teal); }
.menu-button { display: none; border: 0; background: var(--mist); color: var(--navy); padding: .65rem .85rem; border-radius: 10px; font-weight: 800; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .75rem 1.2rem; border: 2px solid transparent; border-radius: 999px; font-weight: 850; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--coral); box-shadow: 0 9px 22px rgba(185, 71, 60, .26); }
.button-primary:hover { background: #96372f; }
.button-outline { color: var(--navy); background: transparent; border-color: var(--navy); }
.button-outline:hover { color: #fff; background: var(--navy); }
.button-light { color: var(--navy-deep); background: #fff; }
.button-small { min-height: 40px; padding: .55rem 1rem; font-size: .85rem; }
.button-block { width: 100%; }
.text-link { color: var(--teal); font-weight: 850; text-underline-offset: 4px; }
.eyebrow { color: var(--coral); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.section-wrap { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; padding: 5.5rem 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading h2 { margin-bottom: 0; }

.hero { position: relative; overflow: hidden; min-height: 680px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); align-items: center; gap: 1rem; color: #fff; background: var(--navy); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hero-copy { position: relative; z-index: 2; width: min(760px, calc(100% - 2.5rem)); margin-left: max(1.25rem, calc((100vw - var(--max)) / 2)); padding: 5rem 0; }
.hero h1 { max-width: 780px; color: #fff; margin-bottom: 1.2rem; }
.hero h1 em { color: #f9d16f; font-style: normal; }
.hero-lede { max-width: 660px; color: #d8e7ed; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.hero-note { margin: 1.1rem 0 0; color: #cce2e8; font-size: .86rem; }
.hero-note span:first-child { color: #8ce1cd; }
.search-panel { display: grid; grid-template-columns: minmax(240px, 1fr) 230px auto; align-items: end; gap: .75rem; max-width: 820px; margin-top: 2rem; padding: 1rem; color: var(--ink); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.field { display: grid; gap: .35rem; }
.field > span { color: var(--ink-soft); font-size: .8rem; font-weight: 850; letter-spacing: .02em; }
.field input, .field select, .filters select { width: 100%; min-height: 50px; color: var(--ink); background: #f5f8f8; border: 1px solid #dce6e7; border-radius: 13px; padding: .7rem .8rem; }
.field input:focus, .field select:focus, .filters select:focus { outline: 3px solid rgba(22, 123, 121, .2); border-color: var(--teal); }
.hero-visual { position: relative; align-self: stretch; overflow: hidden; min-width: 0; }
.sun { position: absolute; width: 170px; height: 170px; right: 17%; top: 12%; border-radius: 50%; background: var(--gold); box-shadow: 0 0 90px rgba(245,185,66,.3); }
.hill { position: absolute; border-radius: 50% 50% 0 0; bottom: -14%; }
.hill-one { width: 130%; height: 53%; left: -16%; background: #2c9990; transform: rotate(-5deg); }
.hill-two { width: 120%; height: 38%; right: -30%; background: #79bea8; transform: rotate(7deg); }
.home-illustration { position: absolute; left: 9%; right: 8%; bottom: 18%; height: 260px; }
.home-building { position: absolute; inset: 60px 0 0; display: flex; align-items: end; justify-content: space-around; padding: 55px 35px 24px; background: #fff2d8; border-radius: 16px 16px 8px 8px; box-shadow: 0 28px 45px rgba(9,44,61,.23); }
.home-building::before { content: ""; position: absolute; width: 74px; height: 110px; bottom: 0; left: calc(50% - 37px); background: var(--coral); border-radius: 40px 40px 0 0; }
.home-building span { width: 54px; height: 66px; background: #89cad1; border: 9px solid #fff; border-radius: 30px 30px 3px 3px; }
.home-roof { position: absolute; z-index: 2; top: 24px; left: -5%; width: 110%; height: 84px; background: #e85f50; clip-path: polygon(8% 100%, 20% 20%, 50% 0, 80% 20%, 92% 100%); }
.hero-badge { position: absolute; z-index: 3; right: 5%; bottom: 13%; display: grid; padding: .95rem 1.1rem; color: var(--navy); background: #fff; border-radius: 16px 16px 5px 16px; box-shadow: var(--shadow); }
.hero-badge span { font-size: .76rem; color: var(--ink-soft); }

.care-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.care-card { min-height: 230px; padding: 1.4rem; color: var(--ink); background: var(--cream); border: 1px solid #f4e8ce; border-radius: var(--radius); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.care-card:nth-child(even) { background: var(--teal-light); border-color: #c9e9e1; }
.care-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.care-icon { width: 55px; height: 55px; display: grid; place-items: center; margin-bottom: 2rem; color: #fff; background: var(--coral); border-radius: 17px 17px 17px 4px; font-size: 1.5rem; font-weight: 900; }
.care-card:nth-child(even) .care-icon { background: var(--teal); }
.care-card h3 { margin-bottom: .6rem; }
.care-card p { margin-bottom: 0; color: var(--ink-soft); font-size: .9rem; }

.trust-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 5rem; align-items: center; padding: 6rem max(1.25rem, calc((100vw - var(--max)) / 2)); color: #dbe9ed; background: var(--navy-deep); }
.trust-band h2 { color: #fff; }
.trust-band > div > p:not(.eyebrow) { max-width: 600px; }
.trust-points { display: grid; gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.trust-points li { display: flex; gap: 1.2rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.trust-points > li > span { width: 44px; height: 44px; display: grid; place-items: center; flex: none; color: var(--navy-deep); background: var(--gold); border-radius: 50%; font-weight: 900; }
.trust-points strong { color: #fff; font-size: 1.1rem; }
.trust-points p { margin: .25rem 0 0; color: #bcd2d9; font-size: .9rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.community-card { overflow: hidden; display: grid; grid-template-rows: 150px 1fr; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 26px rgba(18, 59, 84, .07); }
.card-art { position: relative; overflow: hidden; display: grid; place-items: center; background: #e7f2ef; }
.card-art::before, .card-art::after { content: ""; position: absolute; border-radius: 50%; }
.card-art::before { width: 210px; height: 210px; left: -30px; top: 40px; background: rgba(22,123,121,.22); }
.card-art::after { width: 170px; height: 170px; right: -20px; top: -70px; background: rgba(245,185,66,.35); }
.card-art-1 { background: #fff0e7; }.card-art-2 { background: #e9effc; }.card-art-3 { background: #f2edf9; }
.card-art > span { position: relative; z-index: 2; width: 72px; height: 72px; display: grid; place-items: center; color: #fff; background: var(--teal); border: 6px solid rgba(255,255,255,.8); border-radius: 50%; font-size: 2rem; font-weight: 900; }
.card-body { display: flex; flex-direction: column; padding: 1.25rem; }
.card-kicker, .card-footer, .community-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-kicker > span { max-width: 48%; overflow: hidden; color: var(--teal); font-size: .78rem; font-weight: 900; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.rating { display: inline-flex; align-items: center; gap: .2rem; color: var(--coral); font-size: .86rem; }
.rating strong { color: var(--navy); }
.rating small { color: var(--ink-soft); }
.rating-empty { color: var(--ink-soft); }
.community-card h3 { margin: .75rem 0 .3rem; }
.community-card h3 a { text-decoration: none; }
.community-card h3 a:hover { color: var(--teal); }
.card-location { margin-bottom: .8rem; color: var(--ink-soft); font-size: .9rem; }
.card-trust { display: grid; gap: .15rem; margin: .1rem 0 .9rem; padding: .65rem .75rem; color: var(--navy); background: var(--mist); border-radius: 10px; }
.card-trust span { font-size: .8rem; font-weight: 850; }
.card-trust small { color: var(--ink-soft); font-size: .76rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.tag-list li { padding: .35rem .55rem; color: var(--teal); background: var(--teal-light); border-radius: 999px; font-size: .78rem; font-weight: 750; }
.card-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.card-footer > span { display: grid; }
.card-footer small { color: var(--ink-soft); font-size: .78rem; }
.card-footer strong { font-size: .9rem; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .8rem; }
.card-actions button, .saved-row-actions button, .compare-table button { min-height: 42px; padding: .55rem .7rem; color: var(--navy); background: var(--mist); border: 1px solid var(--line); border-radius: 999px; font-weight: 800; cursor: pointer; }
.card-actions button[aria-pressed="true"], .saved-row-actions button[aria-pressed="true"] { color: #fff; background: var(--teal); border-color: var(--teal); }

.browse-states { padding-top: 1rem; }
.state-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.state-links a { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: 1rem; background: var(--mist); border-radius: 13px; text-decoration: none; }
.state-links > span { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: 1rem; background: var(--mist); border-radius: 13px; }
.state-links > span small { color: var(--ink-soft); font-size: .75rem; text-align: right; }
.state-links a:hover { color: #fff; background: var(--teal); }
.state-links span { font-size: .75rem; opacity: .75; }
.state-links-full { grid-template-columns: repeat(3, 1fr); }

.guide-band, .guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.guide-card { padding: 1.3rem; background: var(--mist); border-radius: 18px; }
.checklist-card { padding: 1.5rem; color: var(--navy); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); transform: rotate(2deg); }
.checklist-card > span { display: inline-block; margin-bottom: 1rem; padding: .35rem .6rem; color: #fff; background: var(--coral); border-radius: 6px; font-weight: 900; }
.checklist-card p { padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.section-wrap.guide-band, .guide-band { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 4rem max(1.25rem, calc((100vw - var(--max)) / 2)); background: var(--cream); }

.search-top { padding: 3rem max(1.25rem, calc((100vw - var(--max)) / 2)); background: var(--mist); }
.search-top h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.search-panel-compact { max-width: none; margin-top: 1rem; box-shadow: none; }
.search-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 2rem; width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; padding: 2.5rem 0 6rem; }
.filters { align-self: start; position: sticky; top: 1rem; padding: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.filters h2 { font-size: 1.4rem; }
.filters fieldset { display: grid; gap: .65rem; margin: 0; padding: 1rem 0; border: 0; border-top: 1px solid var(--line); }
.filters legend { padding-top: 1rem; font-size: .85rem; font-weight: 850; }
.filter-label { color: var(--ink-soft); font-size: .8rem; font-weight: 750; }
.check { min-height: 44px; display: flex; align-items: center; gap: .55rem; font-size: .86rem; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); }
.clear-filters { display: block; margin: .9rem auto 0; color: var(--teal); text-align: center; font-size: .82rem; font-weight: 800; }
.results-toolbar { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.results-toolbar > div { display: grid; }
.results-toolbar span { color: var(--ink-soft); font-size: .8rem; }
.map-toggle { display: none; }
.results-map { height: 420px; margin-bottom: 1.4rem; border-radius: var(--radius); }
.map-popup { display: grid; gap: .2rem; min-width: 180px; color: var(--ink); }
.map-popup span { font-size: .78rem; }
.map-popup a { margin-top: .35rem; color: var(--teal); font-weight: 850; }
.map-search-button { padding: .65rem .85rem; color: #fff; background: var(--navy); border: 2px solid #fff; border-radius: 999px; box-shadow: 0 5px 18px rgba(18,59,84,.25); font-size: .78rem; font-weight: 850; cursor: pointer; }
.map-search-button:hover { background: var(--teal); }
.detail-map { height: 250px; margin: -1rem -1rem 1rem; background: var(--mist); }
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; }
.pagination a { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; }
.pagination a[aria-current] { color: #fff; background: var(--teal); border-color: var(--teal); }
.empty-state { padding: 4rem 1rem; text-align: center; background: var(--mist); border-radius: var(--radius); }
.empty-inline { padding: 1.2rem; background: var(--cream); border-radius: 14px; }

.page-main { min-height: 60vh; padding-top: 4rem; }
.page-main > h1 { max-width: 920px; }
.page-lede { max-width: 760px; color: var(--ink-soft); font-size: 1.2rem; }
.legacy-entity-hero { padding: 4.5rem max(1.25rem, calc((100vw - var(--max)) / 2)); background: linear-gradient(135deg, var(--cream), var(--teal-light)); }
.legacy-entity-hero > div { max-width: 900px; }
.legacy-entity-hero h1 { font-size: clamp(2.7rem, 6vw, 5.2rem); }
.legacy-location { color: var(--navy); font-weight: 800; }
.legacy-entity-content { max-width: 980px; }
.legacy-entity-content > section { padding: 2.4rem 0; border-bottom: 1px solid var(--line); }
.legacy-entity-content > section h2 { font-size: 2rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; width: min(var(--max), calc(100% - 2.5rem)); margin: 1.4rem auto; color: var(--ink-soft); font-size: .78rem; }
.breadcrumbs a { color: var(--teal); }
.community-hero { display: flex; align-items: end; justify-content: space-between; gap: 2rem; width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; padding: 2rem 0 3rem; }
.community-hero h1 { max-width: 860px; margin-bottom: .7rem; font-size: clamp(2.4rem, 5vw, 4.7rem); }
.community-meta { justify-content: flex-start; color: var(--ink-soft); font-size: .9rem; }
.tag-list-large { margin-top: 1rem; }
.community-actions { display: grid; flex: none; gap: .65rem; min-width: 210px; }
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 3rem; width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; padding-bottom: 6rem; }
.community-content > section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.community-content h2 { font-size: 2rem; }
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: 1.5rem; }
.fact-grid > div { display: grid; padding: 1rem; background: var(--mist); border-radius: 14px; }
.fact-grid small, .fact-grid span { color: var(--ink-soft); font-size: .72rem; }
.fact-grid strong { margin: .2rem 0; font-size: 1rem; }
.amenity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin: 0; padding: 0; list-style: none; }
.amenity-grid li { padding: .85rem; background: var(--teal-light); border-radius: 12px; }
.amenity-grid span { margin-right: .5rem; color: var(--teal); font-weight: 900; }
.official-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0; }
.official-grid > div { min-width: 0; padding: 1rem; background: var(--mist); border-radius: 13px; }
.official-grid dt { color: var(--ink-soft); font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.official-grid dd { overflow-wrap: anywhere; margin: .25rem 0; color: var(--navy); font-weight: 900; }
.official-grid small { color: var(--ink-soft); font-size: .78rem; }
.community-sidebar { min-width: 0; }
.sticky-card { position: sticky; top: 1rem; overflow: hidden; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.sticky-card h2 { margin: 1rem 0 .4rem; font-size: 1.4rem; }
.detail-map { height: 250px; border-radius: 14px; background: var(--mist); }
.review-list { display: grid; gap: .8rem; }
.review-list article { padding: 1rem; background: var(--mist); border-radius: 14px; }
.review-list article > div { display: flex; justify-content: space-between; }
.review-list time, .review-date { color: var(--ink-soft); font-size: .75rem; }
.source-list, .source-list li, .community-content .source-list { list-style: none; }
.source-list { margin: 0; padding: 0; }
.source-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.source-list li > div { display: grid; }
.source-list span { color: var(--ink-soft); font-size: .78rem; }

.prose { max-width: 850px; }
.prose h2 { margin-top: 2.5rem; font-size: 2rem; }
.prose li { margin-bottom: .5rem; }
.notice { margin-top: 2rem; padding: 1.2rem; background: var(--cream); border-left: 5px solid var(--gold); border-radius: 12px; }
.notice p { margin-bottom: 0; }
.content-links { display: flex; flex-wrap: wrap; gap: 1rem; }

.shortlist-tray { position: fixed; z-index: 500; left: 50%; bottom: 1rem; transform: translateX(-50%); min-width: min(620px, calc(100% - 1.5rem)); display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .7rem .8rem .7rem 1rem; color: #fff; background: var(--navy-deep); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; box-shadow: 0 16px 45px rgba(11,43,62,.3); }
.shortlist-tray[hidden] { display: none; }
.shortlist-tray > span:first-child { font-weight: 800; }
.shortlist-tray > a:not(.button) { color: #fff; font-weight: 800; }
.shortlist-tray [aria-disabled="true"] { opacity: .7; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

.saved-list { display: grid; gap: .8rem; }
.saved-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem; background: var(--mist); border: 1px solid var(--line); border-radius: 16px; }
.saved-row h2 { margin-bottom: .25rem; font-size: 1.3rem; }
.saved-row h2 a { text-decoration: none; }
.saved-row p { margin-bottom: 0; color: var(--ink-soft); }
.saved-row-actions { display: flex; gap: .5rem; flex: none; }

.compare-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem; margin: 1.5rem 0; }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.compare-table { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; }
.compare-table th, .compare-table td { min-width: 190px; padding: 1rem; vertical-align: top; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.compare-table th:first-child { min-width: 165px; color: var(--navy); background: var(--mist); }
.compare-table thead th { background: var(--cream); }
.compare-table thead th a { display: block; color: var(--navy-deep); font-size: 1.05rem; }
.compare-table small { display: block; margin-top: .35rem; color: var(--ink-soft); font-size: .78rem; }
.compare-table button { min-height: 34px; margin-top: .65rem; font-size: .78rem; }

.site-footer { padding: 4rem max(1.25rem, calc((100vw - var(--max)) / 2)) 1.5rem; color: #c9dce2; background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 3rem; }
.brand-footer { color: #fff; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.footer-grid p { max-width: 430px; font-size: .86rem; }
.footer-grid strong { color: #fff; }
.footer-grid a { color: #c9dce2; font-size: .84rem; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-legal { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }
.map-error-message { margin: -.7rem 0 1.4rem; padding: .8rem 1rem; color: var(--navy-deep); background: var(--cream); border-left: 4px solid var(--coral); border-radius: 8px; }

@media (max-width: 1050px) {
    .care-grid { grid-template-columns: repeat(3, 1fr); }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .fact-grid { grid-template-columns: repeat(2, 1fr); }
    .site-nav { gap: .8rem; }
    .site-nav > a { font-size: .8rem; }
}

@media (max-width: 800px) {
    body { font-size: 16px; }
    .menu-button { display: block; }
    .site-nav { position: absolute; z-index: 20; top: 76px; left: 1rem; right: 1rem; display: none; align-items: stretch; flex-direction: column; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
    .site-nav.is-open { display: flex; }
    .hero { min-height: auto; grid-template-columns: 1fr; }
    .hero-copy { margin: 0 auto; padding: 4rem 0 3rem; }
    .hero-visual { min-height: 400px; }
    .search-panel { grid-template-columns: 1fr; }
    .care-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-band { grid-template-columns: 1fr; gap: 2rem; }
    .state-links, .state-links-full { grid-template-columns: repeat(2, 1fr); }
    .search-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
    .community-layout { grid-template-columns: 1fr; }
    .community-sidebar { grid-row: 1; }
    .sticky-card { position: static; }
    .community-hero { align-items: stretch; flex-direction: column; }
    .community-actions { grid-template-columns: 1fr 1fr; width: 100%; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .map-toggle { display: inline-flex; }
    .results-map { display: none; }
    .results-map.is-mobile-visible { display: block; }
}

@media (max-width: 560px) {
    .brand strong { font-size: .86rem; }
    .brand small { display: none; }
    .brand-mark { width: 42px; height: 42px; }
    .section-wrap { width: min(100% - 1.4rem, var(--max)); padding: 4rem 0; }
    .hero-copy { width: calc(100% - 1.4rem); }
    .hero h1 { font-size: 3.15rem; }
    .hero-visual { min-height: 330px; }
    .home-illustration { bottom: 16%; height: 220px; }
    .care-grid, .card-grid, .state-links, .state-links-full, .footer-grid { grid-template-columns: 1fr; }
    .care-card { min-height: auto; }
    .care-icon { margin-bottom: 1rem; }
    .section-heading { align-items: start; flex-direction: column; }
    .trust-band { padding: 4rem 1rem; }
    .guide-band { grid-template-columns: 1fr; padding: 3.5rem 1rem; }
    .search-top { padding: 2.5rem .7rem; }
    .search-layout { width: calc(100% - 1.4rem); }
    .results-map { height: 330px; }
    .fact-grid, .amenity-grid, .official-grid { grid-template-columns: 1fr; }
    .community-actions { grid-template-columns: 1fr; }
    .community-meta { align-items: flex-start; flex-direction: column; gap: .35rem; }
    .footer-legal { flex-direction: column; }
    .shortlist-tray { justify-content: space-between; gap: .55rem; padding-left: .8rem; border-radius: 18px; }
    .shortlist-tray > a:not(.button) { display: none; }
    .saved-row { align-items: stretch; flex-direction: column; }
    .saved-row-actions { width: 100%; }
    .saved-row-actions button { flex: 1; }
}

@media print {
    .site-header, .site-footer, .shortlist-tray, .compare-toolbar, .compare-table button { display: none !important; }
    .section-wrap { width: 100%; padding: 0; }
    .compare-scroll { overflow: visible; border: 0; }
    .compare-table { min-width: 0; font-size: 10pt; }
    .compare-table th, .compare-table td { min-width: 0; padding: .45rem; }
}

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

