/* ================================================================
   Peptide Clinic Guide — Precision Editorial Design System
   Direction: Precision editorial UI for a clinic directory platform
   Distinct from V1 (dark tech) and V2 (light corporate)
   ================================================================ */

/* ── Design tokens ─────────────────────────────────────────────── */
:root {
  /* Backgrounds — warm cream, easy for extended reading */
  --cream:          #F8F7F4;
  --cream-alt:      #EFEDE8;
  --cream-deep:     #E6E2DA;
  --surface:        #FFFFFF;
  --surface-raised: #FDFCFA;

  /* Text — warm ink, not harsh cold black */
  --ink:            #1A1918;
  --ink-2:          #3C3835;
  --ink-3:          #6B6560;
  --ink-ghost:      #9E9890;

  /* Borders — warm grey, not cold steel */
  --rule:           #DDD9D2;
  --rule-light:     #E8E5DF;
  --rule-heavy:     #C9C4BC;

  /* Primary accent — deep teal */
  --teal:           #0B6E6E;
  --teal-dark:      #085252;
  --teal-light:     #E8F4F4;
  --teal-mid:       #9DD1D1;

  /* Positive signal — forest green */
  --green:          #14532D;
  --green-light:    #ECFDF5;
  --green-mid:      #86EFAC;

  /* Warning signal — warm amber */
  --amber:          #92400E;
  --amber-light:    #FEF3C7;
  --amber-mid:      #FCD34D;

  /* Typography */
  --font-serif:     Georgia, 'Palatino Linotype', Palatino, 'Times New Roman', serif;
  --font-sans:      -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui,
                    Helvetica, Arial, sans-serif;

  /* Layout */
  --max:            1160px;
  --sidebar-w:      240px;
  --nav-h:          64px;

  /* Shape */
  --radius:         6px;
  --radius-sm:      4px;
  --radius-lg:      10px;

  /* Motion */
  --t:              0.15s ease;
  --t-slow:         0.25s ease;

  /* Shadows — very subtle, editorial restraint */
  --shadow-xs:      0 1px 2px rgba(26, 25, 24, 0.06);
  --shadow-sm:      0 2px 8px rgba(26, 25, 24, 0.07);
  --shadow-md:      0 4px 18px rgba(26, 25, 24, 0.09);
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Skip link ──────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--teal);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0.75rem; }

/* ── Focus visible ──────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Typography: The editorial core of this design ─────────────── */

/* Headings use serif — this is the key editorial signal */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: normal;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h2 { font-size: clamp(1.25rem, 2.5vw, 1.55rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 0.93rem; }

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

a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: var(--teal-mid);
  text-underline-offset: 2px;
  transition: color var(--t), text-decoration-color var(--t);
}
a:hover {
  color: var(--teal-dark);
  text-decoration-color: var(--teal);
}

ul, ol { padding-left: 1.4rem; margin: 0 0 1em; }
li { margin-bottom: 0.35rem; }
li:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
em { font-style: italic; }

abbr[title] { text-decoration: underline dotted; cursor: help; }

/* ── Layout container ───────────────────────────────────────────── */
.container {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
}

/* ── Site header — minimal editorial masthead ───────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-xs);
}

.site-header .container {
  height: 100%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

/* Brand — clean, typographic, no gimmicks */
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-weight: normal;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}
.brand:hover { color: var(--teal); text-decoration: none; }

.brand-sep {
  width: 1px;
  height: 0.85em;
  background: var(--rule-heavy);
  flex-shrink: 0;
}

.brand-region {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-ghost);
}

/* Nav links — clean text links, no pill buttons */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--cream-alt);
}
.nav-links a[aria-current="page"],
.nav-links a.active {
  color: var(--teal);
  background: var(--teal-light);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--ink-3);
  cursor: pointer;
  padding: 0.45rem 0.6rem;
  font-size: 1.1rem;
  line-height: 1;
  transition: border-color var(--t), color var(--t);
}
.nav-toggle:hover { border-color: var(--teal); color: var(--teal); }

/* ── Page: two-column interior layout ───────────────────────────── */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  padding: 2.5rem 0 2rem;
}

.page-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.page-header h1 { margin-bottom: 0.75rem; }

.page-header .lede {
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 66ch;
  margin: 0;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  grid-template-areas: "main sidebar";
  gap: 4rem;
  align-items: start;
  padding: 3rem 0 5rem;
}

.page-main {
  grid-area: main;
  min-width: 0;
}

.page-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

/* ── Prose content — editorial reading layout ───────────────────── */
.prose h2 {
  margin: 2.5rem 0 0.9rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule-light);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.prose h3 { margin: 1.75rem 0 0.65rem; }

.prose p { line-height: 1.78; max-width: 70ch; }

.prose ul, .prose ol { max-width: 68ch; }

.prose a { font-weight: 500; }

/* ── Table of Contents (sidebar) ────────────────────────────────── */
.toc {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.toc-header {
  padding: 0.75rem 1rem;
  background: var(--cream-alt);
  border-bottom: 1px solid var(--rule);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-family: var(--font-sans);
}

.toc-list {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
}

.toc-list li { margin: 0; }

.toc-list a {
  display: block;
  padding: 0.42rem 1rem;
  font-size: 0.84rem;
  color: var(--ink-3);
  text-decoration: none;
  transition: color var(--t), background var(--t);
  line-height: 1.45;
  border-left: 2px solid transparent;
}
.toc-list a:hover {
  color: var(--teal);
  background: var(--teal-light);
  border-left-color: var(--teal-mid);
}
.toc-list a.is-active {
  color: var(--teal);
  background: var(--teal-light);
  border-left-color: var(--teal);
  font-weight: 600;
}

/* Sidebar meta block */
.sidebar-meta {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.83rem;
  color: var(--ink-3);
  line-height: 1.55;
}
.sidebar-meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-ghost);
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-sans);
}
.sidebar-meta a {
  font-size: 0.82rem;
  display: block;
  margin-top: 0.5rem;
  font-weight: 500;
}
.sidebar-meta + .sidebar-meta { margin-top: 0.75rem; }

/* ── Breadcrumbs ─────────────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--ink-ghost);
  flex-wrap: wrap;
  font-family: var(--font-sans);
  text-decoration: none;
}
.breadcrumbs a {
  color: var(--ink-ghost);
  text-decoration: none;
  transition: color var(--t);
}
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs .sep {
  color: var(--rule-heavy);
  font-size: 0.8em;
  user-select: none;
}
.breadcrumbs [aria-current="page"] {
  color: var(--ink-3);
}

/* Reviewed date / metadata tag */

/* ── Homepage-specific: editorial sections ──────────────────────── */
.home-hero {
  position: relative;
  background: url('/hero-clinic.jpg') center center / cover no-repeat;
  border-bottom: 1px solid var(--rule);
  padding: 5.3rem 0 5rem;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 27, 31, 0.56) 0%, rgba(22, 27, 31, 0.66) 100%);
}

.home-hero .container {
  position: relative;
  z-index: 1;
  max-width: 920px;
  text-align: center;
}

.home-hero-kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.home-hero h1 {
  margin: 0 auto 0.9rem;
  max-width: 12.5ch;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0,0,0,0.22);
}

.home-hero .lede {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.88);
  max-width: 40ch;
  line-height: 1.68;
  margin: 0 auto;
}

.home-hero .map-search {
  margin: 1.4rem auto 0;
  max-width: 820px;
  padding: 0.7rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
  /* Above .site-header (z-index 200) so the filters panel is not clipped under the nav */
  position: relative;
  z-index: 220;
}

.home-hero .hero-search-unified {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  border-radius: 12px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, var(--shadow-xs);
}

.home-hero .hero-search-shell-grow {
  flex: 1 1 auto;
  min-width: 0;
}

.home-hero .map-search-shell {
  position: relative;
}

.home-hero .hero-search-unified .map-search-icon {
  color: var(--teal-dark);
}

