:root {
    color-scheme: light;
    --accent: #f91942;
    --accent-dark: #df1237;
    --accent-soft: #fff0f3;
    --cream: #fff2e8;
    --cream-light: #fffaf5;
    --charcoal: #2f3033;
    --ink: #46464a;
    --muted: #747479;
    --subtle: #929297;
    --canvas: #f8f8f9;
    --panel: #ffffff;
    --line: #e7e7e9;
    --line-strong: #d4d4d8;
    --amber: #f0a52b;
    --shadow-sm: 0 4px 16px rgba(43, 43, 46, 0.06);
    --shadow-md: 0 18px 44px rgba(43, 43, 46, 0.1);
    --shadow-lg: 0 24px 65px rgba(43, 43, 46, 0.14);
    --shell: 1200px;
}

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

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

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

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

button,
input[type="submit"] {
    cursor: pointer;
}

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

a {
    color: inherit;
    text-underline-offset: 0.2em;
}

:focus-visible {
    outline: 3px solid rgba(249, 25, 66, 0.42);
    outline-offset: 3px;
}

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

h1,
h2,
h3 {
    margin-bottom: 0.7rem;
    color: var(--charcoal);
    font-weight: 660;
    letter-spacing: -0.035em;
    line-height: 1.13;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.55rem);
}

h3 {
    font-size: 1.2rem;
}

.page-shell {
    width: min(calc(100% - clamp(2rem, 5vw, 4rem)), var(--shell));
    margin-inline: auto;
}

.ui-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    overflow: visible;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.7rem;
    left: 0.7rem;
    transform: translateY(-180%);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    color: #fff;
    background: var(--charcoal);
    font-weight: 700;
}

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

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 0.75rem 1.15rem;
    font-weight: 720;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 7px 18px rgba(249, 25, 66, 0.18);
}

.button--primary:hover,
.button--primary:focus-visible {
    color: #fff;
    background: var(--accent-dark);
}

.button--secondary {
    border-color: var(--line-strong);
    color: var(--charcoal);
    background: #fff;
}

.button--secondary:hover,
.button--secondary:focus-visible {
    border-color: #f59cad;
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.button--light {
    color: var(--charcoal);
    background: #fff;
}

.kicker {
    margin: 0 0 0.65rem;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

/* Header */
.site-header {
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
}

.site-header__inner {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.75rem, 3vw, 2rem);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    color: var(--charcoal);
    text-decoration: none;
}

.site-header .brand {
    flex: 0 1 15.5rem;
    padding-block: 0.5rem;
}

.brand__logo {
    width: 15.5rem;
    height: auto;
}

.site-header .nav-toggle {
    flex-shrink: 0;
}

.site-nav ul,
.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.42rem;
    border-radius: 9px;
    padding: 0.55rem 0.72rem;
    color: #515156;
    font-size: 0.82rem;
    font-weight: 680;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.site-nav a .ui-icon {
    color: #85858a;
}

.site-nav__provider {
    margin-left: 0.35rem;
    border: 1px solid var(--line-strong);
}

.nav-toggle {
    display: none;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0.55rem 0.7rem;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.nav-toggle:focus-visible, .site-nav a:focus-visible {
    outline: 2px solid var(--accent-dark);
    outline-offset: 3px;
}

.nav-toggle__lines {
    display: grid;
    gap: 3px;
}

.nav-toggle__lines i {
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: var(--charcoal);
}

.directory-notice {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid #f2d5a3;
    background: #fff5df;
}

.directory-notice--published {
    border-bottom-color: #f3c4cd;
    background: #fff4f6;
}

.directory-notice__inner {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-block: 0.45rem;
    color: #725422;
    font-size: 0.72rem;
}

.directory-notice--published .directory-notice__inner {
    color: #733846;
}

.directory-notice__inner strong {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.directory-notice__inner strong span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.directory-notice__inner p {
    margin: 0;
}

/* Homepage */
.home-hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background:
        linear-gradient(166deg, transparent 0 24%, rgba(255, 255, 255, 0.42) 24% 35%, transparent 35% 100%),
        linear-gradient(14deg, rgba(255, 250, 245, 0.78) 0 30%, transparent 30% 100%),
        linear-gradient(154deg, #fffaf5 0%, #ffead9 48%, #fff5ec 79%, #ffffff 100%);
}

.home-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    min-height: 600px;
    padding-block: 82px 22px;
}

.home-hero__copy {
    position: relative;
    z-index: 4;
    width: min(58%, 680px);
    margin-bottom: 2.65rem;
}

.home-hero__copy h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(2.5rem, 4.1vw, 3.25rem);
    font-weight: 520;
}

.home-hero__copy p {
    max-width: 600px;
    margin: 0;
    color: #858589;
    font-size: 1.08rem;
}

.home-hero__photo {
    position: absolute;
    z-index: 2;
    top: 38px;
    right: 0;
    width: 470px;
    height: 520px;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #eee;
    box-shadow: 0 4px 24px rgba(35, 35, 38, 0.18);
}

.home-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% center;
}

.home-hero__dots {
    display: flex;
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    justify-content: center;
    gap: 7px;
}

.home-hero__dots i {
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.home-hero__dots i:first-child {
    background: #fff;
}

.home-hero__search {
    position: relative;
    z-index: 6;
    width: min(940px, calc(100% - 150px));
    margin-bottom: 1.15rem;
}

.home-hero__search .directory-search {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) auto;
}

