/**
 * Geo hub v2: the city hub reskin (v13 design, Nov 2026) and its
 * cities-first state-silo variant (.eh-hub-v2--state, Nov 18 2026).
 *
 * Loaded only when a v2 layout renders (eh_hub_v2_page_active(); enqueued
 * in functions.php after archive-components.css), so every rule here is
 * scoped under .eh-hub-v2 and wins over the shared archive styles it sits
 * on. Templates: archive-place-location.php (both v2 branches) and the
 * components they call: archive-hero.php (eh_render_hub_hero,
 * eh_render_hub_price_alert), archive-clinic-list.php (eh_render_hub_list),
 * archive-hub-card.php, archive-map-rail.php (city hubs), archive-location-
 * grid.php (eh_render_hub_cities, state silos), archive-top-rated.php (state
 * silos), archive-city-directory.php (v2, state silos),
 * archive-promise-strip.php, archive-faq.php (collapsed). Behavior:
 * assets/js/archive-hub.js.
 *
 * Type comes from the --eh-* token ladder (eh-brand-tokens.css; no new
 * font-size/weight/family literals). Surface colors the tokens file leaves
 * to each page live here as --hub-* (namespace rule in that file).
 */

.eh-hub-v2 {
    --hub-line: #e2e8f0;
    --hub-line-strong: #cbd5e1;
    --hub-soft: #f8fafc;
    --hub-gold: #b8860b;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px 56px;
    font-family: var(--eh-font-body);
    color: var(--eh-text);
}

.eh-hub-v2 .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Breadcrumb (existing component, quieter) ---- */
.eh-hub-v2 .eh-breadcrumb {
    margin-bottom: 0;
    font-size: var(--eh-fs-13);
    color: var(--eh-muted);
}
.eh-hub-v2 .eh-breadcrumb a {
    color: var(--eh-muted);
}
.eh-hub-v2 .eh-breadcrumb a:hover {
    color: var(--eh-green-dark);
}

/* ---- Hero: full-bleed soft band (border-image outset paints past the
   column without widening the page or adding a scrollbar) ---- */
.eh-hub-v2 .eh-hub-hero {
    text-align: center;
    padding: 40px 0 34px;
    /* Fades to transparent, not white: the page background under the list
       is the theme's, and a white end left a visible seam. */
    border-image: linear-gradient(180deg, #eef7f1 0%, rgba(238, 247, 241, 0) 100%) fill 0 // 0 100vmax;
}
.eh-hub-v2 .eh-hub-kicker {
    margin: 0;
    font-family: var(--eh-font-heading);
    font-size: var(--eh-fs-12);
    font-weight: var(--eh-fw-semibold);
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--eh-green);
}
.eh-hub-v2 .eh-hub-title {
    margin: 12px 0 0;
    font-family: var(--eh-font-heading);
    font-size: var(--eh-fs-40);
    font-weight: var(--eh-fw-bold);
    line-height: 1.1;
    letter-spacing: -0.8px;
    color: var(--eh-ink);
    text-transform: none;
}
.eh-hub-v2 .eh-hub-lede {
    max-width: 980px;
    margin: 13px auto 0;
    font-size: var(--eh-fs-15);
    line-height: 1.55;
    color: var(--eh-muted);
}

/* ---- List section ---- */
.eh-hub-v2 .eh-hub-list-section {
    padding-top: 28px;
    scroll-margin-top: 16px;
}
.eh-hub-v2 .eh-hub-list-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
}
.eh-hub-v2 .eh-hub-list-title {
    margin: 0;
    font-family: var(--eh-font-heading);
    font-size: var(--eh-fs-22);
    font-weight: var(--eh-fw-bold);
    letter-spacing: -0.3px;
    color: var(--eh-ink);
    text-transform: none;
}
.eh-hub-v2 .eh-hub-list-order {
    font-size: var(--eh-fs-13);
    color: var(--eh-muted);
}
.eh-hub-v2 .eh-hub-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
    align-items: start;
    margin-top: 18px;
}
.eh-hub-v2 .eh-hub-prev {
    display: inline-block;
    margin-bottom: 12px;
    font-size: var(--eh-fs-14);
    font-weight: var(--eh-fw-semibold);
    color: var(--eh-green);
    text-decoration: none;
}
.eh-hub-v2 .eh-hub-prev:hover {
    text-decoration: underline;
}