.home-hero .hero-search-unified .map-search-input {
  min-height: 52px;
  padding-left: 2.9rem;
  border: none;
  border-radius: 12px 0 0 12px;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  box-shadow: none;
}

.home-hero .hero-search-unified .map-search-input:focus {
  outline: 2px solid var(--teal-mid);
  outline-offset: -2px;
  box-shadow: none;
}

.home-hero .hero-search-actions {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  border-left: 1px solid rgba(22, 27, 31, 0.1);
}

.home-hero .hero-filters-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.home-hero .hero-filters-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0 1rem;
  border: none;
  background: transparent;
  color: var(--teal-dark);
  font: 700 0.88rem/1 var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t), color var(--t);
}

.home-hero .hero-filters-toggle:hover,
.home-hero .hero-filters-toggle:focus-visible {
  background: rgba(11, 110, 110, 0.08);
  outline: none;
}

.home-hero .hero-filters-toggle.is-open {
  background: rgba(11, 110, 110, 0.12);
}

.home-hero .hero-filters-toggle.has-active-filters::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.home-hero .hero-filters-toggle-icon {
  display: flex;
  color: var(--teal);
}

.home-hero .hero-map-search-submit {
  margin: 0;
  padding: 0 1.35rem;
  border: none;
  border-radius: 0 12px 12px 0;
  background: var(--teal-dark);
  color: #fff;
  font: 700 0.92rem/1 var(--font-sans);
  cursor: pointer;
  transition: background var(--t), transform var(--t);
}

.home-hero .hero-map-search-submit:hover,
.home-hero .hero-map-search-submit:focus-visible {
  background: var(--teal);
  outline: none;
}

.home-hero .hero-filters-panel {
  position: absolute;
  /* Open upward so the panel does not cover hero help text below the bar */
  top: auto;
  bottom: calc(100% + 0.45rem);
  right: 0;
  width: min(22rem, calc(100vw - 2.5rem));
  max-height: min(55vh, 20rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.85rem 1rem 1rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
  z-index: 45;
  text-align: left;
}

.home-hero .hero-filters-heading {
  margin: 0 0 0.3rem;
  font: 800 0.72rem/1.3 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.home-hero .hero-filters-hint {
  margin: 0 0 0.55rem;
  font: 500 0.8rem/1.45 var(--font-sans);
  color: var(--ink-2);
}

/* Panel sits on a light card: override hero-only (glass) colours scoped to dark hero */
.home-hero .hero-filters-panel .hero-listing-scope {
  margin: 0;
  padding: 0;
  border: none;
  text-align: left;
}

.home-hero .hero-filters-panel .hero-scope-row {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.4rem;
}

.home-hero .hero-filters-panel .hero-scope-prefix {
  color: var(--ink-2);
}

.home-hero .hero-filters-panel .hero-scope-buttons {
  justify-content: flex-start;
}

.home-hero .hero-filters-panel .hero-scope-btn {
  background: var(--cream-alt);
  color: var(--ink);
  border: 1px solid var(--rule-heavy);
}

.home-hero .hero-filters-panel .hero-scope-btn:hover,
.home-hero .hero-filters-panel .hero-scope-btn:focus-visible {
  background: rgba(11, 110, 110, 0.1);
  border-color: var(--teal-mid);
  color: var(--teal-dark);
  outline: none;
}

.home-hero .hero-filters-panel .hero-scope-btn.is-active,
.home-hero .hero-filters-panel .hero-scope-btn[aria-pressed="true"] {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}

.home-hero .hero-filters-panel .hero-trail-toggle {
  margin-top: 0.6rem;
  justify-content: flex-start;
  color: var(--ink);
}

.home-hero .hero-filters-toggle.has-active-filters {
  padding-right: 1.25rem;
}

.home-hero .hero-filters-toggle,
.home-hero .hero-map-search-submit {
  min-height: 44px;
}

.home-hero .map-search-results {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  right: 0;
  margin-top: 0;
  z-index: 20;
  max-height: min(24rem, 42vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 14px;
}

.home-hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  font: 600 0.78rem/1.45 var(--font-sans);
}

/* Homepage hero: lean listing scope (area + optional register link) */
.home-hero .hero-listing-scope {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255,255,255,0.22);
  text-align: center;
}

.home-hero .hero-scope-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.65rem;
}

.home-hero .hero-scope-prefix {
  font: 700 0.68rem/1 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.home-hero .hero-scope-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.home-hero .hero-scope-btn {
  margin: 0;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.95);
  font: 600 0.78rem/1.35 var(--font-sans);
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}

.home-hero .hero-scope-btn:hover,
.home-hero .hero-scope-btn:focus-visible {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
  outline: none;
}

.home-hero .hero-scope-btn.is-active,
.home-hero .hero-scope-btn[aria-pressed="true"] {
  background: rgba(255,255,255,0.94);
  border-color: rgba(255,255,255,0.94);
  color: var(--teal-dark);
}

.home-hero .hero-trail-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.55rem 0 0;
  font: 500 0.78rem/1.45 var(--font-sans);
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  user-select: none;
}

.home-hero .hero-trail-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--teal);
  flex-shrink: 0;
}

/* Homepage hero — narrow screens: full-width filter panel + stacked bar (avoids clipped panel) */
@media (max-width: 640px) {
  .home-hero .hero-search-unified {
    flex-wrap: wrap;
    position: relative;
    overflow: visible;
  }

  .home-hero .hero-search-shell-grow {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    order: 1;
  }

  .home-hero .hero-search-unified .map-search-input {
    border-radius: 12px 12px 0 0;
  }

  .home-hero .hero-search-actions {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    display: flex;
    border-left: none;
    border-top: 1px solid rgba(22, 27, 31, 0.12);
    order: 2;
    align-self: stretch;
  }

  .home-hero .hero-filters-wrap {
    position: static;
    flex: 1 1 auto;
    min-width: 0;
  }

  .home-hero .hero-filters-toggle {
    width: 100%;
    justify-content: center;
    border-radius: 0 0 0 12px;
    padding: 0 0.75rem;
  }

  .home-hero .hero-map-search-submit {
    border-radius: 0 0 12px 0;
    flex-shrink: 0;
    padding: 0 1rem;
    /* Kill 1px anti-alias seam between white Filters cell and teal button */
    margin-left: -1px;
    position: relative;
    z-index: 1;
  }

  /* Badge was `right: 10px` — on full-width row that sits on the Search seam; tuck left */
  .home-hero .hero-filters-toggle.has-active-filters::after {
    right: auto;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .home-hero .hero-filters-panel {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    top: auto;
    bottom: calc(100% + 0.45rem);
    transform: none;
    z-index: 260;
    box-sizing: border-box;
  }

}

.home-hero .map-search-result-flag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.38rem;
  border-radius: 4px;
  background: rgba(11, 110, 110, 0.12);
  color: var(--teal-dark);
  font: 700 0.62rem/1 var(--font-sans);
  letter-spacing: 0.03em;
  vertical-align: 0.05em;
}

/* ── Sections: horizontal rule editorial style ──────────────────── */
.section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--rule-light);
}
.section:last-of-type { border-bottom: none; }
.section.alt { background: var(--cream-alt); }

.section-kicker {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.65rem;
  display: block;
}

.section h2 {
  margin-bottom: 0.75rem;
}

.section-intro {
  font-size: 0.95rem;
  color: var(--ink-2);
  max-width: 58ch;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── Grid ────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1px; }
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── Category cards — editorial grid, not card-shadow style ─────── */
.cat-item {
  background: var(--surface);
  padding: 1.5rem;
  transition: background var(--t);
  text-decoration: none;
  display: block;
}
.cat-item:hover { background: var(--teal-light); text-decoration: none; }

.cat-item-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-ghost);
  display: block;
  margin-bottom: 0.5rem;
}