.directory-search .directory-search__field .MuiInputBase-input.MuiSelect-select {
    display: block;
    padding-right: 2em;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Search menus are portalled outside their form. Scope their shared MUI classes
   to pages with the directory search, not private dashboard form controls. */
body:has(.directory-search) .MuiMenu-paper .MuiMenuItem-root,
body:has(.directory-search) .MuiAutocomplete-listbox .MuiAutocomplete-option {
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.directory-search.directory-search--fallback {
    align-items: end;
}

.directory-search--fallback label {
    display: grid;
    min-width: 0;
    gap: 0.35rem;
}

.directory-search--fallback label > span {
    min-width: 0;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.directory-search--fallback select,
.directory-search--fallback input[name="q"] {
    min-width: 0;
    width: 100%;
    min-height: 3.5rem;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 0 2.5rem 0 1rem;
    color: var(--charcoal);
    background: #fff;
}

.directory-search--fallback input[name="q"] {
    padding: 0.75rem 1rem;
}

.directory-search--fallback button {
    min-width: 8.25rem;
    min-height: 3.5rem;
    border: 0;
    border-radius: 12px;
    padding: 0.75rem 1.15rem;
    color: #fff;
    background: var(--accent);
    font-weight: 750;
}

.hero-categories {
    position: relative;
    z-index: 5;
    width: min(720px, 64%);
    margin-bottom: 1.5rem;
}

.hero-categories > p {
    margin: 0 0 0.7rem;
    color: #333337;
    font-size: 0.86rem;
    font-weight: 520;
}

.hero-categories ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-categories a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.45rem;
    border-radius: 50px;
    padding: 0.5rem 0.8rem;
    color: #fff;
    background: #252527;
    font-size: 0.76rem;
    font-weight: 620;
    line-height: 1.3;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.hero-categories a:hover,
.hero-categories a:focus-visible {
    color: var(--charcoal);
    background: #fff;
    transform: translateY(-1px);
}

.hero-categories a:hover .ui-icon,
.hero-categories a:focus-visible .ui-icon {
    color: var(--accent);
}

.home-hero__note {
    position: relative;
    z-index: 4;
    margin: auto 0 0;
    color: #87878b;
    font-size: 0.76rem;
}

.hero-shape {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.hero-shape--ring {
    top: 65px;
    right: max(22px, calc((100vw - 1200px) / 2 - 30px));
    width: 34px;
    height: 34px;
    border: 4px solid #bb36ff;
    border-radius: 50%;
}

.hero-shape--triangle {
    top: 38px;
    right: max(460px, calc((100vw - 1200px) / 2 + 425px));
    width: 48px;
    height: 48px;
    border-right: 4px solid #f56c83;
    border-bottom: 4px solid #f56c83;
    transform: rotate(31deg) skew(-8deg, -8deg);
}

.hero-shape--sun {
    right: max(420px, calc((100vw - 1200px) / 2 + 405px));
    bottom: 58px;
    width: 108px;
    height: 108px;
    border-radius: 56% 44% 52% 48%;
    background: #ffdc45;
    transform: rotate(18deg);
}

.hero-shape--charcoal {
    right: max(-38px, calc((100vw - 1200px) / 2 - 48px));
    bottom: 50px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #262628;
}

.hero-shape--coral {
    right: max(28px, calc((100vw - 1200px) / 2 - 22px));
    bottom: 56px;
    width: 42px;
    height: 42px;
    border-radius: 58% 42% 64% 36%;
    background: var(--accent);
    transform: rotate(-14deg);
}

.section {
    padding-block: clamp(4rem, 6vw, 5.5rem);
}

.section--soft {
    background: #fcfcfc;
}

.section-heading {
    margin-bottom: 2.4rem;
}

.section-heading h2 {
    position: relative;
    margin: 0;
    padding-bottom: 1.05rem;
    font-size: clamp(1.8rem, 3vw, 2.15rem);
    font-weight: 540;
}

.section-heading h2::after {
    position: absolute;
    bottom: 0;
    left: 2px;
    width: 60px;
    height: 2px;
    border-radius: 4px;
    background: var(--accent);
    content: "";
}

.section-heading p {
    margin: 0.85rem 0 0;
    color: var(--subtle);
}

.section-heading--centered {
    text-align: center;
}

.section-heading--centered h2::after {
    right: 0;
    left: 0;
    margin-inline: auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-card {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f1;
    border-radius: 4px;
    padding: 1.5rem 0.9rem;
    color: #77777b;
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
    text-decoration: none;
    transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.category-card .ui-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 0.7rem;
    color: var(--accent);
}

.category-card strong {
    color: #444448;
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.35;
}

.category-card > span {
    margin-top: 0.75rem;
    border-radius: 50px;
    padding: 0.25rem 0.6rem;
    color: #909095;
    background: #f6f6f7;
    font-size: 0.68rem;
    font-weight: 650;
}

.category-card:hover,
.category-card:focus-visible {
    color: #fff;
    background: #55565a;
    transform: translateY(-6px);
}

.category-card:hover .ui-icon,
.category-card:focus-visible .ui-icon,
.category-card:hover strong,
.category-card:focus-visible strong {
    color: #fff;
}

.category-card:hover > span,
.category-card:focus-visible > span {
    color: #fff;
    background: var(--accent);
}

.city-discovery__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.8fr);
    gap: 1.5rem;
}

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

.city-card {
    display: flex;
    align-items: flex-end;
    position: relative;
    min-width: 0;
    min-height: 235px;
    overflow: hidden;
    border-radius: 6px;
    padding: 1.15rem 1.3rem;
    color: #fff;
    background: var(--charcoal);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.city-card img,
.city-card__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.city-card img {
    object-fit: cover;
    transition: transform 300ms ease;
}

.city-card__shade {
    background: linear-gradient(180deg, rgba(20, 20, 22, 0.05) 15%, rgba(20, 20, 22, 0.86) 100%);
}

.city-card__content {
    display: grid;
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.city-card__content small,
.city-card__content > span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
}

.city-card__content strong {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 620;
}

.city-card:hover img,
.city-card:focus-visible img {
    transform: scale(1.055);
}

.city-map-shell {
    min-height: 100%;
}

.section-action {
    margin: 2rem 0 0;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps-grid li {
    position: relative;
    min-width: 0;
    overflow-wrap: anywhere;
    min-height: 245px;
    border: 1px solid #ebebed;
    border-radius: 6px;
    padding: 2rem;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.steps-grid li > span {
    display: grid;
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 0.72rem;
    font-weight: 750;
}

.steps-grid li > .ui-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.steps-grid h3 {
    font-weight: 620;
}

.steps-grid p {
    margin: 0;
    color: #7d7d82;
    font-size: 0.92rem;
}

.sources-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 6rem);
}

.sources-grid > div > p:not(.kicker) {
    max-width: 62ch;
    color: #77777c;
}

.sources-grid > div .button {
    margin-top: 0.6rem;
}

.sources-grid > ul {
    overflow: hidden;
    margin: 0;
    border: 1px solid #ededee;
    border-radius: 6px;
    padding: 0;
    background: #fff;
    box-shadow: var(--shadow-sm);
    list-style: none;
}

.sources-grid > ul li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
}

.sources-grid > ul li + li {
    border-top: 1px solid var(--line);
}

.sources-grid > ul p {
    margin: 0.1rem 0 0;
    color: #85858a;
    font-size: 0.82rem;
}

.source-dot {
    width: 10px;
    height: 10px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: #8f8f94;
}

.source-dot--official { background: var(--accent); }
.source-dot--provider { background: var(--amber); }

.provider-section {
    padding-block: clamp(3.5rem, 6vw, 5rem);
    color: #c9c9cd;
    background: #2b2b2e;
}

.provider-section__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
    align-items: center;
    gap: 3rem;
}

.provider-section h2 {
    max-width: 22ch;
    color: #fff;
    font-weight: 560;
}

.provider-section p:not(.kicker) {
    max-width: 68ch;
    margin: 0;
}

.provider-section__action {
    display: grid;
    gap: 0.7rem;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 2rem;
    text-align: center;
}

.provider-section__action small {
    color: #aaaab0;
    font-size: 0.72rem;
}

/* Directory results */
.directory-hero,
.simple-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3rem, 6vw, 5.2rem);
    background:
        linear-gradient(164deg, rgba(255, 255, 255, 0.42) 0 32%, transparent 32% 64%, rgba(255, 255, 255, 0.25) 64%),
        radial-gradient(circle at 85% 18%, rgba(249, 25, 66, 0.1), transparent 30%),
        var(--cream);
}

.directory-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.32fr);
    align-items: center;
    gap: 3rem;
}

.directory-hero__inner > * {
    min-width: 0;
    overflow-wrap: anywhere;
}

.directory-hero h1,
.simple-hero h1 {
    margin-bottom: 0.85rem;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 540;
}

.directory-hero__inner > div:first-child > p:last-child,
.simple-hero__grid > div > p:not(.kicker) {
    max-width: 66ch;
    margin-bottom: 0;
    color: #67676c;
    font-size: 1.07rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
    color: var(--muted);
    font-size: 0.76rem;
}

.breadcrumb a {
    color: var(--accent-dark);
}

.directory-hero__summary {
    display: grid;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-md);
}

.directory-hero__summary strong {
    color: var(--charcoal);
    font-size: 2.6rem;
    line-height: 1;
}

.directory-hero__summary > span {
    color: var(--charcoal);
    font-weight: 680;
}

.directory-hero__summary small {
    margin-top: 1rem;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
    color: var(--muted);
}

.directory-results {
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
    background: var(--canvas);
}

.directory-filter {
    position: relative;
    z-index: 5;
    margin-top: -5rem;
    margin-bottom: 3rem;
}

.directory-filter .directory-search--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

@media (max-width: 1100px) {
    .directory-filter .directory-search--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .directory-filter .directory-search--compact { grid-template-columns: minmax(0, 1fr); }
    .directory-search .directory-search__submit.MuiButton-root,
    .directory-search--fallback button { min-width: 0; width: 100%; }
}

