/* Texas Clinic patient site
   Fixed by the owner: the brand colors (V2030 A2: Royal Bright + crescent, bone neutrals)
   and Google Sans. The vibe: Anthropic's warmth (cream, big calm type, real photos) on
   Browserbase's boxy frame (rails, hairline grids, square markers). Everything else follows the landing-page-design system:
   Tailwind type scale, the spacing and radius tables, flat backgrounds, one motion curve.
   Deliberate exceptions, for a stressed reader on a phone (docs/research/05–08):
   - body copy is 18/28 ("Body 7", built from text-lg) instead of 16px
   - main buttons keep a 56px touch height
   - Call and Text sit side by side: they are one action through two channels
   Orange (--crescent) is used only for the main Call buttons. */

/* Google Sans (SIL Open Font License, from Google Fonts), self-hosted: no third-party requests.
   Variable weight 400–700. Helvetica Neue is the fallback while it loads. */
@font-face { font-family: "Google Sans"; src: url("assets/fonts/google-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Google Sans"; src: url("assets/fonts/google-sans-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Brand (fixed) */
  --royal-sky: #62ccff;
  --royal: #3a7bff;
  --royal-deep: #2143b8;
  --crescent: #f47525;
  --bone-0: #fdfcf9;
  --bone-50: #faf7f2;
  --bone-100: #f3efe7;
  --rule: #e2dccf;
  --rule-soft: #ece7dd;
  --ink: #161a22;
  --ink-soft: #343b4a;
  --ink-mute: #56607a;
  --night: #0b1533;
  --night-mute: #c9d2e6;
  --sky-50: #e8efff;
  --peach-50: #fdf1e7;

  --font: "Google Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Spacing table (B2) */
  --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;

  /* Radius: Tailwind values (B3) */
  --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 8px 24px -12px rgb(11 21 51 / 0.2), 0 2px 6px rgb(11 21 51 / 0.05);
  --wrap: 1152px;
  --gutter: 16px;
  --section-y: 48px;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --section-y: 80px; } }

/* ── Text styles (B1), defined once ───────────────── */
.heading-1, .hero h1 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.02em; }  /* 36/40 on phones */
@media (min-width: 640px) { .heading-1, .hero h1 { font-size: 3rem; line-height: 3rem; } }                  /* 48/48 */
@media (min-width: 1024px) { .heading-1, .hero h1 { font-size: 3.75rem; line-height: 3.75rem; } }           /* 60/60, Heading 1 */
h2, .heading-4 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.015em; }     /* 30/36 */
@media (min-width: 1024px) { h2 { font-size: 2.25rem; line-height: 2.5rem; } }                               /* 36/40, Heading 3 */
h3, .heading-6 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.005em; }     /* 20/28 */
.body-lede { font-size: 1.25rem; line-height: 1.75rem; }                                                     /* 20/28 */
.body-7, body { font-size: 1.125rem; line-height: 1.75rem; }                                                 /* 18/28 */
.title-3, .meta { font-size: 1rem; line-height: 1.5rem; }                                                    /* 16/24 */
.caption-2 { font-size: 0.875rem; line-height: 1.25rem; }                                                    /* 14/20 */

/* ── Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (min-width: 1024px) { html { scroll-padding-top: 96px; } }
body { margin: 0; background: var(--bone-50); color: var(--ink); font-family: var(--font); }
img, svg { display: block; max-width: 100%; }
a { color: var(--royal-deep); text-underline-offset: 3px; }
p { margin: 0 0 var(--s-200); text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
strong, b { font-weight: 700; }
::selection { background: #cfdcff; color: var(--ink); }
:focus-visible { outline: 3px solid var(--royal-deep); outline-offset: 3px; border-radius: var(--r-lg); }
.icon { width: 20px; height: 20px; flex: none; fill: currentColor; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.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; }
.skip-link { position: absolute; left: var(--s-200); top: -100px; z-index: 300; background: var(--night); color: #fff; padding: var(--s-100) var(--s-200); border-radius: var(--r-lg); font-weight: 700; }
.skip-link:focus { top: var(--s-100); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Buttons (B9 states) ────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  min-height: 56px; padding: var(--s-75) var(--s-100);
  border: 0; border-radius: var(--r-xl);
  font: 600 1.125rem/1.75rem var(--font);              /* Button-lg */
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn .icon { width: 22px; height: 22px; }
.btn-call { background: var(--crescent); color: var(--ink); }
.btn-call:hover { background: #ff8a3d; }
.btn-text { background: var(--royal-deep); color: #fff; }
.btn-text:hover { background: #1a379a; }
.btn-ghost { background: var(--bone-0); color: var(--ink); box-shadow: inset 0 0 0 2px var(--rule); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink-mute); }
.btn-sm { min-height: 48px; font-size: 1rem; line-height: 1.5rem; }   /* Button-md */
.btn-sm .icon { width: 18px; height: 18px; }
.on-night .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.4); }
.on-night .btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn-pair { display: grid; gap: var(--s-100); max-width: 544px; }
@media (min-width: 480px) { .btn-pair { grid-template-columns: 1fr 1fr; } }