.cat-item h3 {
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.cat-item:hover h3 { color: var(--teal-dark); }

.cat-item p {
  font-size: 0.875rem;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}

.cat-item-arrow {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 600;
  font-family: var(--font-sans);
}
.cat-item-arrow::after { content: ' →'; }

/* ── Featured listing preview (homepage test) ───────────────────── */
.section-featured-preview {
  padding-top: 1.4rem;
  padding-bottom: 2.1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.72));
}

.featured-preview-head {
  max-width: 42rem;
  margin-bottom: 1rem;
}

.featured-preview-head--compact h2,
.featured-preview-head--lean h2 {
  margin-bottom: 0.45rem;
}

.featured-preview-head--compact .section-intro {
  font-size: 0.94rem;
  max-width: 34rem;
  line-height: 1.65;
}

.featured-preview-head--lean {
  margin-bottom: 0.8rem;
}

.featured-preview-head--micro {
  margin-bottom: 0.55rem;
}

.featured-preview-head--micro .section-kicker {
  margin-bottom: 0;
}

.featured-preview-rail {
  display: grid;
  gap: 1rem;
}

.featured-preview-disclosure {
  margin-top: 0.8rem;
}

.featured-preview-note--single {
  margin-top: 0.65rem;
}

@media (min-width: 1200px) {
  .featured-preview-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (min-width: 640px) and (max-width: 1199px) {
  .featured-preview-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (min-width: 640px) {
  .featured-clinic-card--compact {
    min-height: 100%;
  }
}

@media (max-width: 639px) {
  .section-featured-preview {
    padding-top: 1.1rem;
    padding-bottom: 1.6rem;
  }

  .featured-preview-head {
    margin-bottom: 0.9rem;
  }

  .featured-preview-head--compact h2,
  .featured-preview-head--lean h2 {
    font-size: 1.4rem;
    line-height: 1.18;
  }

  .featured-preview-head--compact .section-intro {
    font-size: 0.9rem;
    max-width: none;
  }

  .featured-preview-head--micro {
    margin-bottom: 0.45rem;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .featured-preview-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.featured-clinic-card {
  border-radius: 8px;
  border: 1px solid rgba(11, 110, 110, 0.2);
  background: linear-gradient(180deg, rgba(248, 251, 250, 0.98), rgba(255, 255, 255, 1));
  box-shadow: var(--shadow-xs);
}

.featured-clinic-card-link {
  display: block;
  padding: 1.1rem 1.1rem 1rem;
  color: inherit;
  text-decoration: none;
}

.featured-clinic-card-link:hover {
  text-decoration: none;
}

.featured-clinic-card-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
  border-radius: 8px;
}

.featured-clinic-card--compact {
  display: block;
}

.featured-preview-note {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-ghost);
  line-height: 1.55;
}

.featured-clinic-topline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.badge-featured-preview {
  background: var(--amber-light);
  color: #7a4b00;
  border: 1px solid var(--amber-mid);
}

.featured-clinic-location {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--ink-ghost);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.featured-clinic-card h3 {
  margin-bottom: 0.42rem;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.16;
  max-width: 16ch;
}


.featured-clinic-summary {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 34ch;
}

.featured-clinic-card-main {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.featured-clinic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.featured-clinic-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.85);
  color: var(--ink-3);
  font: 600 0.72rem/1.2 var(--font-sans);
}


/* ── Guide / information cards — bordered, flat ─────────────────── */
.info-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.info-card:hover {
  border-color: var(--teal-mid);
  box-shadow: var(--shadow-sm);
}

.info-card h3 { margin-bottom: 0.45rem; }
.info-card h3 a { text-decoration: none; color: var(--ink); }
.info-card h3 a:hover { color: var(--teal); }
.info-card p {
  font-size: 0.9rem;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.6;
}

.info-card-meta {
  margin-top: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--ink-ghost);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* ── Panels — editorial callout boxes ───────────────────────────── */
.panel {
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 0 0 1.25rem;
  border: 1px solid var(--rule);
  background: var(--surface);
}
.panel > *:first-child { margin-top: 0; }
.panel > *:last-child { margin-bottom: 0; }

.panel-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-ghost);
  margin-bottom: 0.6rem;
  display: block;
}

.panel.about {
  background: var(--teal-light);
  border-color: var(--teal-mid);
}
.panel.about .panel-label { color: var(--teal-dark); }

.panel.callout {
  background: var(--green-light);
  border-color: var(--green-mid);
  border-left: 3px solid var(--green);
}

.panel.warn {
  background: var(--amber-light);
  border-color: var(--amber-mid);
  border-left: 3px solid var(--amber);
}

.panel.info {
  background: var(--cream-alt);
  border-color: var(--rule-heavy);
  border-left: 3px solid var(--ink-ghost);
}

.compact-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
}

.compact-list li {
  margin-bottom: 0.45rem;
  line-height: 1.55;
}

.compact-list li:last-child {
  margin-bottom: 0;
}

/* ── CTA / action surfaces ───────────────────────────────────────── */
.nav-links a.nav-link-cta,
.nav-links a[href="/contact/"] {
  margin-left: auto;
  background: var(--teal-dark);
  border: 1px solid var(--teal-dark);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}

.nav-links a.nav-link-cta:hover,
.nav-links a.nav-link-cta.active,
.nav-links a.nav-link-cta[aria-current="page"],
.nav-links a[href="/contact/"]:hover,
.nav-links a[href="/contact/"].active,
.nav-links a[href="/contact/"][aria-current="page"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}


.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 46px;
  padding: 0.78rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}

.button-link:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.button-link.secondary {
  background: var(--surface);
  border-color: var(--teal-mid);
  color: var(--teal-dark);
}

.button-link.secondary:hover {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal-dark);
}

.button-link::after {
  content: '→';
  font-size: 0.78em;
  opacity: 0.82;
}

.cta-note {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-3);
}

/* For Clinics — claim / correction / evidence intake (no server; mailto + copy) */
.clinic-intake-form {
  margin-top: 1rem;
  max-width: 36rem;
}

.clinic-intake-type {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
}

.clinic-intake-legend {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 0.45rem;
  padding: 0;
}

.clinic-intake-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
}

.clinic-intake-radio {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.clinic-intake-radio input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--teal);
}

.clinic-intake-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  margin: 0.75rem 0 0.35rem;
}

.clinic-intake-input,
.clinic-intake-textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
}

.clinic-intake-textarea {
  resize: vertical;
  min-height: 5rem;
}

.clinic-intake-input:focus,
.clinic-intake-textarea:focus {
  outline: none;
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(11, 110, 110, 0.18);
}

.clinic-intake-body-copy {
  font-size: 0.85rem;
  line-height: 1.5;
}

.clinic-intake-confirm {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--teal-mid);
  background: rgba(11, 110, 110, 0.06);
  font-family: var(--font-sans);
}

.clinic-intake-confirm-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
}

.clinic-intake-confirm-body {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.clinic-intake-confirm-steps {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.clinic-intake-confirm-steps li {
  margin-bottom: 0.45rem;
}

.clinic-intake-fallback {
  margin-top: 1.25rem;
}

.clinic-intake-fallback-lede {
  margin: 0.35rem 0 0.75rem;
}

button.button-link,
button.button-link.secondary {
  cursor: pointer;
  appearance: none;
  font: inherit;
}

.cta-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 2rem;
}

.cta-hub-card,
.step-item,
.action-meta-card {
  min-width: 0;
}

.clinic-mobile-grid,
.clinic-mobile-pairs,
.clinic-mobile-steps {
  grid-template-columns: 1fr;
}

.cta-hub-card .eyebrow-note {
  display: inline-block;
  margin-bottom: 0.55rem;
}

.cta-hub-card h3 {
  margin: 0 0 0.45rem;
}

.cta-hub-card p {
  margin: 0;
}

.site-cta-banner,
.clinic-owner-banner {
  border: 1px solid var(--teal-mid);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--teal-light) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-xs);
}

.site-cta-banner {
  padding: 1.5rem 1.65rem;
}

.site-cta-banner h2,
.clinic-owner-banner h2 {
  margin-bottom: 0.55rem;
}