.active-search-filters { margin: -1rem 0 1.5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.active-search-filters__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; }
.active-search-filters__heading > strong { font-size: .95rem; }
.active-search-filters__clear { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
.active-search-filters ul { display: flex; flex-wrap: wrap; gap: .65rem; padding: 0; margin: .35rem 0 .7rem; list-style: none; }
.active-search-filters li { max-width: 100%; min-width: 0; }
.active-search-filter { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 44px; height: 100%; padding: .55rem .85rem; border: 1px solid #ead9d3; border-radius: 10px; color: var(--ink); background: #fff8f3; text-decoration: none; }
.active-search-filter > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.active-search-filter small { display: block; margin-bottom: .15rem; color: var(--muted); font-size: .75rem; }
.active-search-filter strong { font-size: .9rem; font-weight: 650; }
.active-search-filter__remove { flex-shrink: 0; color: #9d3a44; font-size: 1.25rem; line-height: 1; }
.active-search-filter:hover { border-color: #dd6175; color: var(--ink); background: #fff0f3; }
.active-search-filter:focus-visible, .active-search-filters__clear:focus-visible { outline: 3px solid #b80c31; outline-offset: 3px; }
.active-search-filters > p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
@media (max-width: 520px) {
    .active-search-filters { padding: .85rem 1rem; }
    .active-search-filters li { width: 100%; }
}

.results-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.results-heading h2,
.results-heading p {
    margin-bottom: 0;
}

.results-heading > p {
    color: var(--muted);
    font-size: 0.84rem;
}

.directory-page .results-heading > * {
    min-width: 0;
    overflow-wrap: anywhere;
}

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

.listing-card {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(190px, 0.42fr) minmax(0, 0.58fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(43, 43, 46, 0.07);
}

.listing-card__image {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: #eee;
}

.listing-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.listing-card__image > span {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    border-radius: 50px;
    padding: 0.25rem 0.55rem;
    color: #fff;
    background: rgba(47, 48, 51, 0.88);
    font-size: 0.65rem;
    font-weight: 700;
}

.listing-card:hover .listing-card__image img {
    transform: scale(1.04);
}

.listing-card__body {
    min-width: 0;
    padding: 1.25rem;
}

.listing-card h3,
.listing-card__summary { overflow-wrap: anywhere; }

.photo-disclosure {
    color: #62534f;
    font-size: .76rem;
    line-height: 1.5;
    font-weight: 500;
    overflow-wrap: anywhere;
}
.facility-illustration { max-width: 560px; margin: 0 auto 1rem; }
.facility-illustration img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; }
.facility-illustration figcaption { margin-top: .5rem; }
.original-gallery { margin-bottom: 1.5rem; }
.original-gallery > summary { cursor: pointer; padding: .75rem 0; }
.original-gallery > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.original-gallery .page-shell { width: 100%; }
.related-community-card > .photo-disclosure { padding: .5rem 1.25rem 0; margin: 0; }

.listing-card__location,
.facility-address {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
    color: var(--muted);
    font-size: 0.76rem;
}

.listing-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.listing-card h3 a {
    text-decoration: none;
}

.listing-card h3 a:hover {
    color: var(--accent-dark);
}

.listing-card__summary {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 0.8rem;
    color: var(--muted);
    font-size: 0.84rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag-list a,
.tag-list li {
    border-radius: 50px;
    color: #5d5d62;
    background: #f4f4f5;
    font-size: 0.68rem;
    font-weight: 680;
}

.tag-list a {
    display: block;
    padding: 0.32rem 0.58rem;
    text-decoration: none;
}

.tag-list a:hover {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.listing-card__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.listing-card__facts span {
    display: grid;
    min-width: 0;
    overflow-wrap: anywhere;
    border-left: 2px solid #e4e4e6;
    padding-left: 0.55rem;
    color: var(--muted);
    font-size: 0.68rem;
}

.listing-card__facts strong {
    color: var(--charcoal);
}

.listing-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.15rem;
}

.listing-card__actions .button {
    min-height: 44px;
    padding: 0.58rem 0.8rem;
    font-size: 0.76rem;
}

.listing-card__actions small {
    color: var(--subtle);
    font-size: 0.65rem;
}

.listing-card__save {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    margin-top: 0.35rem;
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.shortlist-discovery {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem 1.5rem;
    margin: 1.2rem 0 1.8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    background: var(--accent-soft);
}

.shortlist-discovery > div {
    flex: 1 1 22rem;
    min-width: 0;
}

.shortlist-discovery p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.shortlist-discovery .button {
    font-size: 0.85rem;
}

.empty-state,
.comparison-empty {
    display: grid;
    justify-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: clamp(2.5rem, 7vw, 5rem);
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.empty-state > .ui-icon,
.comparison-empty > .ui-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 1rem;
    color: var(--accent);
}

.empty-state p,
.comparison-empty p {
    max-width: 62ch;
    color: var(--muted);
}

.directory-page .empty-state {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: clamp(1rem, 4vw, 2.5rem);
    overflow-wrap: anywhere;
}

.directory-page .empty-state > * {
    min-width: 0;
    max-width: 100%;
}

.directory-page .empty-state > .button {
    min-height: 44px;
    white-space: normal;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0.55rem 0.8rem;
    background: #fff;
    font-size: 0.8rem;
    text-align: center;
}

.pagination a {
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.pagination a:hover, .pagination a:focus-visible {
    border-color: #f59cad;
    background: var(--accent-soft);
}

.listing-card__actions .button:focus-visible, .pagination a:focus-visible {
    outline: 2px solid var(--accent-dark);
    outline-offset: 3px;
}

/* Facility profile */
.facility-page {
    overflow-wrap: anywhere;
}

.facility-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    max-width: 100%;
    margin-top: 0.75rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--cream-light);
    color: var(--charcoal);
    font-weight: 650;
    line-height: 1.4;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.facility-back-link:hover, .facility-back-link:focus-visible {
    color: var(--accent-dark);
    border-color: #f59cad;
    background: var(--accent-soft);
}

.facility-back-link + .facility-breadcrumb {
    margin-top: 0.65rem;
}

.facility-breadcrumb {
    margin: 1.15rem 0;
}

.facility-gallery {
    padding-bottom: 2rem;
}

.facility-gallery__grid {
    display: grid;
    position: relative;
    min-height: 480px;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.72fr);
    gap: 0.75rem;
}

.facility-gallery figure {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}

.facility-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.facility-gallery__supporting {
    display: grid;
    gap: 0.75rem;
}

.facility-gallery__note {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    margin: 0;
    border-radius: 50px;
    padding: 0.4rem 0.7rem;
    color: #fff;
    background: rgba(47, 48, 51, 0.86);
    font-size: 0.7rem;
    font-weight: 700;
}

.facility-overview {
    padding-bottom: clamp(4rem, 7vw, 6rem);
}

.facility-overview__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.37fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
}

.facility-overview__layout > * {
    min-width: 0;
}

.facility-title {
    padding-block: 1rem 2.25rem;
}

.facility-title h1 {
    margin-bottom: 0.6rem;
    font-size: clamp(2.45rem, 5vw, 4rem);
    font-weight: 580;
}

.facility-address {
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.profile-section {
    border-top: 1px solid var(--line);
    padding-block: 2.2rem;
}

.profile-section__heading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.profile-section__heading .ui-icon {
    width: 27px;
    height: 27px;
    color: var(--accent);
}

.profile-section__heading h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 620;
}

.profile-lede {
    color: #5f5f64;
    font-size: 1.08rem;
    line-height: 1.8;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.highlight-grid li {
    display: flex;
    align-items: start;
    gap: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.highlight-grid .ui-icon {
    margin-top: 0.2rem;
    color: var(--accent);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 0;
}

.detail-grid > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    background: var(--canvas);
}

.detail-grid dt {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-grid dd {
    margin: 0.25rem 0;
    color: var(--charcoal);
    font-weight: 680;
}

.detail-grid small {
    color: var(--subtle);
    font-size: 0.68rem;
}

.sources-page {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.sources-page h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.source-list > p {
    color: var(--muted);
}

.source-list > ul {
    margin: 1.2rem 0 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0;
    list-style: none;
}

.source-list > ul li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.source-list > ul li + li {
    border-top: 1px solid var(--line);
}

.source-list li > div {
    display: grid;
}

.source-list li span {
    color: var(--muted);
    font-size: 0.72rem;
}

.source-list li a {
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.needs-confirmation {
    border-left: 3px solid var(--amber);
    padding: 0.8rem 1rem;
    background: #fff7e8;
}

.facility-sidebar {
    position: sticky;
    top: 1.25rem;
    display: grid;
    gap: 1rem;
}

.contact-card,
.correction-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.4rem;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.contact-card h2 {
    font-size: 1.55rem;
}

.contact-card > p:not(.kicker) {
    color: var(--muted);
    font-size: 0.88rem;
}

.contact-card > .button {
    width: 100%;
    margin-top: 0.65rem;
}

.contact-card dl {
    display: grid;
    gap: 0.7rem;
    margin: 1.2rem 0;
}

.contact-card dl > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--line);
    padding-top: 0.7rem;
}

.contact-card dt {
    color: var(--charcoal);
    font-weight: 680;
}

.contact-card dd {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.contact-card > small {
    display: block;
    color: var(--subtle);
    font-size: 0.67rem;
}

.correction-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.correction-card > .ui-icon {
    width: 25px;
    height: 25px;
    color: var(--accent);
}

.correction-card p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.76rem;
}

/* Compare, errors */
.simple-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.simple-hero__grid > div .button {
    margin-top: 1rem;
}

.simple-hero img {
    aspect-ratio: 3 / 2;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.comparison-empty {
    max-width: 760px;
}

.compare-page .comparison-empty {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: clamp(1rem, 4vw, 2.5rem);
    overflow-wrap: anywhere;
}

.compare-page .comparison-empty > * {
    min-width: 0;
    max-width: 100%;
}

.error-page {
    display: grid;
    min-height: 60vh;
    place-items: center;
    padding-block: 4rem;
    background: var(--cream);
}

.error-card {
    max-width: 680px;
    border-radius: 12px;
    padding: clamp(2rem, 6vw, 4rem);
    background: #fff;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.error-card .kicker {
    margin-bottom: 1rem;
}

.discovery-recovery .error-card { min-width: 0; overflow-wrap: anywhere; }
.discovery-recovery__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.discovery-recovery__actions .button { min-width: 0; min-height: 44px; max-width: 100%; white-space: normal; }
.discovery-recovery__saved { margin: 1.5rem 0 0; }
.discovery-recovery__saved a { display: inline-flex; align-items: center; min-height: 44px; }
.discovery-recovery__saved span { display: block; color: var(--muted); font-size: .9rem; }
.discovery-recovery a:focus-visible { outline: 3px solid #a9523d; outline-offset: 4px; }
.empty-state__hint { margin: .5rem 0 1rem; font-size: .9rem; }
.directory-page .empty-state > .button + .button { margin-top: .75rem; }

/* Footer */
.site-footer {
    padding-top: 3.5rem;
    color: #bdbdc2;
    background: #262629;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.3fr) 0.55fr 0.55fr;
    gap: 3rem;
    padding-bottom: 2.75rem;
}

.brand--footer {
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    background: var(--cream-light);
}

.site-footer__brand p {
    max-width: 42ch;
    margin: 1rem 0 0;
}

.site-footer__nav h2 {
    margin-bottom: 0.8rem;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 780;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__nav li + li {
    margin-top: 0.45rem;
}

.site-footer a {
    color: #e5e5e8;
}

.site-footer__fine-print {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-block: 1.35rem;
    font-size: 0.72rem;
}

.site-footer__fine-print p {
    margin: 0;
}

.site-footer__fine-print p:first-child {
    max-width: 78ch;
}

.site-footer__fine-print strong {
    color: #e5e5e8;
}

@media (max-width: 1120px) {
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-hero__photo { width: 430px; height: 500px; }
    .home-hero__search { width: min(850px, calc(100% - 80px)); }
    .listing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% - 1px);
        right: 0;
        left: 0;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        padding: 0.75rem clamp(1rem, 5vw, 3rem);
        background: #fff;
        box-shadow: var(--shadow-md);
    }
    .site-nav[data-open] { display: block; }
    .site-nav ul { display: grid; }
    .site-nav a { width: 100%; }
    .site-nav__provider { margin-left: 0; }
    .home-hero,
    .home-hero__inner { min-height: 650px; }
    .home-hero__inner { padding-top: 68px; }
    .home-hero__copy { width: 100%; }
    .home-hero__photo,
    .hero-shape--triangle { display: none; }
    .home-hero__search { width: 100%; }
    .hero-categories { width: 100%; }
    .hero-shape--ring { top: 40px; right: 5vw; }
    .hero-shape--sun { right: -35px; bottom: -20px; }
    .hero-shape--charcoal { right: 40px; bottom: -54px; }
    .hero-shape--coral { right: 102px; bottom: 18px; }
    .city-discovery__layout { grid-template-columns: minmax(0, 1fr); }
    .sources-grid,
    .provider-section__inner,
    .facility-overview__layout { grid-template-columns: 1fr; }
    .city-map-shell { min-height: 420px; }
    .provider-section__action { max-width: 420px; border-left: 0; padding-left: 0; }
    .facility-sidebar { position: static; }
    .facility-gallery__grid { min-height: 400px; }
}

@media (max-width: 760px) {
    .page-shell { width: min(calc(100% - 1.5rem), var(--shell)); }
    .directory-notice__inner { display: grid; justify-content: start; gap: 0.1rem; }
    .home-hero,
    .home-hero__inner { min-height: 790px; }
    .home-hero__inner { padding-top: 42px; }
    .home-hero__copy, .home-hero__search { margin-bottom: 1.5rem; }
    .home-hero__search .directory-search { grid-template-columns: minmax(0, 1fr); }
    .category-grid,
    .city-grid,
    .steps-grid,
    .highlight-grid,
    .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-card { min-height: 165px; }
    .directory-hero__inner { grid-template-columns: minmax(0, 1fr); }
    .simple-hero__grid { grid-template-columns: 1fr; }
    .directory-hero__summary { max-width: 360px; }
    .directory-filter { margin-top: -1rem; }
    .listing-card { grid-template-columns: minmax(155px, 0.36fr) minmax(0, 1fr); }
    .facility-gallery__grid { min-height: 340px; grid-template-columns: 1fr; }
    .facility-gallery__supporting { display: none; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .site-footer__brand { grid-column: 1 / -1; }
    .site-footer__fine-print { display: grid; }
}

@media (max-width: 540px) {
    h1 { font-size: clamp(2.25rem, 11vw, 3rem); }
    .home-hero,
    .home-hero__inner { min-height: 850px; }
    .home-hero__copy p { font-size: 0.98rem; }
    .hero-categories ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); }
    .hero-categories a { justify-content: center; text-align: center; }
    .category-grid,
    .city-grid,
    .steps-grid,
    .highlight-grid,
    .detail-grid { grid-template-columns: 1fr; }
    .city-card { min-height: 230px; }
    .city-map-shell { min-height: 340px; }
    .results-heading { display: grid; gap: 0.5rem; }
    .listing-card { grid-template-columns: minmax(0, 1fr); }
    .listing-card__image { min-height: 0; aspect-ratio: 4 / 3; }
    .listing-card__actions { align-items: start; flex-direction: column; }
    .facility-gallery__grid { min-height: 270px; }
    .facility-title h1 { font-size: 2.4rem; }
    .source-list > ul li { align-items: start; flex-direction: column; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__brand { grid-column: auto; }
}

@media print {
    .site-header,
    .directory-notice,
    .site-footer,
    .facility-sidebar { display: none !important; }
}

/* Live directory, real galleries and a browser-local shortlist. */
.category-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.city-card { background: linear-gradient(135deg, #51414a, #242b39); }
.city-card:nth-child(2n) { background: linear-gradient(135deg, #6c4545, #3c303c); }
.coverage-panel { padding: 2rem; background: #fff5ef; border: 1px solid #f0e1da; border-radius: 1rem; align-self: stretch; }
.coverage-panel h3 { margin: .8rem 0; font-size: 1.8rem; }
.coverage-panel > p { color: #6a6264; }
.coverage-panel > a { display: grid; gap: .3rem; margin-top: 1.3rem; padding: 1.1rem; background: #fff; border: 1px solid #f0e1da; border-radius: .65rem; color: #333; text-decoration: none; }
.coverage-panel > a:hover { border-color: #f91942; }
.coverage-panel > a span { color: #726b6d; font-size: .9rem; }
.city-search-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; gap: 1rem; padding: 1.5rem; border: 1px solid #e7e7e9; border-radius: 1rem; background: #fff; margin-bottom: 2.5rem; }
.city-search-form label { display: grid; min-width: 0; gap: .55rem; font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; }
.city-search-form input, .city-search-form select { width: 100%; min-width: 0; min-height: 3rem; padding: .75rem; font: inherit; border: 1px solid #d7d7dc; border-radius: .5rem; background: #fff; }
.city-search-form .button { min-height: 44px; min-width: 0; white-space: normal; }
.city-search-form :is(input, select, button):focus-visible, .city-directory-card:focus-visible, .cities-page .empty-state a:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
.cities-page .results-heading > *, .cities-page .empty-state { min-width: 0; overflow-wrap: anywhere; }
.city-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.cities-page .empty-state .button { max-width: 100%; min-height: 44px; white-space: normal; }
.city-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.city-directory-card { display: block; min-width: 0; overflow-wrap: anywhere; padding: 1.5rem; border: 1px solid #e7e7e9; border-radius: .85rem; background: #fff; color: #333; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.city-directory-card:hover { border-color: #f91942; box-shadow: 0 8px 24px #2b1c2410; }
.city-directory-card > span { font-size: .9rem; color: #716c70; }
.city-directory-card h3 { margin: .55rem 0 .85rem; font-size: 1.4rem; }
.city-directory-card p { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin: 0; color: #726b6d; }
.city-directory-card p span { flex-shrink: 0; color: #f91942; }
.care-filter-links { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.5rem 0 2rem; }
.care-filter-links a { padding: .65rem 1rem; border: 1px solid #e5e3e5; border-radius: 2rem; color: #57525a; text-decoration: none; background: #fff; font-size: .9rem; }
.care-filter-links a[aria-current="page"], .care-filter-links a:hover { border-color: #f91942; color: #d70e35; background: #fff0f3; }
.photo-empty { display: grid; place-items: center; width: 100%; height: 100%; min-height: 220px; color: #6b6267; background: #f7f1f3; font-size: 1rem; }
.photo-load-failed > img { display: none; }
.photo-unavailable { display: grid; place-items: center; padding: 1rem; min-height: 100px; color: #51474d; background: #f7f1f3; text-align: center; font-size: .95rem; }
.photo-load-failed > .photo-unavailable { position: static; width: 100%; height: 100%; border-radius: 0; }
.listing-card__actions { flex-wrap: wrap; gap: .65rem; }
.button[aria-pressed="true"] { color: #bd1235; background: #fff0f3; border-color: #f91942; }
.gallery-photo { display: block; padding: 0; border: 0; overflow: hidden; background: #eee; cursor: zoom-in; border-radius: .6rem; }
.gallery-photo:focus-visible { outline: 3px solid #f91942; outline-offset: 4px; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; }
.facility-gallery__grid--single { grid-template-columns: 1fr; max-width: 1000px; min-height: 340px; height: min(52vw, 520px); }
.facility-gallery__supporting .gallery-photo { min-height: 0; height: 100%; }
.photo-strip { display: flex; gap: .75rem; overflow-x: auto; padding-top: .85rem; padding-bottom: .4rem; }
.photo-strip .gallery-photo { flex: 0 0 150px; height: 100px; }
.photo-attribution { margin-top: .65rem; margin-bottom: 0; font-size: .875rem; color: #726b6d; }
.photo-dialog { max-width: min(95vw, 1200px); max-height: 95dvh; overflow: auto; overscroll-behavior: contain; padding: 1rem; border: 0; border-radius: 1rem; background: #fff; }
.photo-dialog::backdrop { background: #15121cdb; }
.photo-dialog[open] { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.photo-dialog > button { justify-self: end; }
.photo-dialog > img { width: auto; max-width: 100%; height: auto; max-height: 72dvh; object-fit: contain; justify-self: center; }
.photo-dialog p { margin: 0; color: #625c62; overflow-wrap: anywhere; }
.photo-dialog .button { max-width: 100%; }
.photo-dialog .button:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
body:has(.photo-dialog[open]) { overflow: hidden; }
.shortlist-tray { display: none; }
.shortlist-tray--visible { position: fixed; z-index: 40; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 1.5rem; width: min(800px, calc(100% - 2rem)); padding: 1rem 1.5rem; border: 1px solid #eadbdf; border-radius: 1rem; background: #fff; box-shadow: 0 10px 45px #21121f30; }
.shortlist-tray p { margin: .25rem 0 0; font-size: .9rem; color: #6e6470; }
.shortlist-tray > div { flex: 1; }
.text-button { padding: .5rem; border: 0; background: none; color: #bc1538; font: inherit; cursor: pointer; text-decoration: underline; }
body:has(.shortlist-tray--visible) { padding-bottom: 120px; }
body:has(.compare-page) .shortlist-tray { display: none; }
.comparison-scroll { overflow: auto; max-width: 100%; border: 1px solid #e4dfe2; border-radius: .85rem; }
.comparison-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 650px; background: white; }
.comparison-table th, .comparison-table td { text-align: left; vertical-align: top; padding: 1.25rem; border-right: 1px solid #ebe6e9; border-bottom: 1px solid #ebe6e9; overflow-wrap: anywhere; line-height: 1.65; }
.comparison-table th:first-child { width: 160px; }
.comparison-table tbody th { background: #faf7f8; font-size: .9rem; }
.comparison-table thead { background: #fff9f5; }
.comparison-table thead img { width: 100%; height: 160px; object-fit: cover; border-radius: .5rem; }
.comparison-table h2 { font-size: 1.2rem; margin: 1rem 0 .35rem; }
.comparison-table h2 a { color: #333; }
.comparison-table td { font-size: .95rem; }
.comparison-note { margin: 0 0 1.25rem; color: #6e6570; }
.comparison-scroll-help, .comparison-cell-label { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (max-width: 900px) {
    .city-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .city-search-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .city-search-form label:first-child { grid-column: 1 / -1; }
    .comparison-table { table-layout: auto; }
    .comparison-table td, .comparison-table thead th:not(:first-child) { min-width: 230px; }
    .comparison-scroll--context .comparison-table th:first-child { min-width: 160px; }
    .comparison-scroll-help { display: block; margin: -.35rem 0 1rem; font-size: .9rem; color: #6e6570; }
    .comparison-cell-label { display: block; margin-bottom: .3rem; color: #6e6570; font-size: .75rem; font-weight: 650; letter-spacing: .025em; line-height: 1.4; text-transform: uppercase; }
}
@media (max-width: 600px) {
    .city-directory-grid, .city-search-form { grid-template-columns: minmax(0, 1fr); }
    .shortlist-tray--visible { gap: .75rem; flex-wrap: wrap; padding: 1rem; }
    .shortlist-tray > div { flex-basis: 100%; }
    .shortlist-tray .button { flex: 1; }
    body:has(.shortlist-tray--visible) { padding-bottom: 175px; }
    .facility-gallery__grid--single { min-height: 240px; }
}
@media print { .shortlist-tray, .photo-dialog { display: none !important; } }

/* Versioned selectors leave the older local preview bundle intact until refresh. */
.shortlist-tray--compact.shortlist-tray--visible { display: grid; gap: .55rem; max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; padding: 1rem 1.25rem; }
.shortlist-tray--compact > * { min-width: 0; overflow-wrap: anywhere; }
.shortlist-tray__bar { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: .75rem; background: #fff; }
.shortlist-tray__bar > * { min-width: 0; max-width: 100%; }
.shortlist-tray__toggle { display: grid; place-items: center; width: 44px; min-height: 44px; padding: .4rem; border: 1px solid #eadbdf; border-radius: .65rem; background: #fff8f3; color: var(--ink); cursor: pointer; }
.shortlist-tray__compact-label { display: none; }
.shortlist-tray--compact .shortlist-tray__message { margin: 0; }
.shortlist-tray__options { border-top: 1px solid #eadbdf; padding-top: .75rem; }
.shortlist-tray__options p + p { margin-top: .65rem; }
.shortlist-tray__options .text-button { min-width: 44px; min-height: 44px; margin-top: .5rem; text-align: left; overflow-wrap: anywhere; }
.shortlist-tray--compact :is(a, button):focus-visible { outline: 3px solid #a9523d; outline-offset: 3px; }
html:has(.shortlist-tray--compact.shortlist-tray--visible) { scroll-padding-bottom: calc(var(--comparison-tray-space, 120px) + 1rem); }
body:has(.shortlist-tray--compact.shortlist-tray--visible) { padding-bottom: var(--comparison-tray-space, 120px); }
@media (max-width: 900px), (max-height: 550px) {
    .shortlist-tray--compact.shortlist-tray--visible { width: min(460px, calc(100% - 2rem)); padding: 12px; }
    .shortlist-tray__bar { grid-template-columns: minmax(0, 1fr) 44px; gap: .6rem; }
    .shortlist-tray__summary, .shortlist-tray__desktop-label { display: none; }
    .shortlist-tray__compact-label { display: inline; }
    .shortlist-tray__compare { padding: 12px; }
    .shortlist-tray__message:not([data-limit]) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media print { body:has(.shortlist-tray--compact) { padding-bottom: 0 !important; } }

.comparison-toolbar, .shared-comparison-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.25rem; }
.comparison-toolbar p { margin: 0; }
.comparison-toolbar p span { display: block; color: var(--muted); margin-top: .3rem; }
.comparison-toolbar > div { display: flex; flex-wrap: wrap; gap: .65rem; }
.comparison-share-status:empty { display: none; }
.comparison-share-status { color: var(--muted); }
.comparison-share-link { display: grid; gap: .5rem; margin: 1rem 0 1.5rem; font-weight: 600; }
.comparison-share-link input { width: 100%; min-width: 0; padding: .9rem; border: 1px solid var(--line); border-radius: .5rem; font: inherit; font-weight: 400; background: #fff; }
.shared-comparison-note { padding: 1.25rem; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: .6rem; background: var(--cream-light); }
.shared-comparison-note > div { flex: 1 1 24rem; }
.shared-comparison-note p { margin: .4rem 0 0; }
.comparison-next-step { padding: 2rem; background: var(--cream-light); border-radius: .75rem; margin-top: 2rem; }
.comparison-next-step h2 { font-size: 1.5rem; }
.comparison-next-step p { max-width: 65ch; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.print-only { display: none; }
@media print {
    @page { margin: 12mm; }
    body:has(.compare-page) { padding: 0; background: #fff; }
    .compare-page .page-shell { width: 100%; max-width: none; }
    .compare-page .directory-hero { padding: 0 0 1rem; background: none; }
    .compare-page h1 { font-size: 22pt; }
    .compare-page .section { padding: 0; }
    .compare-page .print-only { display: block; font-size: 9pt; }
    .comparison-toolbar, .shared-comparison-note, .comparison-share-status, .comparison-share-link,
    .compare-page .text-button, .compare-page .section-action, .comparison-next-step,
    .comparison-scroll-help, .comparison-cell-label { display: none !important; }
    .comparison-scroll { overflow: visible; border: 0; }
    .comparison-table { min-width: 0; width: 100%; table-layout: fixed; }
    .comparison-table thead { display: table-header-group; }
    .comparison-table tr { break-inside: avoid; }
    .comparison-table th, .comparison-table td, .comparison-table thead th:not(:first-child) { min-width: 0; padding: .45rem; font-size: 9pt; line-height: 1.4; }
    .comparison-table th:first-child { width: 18%; }
    .comparison-scroll--context .comparison-table th:first-child { min-width: 0; }
    .comparison-table h2 { font-size: 11pt; }
    .comparison-table thead img { height: 65px; }
    .comparison-note { font-size: 9pt; }
}

/* Profiles: clear navigation, published facts and useful next steps. */
.facility-main { container-type: inline-size; container-name: profile-content; }
.profile-jump-links { display: flex; flex-wrap: wrap; gap: .35rem .5rem; position: static; top: 88px; z-index: 5; padding: .7rem 0; background: #fff; border-block: 1px solid var(--line); }
/* Keep enlarged, wrapped navigation in flow so it cannot cover profile actions.
   The rem threshold follows text size; unsupported browsers retain static links. */
@container profile-content (min-width: 45rem) { .profile-jump-links { position: sticky; } }
.profile-jump-links a { display: block; padding: .55rem .7rem; border-radius: .45rem; font-size: .9rem; text-decoration: none; color: var(--ink); }
.profile-jump-links a:hover, .profile-jump-links a:focus-visible { background: var(--accent-soft); color: var(--accent-dark); }
.profile-primary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.25rem; }
.profile-primary-actions .button { min-height: 44px; white-space: normal; }
#contact-next-steps { scroll-margin-top: 120px; }
#contact-next-steps:target, #contact-next-steps:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.profile-section[id], .community-detail[id] { scroll-margin-top: 180px; }
.community-details__intro { max-width: 65ch; }
.community-details__nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 1.7rem; }
.community-details__nav a { padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .9rem; text-decoration: none; }
.community-details__nav a:hover, .community-details__nav a:focus-visible { background: var(--accent-soft); border-color: var(--accent); }
.community-details__sections { display: grid; gap: 1rem; }
.community-detail { min-width: 0; padding: clamp(1.15rem, 3vw, 1.8rem); border: 1px solid var(--line); border-radius: 1rem; background: #fffaf7; }
.community-detail h3 { margin: 0 0 1rem; font-size: 1.2rem; }
.community-detail__item + .community-detail__item { margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.community-detail__item p { margin: 0 0 .65rem; font-size: 1rem; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.community-detail__sources { font-size: .875rem; }
.community-detail__sources summary { cursor: pointer; width: fit-content; padding: .3rem 0; color: var(--accent-dark); }
.community-detail__sources ul { padding-left: 1.2rem; margin: .6rem 0 0; }
.community-detail__sources li + li { margin-top: .6rem; }
.community-detail__sources span { display: block; color: var(--muted); }
.community-details__reviewed { margin: 1.25rem 0 0; font-size: .875rem; color: var(--muted); }
@media print { .community-details__nav { display: none; } .community-detail { background: transparent; break-inside: avoid; } }
.profile-at-a-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 1.5rem 0 .5rem; }
.profile-at-a-glance > div { padding: 1rem; background: var(--cream-light); border-radius: .65rem; }
.profile-at-a-glance dt { color: var(--muted); font-size: .875rem; }
.profile-at-a-glance dd { margin: .35rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.profile-care-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.profile-care-grid > div { padding: 1.25rem; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: .65rem; }
.profile-care-grid h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.profile-care-grid p { color: var(--muted); }
.profile-care-grid a, .profile-checklist-link { color: var(--accent-dark); font-weight: 600; }
.profile-subheading { font-size: 1.15rem; margin-top: 1.5rem; }
.profile-questions { border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; margin-bottom: 1rem; }
.profile-questions details + details { border-top: 1px solid var(--line); }
.profile-questions summary { padding: 1.1rem 1.25rem; cursor: pointer; font-weight: 600; }
.profile-questions summary::marker { color: var(--accent); }
.profile-questions details[open] { background: var(--cream-light); }
.profile-questions details p { padding: 0 1.25rem 1.25rem; margin: 0; }
.profile-freshness { font-size: .9rem; color: var(--muted); }
.related-community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.related-community-card { border: 1px solid var(--line); border-radius: .85rem; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.related-community-card img { width: 100%; height: 210px; object-fit: cover; }
.related-community-card > div { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.related-community-card h3 { font-size: 1.3rem; }
.related-community-card h3 a { color: var(--ink); text-decoration: none; }
.related-community-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: auto; padding-top: .7rem; }
.related-community-card__actions > a { color: var(--accent-dark); font-weight: 600; }
.photo-strip:has(.photo-strip__supporting:last-child) { display: none; }
.photo-strip .photo-strip__supporting { display: none; }
.photo-dialog__toolbar, .photo-dialog__navigation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.photo-dialog__toolbar { margin-bottom: .75rem; }
.photo-dialog__navigation { margin-top: .75rem; }
.photo-dialog__navigation span { font-size: .875rem; }
.photo-dialog__toolbar [data-gallery-position] { font-weight: 600; }
.photo-dialog img[hidden] { display: none; }
.care-filter-links .care-count { background: #f3eff1; color: var(--ink); border-radius: 1rem; padding: .1rem .45rem; font-weight: 650; margin-left: .3rem; font-variant-numeric: tabular-nums; }
.care-count-note { color: var(--muted); font-size: .875rem; margin: -1rem 0 1.25rem; }
@media (max-width: 980px) {
    .profile-jump-links { position: static; }
    .profile-section[id], .community-detail[id] { scroll-margin-top: 110px; }
    .related-community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .photo-strip:has(.photo-strip__supporting:last-child) { display: flex; }
    .photo-strip .photo-strip__supporting { display: block; }
    .photo-dialog__navigation span { display: none; }
}
@media (max-width: 540px) {
    .profile-at-a-glance { grid-template-columns: 1fr; }
    .profile-at-a-glance > div { display: flex; justify-content: space-between; gap: 1rem; }
    .profile-at-a-glance dd { margin: 0; }
    .related-community-grid { grid-template-columns: 1fr; }
}
@media print {
    .profile-jump-links, .profile-primary-actions, .facility-gallery, .related-community-grid, .profile-checklist-link { display: none !important; }
    .facility-overview__layout { display: block; }
    .profile-at-a-glance > div, .profile-care-grid > div { background: none; box-shadow: none; }
    .profile-section { break-inside: avoid; }
    .community-details { break-inside: auto; }
}

/* Care guides retain the Listeo-inspired coral, cream and charcoal public theme. */
.guide-hero, .guide-header { background: var(--cream-light); padding: 2.5rem 0 3.5rem; }
.guide-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 4rem; }
.guide-hero h1 { max-width: 14ch; }
.guide-hero figure { margin: 0; }
.guide-hero figure img { width: 100%; height: 350px; object-fit: cover; border-radius: 1rem; }
.guide-lede { max-width: 65ch; font-size: 1.15rem; color: #626268; }
.guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.guide-card { display: flex; flex-direction: column; padding: 2rem; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: .75rem; background: var(--panel); box-shadow: var(--shadow-sm); }
.guide-card h3 { font-size: 1.65rem; }
.guide-card h3 a { text-decoration: none; }
.guide-card__link { margin-top: auto; color: var(--accent-dark); font-weight: 600; }
.guide-callout { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2rem; margin-top: 2.5rem; background: var(--cream); border-radius: .75rem; }
.guide-callout > div { max-width: 65ch; }
.guide-callout h2 { font-size: 1.5rem; }
.guide-callout p { margin: 0; }
.guide-callout .button { flex-shrink: 0; }
.guide-country-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.guide-country-grid h2 { font-size: 1.8rem; }
.guide-country-grid a, .guide-source-note a, .guide-article a:not(.button), .guide-boundary a { color: #bd1738; }
.guide-header h1 { max-width: 23ch; }
.guide-header .guide-lede { margin-bottom: 0; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 4rem; padding-top: 3rem; padding-bottom: 4rem; }
.guide-article { min-width: 0; }
.guide-article > section { margin-bottom: 2.75rem; }
.guide-article h2 { font-size: 1.9rem; }
.guide-source-note { color: #717179; font-size: .875rem; line-height: 1.7; margin-top: 1.25rem; }
.guide-numbered { padding: 0; list-style: none; counter-reset: clarification; display: grid; gap: .75rem; }
.guide-numbered li { counter-increment: clarification; display: flex; align-items: start; gap: 1rem; padding: 1.25rem; background: var(--cream-light); border-radius: .5rem; }
.guide-numbered li::before { content: counter(clarification); display: grid; place-items: center; flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.guide-questions { padding-left: 1.3rem; }
.guide-questions li { padding: .35rem 0 .65rem .3rem; }
.guide-questions li::marker { color: var(--accent); }
.guide-boundary { padding: 1.75rem; background: var(--canvas); border-left: 3px solid var(--accent); border-radius: .5rem; }
.guide-boundary h2 { font-size: 1.45rem; }
.guide-boundary p:last-child { margin-bottom: 0; }
.guide-sidebar { align-self: start; position: sticky; top: 6.5rem; }
.guide-search-card { padding: 1.75rem; border: 1px solid var(--line); border-radius: .75rem; box-shadow: var(--shadow-sm); }
.guide-search-card h2, .guide-related h2 { font-size: 1.5rem; }
.guide-search-card form { display: grid; gap: .6rem; }
.guide-search-card label { font-size: .9rem; font-weight: 600; }
.guide-search-card select { min-height: 48px; width: 100%; min-width: 0; padding: .65rem; border: 1px solid var(--line-strong); border-radius: .4rem; background: white; }
.guide-search-card .button { margin-top: .4rem; white-space: normal; }
.guide-related { margin-top: 1.5rem; }
.guide-related a { display: flex; justify-content: space-between; gap: .75rem; padding: .9rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.guide-related a:hover { color: var(--accent-dark); }
/* City and city/care routes are landing pages; keyword searches retain search controls. */
.directory-page--landing .directory-hero { padding-block: 1.75rem; }
.directory-page--landing .directory-hero__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; }
.directory-page--landing .directory-hero h1 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: .5rem; }
.directory-page--landing .breadcrumb { margin-bottom: .75rem; }
.directory-page--landing .kicker { margin-bottom: .5rem; }
.directory-page--landing .city-search-link { justify-self: start; min-height: 44px; }
.directory-page--landing .directory-results { padding-top: 1.25rem; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.directory-page--landing .directory-results + .city-planning { padding-top: clamp(2rem, 4vw, 3.5rem); }
.city-care-navigation { margin-bottom: .75rem; }
.city-care-navigation summary { min-height: 44px; padding-block: .6rem; color: var(--accent-dark); cursor: pointer; font-weight: 600; }
.city-care-navigation summary:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; border-radius: .25rem; }
.directory-page--landing .care-filter-links { margin: 0 0 1rem; gap: .5rem; }
.directory-page--landing .care-filter-links a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .8rem; }
.directory-page--landing .results-heading { gap: .5rem 1rem; margin-bottom: 1rem; }
.directory-page--landing .results-heading h2 { font-size: 1.35rem; }
.directory-page--landing .city-listing-note { color: var(--muted); font-size: .85rem; margin: 1.25rem 0 0; }
.directory-page--landing .shortlist-discovery { margin-top: 1.5rem; margin-bottom: 0; }
@media (max-width: 800px) {
    .directory-page--landing .directory-hero__inner { grid-template-columns: minmax(0, 1fr); }
    .directory-page--landing .directory-hero { padding-block: 1.25rem; }
}
.city-planning .section-heading { max-width: 85ch; }
.city-planning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.city-planning-grid h3 { font-size: 1.5rem; }
.city-resource { margin: 1.5rem 0 0; font-size: .95rem; }
.regional-city-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.directory-page .section-heading { overflow-wrap: anywhere; }
.regional-city-links > a { min-width: 0; overflow-wrap: anywhere; padding: 1.25rem; display: grid; gap: .3rem; border: 1px solid var(--line); border-radius: .65rem; text-decoration: none; }
.regional-city-links > a:hover { border-color: var(--accent); }
.regional-city-links > a > span { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .9rem; color: var(--muted); }
.tour-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.tour-actions [hidden] { display: none !important; }
.tour-body { padding-top: 2.5rem; padding-bottom: 3rem; }
.tour-community { min-width: 0; padding: 1.5rem; margin-bottom: 1.5rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--cream-light); }
.tour-community h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); overflow-wrap: anywhere; }
.tour-community__address { margin-bottom: 1rem; }
.tour-community__details { display: grid; gap: .8rem; margin: 0; }
.tour-community__details dt { color: var(--muted); font-size: .85rem; }
.tour-community__details dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.tour-community__details a { color: var(--accent-dark); }
.tour-community__freshness { margin: 1rem 0 0; color: var(--muted); font-size: .85rem; }
.tour-community__preview { margin: 0 0 1.25rem; padding: .8rem; border: 1px solid var(--line-strong); border-radius: .4rem; background: #fff; }
.tour-write-in { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; }
.tour-write-in p { display: flex; align-items: baseline; flex: 1 1 300px; gap: .75rem; }
.tour-write-in span { flex: 1; min-width: 100px; border-bottom: 1px solid var(--line-strong); }
.tour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.tour-group { min-width: 0; padding: 1.75rem; border: 1px solid var(--line); border-radius: .75rem; }
.tour-group h2 { font-size: 1.55rem; }
.tour-question { display: flex; align-items: baseline; gap: .85rem; padding: .75rem 0; cursor: pointer; }
.tour-question input { flex: 0 0 1.15rem; width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.tour-question:has(input:checked) { color: #65656b; }
.tour-question:has(input:focus-visible) { outline: 2px solid var(--accent-dark); outline-offset: 3px; border-radius: .25rem; background: var(--cream-light); }
.tour-question:has(input:focus-visible) input { outline: none; }
@media (forced-colors: active) {
    .tour-question:has(input:checked) { color: CanvasText; }
    .tour-question:has(input:focus-visible) { outline-color: Highlight; }
}
.tour-note-lines { display: grid; gap: 1.6rem; margin-top: 1.5rem; }
.tour-note-lines span { border-bottom: 1px solid var(--line); }
@media (max-width: 1100px) {
    .guide-layout { gap: 2rem; grid-template-columns: minmax(0, 1fr) 300px; }
    .guide-card { padding: 1.5rem; }
    .guide-callout { align-items: start; flex-direction: column; }
}
@media (max-width: 800px) {
    .guide-hero__grid, .guide-layout, .guide-country-grid, .city-planning-grid { grid-template-columns: 1fr; gap: 2rem; }
    .guide-hero figure img { height: 260px; }
    .guide-hero h1 { max-width: 19ch; }
    .guide-cards { grid-template-columns: 1fr; }
    .guide-card__link { margin-top: .5rem; }
    .guide-sidebar { position: static; }
    .regional-city-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tour-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
    .regional-city-links { grid-template-columns: minmax(0, 1fr); }
    .guide-header, .guide-hero { padding: 2rem 0; }
    .tour-actions { align-items: stretch; flex-direction: column; }
    .guide-callout, .tour-group, .tour-community { padding: 1.25rem; }
    .profile-primary-actions { align-items: stretch; }
    .profile-primary-actions .button { flex: 1 1 auto; }
}
@media print {
    body:has(.tour-page) { padding: 0; font-size: 10pt; color: #000; }
    body:has(.tour-page) .site-header, body:has(.tour-page) .directory-notice,
    body:has(.tour-page) .site-footer, body:has(.tour-page) .skip-link, .tour-page .breadcrumb, .tour-actions,
    .tour-page .guide-header .guide-source-note { display: none !important; }
    .tour-page .page-shell { width: 100%; }
    .tour-page .guide-header { background: none; padding: 0; }
    .tour-page h1 { font-size: 23pt; max-width: none; }
    .tour-page .guide-lede { font-size: 10pt; }
    .tour-body { padding: 1rem 0 0; }
    .tour-community { break-inside: avoid; page-break-inside: avoid; padding: .8rem; background: none; border-color: #999; }
    .tour-community h2 { font-size: 16pt; }
    .tour-community__details { gap: .4rem; }
    .tour-community__details a, .tour-community__details dt, .tour-community__freshness { color: #000; }
    .tour-community__preview { border-color: #000; background: none; padding: .5rem; margin-bottom: .6rem; }
    .tour-grid { display: block; }
    .tour-group { break-inside: avoid; page-break-inside: avoid; padding: .8rem 0; border: 0; border-bottom: 1px solid #bbb; }
    .tour-group h2 { font-size: 14pt; }
    .tour-group .kicker { margin-bottom: .3rem; }
    .tour-question { padding: .3rem 0; }
    .tour-question:has(input:focus-visible) { outline: none; background: none; }
    .tour-question input { appearance: auto; accent-color: #000; outline: none; }
    .tour-question:has(input:checked) { color: #000; }
    .tour-page .guide-boundary { break-inside: avoid; background: none; padding: 1rem 0; border: 0; }
    .tour-note-lines { gap: 1.15rem; margin-top: .7rem; }
    .tour-page .guide-source-note { font-size: 9pt; }
}

/* Respect the visitor's motion preference without removing focus feedback,
   static artwork placement, or transforms used to position navigation. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .button,
    .hero-categories a,
    .category-card,
    .city-card img,
    .listing-card__image img,
    .city-directory-card {
        transition: none;
    }

    .button:hover,
    .hero-categories a:hover,
    .hero-categories a:focus-visible,
    .category-card:hover,
    .category-card:focus-visible,
    .city-card:hover img,
    .city-card:focus-visible img,
    .listing-card:hover .listing-card__image img {
        transform: none;
    }
}
.editorial-pilot-notice {
    margin: 1rem 0;
    padding: .8rem 1rem;
    border: 1px solid #f1c9bc;
    border-radius: .65rem;
    background: #fff5ef;
    color: #59392e;
    font-size: .9rem;
}

.editorial-faq-source {
    margin-top: .5rem;
    font-size: .88rem;
}