/* ── Crisis line ────────────────────────────────────── */
.crisis { background: var(--night); color: var(--night-mute); font-size: 0.875rem; line-height: 1.25rem; text-align: center; padding: var(--s-100) var(--gutter); }
.crisis p { margin: 0; }
.crisis a { padding: var(--s-100) 2px; color: #fff; font-weight: 700; }

/* ── Navigation (B7): floating bar, full-height menu on phones ── */
.site-header { position: relative; z-index: 100; padding: var(--s-100) var(--gutter) 0; }
.nav-bar {
  display: flex; align-items: center; gap: var(--s-200);
  max-width: var(--wrap); margin: 0 auto; padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  background: rgb(253 252 249 / 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--rule-soft); border-radius: 999px; box-shadow: 0 2px 12px rgb(11 21 51 / 0.06);
}
.brand { display: inline-flex; align-items: center; min-height: 48px; margin-right: auto; }
.brand img { height: 28px; width: auto; }
.nav { display: none; gap: var(--s-50); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-100); border-radius: 999px; text-decoration: none; font-size: 1rem; line-height: 1.5rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; transition: background-color .3s var(--ease), color .3s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { background: var(--bone-100); color: var(--ink); }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-100); border-radius: 999px; font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none; transition: background-color .3s var(--ease); }
.lang:hover { background: var(--bone-100); }
.header-call { display: none; min-height: 44px; border-radius: 999px; padding: 0 var(--s-200); font-size: 1rem; line-height: 1.5rem; }
.menu-btn { position: relative; width: 48px; height: 48px; border: 0; border-radius: 999px; background: var(--bone-100); cursor: pointer; }
.menu-btn span { position: absolute; left: 14px; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .5s var(--ease), opacity .3s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 23px; } .menu-btn span:nth-child(3) { top: 29px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-panel {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; gap: var(--s-300);
  padding: 104px var(--gutter) var(--s-400); overflow-y: auto;
  background: rgb(250 247 242 / 0.96); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.menu-open .menu-panel { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.menu-open .site-header { position: fixed; inset: 0 0 auto 0; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; }
.menu-panel li { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.menu-open .menu-panel li { opacity: 1; transform: none; }
.menu-panel ul a { display: flex; align-items: center; min-height: 56px; font-size: 1.5rem; line-height: 2rem; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.menu-panel .crisis-line { font-size: 1rem; color: var(--ink-soft); }
@media (min-width: 1024px) {
  .site-header { position: sticky; top: 0; padding-top: var(--s-100); }
  .nav { display: flex; }
  .header-call { display: inline-flex; }
  .menu-btn, .menu-panel { display: none; }
}

/* ── Hero ───────────────────────────────────────────── */
.hero { padding: var(--s-400) 0 var(--section-y); }
.hero-grid { display: grid; gap: var(--s-400); }
.what { display: flex; align-items: center; gap: var(--s-75); margin: 0 0 var(--s-100); font-size: 1rem; line-height: 1.5rem; font-weight: 600; color: var(--ink-soft); }
.what::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--royal-deep); box-shadow: -2px 0 0 var(--crescent); }
.hero h1 { max-width: 680px; background: linear-gradient(90deg, #000 0%, #666 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 2px; }
.hero .body-lede { max-width: 680px; margin: var(--s-200) 0 0; color: var(--ink-soft); }
.hero .btn-pair { margin-top: var(--s-300); }
.status { display: flex; align-items: flex-start; gap: var(--s-100); margin: var(--s-200) 0 0; max-width: 544px; font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.status-dot { width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; flex: none; background: var(--ink-mute); }
.status.is-open .status-dot { background: var(--royal); box-shadow: 0 0 0 4px var(--sky-50); }
.hero-trust { list-style: none; margin: var(--s-200) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-75) var(--s-300); font-size: 1rem; line-height: 1.5rem; color: var(--ink-soft); }
.hero-trust li { display: inline-flex; align-items: center; gap: var(--s-75); }
.hero-trust .icon { width: 18px; height: 18px; color: var(--royal-deep); }
.hero-trust .stars { color: var(--crescent); letter-spacing: 1px; }
.hero-figure { margin: 0; position: relative; }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 999px 999px var(--r-2xl) var(--r-2xl) / 160px 160px var(--r-2xl) var(--r-2xl); }
figcaption { position: absolute; left: var(--s-100); bottom: var(--s-100); padding: var(--s-50) var(--s-100); border-radius: 999px; background: rgb(253 252 249 / 0.94); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--ink); }
@media (min-width: 1024px) {
  .hero { padding-top: var(--s-600); }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: var(--s-700); }
  .hero-figure img { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-2xl) var(--r-2xl); box-shadow: var(--shadow); }
  .hero-figure figcaption { left: var(--s-200); bottom: var(--s-200); }
}

/* ── Sections ───────────────────────────────────────── */
.section { padding: var(--section-y) 0; }
.band { background: var(--bone-100); }
.band-warm { background: var(--peach-50); }
.section + .section:not(.band):not(.band-warm):not(.cta-band) { border-top: 1px solid var(--rule-soft); }
.section-head { max-width: 680px; margin-bottom: var(--s-400); }
.section-head p { margin: var(--s-100) 0 0; color: var(--ink-soft); }
.quiet-cta { margin: var(--s-300) 0 0; color: var(--ink-soft); }
.quiet-cta a { font-weight: 700; }
.split { display: grid; gap: var(--s-400); }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-700); align-items: start; } }

/* Scroll reveal (B7): only when JS is running, once per section */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { transform: none; transition: opacity .7s linear; } }

/* ── Is this you? ───────────────────────────────────── */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-200); max-width: 960px; }
.checklist li { display: flex; gap: var(--s-100); align-items: flex-start; font-weight: 600; }
.checklist .tick { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--royal-deep); color: #fff; }
.checklist .tick .icon { width: 14px; height: 14px; }
.checklist a { font-weight: 700; white-space: nowrap; }
@media (min-width: 760px) { .checklist { grid-template-columns: 1fr 1fr; gap: var(--s-200) var(--s-600); } }