.site-cta-banner .section-kicker {
  margin-bottom: 0.55rem;
}

.site-cta-banner .section-intro {
  max-width: 64ch;
}

.clinic-owner-banner {
  margin: 0 0 1.5rem;
  padding: 1.2rem 1.3rem;
}

.clinic-owner-banner p {
  max-width: 64ch;
}

.sidebar-meta.sidebar-cta-compact {
  background: var(--teal-light);
  border-color: var(--teal-mid);
}

.sidebar-meta.sidebar-cta-compact .sidebar-meta-label {
  color: var(--teal-dark);
}

.sidebar-meta.sidebar-cta-compact a {
  font-weight: 600;
}

/* ── Factual signal indicators — core UX innovation ─────────────── */
.signal-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule-light);
  font-size: 0.9rem;
}
.signal-row:last-child { border-bottom: none; }

.signal-icon {
  flex-shrink: 0;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-sans);
  margin-top: 0.1rem;
}
/* `confirmed` is an alias used on some clinic pages; keep in sync with `.stated` */
.signal-icon.stated,
.signal-icon.confirmed {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid var(--green-mid);
}
.signal-icon.stated::after,
.signal-icon.confirmed::after { content: '✓'; }
.signal-icon.unstated {
  background: var(--cream-alt);
  color: var(--ink-ghost);
  border: 1px solid var(--rule);
}
.signal-icon.unstated::after { content: '–'; }
.signal-icon.partial {
  background: var(--amber-light);
  color: var(--amber);
  border: 1px solid var(--amber-mid);
}
/* Match on-page legend: ◐ Partial (U+25D0) */
.signal-icon.partial::after { content: '\25D0'; }

.signal-text { color: var(--ink-2); line-height: 1.55; flex: 1; }
.signal-text strong { font-weight: 600; color: var(--ink); display: block; font-size: 0.83rem; margin-bottom: 0.1rem; }

/* ── Checklist — clean editorial style ──────────────────────────── */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
  display: grid;
  gap: 0.45rem;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.55;
  transition: border-color var(--t);
}
.checklist li:hover { border-color: var(--teal-mid); }
.checklist li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
}

/* ── Warning list ────────────────────────────────────────────────── */
.warn-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
  display: grid;
  gap: 0.45rem;
}
.warn-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--amber-light);
  border: 1px solid var(--amber-mid);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.warn-list li::before {
  content: '!';
  color: var(--amber);
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--amber-light);
  border: 1px solid var(--amber-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
}

/* ── Source list ─────────────────────────────────────────────────── */
.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}
.source-list li {
  padding: 0.65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: border-color var(--t), background var(--t);
}
.source-list li:hover {
  border-color: var(--teal-mid);
  background: var(--teal-light);
}
.source-list li a {
  font-weight: 500;
  color: var(--teal);
}
.source-list li a::before {
  content: '↗ ';
  font-size: 0.8em;
  opacity: 0.7;
}
.source-list li a:hover { color: var(--teal-dark); text-decoration: none; }

/* ── Fact rows (structured data display) ────────────────────────── */
.fact-table { display: grid; gap: 0; }
.fact-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule-light);
  align-items: start;
  font-size: 0.92rem;
}
.fact-row:last-child { border-bottom: none; }
.fact-row .fact-label {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 0.84rem;
  font-family: var(--font-sans);
  padding-top: 0.05rem;
}
.fact-row .fact-value {
  color: var(--ink-2);
  line-height: 1.6;
}

.page-for-clinics .page-header .container,
.page-for-clinics main > .container {
  max-width: 880px;
}

.page-for-clinics .page-header .lede {
  max-width: 42rem;
}

.page-for-clinics .page-prose {
  padding: 2rem 0 3.5rem;
}

.page-for-clinics .panel,
.page-for-clinics .info-card,
.page-for-clinics .step-item {
  box-shadow: none;
}

.page-for-clinics .clinic-owner-banner {
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, var(--teal-light) 0%, var(--surface) 100%);
  border: 1px solid var(--teal-mid);
  border-radius: var(--radius-lg);
}

.page-for-clinics .clinic-owner-banner .chip-row {
  margin: 0.85rem 0 0.15rem;
}

.page-for-clinics .clinic-intake-form {
  max-width: none;
  margin-top: 0.9rem;
  padding: 1rem 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.page-for-clinics .clinic-intake-type {
  padding-bottom: 0.7rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule-light);
}

.page-for-clinics .clinic-intake-input,
.page-for-clinics .clinic-intake-textarea {
  background: var(--surface-raised);
}

.page-for-clinics .clinic-intake-confirm {
  border-radius: var(--radius);
}

.page-for-clinics .cta-hub-card h3,
.page-for-clinics .action-meta-card h3,
.page-for-clinics .step-item h3 {
  text-wrap: balance;
}

.page-for-clinics .cta-note {
  margin-top: 0.65rem;
}

.page-for-clinics .fact-table {
  margin-top: 0.75rem;
}

/* ── Authority links — first-class elements ─────────────────────── */
.authority-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--cream-alt);
  border: 1px solid var(--rule-heavy);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  font-family: var(--font-sans);
  transition: border-color var(--t), background var(--t), color var(--t);
}
.authority-link:hover {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--teal-dark);
  text-decoration: none;
}
.authority-link::before {
  content: '↗';
  font-size: 0.75em;
  color: var(--teal);
}

/* ── Steps / numbered process ───────────────────────────────────── */
.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}
.step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule-light);
  counter-increment: step;
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 700;
  margin-top: 0.1rem;
}
.step-body {}
.step-body h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
  font-weight: 600;
}
.step-body p { font-size: 0.9rem; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* ── Location badge ──────────────────────────────────────────────── */
.location-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.location-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color var(--t), background var(--t), color var(--t);
  font-family: var(--font-sans);
}
.location-tag:hover {
  border-color: var(--teal-mid);
  background: var(--teal-light);
  color: var(--teal-dark);
  text-decoration: none;
}
.location-tag::before { content: '📍'; font-size: 0.75em; }

/* ── Nav strip (cross-page links) ───────────────────────────────── */
.nav-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.nav-strip a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--ink-2);
  font-weight: 500;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.nav-strip a:hover {
  border-color: var(--teal-mid);
  color: var(--teal);
  background: var(--teal-light);
}
.nav-strip a::after { content: ' →'; font-size: 0.85em; opacity: 0.6; }

/* ── FAQ (expandable) ────────────────────────────────────────────── */
details.faq {
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--t);
}
details.faq:hover { border-color: var(--teal-mid); }
details.faq[open] { border-color: var(--teal-mid); }

details.faq summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--t);
  user-select: none;
  -webkit-user-select: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform var(--t-slow);
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq summary:hover { background: var(--cream-alt); }
details.faq[open] summary { background: var(--teal-light); }

details.faq .faq-body {
  padding: 1rem 1.25rem 1.35rem;
  border-top: 1px solid var(--rule-light);
  background: var(--surface-raised);
  color: var(--ink-2);
  font-size: 0.93rem;
  line-height: 1.72;
}
details.faq .faq-body p:last-child { margin-bottom: 0; }
details.faq .faq-body ul { margin: 0.5rem 0; }