/* ---- Cards ---- */
.eh-hub-v2 .eh-hub-cards {
    list-style: none;
    margin: 0;
    padding: 0;
}
.eh-hub-v2 .eh-hub-item {
    margin: 0 0 12px;
    padding: 0;
}
.eh-hub-v2 .eh-hub-item.is-folded {
    display: none;
}
.eh-hub-v2 .eh-hub-card {
    background: #fff;
    border: 1px solid var(--hub-line);
    border-radius: var(--eh-radius);
    box-shadow: var(--eh-shadow);
    padding: 18px 22px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.eh-hub-v2 .eh-hub-card:hover {
    box-shadow: var(--eh-shadow-lift);
    border-color: var(--hub-line-strong);
}
.eh-hub-v2 .eh-hub-card-top {
    display: flex;
    align-items: center;
    gap: 13px;
}
.eh-hub-v2 .eh-hub-avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-family: var(--eh-font-heading);
    font-size: var(--eh-fs-18);
    font-weight: var(--eh-fw-bold);
    color: #fff;
}
.eh-hub-v2 .eh-hub-avatar--logo {
    background: #fff;
    border: 1px solid var(--hub-line);
    overflow: hidden;
}
.eh-hub-v2 .eh-hub-avatar--logo img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.eh-hub-v2 .eh-hub-avatar--tone0 { background: linear-gradient(140deg, #047727, #2ea35c); }
.eh-hub-v2 .eh-hub-avatar--tone1 { background: linear-gradient(140deg, #0e7490, #22b8cf); }
.eh-hub-v2 .eh-hub-avatar--tone2 { background: linear-gradient(140deg, #4552a8, #7c8aed); }
.eh-hub-v2 .eh-hub-avatar--tone3 { background: linear-gradient(140deg, #64748b, #94a3b8); }

.eh-hub-v2 .eh-hub-card-head {
    flex: 1;
    min-width: 0;
}
.eh-hub-v2 .eh-hub-card-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}
.eh-hub-v2 .eh-hub-card-name {
    margin: 0;
    font-family: var(--eh-font-heading);
    font-size: var(--eh-fs-15);
    font-weight: var(--eh-fw-semibold);
    line-height: 1.35;
    letter-spacing: -0.2px;
    color: var(--eh-ink);
    text-transform: none;
}
.eh-hub-v2 .eh-hub-card-name a {
    color: inherit;
    text-decoration: none;
}
.eh-hub-v2 .eh-hub-card-name a:hover,
.eh-hub-v2 .eh-hub-card-name a:focus-visible {
    color: var(--eh-green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.eh-hub-v2 .eh-hub-card-meta {
    margin: 3px 0 0;
    font-size: var(--eh-fs-13);
    line-height: 1.4;
    color: var(--eh-muted);
}
.eh-hub-v2 .eh-hub-star {
    color: var(--hub-gold);
}
.eh-hub-v2 .eh-hub-rating {
    font-weight: var(--eh-fw-semibold);
    color: var(--eh-ink);
}
.eh-hub-v2 .eh-hub-sep {
    margin: 0 6px;
    color: var(--hub-line-strong);
}
.eh-hub-v2 .eh-hub-rank {
    flex: none;
    align-self: flex-start;
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--eh-green);
    font-size: var(--eh-fs-12);
    font-weight: var(--eh-fw-bold);
    color: #fff;
}
.eh-hub-v2 .eh-hub-card-addr {
    margin: 10px 0 0;
    font-size: var(--eh-fs-13);
    line-height: 1.5;
    color: var(--eh-muted);
}
.eh-hub-v2 .eh-hub-street {
    font-weight: var(--eh-fw-medium);
    color: var(--eh-text);
}
.eh-hub-v2 .eh-hub-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid var(--hub-line);
}
.eh-hub-v2 .eh-hub-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.eh-hub-v2 .eh-hub-chip {
    margin: 0;
    padding: 5px 12px;
    border: 1.5px solid var(--hub-line);
    border-radius: 999px;
    font-size: var(--eh-fs-12);
    font-weight: var(--eh-fw-semibold);
    line-height: 1.4;
    color: var(--eh-text);
}
.eh-hub-v2 .eh-hub-chip--more {
    border-style: dashed;
    font-weight: var(--eh-fw-medium);
    color: var(--eh-muted);
}
.eh-hub-v2 .eh-hub-cta,
.eh-hub-v2 .eh-hub-cta.eh-btn-book {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border: 1.5px solid var(--eh-green);
    border-radius: 999px;
    background: var(--eh-green);
    font-size: var(--eh-fs-13);
    font-weight: var(--eh-fw-bold);
    line-height: 1.3;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.eh-hub-v2 .eh-hub-cta:hover,
.eh-hub-v2 .eh-hub-cta.eh-btn-book:hover {
    background: var(--eh-green-dark);
    border-color: var(--eh-green-dark);
    color: #fff;
    box-shadow: none;
}
.eh-hub-v2 .eh-hub-cta--secondary {
    padding: 10px 16px;
    border-color: var(--hub-line);
    background: #fff;
    color: var(--eh-ink);
}
.eh-hub-v2 .eh-hub-cta--secondary:hover {
    border-color: var(--eh-ink);
    background: #fff;
    color: var(--eh-ink);
}
.eh-hub-v2 .eh-hub-cta:focus-visible,
.eh-hub-v2 .eh-hub-more-btn:focus-visible,
.eh-hub-v2 .eh-hub-rail-cta:focus-visible,
.eh-hub-v2 .eh-hub-dock-cta:focus-visible {
    outline: 3px solid var(--eh-green);
    outline-offset: 2px;
}

/* ---- Show more (the fold) ---- */
.eh-hub-v2 .eh-hub-more {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 6px;
}
/* While cards are folded, the last visible card fades out at its foot (a
   mask, not a white overlay: the page background under the list is the
   theme's pale green, and any painted fade would leave a seam). Browsers
   without :has() simply skip the fade. */
.eh-hub-v2 .eh-hub-cards.is-folding > .eh-hub-item:not(.is-folded):has(+ .eh-hub-item.is-folded) .eh-hub-card {
    -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
}
.eh-hub-v2 .eh-hub-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 28px;
    border: 1.5px solid var(--eh-ink);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--eh-shadow-lift);
    font-family: var(--eh-font-body);
    font-size: var(--eh-fs-14);
    font-weight: var(--eh-fw-bold);
    color: var(--eh-ink);
    text-decoration: none;
    cursor: pointer;
}
.eh-hub-v2 .eh-hub-more-btn:hover {
    background: var(--hub-soft);
    color: var(--eh-ink);
}
.eh-hub-v2 .eh-hub-more-btn[hidden] {
    display: none;
}

/* ---- Map rail ---- */
.eh-hub-v2 .eh-hub-rail {
    position: sticky;
    top: 20px;
    overflow: hidden;
    border: 1px solid var(--hub-line);
    border-radius: var(--eh-radius);
    background: #fff;
    box-shadow: var(--eh-shadow);
}
.eh-hub-v2 .eh-hub-map {
    margin: 0;
}
/* The frame holds the static poster (first paint) and, once
   archive-hub.js hydrates it, the live map canvas on top. The canvas stays
   transparent until its first tiles land (.is-live), so the poster shows
   through instead of Google's grey loading box. Scoped to the POSTER img:
   a bare `img` rule here would also hit the live map's tiles. */
.eh-hub-v2 .eh-hub-map-frame {
    position: relative;
    aspect-ratio: 380 / 420;
    background: linear-gradient(145deg, #eef6f1 0%, #e9f1f7 55%, #eef3ee 100%);
}
.eh-hub-v2 .eh-hub-map picture {
    display: block;
    height: 100%;
}
.eh-hub-v2 .eh-hub-map-poster {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
}
.eh-hub-v2 .eh-hub-map-frame:focus-visible {
    outline: 3px solid var(--eh-green);
    outline-offset: -3px;
}
.eh-hub-v2 .eh-hub-map-canvas {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.eh-hub-v2 .eh-hub-map.is-live .eh-hub-map-canvas {
    opacity: 1;
}
.eh-hub-v2 .eh-hub-map-tip {
    max-width: 220px;
    /* The header-less InfoWindow (archive-hub.js) gives its content no
       bottom inset; this keeps the last line off the edge. */
    padding: 2px 2px 8px 0;
    font-family: var(--eh-font-body);
    font-size: var(--eh-fs-13);
    line-height: 1.4;
    color: var(--eh-text);
}
.eh-hub-v2 .eh-hub-map-tip-name {
    font-weight: var(--eh-fw-semibold);
    color: var(--eh-ink);
}
.eh-hub-v2 .eh-hub-map-tip-rating {
    margin-top: 2px;
}
.eh-hub-v2 .eh-hub-map-tip-rating span {
    color: var(--hub-gold);
}
.eh-hub-v2 .eh-hub-map-tip-street {
    margin-top: 2px;
    color: var(--eh-muted);
}
.eh-hub-v2 .eh-hub-map-caption {
    margin: 0;
    padding: 12px 16px;
    border-top: 1px solid var(--hub-line);
    font-size: var(--eh-fs-13);
    color: var(--eh-muted);
}
.eh-hub-v2 .eh-hub-rail-card {
    padding: 16px;
    border-top: 1px solid var(--hub-line);
}
.eh-hub-v2 .eh-hub-map + .eh-hub-rail-card {
    border-top-width: 1px;
}
.eh-hub-v2 .eh-hub-rail > .eh-hub-rail-card:first-child {
    border-top: 0;
}
.eh-hub-v2 .eh-hub-rail-title {
    margin: 0;
    font-family: var(--eh-font-heading);
    font-size: var(--eh-fs-14);
    font-weight: var(--eh-fw-semibold);
    color: var(--eh-ink);
}
.eh-hub-v2 .eh-hub-rail-text {
    margin: 5px 0 0;
    font-size: var(--eh-fs-13);
    line-height: 1.5;
    color: var(--eh-muted);
}
.eh-hub-v2 .eh-hub-rail-cta {
    display: block;
    margin-top: 12px;
    padding: 11px;
    border-radius: 999px;
    background: var(--eh-ink);
    text-align: center;
    font-size: var(--eh-fs-13);
    font-weight: var(--eh-fw-bold);
    color: #fff;
    text-decoration: none;
}
.eh-hub-v2 .eh-hub-rail-cta:hover {
    background: #1e293b;
    color: #fff;
}

/* ---- Promise callout (archive-promise-strip.php) ---- */
.eh-hub-v2 .eh-hub-promise {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
    margin: 44px 0 0;
    padding: 22px 28px 22px 32px;
    border: 1px solid #b5e0c4;
    border-radius: var(--eh-radius);
    /* White on the theme's pale-green page, a green accent edge, a soft
       lift: it has to read as a callout, not another band of background. */
    background: #fff;
    box-shadow: inset 5px 0 0 var(--eh-green), var(--eh-shadow-lift);
}
.eh-hub-v2 .eh-hub-promise-head {
    display: flex;
    align-items: center;
    gap: 14px;
}
.eh-hub-v2 .eh-hub-promise-seal {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--eh-green);
    box-shadow: 0 0 0 5px rgba(4, 119, 39, 0.12);
    color: #fff;
}
.eh-hub-v2 .eh-hub-promise-title {
    margin: 0;
    font-family: var(--eh-font-heading);
    font-size: var(--eh-fs-18);
    font-weight: var(--eh-fw-semibold);
    line-height: 1.25;
    letter-spacing: -0.2px;
    color: var(--eh-ink);
}
.eh-hub-v2 .eh-hub-promise-link {
    display: inline-block;
    margin-top: 2px;
    font-size: var(--eh-fs-13);
    font-weight: var(--eh-fw-semibold);
    color: var(--eh-green);
    text-decoration: none;
}
.eh-hub-v2 .eh-hub-promise-link:hover,
.eh-hub-v2 .eh-hub-promise-link:focus-visible {
    color: var(--eh-green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.eh-hub-v2 .eh-hub-promise-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.eh-hub-v2 .eh-hub-promise-item {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: var(--eh-fs-14);
    font-weight: var(--eh-fw-semibold);
    color: var(--eh-ink);
}
/* A white check on a green disc, drawn in CSS (no icon request). */
.eh-hub-v2 .eh-hub-promise-check {
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--eh-green);
}
.eh-hub-v2 .eh-hub-promise-check::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 4px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

/* ---- Shared section rhythm below the list ---- */
.eh-hub-v2--state .eh-silo-intro,
.eh-hub-v2 .eh-service-sections,
.eh-hub-v2 .eh-faq-section,
.eh-hub-v2 .eh-seo-content,
.eh-hub-v2 .eh-interlinks {
    margin-top: 48px;
}
.eh-hub-v2 .eh-section-title {
    font-family: var(--eh-font-heading);
    font-size: var(--eh-fs-22);
    color: var(--eh-ink);
    text-align: left;
    text-transform: none;
}

/* ---- "{Scan} in {City}" sections: the shared compact cards as quiet
   rows (name and rating left, pill Book right), two per line on desktop.
   Same markup as the old layout (eh_render_compact_clinic_card()); price
   badges are absent in v2 (show_prices => false). ---- */
.eh-hub-v2 .eh-service-nav-link {
    border-color: var(--hub-line);
    font-size: var(--eh-fs-13);
    font-weight: var(--eh-fw-semibold);
    color: var(--eh-text);
}
.eh-hub-v2 .eh-service-nav-link:hover {
    border-color: var(--eh-green);
    color: var(--eh-green-dark);
}
.eh-hub-v2 .eh-service-note {
    font-size: var(--eh-fs-14);
}
.eh-hub-v2 .eh-top-rated-grid {
    /* Two per line on desktop: wide enough for name + rating beside the
       "Get an Appointment" button. Narrower cards stack it (below). */
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 10px;
    max-width: none;
}
.eh-hub-v2 .eh-top-card {
    container-type: inline-size;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 14px;
    padding: 14px 18px;
    border-color: var(--hub-line);
    border-radius: var(--eh-radius-sm);
    box-shadow: var(--eh-shadow);
}
.eh-hub-v2 .eh-top-card-title {
    grid-column: 1;
    font-family: var(--eh-font-heading);
    font-size: var(--eh-fs-14);
    text-transform: none;
}
.eh-hub-v2 .eh-top-card-title a {
    color: var(--eh-ink);
}
.eh-hub-v2 .eh-top-card-title a:hover {
    color: var(--eh-green-dark);
}
.eh-hub-v2 .eh-top-card-rating {
    grid-column: 1;
    flex-wrap: wrap;
    min-width: 0;
    font-size: var(--eh-fs-13);
}
/* One star, like the v2 list cards' "★ 4.6 (417)": the five-star row
   was the widest thing beside the button. The full first star stays (the
   rating number carries the value; the stars are aria-hidden). */
.eh-hub-v2 .eh-top-card-rating .eh-star:not(:first-child) {
    display: none;
}
.eh-hub-v2 .eh-top-card-book.eh-btn-book {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--eh-green);
    font-size: var(--eh-fs-13);
    box-shadow: none;
}
.eh-hub-v2 .eh-top-card-book.eh-btn-book:hover {
    background: var(--eh-green-dark);
    box-shadow: none;
}
/* A card too narrow for details and button side by side (phones; any
   column under ~400px): the button drops below the details. After the base button rule:
   same specificity, so source order decides. */
@container (max-width: 400px) {
    .eh-hub-v2 .eh-top-card-book.eh-btn-book {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: start;
        margin-top: 8px;
    }
}

/* ---- FAQ, collapsed rows (native <details>): full content width, like
   the sections around it (Grant, Nov 18) ---- */
.eh-hub-v2 .eh-faq-section--collapsed .eh-faq-container {
    gap: 10px;
}
.eh-hub-v2 .eh-faq-section--collapsed .eh-faq-item {
    padding: 0;
    border: 1px solid var(--hub-line);
    border-radius: var(--eh-radius-sm);
    box-shadow: var(--eh-shadow);
}
.eh-hub-v2 .eh-faq-section--collapsed .eh-faq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 15px 22px;
    border: 0;
    border-radius: var(--eh-radius-sm);
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.eh-hub-v2 .eh-faq-section--collapsed .eh-faq-toggle::after {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 2px solid var(--eh-muted);
    border-bottom: 2px solid var(--eh-muted);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}
.eh-hub-v2 .eh-faq-section--collapsed .eh-faq-toggle[aria-expanded="true"]::after {
    margin-top: 4px;
    transform: rotate(-135deg);
}
.eh-hub-v2 .eh-faq-section--collapsed .eh-faq-toggle:focus-visible {
    outline: 3px solid var(--eh-green);
    outline-offset: 2px;
}
.eh-hub-v2 .eh-faq-section--collapsed .eh-faq-question {
    margin: 0;
    font-family: var(--eh-font-body);
    font-size: var(--eh-fs-14);
    font-weight: var(--eh-fw-semibold);
    line-height: 1.4;
    color: var(--eh-ink);
}
.eh-hub-v2 .eh-faq-section--collapsed .eh-faq-answer {
    padding: 0 22px 16px;
    font-size: var(--eh-fs-14);
    line-height: 1.6;
    color: var(--eh-text);
}

/* ---- "Notify me" row (hubs without price data) ---- */
.eh-hub-v2 .eh-hub-alert {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin: 28px 0 0;
    padding: 18px 22px;
    border: 1px solid var(--hub-line);
    border-radius: var(--eh-radius-sm);
    background: var(--hub-soft);
}
.eh-hub-v2 .eh-hub-alert-title {
    margin: 0;
    font-size: var(--eh-fs-14);
    font-weight: var(--eh-fw-semibold);
    color: var(--eh-ink);
}
.eh-hub-v2 .eh-hub-alert-text {
    margin: 2px 0 0;
    font-size: var(--eh-fs-13);
    color: var(--eh-muted);
}
.eh-hub-v2 .eh-hub-alert .eh-price-alert-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}
.eh-hub-v2 .eh-hub-alert .eh-price-alert-input {
    min-width: 220px;
    padding: 9px 16px;
    border: 1.5px solid var(--hub-line);
    border-radius: 999px;
    background: #fff;
    font-size: var(--eh-fs-14);
}
.eh-hub-v2 .eh-hub-alert .eh-price-alert-submit {
    padding: 9px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--eh-ink);
    font-size: var(--eh-fs-13);
    font-weight: var(--eh-fw-bold);
    color: #fff;
    cursor: pointer;
}

/* ---- Sticky dock (shown by archive-hub.js once past the list) ---- */
.eh-hub-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    border-top: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.eh-hub-dock[hidden] {
    display: none;
}
.eh-hub-dock-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 24px;
}
.eh-hub-dock-subject {
    font-family: var(--eh-font-heading);
    font-size: var(--eh-fs-15);
    font-weight: var(--eh-fw-semibold);
    color: var(--eh-ink);
}
.eh-hub-dock-cta {
    margin-left: auto;
    padding: 12px 26px;
    border-radius: 999px;
    background: var(--eh-green);
    font-size: var(--eh-fs-14);
    font-weight: var(--eh-fw-bold);
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}
.eh-hub-dock-cta:hover {
    background: var(--eh-green-dark);
    color: #fff;
}

/* ---- State silos (.eh-hub-v2--state): cities first, A to Z list, no map.
   Clinic-category archives (.eh-hub-v2--category) carry --state too and
   reuse everything here; their lead grid is states (.eh-hub-states, same
   classes as the cities grid), their directory block doesn't render. ---- */

/* "Find {category} in your city": the page's lead block, so its tiles are
   bigger and louder than the list's chips. */
.eh-hub-v2 .eh-hub-cities {
    margin-top: 28px;
    scroll-margin-top: 16px;
}
.eh-hub-v2 .eh-hub-cities-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
}
.eh-hub-v2 .eh-hub-cities-title {
    margin: 0;
    font-family: var(--eh-font-heading);
    font-size: var(--eh-fs-22);
    font-weight: var(--eh-fw-bold);
    letter-spacing: -0.3px;
    color: var(--eh-ink);
    text-transform: none;
}
.eh-hub-v2 .eh-hub-cities-all {
    font-size: var(--eh-fs-14);
    font-weight: var(--eh-fw-semibold);
    color: var(--eh-green);
    text-decoration: none;
}
.eh-hub-v2 .eh-hub-cities-all:hover,
.eh-hub-v2 .eh-hub-cities-all:focus-visible {
    color: var(--eh-green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.eh-hub-v2 .eh-hub-cities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.eh-hub-v2 .eh-hub-cities-list li {
    margin: 0;
}
.eh-hub-v2 .eh-hub-city {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 100%;
    padding: 13px 16px;
    border: 1px solid var(--hub-line);
    border-radius: var(--eh-radius-sm);
    background: #fff;
    box-shadow: var(--eh-shadow);
    font-size: var(--eh-fs-15);
    font-weight: var(--eh-fw-semibold);
    line-height: 1.3;
    color: var(--eh-ink);
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.eh-hub-v2 .eh-hub-city::after {
    /* Decorative: the "/ \"\"" alt text keeps the arrow out of each link's
       accessible name ("Los Angeles", not "Los Angeles, right arrow").
       Browsers without that syntax drop the second declaration and keep
       the first. */
    content: "\2192";
    content: "\2192" / "";
    flex: none;
    color: var(--eh-green);
}
.eh-hub-v2 .eh-hub-city:hover,
.eh-hub-v2 .eh-hub-city:focus-visible {
    border-color: var(--eh-green);
    color: var(--eh-green-dark);
    box-shadow: var(--eh-shadow-lift);
}
.eh-hub-v2 .eh-hub-city:focus-visible,
.eh-hub-v2 .eh-city-directory--v2 a:focus-visible,
.eh-hub-v2 .eh-city-letter:focus-visible {
    outline: 3px solid var(--eh-green);
    outline-offset: 2px;
}

/* Top-rated strip: the shared compact cards (.eh-top-card rules above),
   three across. */
.eh-hub-v2 .eh-top-rated {
    margin-top: 40px;
}
.eh-hub-v2 .eh-top-rated-note {
    margin: -6px 0 16px;
    font-size: var(--eh-fs-14);
    color: var(--eh-muted);
    text-align: left;
}
.eh-hub-v2 .eh-top-rated .eh-top-rated-grid {
    /* min(): never wider than the column, so a 320px phone gets one fluid
       track instead of a 300px one overflowing the page. */
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

/* A to Z "Jump to" index over an alphabetical list (eh_silo_letter_pages()). */
.eh-hub-v2 .eh-hub-letters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}
.eh-hub-v2 .eh-hub-letters-label {
    margin-right: 4px;
    font-size: var(--eh-fs-13);
    color: var(--eh-muted);
}
.eh-hub-v2 .eh-hub-letter {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
    border: 1px solid var(--hub-line);
    border-radius: 999px;
    background: #fff;
    font-size: var(--eh-fs-13);
    font-weight: var(--eh-fw-semibold);
    color: var(--eh-text);
    text-decoration: none;
}
.eh-hub-v2 .eh-hub-letter:hover,
.eh-hub-v2 .eh-hub-letter.is-here {
    border-color: var(--eh-green);
    color: var(--eh-green-dark);
}
.eh-hub-v2 .eh-hub-letter:focus-visible {
    outline: 3px solid var(--eh-green);
    outline-offset: 2px;
}

/* The list without a map rail: full width, two cards per row on wide
   screens (one card spanning ~1100px leaves most of each row empty). */
.eh-hub-v2 .eh-hub-split--single {
    grid-template-columns: minmax(0, 1fr);
}
.eh-hub-v2--state .eh-hub-list-section {
    padding-top: 40px;
}
.eh-hub-v2 .eh-hub-cards--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.eh-hub-v2 .eh-hub-cards--grid > .eh-hub-item {
    display: flex;
    margin: 0;
    scroll-margin-top: 16px;
}
.eh-hub-v2 .eh-hub-cards--grid > .eh-hub-item.is-folded {
    display: none;
}
.eh-hub-v2 .eh-hub-cards--grid .eh-hub-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* The footer sits at the card's bottom (rows share a height); the 13px gap
   above its divider comes from whatever precedes it, address line or
   header, so a card with neither address nor hours keeps the gap. */
.eh-hub-v2 .eh-hub-cards--grid .eh-hub-card-foot {
    margin-top: auto;
}
.eh-hub-v2 .eh-hub-cards--grid .eh-hub-card > :nth-last-child(2) {
    margin-bottom: 13px;
}
/* Two per row: the fold fades the whole last visible row, not just its
   right-hand card. Only while the grid IS two per row (below 1000px it is
   one column, and fading card 9 would leave card 10 solid under it). */
@media (min-width: 1000px) {
    .eh-hub-v2 .eh-hub-cards--grid.is-folding > .eh-hub-item:not(.is-folded):has(+ .eh-hub-item:not(.is-folded) + .eh-hub-item.is-folded) .eh-hub-card {
        -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
    }
}
.eh-hub-v2 .eh-hub-cards--grid + .eh-hub-more {
    margin-top: 14px;
}

/* A to Z city directory (v2 markup; the original keeps its inline styles). */
.eh-hub-v2 .eh-city-directory--v2 {
    margin-top: 48px;
    scroll-margin-top: 16px;
}
.eh-hub-v2 .eh-city-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 20px;
}
.eh-hub-v2 .eh-city-letter {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--hub-line);
    border-radius: 999px;
    background: #fff;
    font-size: var(--eh-fs-13);
    font-weight: var(--eh-fw-semibold);
    color: var(--eh-text);
    text-decoration: none;
}
.eh-hub-v2 .eh-city-letter:hover {
    border-color: var(--eh-green);
    color: var(--eh-green-dark);
}
.eh-hub-v2 .eh-city-directory--v2 .eh-city-columns {
    column-count: 4;
    column-gap: 28px;
    padding: 24px 28px;
    border: 1px solid var(--hub-line);
    border-radius: var(--eh-radius);
    background: #fff;
}
.eh-hub-v2 .eh-city-group {
    break-inside: avoid;
    margin-bottom: 18px;
    scroll-margin-top: 16px;
}
.eh-hub-v2 .eh-city-group-letter {
    margin: 0 0 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--hub-line);
    font-family: var(--eh-font-heading);
    font-size: var(--eh-fs-15);
    font-weight: var(--eh-fw-bold);
    color: var(--eh-green-dark);
    text-transform: none;
}
.eh-hub-v2 .eh-city-group-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.eh-hub-v2 .eh-city-group-list li {
    margin: 0 0 4px;
}
.eh-hub-v2 .eh-city-group-list a {
    font-size: var(--eh-fs-14);
    color: var(--eh-text);
    text-decoration: none;
}
.eh-hub-v2 .eh-city-group-list a:hover {
    color: var(--eh-green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* State list: one card per row once two would be cramped. */
@media (max-width: 999px) {
    .eh-hub-v2 .eh-hub-cards--grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .eh-hub-v2 .eh-city-directory--v2 .eh-city-columns {
        column-count: 3;
    }
}

/* ---- Tablet and down: one column, rail after the list ---- */
@media (max-width: 899px) {
    .eh-hub-v2 .eh-hub-split {
        grid-template-columns: minmax(0, 1fr);
    }
    .eh-hub-v2 .eh-hub-rail {
        position: static;
    }
    /* No map once the rail stacks below the whole list (phones and
       tablets): the find-a-clinic card is the value there. The <picture>
       in archive-map-rail.php serves an inline blank for this same query
       (EH_HUB_MAP_HIDDEN_MEDIA) and archive-hub.js never hydrates, so the
       hidden map is never fetched. */
    .eh-hub-v2 .eh-hub-map {
        display: none;
    }
    .eh-hub-v2 .eh-hub-rail > .eh-hub-rail-card {
        border-top: 0;
    }
}

/* ---- Phones ---- */
@media (max-width: 599px) {
    .eh-hub-v2 .eh-hub-cities-title {
        font-size: var(--eh-fs-20);
    }
    .eh-hub-v2 .eh-hub-cities-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .eh-hub-v2 .eh-hub-city {
        padding: 12px 14px;
        font-size: var(--eh-fs-14);
    }
    .eh-hub-v2 .eh-city-directory--v2 .eh-city-columns {
        column-count: 2;
        padding: 18px;
    }
    .eh-hub-v2 {
        padding: 10px 16px 40px;
    }
    .eh-hub-v2 .eh-hub-hero {
        padding: 28px 0 24px;
    }
    .eh-hub-v2 .eh-hub-title {
        font-size: var(--eh-fs-28);
        letter-spacing: -0.4px;
    }
    .eh-hub-v2 .eh-hub-lede {
        font-size: var(--eh-fs-14);
    }
    .eh-hub-v2 .eh-hub-list-title {
        font-size: var(--eh-fs-20);
    }
    .eh-hub-v2 .eh-hub-card {
        padding: 16px;
    }
    /* Hours on their own line: a wrapped "street · hours" line would start
       with the separator. */
    .eh-hub-v2 .eh-hub-card-addr .eh-hub-sep {
        display: none;
    }
    .eh-hub-v2 .eh-hub-hours {
        display: block;
    }
    .eh-hub-v2 .eh-top-rated-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .eh-hub-v2 .eh-hub-promise {
        padding: 18px;
    }
    .eh-hub-v2 .eh-hub-promise-list {
        flex-direction: column;
    }
    .eh-hub-dock-inner {
        padding: 10px 16px;
    }
    .eh-hub-dock-subject {
        font-size: var(--eh-fs-14);
    }
    .eh-hub-dock-cta {
        padding: 11px 20px;
    }
}