/* ── Clinic list (generated by scripts/build_clinics.py) ── */
.clinic-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.clinic-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-50) var(--s-200); padding: var(--s-300) 0; border-bottom: 1px solid var(--rule); }
.clinic-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-xl); }
.clinic-info { min-width: 0; }
.clinic-info h3 a { color: var(--ink); text-decoration: none; }
.clinic-info h3 a:hover { text-decoration: underline; }
.clinic-meta { margin: 0; font-size: 1rem; line-height: 1.5rem; color: var(--ink-mute); }
.clinic-kind { display: inline-block; margin-top: var(--s-75); padding: 2px var(--s-100); border-radius: 999px; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.clinic-kind.walkin { background: var(--sky-50); color: #1a3592; }
.clinic-kind.appt { background: var(--bone-100); color: var(--ink-soft); }
.clinic-today { grid-column: 1 / -1; margin: var(--s-100) 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.clinic-today .open, .clinic-today .shut { display: inline-block; margin-left: var(--s-50); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; white-space: nowrap; }
.clinic-today .open { padding: 2px var(--s-75); border-radius: 999px; background: var(--sky-50); color: #1a3592; }
.clinic-today .shut { color: var(--ink-mute); }
.clinic-row address { grid-column: 1 / -1; margin: 0; font-style: normal; font-size: 1rem; line-height: 1.5rem; color: var(--ink-soft); }
.clinic-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-75) var(--s-200); margin-top: var(--s-100); }
.clinic-actions .btn { flex: 1 1 160px; }
.clinic-more { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: var(--s-50); min-height: 44px; font-weight: 600; font-size: 1rem; }
.clinic-more .icon { width: 16px; height: 16px; }
@media (min-width: 760px) {
  .clinic-list { grid-template-columns: 1fr 1fr; column-gap: var(--s-600); }
}

/* ── Your first visit ───────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: step; }
.steps li { position: relative; padding: 0 0 var(--s-300) 52px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: #fff; font-weight: 700; font-size: 1rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: var(--s-50); width: 2px; background: var(--rule); }
.steps h3 { margin-bottom: var(--s-50); }
.steps p { margin: 0; color: var(--ink-soft); }
.steps .when { margin-top: var(--s-75); font-size: 1rem; line-height: 1.5rem; font-weight: 600; color: var(--ink); }
.inside-title { margin: 0 0 var(--s-100); font-weight: 600; }
.inside-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-75); }
.inside-grid figure { margin: 0; position: relative; }
.inside-grid figure:first-child { grid-column: 1 / -1; }
.inside-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-2xl); }
.inside-grid figure:first-child img { aspect-ratio: 16 / 9; }
.inside-grid.n1 { grid-template-columns: 1fr; max-width: 560px; }
.inside-grid.n2 figure:first-child { grid-column: auto; }
.inside-grid.n2 figure:first-child img { aspect-ratio: 4 / 3; }
@media (min-width: 860px) {
  .inside-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-100); }
  .inside-grid figure:first-child { grid-column: auto; }
  .inside-grid figure:first-child img { aspect-ratio: 4 / 3; }
  .inside-grid.n2 { grid-template-columns: 1fr 1fr; max-width: 900px; }
  .split .inside-grid { grid-template-columns: 1fr 1fr; }
  .split .inside-grid figure:first-child { grid-column: 1 / -1; }
}
.inside { margin-top: var(--s-400); }
.split .inside { margin-top: 0; }
.expect { margin: var(--s-600) 0 0; padding-top: var(--s-400); border-top: 1px solid var(--rule); display: grid; gap: var(--s-300); }
.expect h3 { margin-bottom: var(--s-50); }
.expect p { margin: 0; color: var(--ink-soft); }
@media (min-width: 860px) { .expect { grid-template-columns: repeat(3, 1fr); gap: var(--s-600); } }

/* ── Tagline reveal (B11) ───────────────────────────── */
.tagline { padding: var(--s-800) 0; }
.tagline p { max-width: 680px; margin: 0; font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink); }
@media (min-width: 1024px) { .tagline { padding: var(--s-900) 0; } .tagline p { font-size: 3rem; line-height: 3rem; } }
.tagline .w { color: rgb(22 26 34 / 0.3); transition: color .5s var(--ease); }
.tagline .w.on { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .tagline .w { color: var(--ink); transition: none; } }

/* ── Why people trust us ────────────────────────────── */
.facts { list-style: none; margin: 0 0 var(--s-600); padding: 0; display: grid; gap: var(--s-300); }
.facts h3 { margin-bottom: var(--s-50); }
.facts p { margin: 0; color: var(--ink-soft); }
.facts a { font-weight: 600; white-space: nowrap; }
.facts .stars { color: var(--crescent); letter-spacing: 1px; }
@media (min-width: 760px) { .facts { grid-template-columns: 1fr 1fr; gap: var(--s-400) var(--s-600); } }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-100); }
.quote { margin: 0; background: #fff; border-radius: var(--r-2xl); padding: var(--s-300); box-shadow: var(--shadow); }
.quote p { margin: 0; font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; color: var(--ink); }
.quote .mark { display: block; height: 24px; margin-bottom: var(--s-75); font-size: 3rem; line-height: 3rem; font-weight: 700; color: var(--crescent); }
.quote footer { margin-top: var(--s-100); font-size: 1rem; line-height: 1.5rem; color: var(--ink-mute); }
.quotes-note { margin: var(--s-200) 0 0; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-mute); }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: var(--s-200); } }
.story { margin-top: var(--s-700); display: grid; gap: var(--s-300); }
.story-text h3 { margin-bottom: var(--s-100); }
.story-text p { color: var(--ink-soft); max-width: 640px; }
.welcome { margin: 0; background: #fff; border-radius: var(--r-2xl); padding: var(--s-300); box-shadow: var(--shadow); align-self: start; }
.welcome blockquote { margin: 0; }
.welcome blockquote p { margin: 0; font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.welcome figcaption { position: static; display: flex; align-items: center; gap: var(--s-100); margin-top: var(--s-200); padding: 0; background: none; border-radius: 0; font-size: 1rem; line-height: 1.5rem; font-weight: 400; color: var(--ink-mute); }
.welcome figcaption strong { color: var(--ink); }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--royal-deep); box-shadow: -3px 0 0 var(--crescent); color: #fff; font-weight: 700; font-size: 1rem; }
@media (min-width: 1024px) { .story { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-700); align-items: center; } }
.partners { margin-top: var(--s-600); padding-top: var(--s-400); border-top: 1px solid var(--rule); }
.partners > p { max-width: 760px; color: var(--ink-soft); }
.partners > p strong { color: var(--ink); }
.partner-logos { list-style: none; margin: var(--s-300) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.partner-logos li { display: grid; place-items: center; height: 80px; padding: var(--s-200); background: var(--bone-50); }
/* Logos are trimmed one-color marks; --w (set per logo) balances their visual weight */
.partner-logos img { width: calc(var(--w) * 0.78); max-width: 100%; height: auto; opacity: 0.66; transition: opacity .3s var(--ease); }
.partner-logos li:hover img { opacity: 1; }
@media (min-width: 760px) { .partner-logos { grid-template-columns: repeat(4, 1fr); } .partner-logos li { height: 96px; } .partner-logos img { width: var(--w); } }
@media (min-width: 1024px) { .partner-logos { grid-template-columns: repeat(6, 1fr); } }

/* ── Cost and privacy ───────────────────────────────── */
.pay { margin: 0; border-top: 1px solid var(--rule); }
.pay > div { padding: var(--s-200) 0; border-bottom: 1px solid var(--rule); }
.pay dt { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.pay dd { margin: var(--s-50) 0 0; color: var(--ink-soft); }
.pay-cta { margin-top: var(--s-300); }
.privacy-note h3 { display: flex; align-items: center; gap: var(--s-75); margin-bottom: var(--s-75); }
.privacy-note h3 .icon { color: var(--royal-deep); }
.privacy-note p { color: var(--ink-soft); }

/* ── Families and switching ─────────────────────────── */
.checks { list-style: none; margin: var(--s-200) 0 0; padding: 0; display: grid; gap: var(--s-100); }
.checks li { display: flex; gap: var(--s-100); color: var(--ink-soft); }
.checks .tick { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--royal-deep); color: #fff; }
.checks .tick .icon { width: 13px; height: 13px; }
.checks strong { color: var(--ink); }
.branch h3 { margin-bottom: var(--s-75); }
.branch > p { color: var(--ink-soft); }
.branch .btn-pair { margin-top: var(--s-300); }
.naloxone { margin-top: var(--s-400); background: #fff; border: 2px solid var(--night); border-radius: var(--r-2xl); padding: var(--s-300); }
.naloxone h4 { margin: 0 0 var(--s-75); font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.naloxone p { color: var(--ink-soft); }
.naloxone p strong { color: var(--ink); }
.naloxone ol { margin: var(--s-75) 0 0; padding-left: 1.4em; display: grid; gap: var(--s-50); }
.naloxone li::marker { font-weight: 700; }
.switch-item { padding: var(--s-300) 0; border-bottom: 1px solid var(--rule); }
.switch-item:first-of-type { border-top: 1px solid var(--rule); }
.switch-item h4 { margin: 0 0 var(--s-50); font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.switch-item p { margin: 0; color: var(--ink-soft); }
.links { display: flex; flex-wrap: wrap; gap: 0 var(--s-300); margin-top: var(--s-75) !important; }
.links a { display: inline-flex; align-items: center; gap: var(--s-50); min-height: 44px; font-weight: 600; font-size: 1rem; }
.links .icon { width: 16px; height: 16px; }

/* ── Medicines ──────────────────────────────────────── */
.meds { display: grid; border-top: 1px solid var(--rule); }
.med { padding: var(--s-300) 0; border-bottom: 1px solid var(--rule); }
.med h3 { margin-bottom: var(--s-50); }
.med p { margin: 0; color: var(--ink-soft); }
.med .how { margin-top: var(--s-75); font-size: 1rem; line-height: 1.5rem; font-weight: 600; color: var(--ink); }
@media (min-width: 860px) { .meds { grid-template-columns: repeat(3, 1fr); column-gap: var(--s-600); } }
.note { margin: var(--s-300) 0 0; color: var(--ink-soft); }

/* ── Questions ──────────────────────────────────────── */
.faq { border-top: 1px solid var(--rule); max-width: 800px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-200); min-height: 64px; padding: var(--s-200) 0; cursor: pointer; list-style: none; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; padding: 6px; box-sizing: content-box; border-radius: 50%; background: var(--bone-100); transition: transform .5s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding: 0 0 var(--s-300); color: var(--ink-soft); max-width: 65ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ── Closing band ───────────────────────────────────── */
.cta-band { background: var(--night); color: var(--night-mute); padding: var(--s-800) 0; position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 680px; }
.cta-band p { margin: var(--s-100) 0 0; max-width: 544px; }
.cta-band .btn-pair { margin-top: var(--s-300); }
.cta-band .crisis-line { margin-top: var(--s-300); font-size: 1rem; line-height: 1.5rem; }
.cta-band .crisis-line a { color: #fff; font-weight: 700; }
.cta-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.cta-band.has-photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgb(11 21 51 / 0.86); }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { background: var(--night); color: var(--night-mute); padding: var(--s-600) 0 var(--s-400); border-top: 1px solid rgb(255 255 255 / 0.08); font-size: 1rem; line-height: 1.5rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: var(--s-400); }
.footer-brand img { height: 28px; width: auto; }
.footer-brand p { margin: var(--s-200) 0 0; max-width: 32ch; }
.footer-grid h2 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; color: #fff; margin-bottom: var(--s-75); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-100); min-height: 44px; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 44px; }
.soon { color: var(--night-mute); opacity: 0.7; }
.footer-legal { margin-top: var(--s-400); padding-top: var(--s-300); border-top: 1px solid rgb(255 255 255 / 0.12); display: grid; gap: var(--s-75); font-size: 0.875rem; line-height: 1.25rem; }
.footer-legal p { margin: 0; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

/* ── Phone call/text bar ────────────────────────────── */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-75);
  padding: var(--s-75) var(--s-100) calc(var(--s-75) + env(safe-area-inset-bottom));
  background: rgb(250 247 242 / 0.96); border-top: 1px solid var(--rule);
  transition: transform .5s var(--ease);
}
.action-bar.is-hidden { transform: translateY(110%); }
.action-bar .btn { min-height: 52px; }
@media (max-width: 1023px) { body { padding-bottom: 72px; } }
@media (min-width: 1024px) { .action-bar { display: none; } }

/* ── Unconfirmed content: add ?preview=todo ────────── */
.show-todo [data-todo] { outline: 2px dashed #d97706; outline-offset: 3px; }
.show-todo [data-todo]::after { content: " ⚑"; color: #d97706; }

/* ── Clinic pages (scripts/build_clinics.py) ────────── */
.clinic-hero-grid { display: grid; gap: var(--s-300); }
@media (min-width: 960px) { .clinic-hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); align-items: center; gap: var(--s-700); } }
.hero .lede { max-width: 680px; margin: var(--s-200) 0 0; font-size: 1.25rem; line-height: 1.75rem; color: var(--ink-soft); }
.clinic-hero h1 { max-width: 680px; }
.hero-ctas { display: grid; gap: var(--s-100); margin: var(--s-300) 0 0; max-width: 544px; }
@media (min-width: 480px) { .hero-ctas { grid-template-columns: 1fr 1fr; } }
.visit-card { background: #fff; border-radius: var(--r-2xl); padding: var(--s-300); display: grid; gap: var(--s-75); max-width: 544px; overflow: hidden; box-shadow: var(--shadow); }
.visit-photo { margin: calc(var(--s-300) * -1) calc(var(--s-300) * -1) var(--s-75); }
.visit-photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.visit-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-100); font-weight: 600; color: var(--ink-mute); font-size: 1rem; line-height: 1.5rem; }
.visit-card address { font-style: normal; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.visit-area { margin: 0; color: var(--ink-mute); font-size: 1rem; line-height: 1.5rem; }
.visit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-75); margin-top: var(--s-75); }
.chip { display: inline-block; padding: 2px var(--s-100); border-radius: 999px; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; white-space: nowrap; }
.chip-walkin { background: var(--sky-50); color: #1a3592; }
.chip-appt { background: var(--bone-100); color: var(--ink-soft); }
.hours-grid { display: grid; gap: var(--s-200); }
@media (min-width: 760px) { .hours-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.hours-card { background: #fff; border-radius: var(--r-2xl); padding: var(--s-300) var(--s-300) var(--s-75); box-shadow: var(--shadow); }
.hours-card h3 { margin-bottom: var(--s-50); }
.hours-card dl { margin: 0; }
.hours-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-200); padding: var(--s-100); margin: 0 calc(var(--s-100) * -1); border-bottom: 1px solid var(--rule-soft); border-radius: var(--r-lg); }
.hours-row:last-child { border-bottom: 0; }
.hours-row dt { font-weight: 600; display: flex; align-items: center; gap: var(--s-100); }
.hours-row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.hours-row .closed { color: var(--ink-mute); font-weight: 400; }
.today-badge { display: none; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; padding: 2px var(--s-75); border-radius: 999px; background: var(--royal-deep); color: #fff; }
.hours-row.is-today { background: var(--sky-50); border-bottom-color: transparent; }
.hours-row.is-today .today-badge { display: inline-block; }
.offers { display: grid; border-top: 1px solid var(--rule); }
.offer { padding: var(--s-300) 0; border-bottom: 1px solid var(--rule); }
.offer h3 { margin-bottom: var(--s-50); }
.offer p { margin: 0; color: var(--ink-soft); }
@media (min-width: 720px) { .offers { grid-template-columns: 1fr 1fr; column-gap: var(--s-600); } }
.accepted { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-100) var(--s-200); margin-top: var(--s-300); }
.accepted-label { font-weight: 600; }
.accepted ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-75); }
.accepted li { padding: var(--s-50) var(--s-200); border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); font-weight: 600; font-size: 1rem; line-height: 1.5rem; }
.guest { display: grid; gap: var(--s-200); }
@media (min-width: 860px) { .guest { grid-template-columns: 0.8fr 1.2fr; } }
.guest-fees, .guest-docs { background: #fff; border-radius: var(--r-2xl); padding: var(--s-300); box-shadow: var(--shadow); }
.guest h3 { margin-bottom: var(--s-100); }
.guest-fees p { margin: 0 0 var(--s-75); color: var(--ink-soft); }
.guest-fees strong { font-size: 1.875rem; line-height: 2.25rem; color: var(--ink); margin-right: var(--s-75); font-variant-numeric: tabular-nums; }
.guest-max { margin-top: var(--s-200) !important; padding-top: var(--s-200); border-top: 1px solid var(--rule-soft); font-weight: 600; color: var(--ink) !important; }
.guest-docs ul { margin: 0 0 var(--s-200); padding-left: 1.2em; }
.guest-docs p { color: var(--ink-soft); margin-bottom: var(--s-300); }
.others { display: grid; border-top: 1px solid var(--rule); }
.other { display: grid; gap: 2px; padding: var(--s-300) 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.other:hover .other-name { text-decoration: underline; }
.other-name { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.other-area { color: var(--ink-mute); font-size: 1rem; line-height: 1.5rem; }
.other-phone { font-weight: 600; font-size: 1rem; line-height: 1.5rem; font-variant-numeric: tabular-nums; }
@media (min-width: 720px) { .others { grid-template-columns: repeat(3, 1fr); column-gap: var(--s-600); } }

/* ── 404 ────────────────────────────────────────────── */
.notfound { padding: var(--s-900) 0; }
.notfound p { max-width: 544px; color: var(--ink-soft); }

/* ══ Boxy frame (Browserbase) ═══════════════════════════════════════════
   Sections carry their padding inside .wrap so the side rails run unbroken.
   Grids share 1px hairlines (gap over a rule-colored background), square corners. */
.section, .hero { padding: 0; }
.section > .wrap, .hero > .wrap { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.hero > .wrap { padding-top: var(--s-400); }
.section { border-top: 1px solid var(--rule); }
.section + .section:not(.band):not(.band-warm):not(.cta-band) { border-top: 1px solid var(--rule); }
.cta-band { padding: 0; border-top: 0; }
.cta-band > .wrap { padding-top: var(--s-800); padding-bottom: var(--s-800); }
.tagline { padding: 0; }
.tagline > .wrap { padding-top: var(--s-800); padding-bottom: var(--s-800); }
@media (min-width: 1024px) {
  .hero > .wrap { padding-top: var(--s-600); }
  main > .section > .wrap, main > .hero > .wrap { position: relative; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
  main > .section > .wrap::before, main > .section > .wrap::after {
    content: ""; position: absolute; top: -4px; width: 7px; height: 7px;
    background: var(--bone-50); border: 1px solid var(--ink-mute);
  }
  main > .section > .wrap::before { left: -4px; }
  main > .section > .wrap::after { right: -4px; }
  .tagline > .wrap { padding-top: var(--s-900); padding-bottom: var(--s-900); }
  .cta-band > .wrap::before, .cta-band > .wrap::after { display: none; }
  .cta-band > .wrap { border-color: rgb(255 255 255 / 0.12) !important; }
}

/* Section label: the crescent, shrunk to a square */
.label { display: inline-flex; align-items: center; gap: var(--s-75); margin: 0 0 var(--s-100); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--ink-mute); }
.label::before { content: ""; width: 8px; height: 8px; background: var(--crescent); }
.on-night .label { color: var(--night-mute); }

/* Hairline cell grids */
.cells { --cell-bg: var(--bone-50); display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 0; padding: 0; list-style: none; }
.band .cells { --cell-bg: var(--bone-100); }
.band-warm .cells { --cell-bg: var(--peach-50); }
.cells > * { background: var(--cell-bg); padding: var(--s-300); margin: 0; }
.cells.c2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .cells.c2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .cells.c3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cells.c4 { grid-template-columns: repeat(4, 1fr); } .cells.c4.c2 { grid-template-columns: repeat(4, 1fr); } }
/* components that become cells */
.checklist.cells { gap: 1px; max-width: none; }
.checklist.cells li { padding: var(--s-200) var(--s-300); }
.clinic-list.cells { border-top: 1px solid var(--rule); column-gap: 1px; }
.clinic-list.cells .clinic-row { border-bottom: 0; padding: var(--s-300); }
.facts.cells { gap: 1px; margin-bottom: var(--s-400); }
.meds.cells { border-top: 1px solid var(--rule); column-gap: 1px; }
.meds.cells .med { border-bottom: 0; padding: var(--s-300); }
.expect.cells { margin-top: var(--s-500); padding-top: 0; gap: 1px; }
.expect.cells > div { padding: var(--s-300); }
.big-num { display: block; font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-bottom: var(--s-75); font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .big-num { font-size: 3rem; line-height: 3rem; } }

/* ══ Phone compaction: same content, less scrolling ════════════════════ */
@media (max-width: 759px) {
  :root { --section-y: 40px; }
  .section-head { margin-bottom: var(--s-300); }
  .cells > * { padding: var(--s-200); }
  .checklist.cells li { padding: var(--s-100) var(--s-200); }
  .clinic-list.cells .clinic-row { padding: var(--s-200); }
  .meds.cells .med, .expect.cells > div { padding: var(--s-200); }
  .tagline > .wrap { padding-top: var(--s-600); padding-bottom: var(--s-600); }
  .tagline p { font-size: 1.875rem; line-height: 2.25rem; }
  /* one photo of the inside is enough on a phone */
  .split .inside-grid { grid-template-columns: 1fr; }
  .split .inside-grid figure:not(:first-child) { display: none; }
  /* proof numbers two across */
  .facts.cells { grid-template-columns: 1fr 1fr; }
  .big-num { font-size: 1.875rem; line-height: 2.25rem; }
  .facts p { font-size: 1rem; line-height: 1.5rem; }
  /* reviews swipe sideways */
  .quotes { display: flex; gap: var(--s-100); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: var(--s-75) var(--gutter) var(--s-300); scrollbar-width: none; }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { flex: 0 0 82%; scroll-snap-align: start; }
  .story { margin-top: var(--s-500); }
  .partners { margin-top: var(--s-500); }
  .naloxone { margin-top: var(--s-300); padding: var(--s-200); }
  .expect.cells { margin-top: var(--s-400); }
}

/* Hero headline: Heading 2 size on desktop so it holds two lines without an orphan */
@media (min-width: 1024px) {
  .hero h1 { font-size: 3rem; line-height: 3rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .big-num { font-size: 2.25rem; line-height: 2.5rem; }
}
/* ?static=1 (screenshots, print): no entrance animation */
.static .reveal, .static .tagline .w { opacity: 1 !important; transform: none !important; color: inherit; }
.static .tagline .w { color: var(--ink) !important; }
/* menu: keep the bar (and its close button) above the open panel */
.nav-bar { position: relative; z-index: 2; }
.menu-panel:focus { outline: none; }
.clinic-actions .btn { flex: 1 1 128px; }
.clinic-actions .btn { flex: 1 1 auto; white-space: nowrap; }
.clinic-kind.appt, .chip-appt { background: var(--bone-0); box-shadow: inset 0 0 0 1px var(--rule); }
.menu-panel { z-index: 1; }

/* ── Refinement pass (2026-11-20): flatter proof, photos fill empty columns ── */
.clinic-today .seg { white-space: nowrap; }
@media (min-width: 760px) { .clinic-row { grid-template-columns: 88px minmax(0, 1fr); } .clinic-thumb img { width: 88px; height: 88px; } }

/* First visit: photos stay in view while the steps scroll past */
@media (min-width: 1024px) { #how .split > .inside { position: sticky; top: var(--s-900); } }

/* Tagline: Heading 1 on desktop, with a real photo filling the right side */
.tagline-grid { display: grid; gap: var(--s-400); align-items: center; }
.tagline-photo { position: relative; margin: 0; display: none; }
.tagline-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-2xl); }
@media (min-width: 1024px) {
  .tagline-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-700); }
  .tagline-photo { display: block; }
  .tagline p { font-size: 3.75rem; line-height: 3.75rem; }
}

/* Quotes and Reba's note: flat cells like the rest of the page, not floating cards */
.quote { background: var(--bone-0); box-shadow: none; border-radius: 0; border: 1px solid var(--rule); }
@media (min-width: 760px) {
  .quotes { gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
  .quote { border: 0; background: var(--bone-50); }
}
.welcome { background: var(--peach-50); box-shadow: none; border-radius: 0; border: 1px solid var(--rule); padding: var(--s-400); }

@media (max-width: 759px) { .partner-logos li { padding: var(--s-100); } .partner-logos img { width: calc(var(--w) * 0.8); } }

/* Cost: a private office photo under the privacy note */
.side-photo { position: relative; margin: var(--s-300) 0 0; }
.side-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-2xl); }
@media (max-width: 759px) { .side-photo { display: none; } }