/* ── Dividers ─────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--rule-light);
  margin: 2rem 0;
}
.divider.heavy {
  border-top-color: var(--rule);
  margin: 2.5rem 0;
}

/* ── Badge ────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.badge-reference {
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid var(--teal-mid);
}
.badge-guide {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid var(--green-mid);
}
.badge-location {
  background: var(--cream-alt);
  color: var(--ink-3);
  border: 1px solid var(--rule-heavy);
}

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 2.5rem;
  font-family: var(--font-sans);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: normal;
  color: #fff;
  display: block;
  margin-bottom: 0.65rem;
}

.footer-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  max-width: 42ch;
}

.footer-col-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  display: block;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--t);
  font-weight: 500;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
  max-width: 60ch;
}

/* ── Utilities ────────────────────────────────────────────────────── */
.small   { font-size: 0.875rem; color: var(--ink-3); }
.smaller { font-size: 0.82rem; color: var(--ink-ghost); }
.muted   { color: var(--ink-ghost); }
.mt-xs   { margin-top: 0.5rem; }
.mt-sm   { margin-top: 1rem; }
.mt-md   { margin-top: 1.75rem; }
.mt-lg   { margin-top: 2.5rem; }
.mb-xs   { margin-bottom: 0.5rem; }
.mb-sm   { margin-bottom: 1rem; }
.gap-sm  { gap: 0.75rem; }
.gap-md  { gap: 1.5rem; }
.flex    { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-start { align-items: flex-start; }
.flex-wrap { flex-wrap: wrap; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Reading progress bar (lightweight) ─────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--teal);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Clinic map — homepage discovery layer ───────────────────────── */
.map-section {
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--rule-light);
}

.map-search {
  position: relative;
  margin-top: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11,110,110,0.05), rgba(255,255,255,0.96));
  box-shadow: var(--shadow-xs);
}

.map-search-shell {
  position: relative;
}

.map-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-size: 1rem;
  pointer-events: none;
}

.map-search-input {
  width: 100%;
  min-height: 3.5rem;
  padding: 1rem 1rem 1rem 2.9rem;
  border: 1px solid var(--rule-heavy);
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  font: 500 1rem/1.4 var(--font-sans);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.map-search-input::placeholder {
  color: var(--ink-ghost);
}

.map-search-input:focus {
  outline: none;
  border-color: var(--teal-mid);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11, 110, 110, 0.12);
}

.map-search-results {
  position: relative;
  margin-top: 0.8rem;
  z-index: 1;
  display: grid;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.map-search-result,
.map-search-empty {
  display: block;
  padding: 0.95rem 1rem;
  font-family: var(--font-sans);
}

.map-search-result {
  text-decoration: none;
  border-bottom: 1px solid var(--rule-light);
  transition: background var(--t), border-color var(--t);
}

.map-search-result:last-child {
  border-bottom: none;
}

.map-search-result:hover,
.map-search-result:focus-visible {
  background: var(--teal-light);
  outline: none;
}

.map-search-result-name {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.map-search-result-meta {
  display: block;
  color: var(--ink-ghost);
  font-size: 0.82rem;
  line-height: 1.45;
}

.map-search-empty {
  color: var(--ink-ghost);
  font-size: 0.86rem;
}

.map-wrap {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1rem;
  background: var(--cream-alt);
}

.map-wrap--homepage .map-expand-link {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 3;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--teal);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
}

.map-wrap--homepage .map-expand-link:hover,
.map-wrap--homepage .map-expand-link:focus-visible {
  transform: translateY(-1px);
  color: var(--teal-dark);
  background: #fff;
  border-color: var(--teal-mid);
  box-shadow: var(--shadow-md);
}

.map-wrap--homepage .map-expand-link svg {
  display: block;
}

.map-wrap #clinic-map {
  height: 420px;
  width: 100%;
  z-index: 1;
}

.map-precision-note {
  font-size: 0.78rem;
  color: var(--ink-ghost);
  margin-top: 0.65rem;
  line-height: 1.55;
  font-family: var(--font-sans);
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-md) !important;
  font-family: var(--font-sans);
  padding: 0 !important;
}
.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.55 !important;
  font-size: 0.875rem !important;
}
.leaflet-popup-tip {
  box-shadow: none !important;
}

.map-popup {
  padding: 0.9rem 1rem;
  min-width: 200px;
  max-width: 260px;
}
.map-popup-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: normal;
  color: var(--ink);
  margin: 0 0 0.3rem;
  line-height: 1.25;
}
.map-popup-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.4rem;
  display: block;
}
.map-popup-summary {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin: 0 0 0.6rem;
  line-height: 1.5;
}
.map-popup-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}
.map-popup-link:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}
.map-popup-link::after {
  content: ' →';
}
.map-popup-precision {
  font-size: 0.7rem;
  color: var(--ink-ghost);
  margin-top: 0.35rem;
  display: block;
}

.clinic-marker {
  background: none !important;
  border: none !important;
}

.clinic-cluster {
  background: none !important;
  border: none !important;
}
.clinic-cluster-icon {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border: 2px solid var(--surface);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* ── Simple prose page (trust pages, policies) ───────────────────── */
.page-prose {
  max-width: 72ch;
  padding: 3rem 0 5rem;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "main";
    gap: 0;
  }
  .page-sidebar { display: none; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .home-hero { padding: 3.5rem 0 3rem; }
  .home-hero .container {
    max-width: none;
  }
  .home-hero h1 { max-width: 11.5ch; }
  .home-hero .lede { font-size: 0.98rem; }
  .home-hero .map-search {
    padding: 0.6rem;
  }
  .home-hero .map-search-input {
    min-height: 52px;
  }
  .home-hero .map-search-results {
    max-height: min(18rem, 46vh);
  }
  .home-hero-proof {
    display: inline-block;
    padding: 0.34rem 0.6rem;
    font-size: 0.76rem;
  }
  .page-header { padding: 1.75rem 0 1.5rem; }
  .section { padding: 2.25rem 0; }
  .map-section { padding: 2rem 0 2.25rem; }
  .map-search {
    padding: 0.85rem;
  }
  .map-search-input {
    min-height: 3.2rem;
    font-size: 0.96rem;
  }
  .map-wrap #clinic-map { height: 320px; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: calc(-1.5rem);
    right: calc(-1.5rem);
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    padding: 0.75rem 1.5rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    box-shadow: var(--shadow-md);
    z-index: 100;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { width: 100%; padding: 0.65rem 0.85rem; }
  .nav-links a.nav-link-cta,
  .nav-links a[href="/contact/"] {
    margin-left: auto;
    background: var(--teal-dark);
    border: 1px solid var(--teal-dark);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow-xs);
  }

  .cta-hub-grid,
  .action-meta-grid,
  .step-flow {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .featured-clinic-card--compact {
    grid-template-columns: 1fr;
    padding: 0.95rem 1rem;
  }

  .featured-clinic-card-side {
    align-items: stretch;
  }

  .featured-clinic-card-side--compact .button-link,
  .button-link {
    width: 100%;
    min-width: 0;
  }

  .page-for-clinics .page-header {
    padding: 1.5rem 0 1.25rem;
  }

  .page-for-clinics .page-header-meta {
    margin-bottom: 0.8rem;
  }

  .page-for-clinics .page-header .lede {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .page-for-clinics .page-prose {
    padding: 1.35rem 0 2.5rem;
  }

  .page-for-clinics .prose h2 {
    margin: 1.8rem 0 0.7rem;
  }

  .page-for-clinics .panel,
  .page-for-clinics .info-card,
  .page-for-clinics .step-item {
    padding: 1rem;
  }

  .page-for-clinics .cta-hub-grid,
  .page-for-clinics .action-meta-grid,
  .page-for-clinics .step-flow {
    gap: 0.8rem;
  }

  .page-for-clinics .step-number {
    margin-bottom: 0.4rem;
  }

  .page-for-clinics .compact-list {
    margin-top: 0.55rem;
    padding-left: 1rem;
  }

  .page-for-clinics .compact-list li,
  .page-for-clinics .warn-list li,
  .page-for-clinics .step-item p,
  .page-for-clinics .cta-hub-card p,
  .page-for-clinics .fact-row .fact-value {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .page-for-clinics .fact-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.75rem 0;
  }

  .page-for-clinics .fact-row .fact-label {
    padding-top: 0;
    font-size: 0.78rem;
  }
}

@media (min-width: 769px) and (max-width: 980px) {
  .cta-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 700px) and (max-width: 980px) {
  .clinic-mobile-grid,
  .clinic-mobile-pairs,
  .clinic-mobile-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 981px) {
  .clinic-mobile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .clinic-mobile-pairs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clinic-mobile-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  :root { --sidebar-w: 0px; }
  .container { width: calc(100% - 2rem); }
  h1 { font-size: 1.75rem; }
  .map-search-help,
  .map-search-browse {
    font-size: 0.8rem;
  }
}

/* Card meta: human-useful snapshot facts for listing surfaces */
.mini-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

.mini-card-fact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface-2, #f7f5ef);
  color: var(--ink-soft, #4b5563);
  font-size: 0.82rem;
  line-height: 1.2;
}

.mini-card-fact-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
}

.mini-card-fact a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 24, 39, 0.18);
}