/* FAQ: heading on the left, questions on the right */
@media (min-width: 1024px) {
  #faq .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-700); align-items: start; }
  #faq .section-head { position: sticky; top: var(--s-900); margin-bottom: 0; }
  #faq .faq { max-width: none; }
}

/* Our story: real photos from Texas Clinic's own album */
.story-photos { display: grid; gap: var(--s-100); margin-top: var(--s-500); }
.story-photos figure { position: relative; margin: 0; }
.story-photos img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 35%; border-radius: var(--r-2xl); }
@media (min-width: 760px) { .story-photos { grid-template-columns: 1fr 1fr; gap: var(--s-200); } }

/* ── Clinic map (generated by scripts/build_clinics.py; roads from scripts/build_map.py) ──
   Self-hosted on purpose: no Google Maps embed, so nobody is tracked for viewing this page. */
.clinic-map { position: relative; margin: 0 0 var(--s-300); border: 1px solid var(--rule); background: var(--bone-50); overflow: hidden; }
.clinic-map img { display: block; width: 100%; height: auto; }
.clinic-map .pin { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: var(--s-75); min-height: 44px; transform: translate(-8px, -50%); color: var(--ink); text-decoration: none; }
.pin-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--royal-deep); box-shadow: 0 0 0 3px var(--bone-0); transition: transform .3s var(--ease); }
.pin-label { padding: 2px var(--s-100); border-radius: 999px; background: rgb(253 252 249 / 0.94); box-shadow: 0 0 0 1px var(--rule); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; white-space: nowrap; transition: box-shadow .3s var(--ease); }
.pin-open { display: none; margin-left: var(--s-75); color: #1a3592; }
.pin.is-open .pin-open { display: inline; }
.pin.is-open .pin-dot { box-shadow: 0 0 0 3px var(--bone-0), 0 0 0 7px rgb(127 160 255 / 0.45); }
.clinic-map .pin:hover .pin-dot, .clinic-map .pin:focus-visible .pin-dot { transform: scale(1.2); }
.clinic-map .pin:hover .pin-label, .clinic-map .pin:focus-visible .pin-label { box-shadow: 0 0 0 2px var(--royal-deep); }
.map-downtown { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: var(--s-50); transform: translate(-4px, -50%); font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-mute); }
.map-downtown::before { content: ""; width: 8px; height: 8px; background: var(--ink-mute); }
.shield { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); padding: 0 var(--s-50); border-radius: var(--r-sm, 4px); background: var(--bone-0); box-shadow: 0 0 0 1px #c3b8a5; font-size: 0.75rem; line-height: 1rem; font-weight: 700; color: var(--ink-soft); }
.clinic-map figcaption { position: absolute; left: auto; right: var(--s-100); bottom: var(--s-75); padding: 0; background: none; border-radius: 0; font-size: 0.75rem; line-height: 1rem; font-weight: 400; color: var(--ink-mute); }
.clinic-row { scroll-margin-top: var(--s-900); }
.clinic-row:target { box-shadow: inset 0 0 0 2px var(--royal-deep); }
@media (max-width: 759px) {
  .clinic-map { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-left: 0; border-right: 0; }
  .shield, .pin-open, .clinic-map figcaption { display: none; }
  .pin.is-open .pin-open { display: none; }
  .map-downtown { font-size: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) { .pin-dot { transition: none; } }

/* ── Top bar: one calm call to action, emergency lines kept beside it ── */
.topbar { display: flex; align-items: center; justify-content: center; gap: var(--s-200); padding: var(--s-75) var(--gutter); background: var(--night); color: #fff; }
.topbar p { margin: 0; }
.topbar-pitch { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.topbar-call { display: inline-flex; align-items: center; gap: var(--s-75); min-height: 40px; padding: var(--s-75) var(--s-200); border-radius: 999px; background: var(--crescent); color: var(--ink); font-size: 1rem; line-height: 1.5rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .3s var(--ease), background-color .3s var(--ease); }
.topbar-call .icon { width: 18px; height: 18px; }
.topbar-call:hover { transform: translateY(-1px); }
.topbar-call:active { transform: scale(0.98); }
.topbar-call:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.topbar-crisis { font-size: 0.875rem; line-height: 1.25rem; color: var(--night-mute); white-space: nowrap; }
.topbar-crisis a { padding: var(--s-100) 2px; color: #fff; font-weight: 700; }
@media (min-width: 1024px) {
  .topbar { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-300); padding-top: var(--s-100); padding-bottom: var(--s-100); }
  .topbar-pitch { justify-self: end; }
  .topbar-crisis { justify-self: end; }
}
@media (max-width: 1023px) { .topbar-crisis { margin-left: auto; } }
@media (max-width: 759px) {
  .topbar { justify-content: space-between; gap: var(--s-100); }
  .topbar-pitch { display: none; }
  .topbar-call { min-height: 36px; padding: var(--s-50) var(--s-200); font-size: 0.875rem; line-height: 1.25rem; }
  .topbar-crisis { margin-left: 0; font-size: 0.75rem; line-height: 1rem; }
}

/* ── Cost: heading across the top, then the price list beside one privacy panel ── */
.cost-body { margin-top: var(--s-100); }
.privacy-card { margin: 0; border: 1px solid var(--rule); background: var(--bone-0); }
.privacy-card .side-photo { margin: 0; }
.privacy-card .side-photo img { border-radius: 0; aspect-ratio: 16 / 9; }
.privacy-text { padding: var(--s-300); }
.privacy-text h3 { display: flex; align-items: center; gap: var(--s-75); margin: 0 0 var(--s-75); }
.privacy-text h3 .icon { color: var(--royal-deep); }
.privacy-text p { margin: 0; color: var(--ink-soft); }
.privacy-text p + p { margin-top: var(--s-100); }
@media (max-width: 759px) { .privacy-card .side-photo { display: none; } .privacy-text { padding: var(--s-200); } }

/* ── Families: two even columns, then naloxone across the full width ── */
#families .split { align-items: start; }
#switch > h3 { margin-bottom: var(--s-75); }
.naloxone { display: grid; gap: var(--s-200); margin-top: var(--s-600); }
.naloxone-intro p, .naloxone-steps p { margin: 0; }
.naloxone-intro p { margin-top: var(--s-50); }
.naloxone-steps ol { margin-top: var(--s-100); }
@media (min-width: 860px) {
  .naloxone { grid-template-columns: 1fr 1fr; gap: var(--s-600); padding: var(--s-400); }
}
.clinic-map .pin.pin-left, .map-downtown.pin-left { flex-direction: row-reverse; transform: translate(calc(-100% + 8px), -50%); }
.map-downtown.pin-left { transform: translate(calc(-100% + 4px), -50%); }
@media (max-width: 759px) {
  .clinic-map .pin.pin-left { flex-direction: row; transform: translate(-6px, -50%); }
  .clinic-map .pin { gap: var(--s-50); }
  .pin-dot { width: 12px; height: 12px; box-shadow: 0 0 0 2px var(--bone-0); }
  .pin.is-open .pin-dot { box-shadow: 0 0 0 2px var(--bone-0), 0 0 0 5px rgb(127 160 255 / 0.45); }
  .pin-label { padding: 1px var(--s-75); font-size: 0.75rem; line-height: 1rem; }
}