.mini-card-fact a:hover,
.mini-card-fact a:focus-visible {
  color: var(--accent, #0f766e);
  border-bottom-color: currentColor;
}


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

.action-meta-card h3 {
  margin: 0 0 0.45rem;
}

.action-meta-card p,
.action-meta-card ul,
.action-meta-card ol {
  margin-bottom: 0;
}

.step-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.25rem 0 1rem;
}

.step-item {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 1rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font: 700 0.8rem/1 var(--font-sans);
  margin-bottom: 0.55rem;
}

.step-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.step-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Final page-specific clinic layout overrides, placed after base grid rules */
.page-for-clinics .clinic-mobile-grid,
.page-for-clinics .clinic-mobile-pairs,
.page-for-clinics .clinic-mobile-steps {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) and (max-width: 980px) {
  .page-for-clinics .clinic-mobile-grid,
  .page-for-clinics .clinic-mobile-pairs,
  .page-for-clinics .clinic-mobile-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 981px) {
  .page-for-clinics .clinic-mobile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-for-clinics .clinic-mobile-pairs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-for-clinics .clinic-mobile-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ── Guide Map (/map/) — map column + sidebar (list never sits over map) ─ */
.page-explorer-mapfirst #main.explorer-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 24rem);
  grid-template-rows: minmax(calc(100dvh - var(--nav-h)), auto);
  min-height: calc(100dvh - var(--nav-h));
  margin: 0;
  padding: 0;
  align-items: stretch;
  box-sizing: border-box;
}

.page-explorer-mapfirst #main.explorer-main > .explorer-map-base,
.page-explorer-mapfirst #main.explorer-main > .explorer-overlays {
  min-width: 0;
}

.page-explorer-mapfirst main.explorer-view-map {
  grid-template-columns: 1fr;
}

.page-explorer-mapfirst main.explorer-view-map .explorer-overlays {
  display: none;
}

.page-explorer-mapfirst main.explorer-view-map .explorer-map-base {
  grid-column: 1 / -1;
}

.page-explorer-mapfirst main.explorer-view-list {
  grid-template-columns: minmax(0, 1fr);
}

.page-explorer-mapfirst main.explorer-view-list .explorer-overlays {
  grid-column: 1 / -1;
  max-width: 48rem;
  width: 100%;
  margin: 0 auto;
  border-left: none;
}

.page-explorer-mapfirst .explorer-map-base {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  min-height: calc(100dvh - var(--nav-h));
  background: #dfe6e3;
}

.page-explorer-mapfirst .explorer-map-base--hidden {
  display: none !important;
}

.page-explorer-mapfirst .explorer-map-chrome {
  position: absolute;
  z-index: 6;
  left: 0.5rem;
  right: 0.5rem;
  top: 0.5rem;
  pointer-events: none;
  max-width: min(40rem, calc(100% - 1rem));
  margin: 0 auto;
  width: calc(100% - 1rem);
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .page-explorer-mapfirst .explorer-map-base {
    display: grid;
    grid-template-rows: auto minmax(32rem, 1fr) auto;
    padding: 0.75rem;
    gap: 0.75rem;
    box-sizing: border-box;
  }

  .page-explorer-mapfirst .explorer-map-chrome {
    position: relative;
    order: 0;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    z-index: 2;
    pointer-events: auto;
  }

  .page-explorer-mapfirst .explorer-map-base .explorer-map-wrap {
    order: 1;
    min-height: max(32rem, calc(100dvh - var(--nav-h) - 10rem));
  }

  .page-explorer-mapfirst .explorer-map-base .explorer-map-wrap #explorer-map {
    min-height: inherit;
  }

  .page-explorer-mapfirst .explorer-map-precision {
    position: static;
    order: 2;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    font-size: 0.78rem;
    line-height: 1.55;
  }
}

.page-explorer-mapfirst .explorer-map-chrome .explorer-toolbar {
  pointer-events: auto;
}

.page-explorer-mapfirst .explorer-map-base .explorer-map-wrap {
  flex: 1;
  min-height: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  /* .map-wrap sets overflow:hidden — breaks Leaflet tile math on Guide Map; keep tiles unclipped here. */
  overflow: visible;
  isolation: isolate;
}

.page-explorer-mapfirst .explorer-map-base .explorer-map-wrap #explorer-map {
  width: 100%;
  height: 100%;
  min-height: 240px;
  position: relative;
  z-index: 0;
}

.page-explorer-mapfirst .explorer-map-precision {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.55rem;
  margin: 0;
  z-index: 410;
  max-width: none;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  /* Solid panel avoids backdrop compositing glitches next to Leaflet on some GPUs. */
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  font-size: 0.72rem;
  line-height: 1.45;
}

.page-explorer-mapfirst .explorer-overlays {
  position: relative;
  inset: auto;
  z-index: 1;
  min-height: 0;
  height: 100%;
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.65rem 0.75rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  padding-left: calc(0.75rem + env(safe-area-inset-left, 0px));
  padding-right: calc(0.75rem + env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  pointer-events: auto;
  overflow: hidden;
  border-left: 1px solid var(--rule);
  background: rgba(252, 251, 248, 0.98);
}

.page-explorer-mapfirst .explorer-floating-stack {
  pointer-events: auto;
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.page-explorer-mapfirst .explorer-floating-hero {
  flex-shrink: 0;
  padding: 0.75rem 1rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.page-explorer-mapfirst .explorer-floating-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.page-explorer-mapfirst .explorer-brand-mark {
  flex: 0 0 auto;
  color: var(--teal);
  padding-top: 0.1rem;
}

.page-explorer-mapfirst .explorer-brand-icon {
  display: block;
}

.page-explorer-mapfirst .explorer-brand-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
}

.page-explorer-mapfirst .explorer-floating-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.35rem 0 0;
  color: var(--ink);
}

.page-explorer-mapfirst .explorer-floating-lede {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0.35rem 0 0;
}

.page-explorer-mapfirst .explorer-about-details {
  margin-top: 0.35rem;
  border-top: 1px solid var(--rule);
  padding-top: 0.45rem;
}

.page-explorer-mapfirst .explorer-about-summary {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
}

.page-explorer-mapfirst .explorer-about-body {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-3);
}

.page-explorer-mapfirst .explorer-app {
  pointer-events: auto;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 0;
}

.page-explorer-mapfirst .explorer-toolbar {
  flex-shrink: 0;
  margin-bottom: 0;
  padding: 0.55rem 0.75rem 0.65rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.page-explorer-mapfirst .explorer-search-row {
  margin-bottom: 0.45rem;
}

.page-explorer-mapfirst .explorer-filters {
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: rgba(0, 0, 0, 0.08);
}

.page-explorer-mapfirst .explorer-result-meta {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
}

.page-explorer-mapfirst .explorer-filter-details {
  margin-top: 0.35rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.page-explorer-mapfirst .explorer-filter-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  min-height: 2.75rem;
  cursor: pointer;
  font-family: var(--font-sans);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.page-explorer-mapfirst .explorer-filter-summary::-webkit-details-marker {
  display: none;
}

.page-explorer-mapfirst .explorer-filter-summary::marker {
  content: '';
}

.page-explorer-mapfirst .explorer-filter-summary-inner {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.page-explorer-mapfirst .explorer-filter-summary-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.page-explorer-mapfirst .explorer-filter-summary-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.page-explorer-mapfirst .explorer-filter-summary-count {
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.35;
}

.page-explorer-mapfirst .explorer-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
}

.page-explorer-mapfirst .explorer-filter-chevron {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--cream-alt);
  border: 1px solid var(--rule);
  transition: transform 0.2s ease;
}

.page-explorer-mapfirst .explorer-filter-chevron::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translate(-0.05rem, -0.1rem);
}

.page-explorer-mapfirst .explorer-filter-details[open] .explorer-filter-chevron {
  transform: rotate(180deg);
}

.page-explorer-mapfirst .explorer-filter-panel {
  padding: 0 0.65rem 0.65rem;
  border-top: 1px solid var(--rule-light);
}

.page-explorer-mapfirst .explorer-filter-panel .explorer-filters {
  margin-bottom: 0;
  border: none;
  padding: 0.75rem 0 0;
  background: transparent;
  border-radius: 0;
}

.page-explorer-mapfirst .explorer-hero-details {
  margin: 0;
  border: none;
  background: transparent;
}

.page-explorer-mapfirst .explorer-hero-summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.page-explorer-mapfirst .explorer-hero-summary::-webkit-details-marker {
  display: none;
}

.page-explorer-mapfirst .explorer-hero-summary::marker {
  content: '';
}

.page-explorer-mapfirst .explorer-hero-summary-text {
  flex: 1;
  min-width: 0;
}

.page-explorer-mapfirst .explorer-hero-summary .breadcrumbs {
  font-size: 0.78rem;
}

.page-explorer-mapfirst .explorer-hero-summary .explorer-floating-h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
}

.page-explorer-mapfirst .explorer-hero-chevron {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin-top: 0.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--cream-alt);
  border: 1px solid var(--rule);
  transition: transform 0.2s ease;
}

.page-explorer-mapfirst .explorer-hero-details[open] .explorer-hero-chevron {
  transform: rotate(180deg);
}

.page-explorer-mapfirst .explorer-hero-chevron::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translate(-0.05rem, -0.1rem);
}

.page-explorer-mapfirst .explorer-hero-panel {
  padding-top: 0.55rem;
  margin-top: 0.45rem;
  border-top: 1px solid var(--rule);
}

.page-explorer-mapfirst .explorer-hero-panel .explorer-floating-brand {
  margin-top: 0;
}

.page-explorer-mapfirst .explorer-split {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  gap: 0;
  margin-top: 0;
  pointer-events: auto;
}

.page-explorer-mapfirst main.explorer-view-map .explorer-split {
  display: none;
}

.page-explorer-mapfirst .explorer-list-col {
  pointer-events: auto;
  width: 100%;
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}

.page-explorer-mapfirst main.explorer-view-list .explorer-split {
  justify-content: stretch;
  align-items: stretch;
}

.page-explorer-mapfirst main.explorer-view-list .explorer-list-col {
  width: 100%;
  max-height: calc(100dvh - var(--nav-h) - 4rem);
}

.page-explorer-mapfirst main.explorer-view-map .leaflet-bottom.leaflet-right {
  bottom: 1rem;
}

.page-explorer-mapfirst .leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.15) !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.page-explorer-mapfirst .leaflet-control-zoom a {
  width: 34px;
  height: 34px;
  line-height: 34px;
  font-size: 1.1rem;
}

.explorer-intro-note {
  margin-top: 0.75rem;
}

.explorer-hub-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
}

.explorer-hub-label {
  color: var(--ink-ghost);
  margin-right: 0.25rem;
}

.explorer-hub-links a {
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}

.explorer-hub-links a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.explorer-app {
  margin-top: 0.5rem;
}

.explorer-toolbar {
  margin-bottom: 1rem;
}

.explorer-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.explorer-search-shell {
  flex: 1 1 16rem;
  min-width: min(100%, 14rem);
}

.explorer-map-search.map-search {
  padding: 0;
  border: none;
  background: transparent;
}

.explorer-view-toggle {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  flex: 0 0 auto;
  align-self: center;
}

.explorer-view-btn {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  border-right: 1px solid var(--rule);
}

.explorer-view-btn:last-child {
  border-right: none;
}

.explorer-view-btn:hover {
  background: var(--cream-alt);
  color: var(--ink);
}

.explorer-view-btn:focus-visible {
  background: var(--cream-alt);
  color: var(--ink);
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  z-index: 1;
}

.explorer-view-btn.is-active {
  background: var(--teal);
  color: #fff;
}

.explorer-view-btn.is-active:focus-visible {
  outline-color: #fff;
}

.explorer-filters {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: var(--surface);
  margin-bottom: 0.65rem;
}

.explorer-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.85rem 1rem;
}

.explorer-filter-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-ghost);
  margin-bottom: 0.35rem;
}

.explorer-filter select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.45rem 0.5rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--rule);
  background: var(--cream);
}

.explorer-filter-checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
}

.explorer-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  color: var(--ink-3);
}

.explorer-clear-btn {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--cream-alt);
  cursor: pointer;
}

.explorer-clear-btn:hover,
.explorer-clear-btn:focus-visible {
  border-color: var(--teal);
  color: var(--teal-dark);
  outline: none;
}

.explorer-result-meta {
  font-size: 0.88rem;
  color: var(--ink-3);
  margin: 0.35rem 0 0;
}

.explorer-empty {
  margin-bottom: 0;
}

.page-explorer-mapfirst .explorer-map-base #explorer-empty:not([hidden]) {
  position: absolute;
  inset: 0;
  z-index: 30;
  margin: 0;
  padding: 1.25rem 1.1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.explorer-empty h3 {
  font-family: var(--font-serif);
  font-weight: normal;
  margin-top: 0;
}

.page-explorer-mapfirst .explorer-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 0.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.explorer-card {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.explorer-card:last-child {
  border-bottom: none;
}

.page-explorer-mapfirst .explorer-card:focus-within {
  outline: 2px solid rgba(11, 110, 110, 0.28);
  outline-offset: -2px;
}

.explorer-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: normal;
  margin: 0 0 0.45rem;
  line-height: 1.25;
}

.explorer-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.explorer-card-title a:hover {
  color: var(--teal);
}

.explorer-card-desc {
  font-size: 0.86rem;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0 0 0.55rem;
}

.explorer-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.78rem;
  color: var(--ink-ghost);
  margin-bottom: 0.45rem;
}

.explorer-card-loc {
  font-weight: 600;
  color: var(--ink-3);
}

.explorer-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.explorer-chip {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--cream-alt);
  color: var(--ink-3);
  border: 1px solid var(--rule);
}

.explorer-chip-muted {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.72rem;
}

.explorer-chip-trail {
  background: rgba(11, 110, 110, 0.1);
  border-color: var(--teal);
  color: var(--teal-dark);
}

.explorer-split.is-empty .explorer-list-col {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 640px) {
  /* Site header already carries the brand; drop duplicate mark + eyebrow in hero. */
  .page-explorer-mapfirst .explorer-floating-brand {
    display: none;
  }
}

@media (max-width: 600px) {
  .page-explorer-mapfirst .explorer-floating-h1 {
    font-size: 1.55rem;
  }

  .page-explorer-mapfirst .explorer-floating-hero {
    padding: 0.55rem 0.75rem 0.65rem;
  }

  .page-explorer-mapfirst .explorer-floating-lede {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  /* Keep search shell as a single row (icon + input). Stack toggles via wrap, not column — column broke absolute icon positioning. */
  .page-explorer-mapfirst .explorer-search-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .page-explorer-mapfirst .explorer-search-shell {
    flex: 1 1 100%;
    min-width: 0;
    position: relative;
  }

  .page-explorer-mapfirst .explorer-view-toggle {
    display: flex;
    flex: 1 1 100%;
    width: 100%;
    align-self: stretch;
  }

  .page-explorer-mapfirst .explorer-view-btn {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 0.6rem 0.35rem;
    font-size: 0.74rem;
  }
}

@media (max-width: 768px) {
  .page-explorer-mapfirst #explorer-view-split {
    display: none !important;
  }

  .page-explorer-mapfirst .explorer-view-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Forced-mobile fallback for browsers that ignore the intended mobile viewport. */
.page-explorer-mapfirst.explorer-force-mobile #main.explorer-main {
  display: flex;
  flex-direction: column;
  grid-template-columns: unset;
  grid-template-rows: unset;
  align-items: stretch;
  min-height: 0;
  height: auto;
  overflow-x: hidden;
}

.page-explorer-mapfirst.explorer-force-mobile .explorer-map-base {
  position: relative;
  inset: auto;
  width: 100%;
  order: 1;
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  padding: 0.5rem;
  gap: 0.5rem;
  box-sizing: border-box;
}

.page-explorer-mapfirst.explorer-force-mobile .explorer-map-chrome {
  position: relative;
  inset: auto;
  left: auto;
  right: auto;
  top: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  z-index: 2;
  pointer-events: auto;
  order: 1;
}

.page-explorer-mapfirst.explorer-force-mobile .explorer-map-base .explorer-map-wrap {
  order: 2;
  flex: none;
  height: clamp(16rem, 38dvh, 20rem);
  min-height: 16rem;
}

.page-explorer-mapfirst.explorer-force-mobile .explorer-map-base .explorer-map-wrap #explorer-map {
  min-height: 0;
}

.page-explorer-mapfirst.explorer-force-mobile main.explorer-view-map .explorer-map-base .explorer-map-wrap {
  height: clamp(20rem, 58dvh, 34rem);
  min-height: 20rem;
}

.page-explorer-mapfirst.explorer-force-mobile .explorer-map-precision {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  order: 3;
  z-index: auto;
  margin: 0;
  padding: 0.45rem 0.6rem;
  font-size: 0.74rem;
  line-height: 1.45;
}

.page-explorer-mapfirst.explorer-force-mobile .explorer-map-base--hidden {
  display: none !important;
}

.page-explorer-mapfirst.explorer-force-mobile main.explorer-view-list .explorer-map-base {
  padding-bottom: 0;
  gap: 0;
}

.page-explorer-mapfirst.explorer-force-mobile main.explorer-view-list .explorer-map-base .explorer-map-wrap,
.page-explorer-mapfirst.explorer-force-mobile main.explorer-view-list .explorer-map-precision,
.page-explorer-mapfirst.explorer-force-mobile main.explorer-view-list #explorer-empty {
  display: none;
}

.page-explorer-mapfirst.explorer-force-mobile main.explorer-view-list .explorer-map-chrome {
  order: 0;
  margin-bottom: 0;
}

.page-explorer-mapfirst.explorer-force-mobile .explorer-overlays {
  position: relative;
  inset: auto;
  z-index: 1;
  order: 2;
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  align-items: stretch;
  padding-top: 0;
  overflow: visible;
  pointer-events: auto;
  border-left: none;
  height: auto;
}

.page-explorer-mapfirst.explorer-force-mobile main.explorer-view-map .explorer-overlays {
  flex: 0 0 auto;
  overflow: visible;
}

.page-explorer-mapfirst.explorer-force-mobile main.explorer-view-split .explorer-overlays {
  flex: 0 0 auto;
  min-height: 0;
}

.page-explorer-mapfirst.explorer-force-mobile .explorer-floating-stack {
  flex: none;
  width: 100%;
  max-width: none;
  min-height: 0;
  pointer-events: auto;
  gap: 0.5rem;
  overflow: visible;
}

.page-explorer-mapfirst.explorer-force-mobile .explorer-app {
  flex: none;
  min-height: 0;
}

.page-explorer-mapfirst.explorer-force-mobile .explorer-split {
  flex: none;
  margin-top: 0.35rem;
  min-height: 0;
}

.page-explorer-mapfirst.explorer-force-mobile main.explorer-view-map .explorer-split {
  display: none;
}

.page-explorer-mapfirst.explorer-force-mobile main.explorer-view-split .explorer-list-col,
.page-explorer-mapfirst.explorer-force-mobile main.explorer-view-list .explorer-list-col {
  max-height: none;
  width: 100%;
}

.page-explorer-mapfirst.explorer-force-mobile .explorer-list {
  max-height: none;
}

/* Narrow phones: map band first; chrome + list + intro scroll below (not over the map). */
@media (max-width: 768px) {
  .page-explorer-mapfirst #main.explorer-main {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    grid-template-rows: unset;
    align-items: stretch;
    min-height: 0;
    height: auto;
    overflow-x: hidden;
  }

  .page-explorer-mapfirst .explorer-map-base {
    position: relative;
    inset: auto;
    width: 100%;
    order: 1;
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    padding: 0.5rem;
    gap: 0.5rem;
    box-sizing: border-box;
  }

  .page-explorer-mapfirst .explorer-map-chrome {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    z-index: 2;
    pointer-events: auto;
    order: 1;
  }

  .page-explorer-mapfirst .explorer-map-base .explorer-map-wrap {
    order: 2;
    flex: none;
    height: clamp(16rem, 38dvh, 20rem);
    min-height: 16rem;
  }

  .page-explorer-mapfirst .explorer-map-base .explorer-map-wrap #explorer-map {
    min-height: 0;
  }

  .page-explorer-mapfirst main.explorer-view-map .explorer-map-base .explorer-map-wrap {
    height: clamp(20rem, 58dvh, 34rem);
    min-height: 20rem;
  }

  .page-explorer-mapfirst .explorer-map-precision {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    order: 3;
    z-index: auto;
    margin: 0;
    padding: 0.45rem 0.6rem;
    font-size: 0.74rem;
    line-height: 1.45;
  }

  .page-explorer-mapfirst .explorer-map-base--hidden {
    display: none !important;
  }

  .page-explorer-mapfirst main.explorer-view-list .explorer-map-base {
    padding-bottom: 0;
    gap: 0;
  }

  .page-explorer-mapfirst main.explorer-view-list .explorer-map-base .explorer-map-wrap,
  .page-explorer-mapfirst main.explorer-view-list .explorer-map-precision,
  .page-explorer-mapfirst main.explorer-view-list #explorer-empty {
    display: none;
  }

  .page-explorer-mapfirst main.explorer-view-list .explorer-map-chrome {
    order: 0;
    margin-bottom: 0;
  }

  .page-explorer-mapfirst .explorer-overlays {
    position: relative;
    inset: auto;
    z-index: 1;
    order: 2;
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
    max-width: none;
    align-items: stretch;
    padding-top: 0;
    overflow: visible;
    pointer-events: auto;
    border-left: none;
    height: auto;
  }

  .page-explorer-mapfirst main.explorer-view-map .explorer-overlays {
    flex: 0 0 auto;
    overflow: visible;
  }

  .page-explorer-mapfirst main.explorer-view-split .explorer-overlays {
    flex: 0 0 auto;
    min-height: 0;
  }

  .page-explorer-mapfirst .explorer-floating-stack {
    flex: none;
    width: 100%;
    max-width: none;
    min-height: 0;
    pointer-events: auto;
    gap: 0.5rem;
    overflow: visible;
  }

  .page-explorer-mapfirst .explorer-app {
    flex: none;
    min-height: 0;
  }

  .page-explorer-mapfirst .explorer-split {
    flex: none;
    margin-top: 0.35rem;
    min-height: 0;
  }

  .page-explorer-mapfirst main.explorer-view-map .explorer-split {
    display: none;
  }

  .page-explorer-mapfirst main.explorer-view-split .explorer-list-col,
  .page-explorer-mapfirst main.explorer-view-list .explorer-list-col {
    max-height: none;
    width: 100%;
  }

  .page-explorer-mapfirst .explorer-list {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .explorer-clear-btn {
    margin-left: 0;
    width: 100%;
    margin-top: 0.25rem;
  }

  .explorer-filter-checks {
    flex-direction: column;
    align-items: flex-start;
  }
}
