/* The Pet Bill: site styles (direction B "Map first"). Owned by Task 9; Task 10 extends it for map.js. */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/plus-jakarta-sans-latin-400-normal.woff2?v=221a4135d0) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/static/fonts/plus-jakarta-sans-latin-500-normal.woff2?v=bad081c8db) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/static/fonts/plus-jakarta-sans-latin-600-normal.woff2?v=8872bb5c91) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/fonts/plus-jakarta-sans-latin-700-normal.woff2?v=2050755bf4) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/static/fonts/plus-jakarta-sans-latin-800-normal.woff2?v=5f301a8ef9) format("woff2"); }

:root {
  --ink: #11142B;
  --ink-2: #555A78;
  --ink-3: #676C8A;  /* 5.1:1 on white, 4.8:1 on --soft (axe AA) */
  --line: #E6E8F2;
  --line-2: #EEF0F6;
  --field: #D5D8E8;
  --dash: #B9BDD6;
  --soft: #F7F8FC;
  --white: #FFFFFF;
  --accent: #3B2BD9;
  --accent-hover: #26189E;
  --accent-soft: #EEF0FF;
  --below: #1F3FB8;
  --above: #F08A24;
  --above-ink: #A0520B;
  --neutral-bar: #C9CCE4;
  --none: #A3A7BD;
  --land: #EEF1EA;
  --park: #DDE9D6;
  --water: #C7DCEC;
  --r-s: 12px;
  --r-m: 16px;
  --r-l: 20px;
  --shadow-panel: 0 20px 50px -20px rgba(17, 20, 43, .35);
  --shadow-float: 0 10px 30px -12px rgba(17, 20, 43, .30);
  --shadow-pin: 0 6px 16px rgba(17, 20, 43, .18);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 63px;
  /* type scale (1.25) and spacing rhythm (8 px base) */
  --fs-xs: 12px; --fs-s: 14px; --fs-m: 16px; --fs-l: 18px;
  --fs-h3: 1.125rem; --fs-h2: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); --fs-h1: clamp(2.125rem, 1.4rem + 2.6vw, 3rem);
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px; --sp-5: 48px; --sp-6: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ring: 0 0 0 3px var(--white), 0 0 0 6px var(--accent);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }  /* .btn, .map etc. set display; hidden must still win */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 16px;
  line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.site-footer :focus-visible, .promise :focus-visible, .corrections :focus-visible { outline-color: var(--white); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-weight: 800; font-size: var(--fs-h1); letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
h2 { font-weight: 800; font-size: 1.25rem; text-wrap: balance; }
h3 { font-weight: 700; font-size: 1.05rem; }
::selection { background: var(--accent-soft); color: var(--ink); }
p { margin: 0 0 1em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--white); padding: 8px 14px;
  border-radius: var(--r-s); z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; color: var(--white); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .06em; text-transform: uppercase;
  margin: 0 0 6px; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 68ch; }

/* ---- header / footer ---------------------------------------------------------------------------------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px;
  min-height: var(--header-h); padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--white);
  position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); border-radius: 12px; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); transition: transform .2s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__word { font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.brand__word--light { color: var(--white); font-size: 20px; }
.site-nav { display: flex; gap: 4px; font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease; }
.site-nav a:hover { color: var(--ink); background: var(--soft); }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav-short { display: none; }
.site-footer { background: var(--ink); color: var(--neutral-bar); margin-top: var(--sp-6); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, .8fr);
  gap: var(--sp-4); padding-top: 56px; padding-bottom: 40px; }
.footer-about p { margin: 0 0 12px; max-width: 42ch; }
.footer-about strong { color: var(--white); }
.brand--footer { margin-bottom: 18px; display: inline-flex; }
.brand--footer .brand__mark { box-shadow: none; }
.footer-mail a { font-weight: 700; }
.footer-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dash);
  margin: 6px 0 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--white); }
.footer-list a { text-decoration: none; color: #E4E6F3; }
.footer-list a:hover { text-decoration: underline; color: var(--white); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px;
  padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: var(--dash); }

/* ---- buttons, chips, fields ---------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: var(--r-s); font: inherit; font-weight: 700; text-decoration: none; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .12s ease, background-color .15s ease,
  border-color .15s ease, box-shadow .15s ease; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { background: var(--accent); color: var(--white); box-shadow: 0 6px 16px -8px rgba(59, 43, 217, .7); }
.btn--primary:hover { background: var(--accent-hover); color: var(--white); }
.btn--ghost { border-color: var(--field); color: var(--ink); background: var(--white); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.go-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--field); background: var(--white); color: var(--ink); font-size: 14px; font-weight: 700;
  text-decoration: none; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.chip:hover { border-color: var(--ink); color: var(--ink); box-shadow: 0 4px 12px -6px rgba(17, 20, 43, .35); }
.chip:active { transform: translateY(1px) scale(.96); box-shadow: none; }
.chip:focus-visible { outline: none; box-shadow: var(--ring); }
.chip.is-active:hover, .chip[aria-pressed="true"]:hover { color: var(--white); background: var(--accent-hover); border-color: var(--accent-hover); }
.chip--soft { background: var(--soft); border-color: var(--soft); color: var(--ink-2); font-weight: 600; min-height: 36px; padding: 6px 14px; }
.chip--soft:hover { background: var(--white); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }
.chip--more { border-style: dashed; color: var(--ink-2); }
.icon-btn { width: 48px; height: 48px; flex: 0 0 48px; border-radius: var(--r-s); border: 1.5px solid var(--field);
  background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:active { transform: scale(.95); }
.icon-btn { transition: transform .12s ease, border-color .15s ease; }
input[type="search"], input[type="text"], select { font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--field); border-radius: var(--r-s); padding: 12px 14px; background: var(--white); min-width: 0; }
input[type="search"]:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---- home: map shell ------------------------------------------------------------------------------------ */
.map-shell { position: relative; height: max(620px, calc(100vh - var(--header-h))); max-height: 900px;
  overflow: hidden; background: var(--land); }
.map, .map.maplibregl-map { position: absolute; inset: 0; background: var(--land); }  /* beats maplibre-gl.css */
.map__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The panel is as tall as its content (no empty white block before a search) and grows up to the map's height. */
.search-panel { position: absolute; left: 24px; top: 24px; max-height: calc(100% - 48px); width: min(440px, calc(100% - 48px));
  background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow-panel); display: flex;
  flex-direction: column; overflow: hidden; z-index: 2; }
.sp-head { padding: 22px 22px 16px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line); }
.sp-title { font-size: 30px; line-height: 1.08; letter-spacing: -0.03em; margin: 0; }
.sp-sub { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); font-weight: 600; }
.map-count { position: absolute; top: 16px; right: 64px; z-index: 2; margin: 0; display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border-radius: 999px; padding: 8px 14px; box-shadow: var(--shadow-float); font-size: 13px;
  font-weight: 600; color: var(--ink-2); max-width: calc(100% - 520px); }
.map-count strong { color: var(--ink); }
.map-count__dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--none); border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--none); }
.hero-facts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.hero-facts li { position: relative; padding: 0 0 0 26px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.hero-facts li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 11px; height: 6px; border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.hero-facts strong { color: var(--ink); }
.hero-read { margin: 0 0 6px; }
.hero-read a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; font-size: 14px; }
.hero-read a:hover .arrow { transform: translateX(3px); }
.sp-search { display: flex; gap: 8px; }
.sp-search input { flex: 1 1 0; }
.sp-pet { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.sp-pet select { padding: 8px 12px; font-size: 15px; }
.sp-bar { padding: 12px 22px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-2); background: var(--soft); }
.sp-status { margin: 0; }
.sp-status strong { color: var(--ink); }
.sp-sort { white-space: nowrap; font-weight: 600; }
.sp-results { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.results { list-style: none; margin: 0; padding: 0; }
.results > li > a, .result { display: flex; gap: 14px; align-items: center; padding: 14px 22px;
  border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.results-empty { padding: 18px 22px; color: var(--ink-2); font-size: 14px; }
.results-empty p { margin: 0 0 12px; }
.try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; }
.try__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-right: 4px; }
.try .chip { min-height: 34px; padding: 5px 12px; font-size: 13px; }
.empty-hint { display: flex; gap: 12px; align-items: flex-start; background: var(--soft); border-radius: var(--r-m); padding: 14px 16px; }
.empty-hint svg { flex: 0 0 auto; color: var(--accent); margin-top: 2px; }
.empty-hint p { margin: 0; font-size: 13.5px; }
.empty-hint strong { color: var(--ink); }
.area-summary { padding: 12px 22px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.legend { position: absolute; right: 24px; bottom: 24px; background: var(--white); border-radius: 14px;
  padding: 12px 14px; box-shadow: var(--shadow-float); display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; font-weight: 600; z-index: 2; max-width: 260px; }
.legend__item { display: flex; align-items: center; gap: 8px; }
.legend__attr { font-size: 11px; font-weight: 500; color: var(--ink-2); line-height: 1.4; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; display: inline-block; }
.dot--below { background: var(--below); }
.dot--around { background: var(--white); border: 2px solid var(--ink); }
.dot--above { background: var(--above); }
.dot--none { background: var(--none); }
.dot--priced { background: var(--ink); }
/* pins for map.js (Task 10): .pin.pin--below / --around / --above / --none */
.pin { font-weight: 800; font-size: 15px; padding: 7px 12px; border-radius: 999px; box-shadow: var(--shadow-pin);
  white-space: nowrap; border: 0; cursor: pointer; font-family: var(--font); }
.pin--below { background: var(--below); color: var(--white); }
.pin--around { background: var(--white); color: var(--ink); border: 2px solid var(--ink); }
.pin--above { background: var(--above); color: var(--ink); }
.pin--none { width: 14px; height: 14px; padding: 0; background: var(--none); border: 2px solid var(--white); }
/* A priced pin whose label would overlap a cheaper one's becomes a small dot in its band colour (never hidden):
   mapview.js re-runs the check on every zoom, so labels come back as the pins spread out. */
.pin.pin--mini:not(.is-hl):not(:focus-visible) { width: 14px; height: 14px; padding: 0; font-size: 0; line-height: 0;
  color: transparent; border: 2px solid var(--white); overflow: hidden; }
.pin--around.pin--mini:not(.is-hl):not(:focus-visible) { background: var(--white); border-color: var(--ink); }
.pin--plain.pin--mini:not(.is-hl):not(:focus-visible) { background: var(--white); border: 2px solid var(--ink-3); }
.maplibregl-marker.is-mini { z-index: 0; }
.maplibregl-marker.is-label { z-index: 1; }
.maplibregl-marker.is-mini:has(.is-hl), .maplibregl-marker.is-label:has(.is-hl),
.maplibregl-marker:has(.pin:focus-visible) { z-index: 3; }

/* ---- map.js: results rows, pins, chooser (Task 10) -------------------------------------------------- */
.sheet-handle { display: none; }
.result { position: relative; }
.result.is-hl { background: var(--accent-soft); }
.result__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.result__name { font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; line-height: 1.3; }
.result__name::after { content: ""; position: absolute; inset: 0; }  /* whole row opens the practice */
.result__name:hover { color: var(--accent); }
.result__meta { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.result__src { position: relative; z-index: 1; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--dash); }
.result__src:hover { color: var(--accent); }
.result__right { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: 0 0 auto; }
.result__amt { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.result__note { font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.result .dot { width: 10px; height: 10px; flex-basis: 10px; }
.result .dot--around { border-width: 2px; }
.dot--plain { background: var(--white); border: 2px solid var(--ink-3); }
.choices { list-style: none; margin: 0; padding: 10px 22px 14px; display: flex; flex-direction: column; gap: 8px;
  border-bottom: 1px solid var(--line-2); }
.choices[hidden] { display: none; }
.choice { width: 100%; text-align: left; font: inherit; font-size: 15px; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--field); border-radius: var(--r-s); padding: 10px 14px; min-height: 44px; cursor: pointer; }
.choice:hover { border-color: var(--ink); }
.area-summary strong { color: var(--ink); }
.pin-wrap { line-height: 1; }
.pin { display: block; text-decoration: none; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pin:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pin--plain { background: var(--white); color: var(--ink); border: 2px dashed var(--ink-3); }
.pin--dot { width: 14px; height: 14px; padding: 0; background: var(--accent); border: 2px solid var(--white); }
.pin--self { width: 22px; height: 22px; padding: 0; background: var(--accent); border: 4px solid var(--white);
  box-shadow: 0 0 0 10px rgba(59, 43, 217, .18); }
.pin.is-hl { outline: 3px solid var(--accent); outline-offset: 2px; position: relative; z-index: 3; }
.maplibregl-marker:has(.is-hl), .maplibregl-marker:has(.pin:focus-visible) { z-index: 3; }
.here-dot { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--accent);
  border: 4px solid var(--white); box-shadow: 0 0 0 14px rgba(59, 43, 217, .18); }
.map .maplibregl-ctrl-top-right { top: 12px; right: 12px; }
.practice-map-card .btn { cursor: pointer; font-family: inherit; }
/* motion (map.js adds these classes only when motion is allowed) */
@keyframes pin-drop { from { opacity: 0; transform: translateY(-26px) scale(.9); } 60% { opacity: 1; }
  to { opacity: 1; transform: none; } }
.pin-drop { animation: pin-drop .55s cubic-bezier(0.16, 1, 0.3, 1) both; }
.is-rising { animation: rise .32s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ---- ad slots (empty labelled containers; hidden until AdSense + consent) ----------------------------- */
.ad { border: 1px dashed var(--dash); border-radius: var(--r-s); display: flex; align-items: center;
  justify-content: center; color: var(--ink-2); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ad[hidden] { display: none; }
.ad--leaderboard { min-height: 90px; margin: 28px 0; }
.ad--sidebar { min-height: 250px; }
.ad--in-list { margin: 12px 22px; padding: 12px; min-height: 56px; justify-content: flex-start; letter-spacing: .08em; }

/* ---- home sections ------------------------------------------------------------------------------------- */
.launch-note { background: var(--accent-soft); color: var(--ink); border-radius: var(--r-m); padding: 18px 20px; margin: 0; font-size: 15px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.cat-card { border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; }
.cat-card h2, .cat-card h3 { font-size: 16px; margin-bottom: 10px; }
.cat-card ul, .link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.cat-card a, .link-list a { color: var(--ink); text-decoration: none; }
.cat-card a:hover, .link-list a:hover { color: var(--accent); text-decoration: underline; }
.guide-cards, .related { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.related { margin-top: 32px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--r-l);
  background: var(--soft); border: 1px solid transparent; text-decoration: none; color: var(--ink);
  transition: transform .2s var(--ease-out), box-shadow .2s ease, border-color .2s ease, background-color .2s ease; }
.guide-card strong { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.guide-card:hover { color: var(--ink); transform: translateY(-3px); background: var(--white); border-color: var(--line);
  box-shadow: var(--shadow-float); }
.guide-card:active { transform: translateY(-1px); }
.guide-card span { color: var(--ink-2); font-size: 14px; }
.guide-card .guide-card__meta { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.guide-card .guide-card__go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--accent); }
.guide-card:hover .arrow { transform: translateX(3px); }

/* ---- shared page parts --------------------------------------------------------------------------------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; margin: 0; font-size: 13px; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--dash); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--accent); }
.crumbs { margin-bottom: 4px; }
.page-head { padding-top: 28px; padding-bottom: 8px; }
.card { border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; margin-bottom: 22px; }
.card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.card__head h2 { margin: 0; }
.card__aside { font-size: 13px; color: var(--ink-2); }
.notice { background: var(--soft); border-radius: var(--r-l); padding: 22px; margin-bottom: 22px; }
.notice h2 { margin-bottom: 8px; }
.notice .launch-note { margin-top: 12px; background: var(--white); }
.notice--terms { background: var(--accent-soft); }
.notice--terms a { font-weight: 700; }
.notice--stale a { font-weight: 700; }
.corrections { background: var(--ink); color: var(--white); border-radius: 14px; padding: 18px; margin-bottom: 22px; font-size: 14px; }
.corrections p { margin: 6px 0 0; color: var(--neutral-bar); }
.corrections a { color: var(--white); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.data-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.data-table tbody th { font-weight: 600; }
.data-table tbody th a { color: var(--ink); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.row__name { font-weight: 700; color: var(--ink); text-decoration: none; flex: 1 1 200px; }
a.row__name:hover { color: var(--accent); }
.row__meta { font-size: 13px; color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.town-map { position: relative; }
.map--inline, .map--inline.maplibregl-map { position: relative; inset: auto; height: 380px; border-radius: var(--r-l); overflow: hidden;
  background: linear-gradient(160deg, var(--land) 60%, var(--park)); }
.map--practice, .map--practice.maplibregl-map { height: 300px; margin-top: 14px; }
.map-attr { font-size: 11px; color: var(--ink-2); margin: 6px 0 0; }

/* ---- prices: R14 practice-level price elements and aggregates ----------------------------------------- */
.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price__amt { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.price__src { font-size: 12px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--dash); }
.price__src:hover { color: var(--accent); }
.agg { font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---- practice page ---------------------------------------------------------------------------------- */
/* DOM order = phone order (head, tiles, price list, history, nearby, info). From 1000 px a grid lifts the price list
   into a right-hand column that spans every row; the last row is 1fr, so only it absorbs the column's extra height
   and the cards on the left stay tight (no gaps). */
.practice-layout { padding-top: 24px; }
.practice-side { min-width: 0; display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
@media (min-width: 1000px) {
  .practice-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); column-gap: 28px;
    grid-template-rows: repeat(12, auto) 1fr; align-items: start; }
  .practice-layout > * { grid-column: 1; min-width: 0; }
  .practice-layout > .practice-side { grid-column: 2; grid-row: 1 / -1; margin-bottom: 0; }
}
.practice-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.practice-head h1 { margin-bottom: 6px; }
.practice-meta { font-size: 15px; color: var(--ink-2); margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.tile { background: var(--soft); border-radius: var(--r-m); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.tile__label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.tile__value, .tile__value .price__amt { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.tile .price { flex-direction: column; gap: 2px; }
.tile .price__note { flex-basis: auto; font-weight: 500; letter-spacing: 0; line-height: 1.35; }  /* column flex: a 100% basis would wrap the note into a second column (overflow at 390 px) */
.tile .price__src { font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-underline-offset: 3px; }
.tile__value--empty { color: var(--ink-3); }
.tile__note { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tile__note a { color: var(--below); text-decoration: none; }
.band--below { color: var(--below); }
.band--above { color: var(--above-ink); }
.history-fig { margin: 0 0 22px; }
.history-fig figcaption { font-size: 15px; margin-bottom: 6px; }
svg.history { width: 100%; height: auto; display: block; overflow: visible; }
.history .grid { stroke: var(--line-2); stroke-width: 1; }
.history .axis { font-family: var(--font); font-size: 11px; fill: var(--ink-2); }
.history .note { font-family: var(--font); font-size: 12px; font-weight: 700; fill: var(--accent); }
.history .line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.history .line--practice { stroke: var(--accent); stroke-width: 3; }
.history .line--town { stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 5 6; }
.history .dot--practice, .history .end { fill: var(--accent); }
.history .dot--town { fill: var(--ink-3); }
.history .area { fill: var(--accent); opacity: .08; }
.history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 22px; }
.history-fig--small { margin-bottom: 10px; }
.history-fig--small figcaption { font-size: 13px; }
.history-fig--small .history .axis { font-size: 20px; }
.history-fig--small .history .note { font-size: 22px; }
.anim .history .line--practice { stroke-dasharray: 1; stroke-dashoffset: 1; }
.anim .history.is-in .line--practice { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s ease-out; }
.chart-key { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; font-weight: 600; margin-top: 6px; }
.key { display: inline-flex; align-items: center; gap: 6px; }
.key::before { content: ""; width: 18px; }
.key--practice::before { height: 3px; background: var(--accent); }
.key--town::before { border-top: 2px dashed var(--ink-3); }
.history-line { background: var(--soft); border-radius: var(--r-m); padding: 14px 18px; margin: 0 0 22px; font-size: 14px; color: var(--ink-2); }
.history-line strong { color: var(--ink); }
.history-more { margin: 4px 0 0; }
/* Nearby towns: horizontal dot plot (E critique point 5). One shared price axis; town medians are neutral dots; the
   reference line (this practice's price, or this town's median) is the only coloured mark: blue below the area
   median, orange above, ink around it or without one, the same meaning as the map pins and tiles. */
.dotplot { margin: 0; }
.dp { list-style: none; margin: 0; padding: 0; }
.dp-row { display: grid; grid-template-columns: minmax(84px, 140px) minmax(0, 1fr) 64px; align-items: center; gap: 12px;
  min-height: 40px; }
.dp-label { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-label a { color: var(--ink-2); }
.dp-row--home .dp-label, .dp-row--own .dp-label { font-weight: 700; color: var(--ink); }
.dp-track { position: relative; height: 40px; }
.dp-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: var(--line-2); border-radius: 1px; }
.dp-track::after { content: ""; position: absolute; left: var(--ref); top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: var(--ink); }
.dp-dot { position: absolute; left: var(--x); top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--neutral-bar); border: 2px solid var(--white); box-shadow: 0 2px 6px rgba(17, 20, 43, .18); z-index: 1; }
.dp-row--own .dp-dot { background: var(--ink); }
.dotplot--ref-below .dp-track::after, .dotplot--ref-below .dp-key__line { background: var(--below); width: 3px; }
.dotplot--ref-above .dp-track::after, .dotplot--ref-above .dp-key__line { background: var(--above); width: 3px; }
.dotplot--noref .dp-track::after { display: none; }
.dp-key__band { color: var(--ink-2); }
.dotplot--ref-below .dp-key__band { color: var(--below); }
.dotplot--ref-above .dp-key__band { color: var(--above-ink); }
.dp-val { text-align: right; font-size: 15px; }
.dp-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px; font-size: 13px; font-weight: 600;
  color: var(--ink-2); }
.dp-key__ref { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: var(--ink); }
.dp-key__line { display: inline-block; width: 2px; height: 14px; background: var(--ink); align-self: center; }
.dp-key__item { display: inline-flex; align-items: center; gap: 6px; }
.dp-key__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--neutral-bar); box-shadow: 0 0 0 1px var(--ink-3) inset; }
.dp-key .price__amt { font-size: 14px; }
/* Always visible; with motion allowed the dots grow from 60 % as the plot scrolls in (never hidden: I4). */
.anim .dotplot .dp-dot { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.anim .dotplot:not(.is-in) .dp-dot { transform: scale(.6); }
.price-list { padding: 20px; }
.price-list h2 { font-size: 16px; margin-bottom: 4px; }
.pl-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 18px 0 4px; }
.pl-row { padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.pl-name a { color: var(--ink); text-decoration: none; font-weight: 600; }
.pl-name a:hover { color: var(--accent); }
.pl-row--none .pl-name a { font-weight: 500; color: var(--ink-2); }
.pl-row--none { display: flex; justify-content: space-between; gap: 10px; }
.pl-none { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.pl-prices { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pl-prices > li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }
.pl-label { color: var(--ink-2); font-size: 13px; }
.price__note { flex-basis: 100%; font-size: 12px; color: var(--ink-3); }
.info__src { margin: -6px 0 14px; }
.pl-review { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--above-ink); }
.pl-stale { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; }
.tick::before { margin-right: 4px; font-weight: 800; }
.tick--yes::before { content: "✓"; color: var(--below); }
.tick--no { color: var(--ink-3); }
.tick--no::before { content: "✗"; }
.tick--unknown { color: var(--ink-3); }
.tick--unknown::before { content: "?"; }
.tick-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 4px; font-size: 12px; color: var(--ink-2); }
.tick-key .tick--no, .tick-key .tick--unknown { color: var(--ink-2); }
.pl-more, .more-rows { margin-top: 14px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.pl-more summary, .more-rows summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 6px 0;
  list-style-position: inside; }
.pl-more summary:hover, .more-rows summary:hover { color: var(--accent); }
.pl-more__show, .pl-more__hide { color: var(--accent); font-weight: 700; }
.pl-more__hide, [open] > summary .pl-more__show { display: none; }
[open] > summary .pl-more__hide { display: inline; }
.more-rows .table-wrap { margin-top: 8px; }

/* other practices nearby, directory rows */
.near { flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; }
.near__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.near__main .row__name { flex: none; }
.near__price { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 0; }
.near__price .price { justify-content: flex-end; }
.near__item { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.near__none { flex: 0 0 auto; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.card__head a.card__aside { font-weight: 700; color: var(--accent); }

/* practice information */
.info { margin: 0 0 16px; display: grid; gap: 0; }
.info__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.info__row:last-child { border-bottom: 0; }
.info dt { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.info dd { margin: 0; overflow-wrap: anywhere; }

/* practice directory */
.dir-h { font-size: 1.05rem; margin: 18px 0 12px; }
.dir-links { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }
.chip-row { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.area-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-m);
  text-decoration: none; color: var(--ink); transition: box-shadow .2s ease, transform .2s var(--ease-out), border-color .15s ease; }
.area-card:hover { color: var(--ink); border-color: transparent; box-shadow: var(--shadow-float); transform: translateY(-2px); }
.area-card__code { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--ink-2); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 15px; letter-spacing: .02em; }
.area-card--priced .area-card__code { background: var(--accent-soft); color: var(--accent); }
.area-card__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.area-card__text strong { font-size: 15px; line-height: 1.3; }
.area-card__text span { font-size: 13px; color: var(--ink-2); }
.area-card .arrow { color: var(--accent); }
.area-card:hover .arrow { transform: translateX(3px); }

/* ---- prose pages ------------------------------------------------------------------------------------- */
.prose-layout > * { max-width: 820px; }
.prose-layout > .related, .prose-layout > .ad { max-width: none; }
.prose { font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose .table-wrap { margin: 1em 0 1.5em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--soft); font-size: 13px; }
.sources { font-size: 15px; }
.related-links { margin-top: 32px; }

/* ---- home: below the map ------------------------------------------------------------------------------ */
.arrow { flex: 0 0 auto; transition: transform .2s var(--ease-out); }
.section-head { max-width: 720px; margin-bottom: var(--sp-4); }
.section-head h2, .promise h2, .prelaunch h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 12px; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.section-head--row h2 { margin-bottom: 0; }
.section-lede { font-size: var(--fs-l); color: var(--ink-2); margin: 0; max-width: 60ch; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; padding: 6px 0; }
.more-link:hover .arrow, .tl__more a:hover .arrow, .titem:hover .arrow, .town-card:hover .arrow { transform: translateX(3px); }
.home-section { padding-top: var(--sp-6); }
.home-state { padding-top: var(--sp-4); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.stat { background: var(--soft); border-radius: var(--r-m); padding: 18px 20px; display: flex; flex-direction: column-reverse; gap: 2px; }
.stat dt { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.stat dd { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.prelaunch { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--sp-4); align-items: center;
  background: linear-gradient(135deg, var(--accent-soft), #F6F4FF 60%, var(--white)); border: 1px solid #E1E0FA;
  border-radius: 24px; padding: var(--sp-4); }
.prelaunch__head p:last-child { margin: 0; color: var(--ink-2); font-size: 17px; }
.prelaunch--live { grid-template-columns: 1fr; }
.prelaunch--live .prelaunch__head { max-width: 760px; }
.prelaunch__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: pl; }
.prelaunch__list li { background: var(--white); border-radius: var(--r-m); padding: 14px 16px 14px 52px; position: relative;
  font-size: 15px; color: var(--ink-2); box-shadow: 0 8px 24px -18px rgba(17, 20, 43, .5); counter-increment: pl; }
.prelaunch__list li::before { content: counter(pl); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--accent); color: var(--white); font-weight: 800; font-size: 13px; display: flex;
  align-items: center; justify-content: center; }
.prelaunch__list strong { display: block; color: var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; position: relative; background: var(--white); }
.step__no { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step h3 { font-size: var(--fs-h3); margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
.pop-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pop-grid > li { display: flex; }
.pop-card { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--r-l);
  border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none;
  transition: transform .2s var(--ease-out), box-shadow .2s ease, border-color .2s ease; }
.pop-card:hover { color: var(--ink); transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow-float); }
.pop-card:active { transform: translateY(-1px); }
.pop-card__tag { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.pop-card__tag .cat-icon { color: var(--ink-3); }
.pop-card__name { font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; }
.pop-card__line { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.pop-card__fig { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.pop-card__amt { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.pop-card__note { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pop-card__fact { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.45;
  border-top: 1px solid var(--line-2); }
.pop-card__fact + .pop-card__note { color: var(--ink-3); }
.cat-icon { width: 20px; height: 20px; flex: 0 0 20px; color: var(--accent); }
.cat-icon--sm { width: 18px; height: 18px; flex-basis: 18px; }
.home-timeline { margin-top: var(--sp-6); padding: var(--sp-6) 0; background: var(--soft); border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  position: relative; }
.timeline::before { content: ""; position: absolute; left: 10px; right: 10px; top: 9px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--field) 40%); }
.tl { position: relative; padding-top: 36px; }
.tl__dot { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--white);
  border: 3px solid var(--field); }
.tl--key .tl__dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px rgba(59, 43, 217, .16); }
.tl__date { display: block; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.tl:not(.tl--key) .tl__who { color: var(--ink-3); }
.tl--key .tl__date { color: var(--accent); }
.tl__who { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 2px 0 10px; }
.tl__items { margin: 0; padding: 0 0 0 1.1em; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.tl__items li::marker { color: var(--dash); }
.tl--key .tl__items { color: var(--ink); }
.tl--key .tl__items li::marker { color: var(--accent); }
.tl__more { margin: var(--sp-3) 0 0; }
.tl__more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.promise { background: var(--ink); color: var(--neutral-bar); border-radius: 24px; padding: var(--sp-5); display: grid;
  gap: var(--sp-4); position: relative; overflow: hidden; }
.promise__head { max-width: 640px; position: relative; z-index: 1; }
.promise__head p:last-child { margin: 0; }
.promise::after { content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 43, 217, .55), transparent 70%); pointer-events: none; }
.promise h2 { color: var(--white); }
.promise a { color: var(--white); font-weight: 700; }
.eyebrow--light { color: #A9A2FF; }
.promise__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  position: relative; z-index: 1; }
.promise__list li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-m); padding: 18px; }
.promise__list h3 { color: var(--white); font-size: 16px; margin-bottom: 6px; }
.promise__list p { margin: 0; font-size: 14px; }
.faq-list { display: grid; gap: 10px; align-content: start; }
.home-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--sp-4); align-items: start; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--white); transition: border-color .15s ease, box-shadow .15s ease; }
.faq-item[open] { border-color: transparent; box-shadow: var(--shadow-float); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 700; font-size: 16px;
  position: relative; border-radius: var(--r-m); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg);
  transition: transform .2s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); max-width: 72ch; }

/* ---- treatment index, towns index, empty states, 404 ------------------------------------------------- */
.pill-note { display: inline-flex; align-items: center; gap: 10px; background: var(--accent-soft); color: var(--ink);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; margin: 4px 0 0; }
.pill-note__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(59, 43, 217, .18); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-3); }
.tgroup { padding-top: var(--sp-4); scroll-margin-top: 16px; }
.tgroup__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tgroup__head h2 { margin: 0; font-size: 1.375rem; }
.tgroup__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.tgroup__count { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.tlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.titem { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-m);
  color: var(--ink); text-decoration: none; height: 100%; transition: border-color .15s ease, box-shadow .2s ease, transform .2s var(--ease-out); }
.titem:hover { color: var(--ink); border-color: transparent; box-shadow: var(--shadow-float); transform: translateY(-2px); }
.titem:active { transform: none; }
.titem__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.titem__name { font-size: 16px; line-height: 1.3; }
.titem__line { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.titem__fig { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: 0 0 auto; }
.titem__fig .agg { font-size: 17px; }
.titem__label { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.titem__label--count { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.titem .arrow { color: var(--accent); }
.town-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.town-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; color: var(--ink);
  transition: box-shadow .2s ease, transform .2s var(--ease-out), border-color .15s ease; }
.town-card:hover { color: var(--ink); border-color: transparent; box-shadow: var(--shadow-float); transform: translateY(-2px); }
.town-card strong { font-size: 17px; }
.town-card span { grid-column: 1; font-size: 13px; color: var(--ink-2); }
.town-card .arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); }
.empty { text-align: center; max-width: 620px; margin: var(--sp-3) auto 0; padding: var(--sp-5) var(--sp-3); border: 1.5px dashed var(--field);
  border-radius: 24px; background: var(--soft); }
.empty__art { display: block; margin: 0 auto 16px; }
.empty h2 { font-size: 1.5rem; }
.empty p { color: var(--ink-2); }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.nf { text-align: center; max-width: 680px; padding-top: var(--sp-5); }
.nf__art { display: block; margin: 0 auto 8px; }
.anim .nf__pin, .js .nf__pin { animation: nf-bob 2.6s ease-in-out infinite; transform-origin: 104px 108px; }
@keyframes nf-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.nf .lede { margin-left: auto; margin-right: auto; }
.nf__search { display: flex; gap: 8px; max-width: 480px; margin: var(--sp-3) auto 0; }
.nf__search input { flex: 1 1 0; }
.nf__chips { justify-content: center; margin-top: var(--sp-3); }
.nf__links { margin-top: var(--sp-3); font-size: 14px; color: var(--ink-3); }

/* ---- content pages: treatment, guide, about, legal (CSS only for the content stream's templates) ------- */
.kind-treatment .main > .wrap, .kind-guide .main > .wrap, .kind-about .main > .wrap, .kind-legal .main > .wrap {
  max-width: 880px; }
.prose-layout > * { max-width: none; }
.sources h2 { color: var(--ink); }
.page-head { padding-top: var(--sp-3); padding-bottom: var(--sp-2); }
.page-head .lede { font-size: var(--fs-l); }
.prose { font-size: 17px; line-height: 1.72; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.5rem; margin-top: 1.9em; letter-spacing: -0.025em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5em; }
.prose a { text-decoration-thickness: 1px; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--r-s) var(--r-s) 0; }
.prose .table-wrap { border: 1px solid var(--line); border-radius: var(--r-m); }
.prose table { margin: 0; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose code { font-size: .9em; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.faq h3 { font-size: 1.05rem; padding-top: 14px; border-top: 1px solid var(--line-2); }
.sources { font-size: 15px; color: var(--ink-2); }
.related-links { margin-top: var(--sp-4); padding: 20px 22px; border-radius: var(--r-l); background: var(--soft); }
.related-links h2 { font-size: 1.05rem; }
.related-links .link-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.related-links .link-list a { display: inline-flex; min-height: 36px; align-items: center; padding: 6px 14px; border-radius: 999px;
  background: var(--white); border: 1.5px solid var(--field); font-weight: 600; text-decoration: none; }
.related-links .link-list a:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.comp-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; columns: auto; }
.comp-list li { position: relative; padding-left: 26px; margin: 0; }
.comp-list li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 13px; height: 13px; border: 2px solid var(--accent);
  border-radius: 4px; }  /* a tick box: the list names the boxes, it does not say they are ticked */

/* ---- price answer box (content stream's _pricebox.html.j2): the first visual anchor of treatment pages and cost
   guides. Figures are aggregates (data-aggregate) or cited figures (data-cited); the box only frames them. -------- */
.pricebox { position: relative; overflow: hidden; margin: 8px 0 32px; padding: 26px 26px 22px; border-radius: 24px;
  background: linear-gradient(135deg, var(--accent-soft), #F6F4FF 55%, var(--white)); border: 1px solid #E1E0FA;
  box-shadow: 0 24px 48px -36px rgba(59, 43, 217, .6); }
.pricebox::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); }
.pricebox h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); letter-spacing: -0.025em; margin: 0 0 16px; max-width: 34ch; }
.pricebox__rows { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 14px; }
.pricebox__row { background: var(--white); box-shadow: 0 10px 26px -20px rgba(17, 20, 43, .55); }
.pricebox__row .tile__value { font-size: 30px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pricebox__row .tile__value .agg { font-size: inherit; }
.pricebox__row .tile__note { font-weight: 600; }
.pricebox__row .tile__note .agg { color: var(--ink); }
.pricebox p { color: var(--ink-2); max-width: 68ch; }
.pricebox p.pricebox__label { margin: 0; color: var(--ink-2); }
.pricebox__label a { font-weight: 700; }
.pricebox[data-pricebox="none"] { background: linear-gradient(135deg, var(--soft), var(--white) 70%); border-color: var(--line);
  box-shadow: none; }
.pricebox[data-pricebox="none"]::before { background: var(--field); }
.pricebox[data-pricebox="none"] > p:first-of-type { color: var(--ink); font-size: 16px; }
.pricebox__figures { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.pricebox__figures li { position: relative; padding: 12px 14px 12px 36px; background: var(--white); border-radius: var(--r-s);
  border: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.pricebox__figures li::before { content: "“"; position: absolute; left: 12px; top: 6px; font-size: 28px; font-weight: 800;
  line-height: 1; color: var(--accent); }
.pricebox__search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; margin-top: 18px;
  padding-top: 18px; border-top: 1px solid rgba(59, 43, 217, .14); }
.pricebox__search label { grid-column: 1 / -1; font-weight: 700; font-size: 15px; color: var(--ink); }
.pricebox__search input { width: 100%; }
.pricebox__search .btn { min-height: 48px; }

/* ---- motion: entrance fade only; reduced motion turns everything off -------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.js .main > *:not(.reveal) { animation: rise .35s ease-out both; }
/* in-view reveal: page.js adds .anim (so nothing hides without it) and then .is-in */
/* Transform only: a renderer that never fires the observer (snapshot tools, social previews) still sees every section. */
.anim .reveal { transform: translateY(18px); }
.anim .reveal.is-in { transform: none; transition: transform .6s var(--ease-out); }
.anim .timeline.is-in .tl, .anim .reveal.is-in .tl { animation: rise .5s var(--ease-out) both; }
.anim .reveal.is-in .tl:nth-child(2) { animation-delay: .08s; }
.anim .reveal.is-in .tl:nth-child(3) { animation-delay: .16s; }
.anim .reveal.is-in .tl:nth-child(4) { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .anim .history .line--practice { stroke-dashoffset: 0 !important; }
  .anim .dotplot .dp-dot { transform: none !important; }
  .anim .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---- small screens ---------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .pop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .steps, .promise__list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prelaunch { grid-template-columns: 1fr; }
  .tlist { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 9px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--accent), var(--field) 30%); }
  .tl { padding: 0 0 26px 40px; }
  .tl:last-child { padding-bottom: 0; }
}
@media (max-width: 768px) {
  /* Map gets the top 55 % of the screen; the panel is a bottom sheet that starts at the map's lower edge and
     slides up over it with an ordinary page scroll: no fixed sheet, no map pinning, no scroll-jacking. */
  .map-shell { height: auto; max-height: none; overflow: visible; background: var(--white); display: flex;
    flex-direction: column; }
  .map-shell > .map, .map-shell > .map.maplibregl-map { position: relative; inset: auto; height: 55vh; height: 55svh;
    min-height: 300px; flex: 0 0 auto; }
  .map--inline, .map--inline.maplibregl-map { height: 300px; }
  .map--practice, .map--practice.maplibregl-map { height: 260px; }
  .search-panel { position: relative; left: auto; top: auto; bottom: auto; width: auto; margin: -24px 0 0;
    border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: 0 -10px 30px -16px rgba(17, 20, 43, .35); overflow: visible; }
  .map .pin { font-size: 13px; padding: 5px 9px; }
  .map .pin--none, .map .pin--dot { width: 12px; height: 12px; padding: 0; }
  .map .pin--self { width: 22px; height: 22px; padding: 0; }
  .sheet-handle { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--field);
    margin: 10px auto 0; flex: 0 0 auto; }
  .sp-results { overflow: visible; }
  .sp-title { font-size: 26px; }
  .sp-head { padding: 12px 16px 14px; }
  .sp-bar, .results > li > a, .result, .results-empty, .area-summary, .choices { padding-left: 16px; padding-right: 16px; }
  .ad--in-list { margin-left: 16px; margin-right: 16px; }
  .legend { position: static; box-shadow: none; max-width: none; flex-direction: row; flex-wrap: wrap;
    border-radius: 0; padding: 12px 16px; border-top: 1px solid var(--line); gap: 8px 14px; }
  .legend__attr { flex-basis: 100%; }
  .map-count { top: 12px; left: 12px; right: auto; max-width: calc(100% - 70px); padding: 6px 12px; font-size: 12px; }
  /* After a search the H1 and subhead give way (kept for screen readers) so the first results sit on screen. */
  .search-panel.has-results .sp-titles { position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; }
  .search-panel.has-results .sp-head { gap: 10px; padding-top: 10px; }
  #search-form { scroll-margin-top: 10px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  /* phone header: brand row, then a nav row that scrolls sideways like an app tab bar (no hamburger, no JS) */
  .site-header { flex-wrap: wrap; padding: 10px 0 0; gap: 6px; min-height: 0; }
  .brand { margin: 0 16px; }
  .site-nav { width: 100%; overflow-x: auto; scrollbar-width: none; padding: 0 12px 8px; font-size: 14px;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 7px 12px; scroll-snap-align: start; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  /* right-edge fade while the row can still scroll (page.js sets the classes) */
  .site-nav.is-scrollable:not(.at-end) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
  .jump { flex-wrap: nowrap; overflow-x: auto; margin: var(--sp-3) -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
  .jump::-webkit-scrollbar { display: none; }
  .jump .chip { flex: 0 0 auto; }
  .crumbs li:last-child { display: none; }  /* the current page is the h1 right below; no dangling "/" */
  .crumbs li:nth-last-child(2)::after { content: ""; }
  .tgroup__head h2 { font-size: 1.2rem; }
  .home-section { padding-top: var(--sp-5); }
  .home-timeline { margin-top: var(--sp-5); padding: var(--sp-5) 0; }
  /* popular treatments: a sideways-swiping row of cards, like an app shelf */
  .pop-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px;
    padding: 4px 16px 14px; scrollbar-width: none; scroll-padding: 0 16px; }
  .pop-grid::-webkit-scrollbar { display: none; }
  .pop-grid > li { flex: 0 0 78%; scroll-snap-align: start; }
  .pop-card { padding: 16px 18px; }
  .home-faq { grid-template-columns: 1fr; gap: 0; }
  .prelaunch { padding: 22px 18px; border-radius: 20px; }
  .promise { padding: 28px 20px; border-radius: 20px; }
  .stat dd { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .titem { padding: 14px; gap: 12px; }
  .step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 14px; padding: 16px 18px; }
  .step__no { grid-row: 1 / span 2; margin: 0; }
  .step h3 { margin: 6px 0 2px; }
  .steps { gap: 10px; }
  .sp-head .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none;
    scroll-padding: 0 16px; }
  .sp-head .chips::-webkit-scrollbar { display: none; }
  .sp-head .chip { flex: 0 0 auto; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tiles .tile:first-child { grid-column: 1 / -1; }
  .tile { padding: 14px 16px; }
  .tile__value, .tile__value .price__amt { font-size: 24px; }
  .footer-base { padding-top: 18px; margin-top: 4px; flex-direction: column; }
  .titem .arrow { display: none; }
  .nf__search { flex-direction: column; }
  .faq-item summary { padding: 16px 48px 16px 16px; font-size: 15px; }
  .faq-item p { padding: 0 16px 16px; }
  .practice-head { align-items: flex-start; }
  .dp-row { grid-template-columns: 88px minmax(0, 1fr) 56px; gap: 8px; }
  .dp-val { font-size: 14px; }
  .info__row { grid-template-columns: 96px minmax(0, 1fr); }
  /* nearby rows keep the price on the right, amount over its checked date */
  .near__price .price { flex-direction: column; align-items: flex-end; gap: 0; }
  .near__item { white-space: nowrap; }
  /* chip row: fade the right edge while it can scroll (page.js sets the classes, as for the nav) */
  .sp-head .chips.is-scrollable:not(.at-end) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); }
  .comp-list { grid-template-columns: 1fr; }
  .history .axis { font-size: 22px; }
  .history .note { font-size: 24px; }
}

@media (max-width: 720px) {
  .pricebox { padding: 20px 18px 18px; border-radius: 20px; margin-bottom: 24px; }
  .pricebox__rows { grid-template-columns: 1fr; }
  .pricebox__rows .tile:first-child { grid-column: auto; }
  .pricebox__row .tile__value { font-size: 26px; }
}
@media print {
  .pricebox { box-shadow: none; background: none; border: 1px solid #ccc; }
  .pricebox__search { display: none; }
}


/* ---- F2: the universal search (header box, compare boxes, the map panel) and its suggestions dropdown --------- */
.sbx { position: relative; flex: 1 1 auto; min-width: 0; }
.sbx > input { width: 100%; }
.sbx-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-panel); padding: 6px 0;
  max-height: min(420px, 60vh); overflow-y: auto; text-align: left; }
.sbx-group { padding: 8px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); }
.sbx-opt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 8px 14px; cursor: pointer;
  font-size: 14px; line-height: 1.35; color: var(--ink); }
.sbx-opt:hover, .sbx-opt.is-active { background: var(--accent-soft); }
.sbx-opt.is-active { box-shadow: inset 3px 0 0 var(--accent); }
.sbx-label { font-weight: 700; }
.sbx-detail { font-size: 12.5px; color: var(--ink-2); }
.usearch__row { display: flex; gap: 8px; align-items: center; }
.usearch__row .btn { flex: 0 0 auto; min-height: 48px; }
/* header: brand | search | nav on wide screens; an icon that opens the box below the brand row elsewhere */
.hsearch { display: flex; align-items: center; flex: 0 1 400px; min-width: 220px; margin: 0 auto 0 8px; position: relative; }
.hsearch input[type="search"] { padding: 9px 44px 9px 14px; font-size: 15px; background: var(--soft); border-color: var(--line); }
.hsearch input[type="search"]:focus { background: var(--white); }
.hsearch__go { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
  border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); display: flex; align-items: center;
  justify-content: center; cursor: pointer; z-index: 1; }
.hsearch__go:hover { color: var(--accent); background: var(--accent-soft); }
.hsearch__toggle { display: none; width: 44px; height: 44px; flex: 0 0 44px; }
@media (max-width: 1180px) {
  .js .hsearch__toggle { display: flex; margin-left: auto; }
  .js .hsearch { display: none; }
  .js .hsearch.is-open { display: flex; order: 5; flex: 1 0 100%; max-width: none; margin: 0 0 10px; }
  .site-header { flex-wrap: wrap; }
  .js .site-nav { margin-left: 8px; }
}
@media (max-width: 720px) {
  .hsearch { order: 2; flex: 1 0 100%; margin: 0; padding: 0 16px 8px; }
  .hsearch__go { right: 20px; top: calc(50% - 4px); }
  .js .hsearch__toggle { order: 1; margin: 0 12px 0 auto; width: 40px; height: 40px; flex-basis: 40px; }
  .brand { order: 0; }
  .site-nav { order: 3; }
  .js .hsearch.is-open { order: 2; margin: 0; padding: 0 16px 8px; }
}
.pricebox__search .usearch__row { grid-column: 1 / -1; }
.nf__search { display: block; }
.nf__search .usearch__row { max-width: 480px; margin: 0 auto; }

/* ---- F1: treatment pages lead with the prices -------------------------------------------------------- */
.page-head--tight { padding-top: var(--sp-2); padding-bottom: 6px; }
.page-head--tight h1 { margin-bottom: .3em; }
.page-head--tight .lede { margin-bottom: 14px; }
.prices-first { margin: 0 0 var(--sp-4); }
.prices-first > h2 { margin-bottom: 6px; }
.pf-group { padding-top: 10px; }
.pf-group + .pf-group { margin-top: 10px; border-top: 1px solid var(--line); }
.pf-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin: 0;
  font-size: 1rem; }
.pf-sum { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.pf-sum .agg { color: var(--ink); }
.pf-rows .row { padding: 8px 0; }
.pf-more { margin: 6px 0 0; }
.pf-note { margin: 12px 0 0; max-width: 72ch; }
.pf-empty { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 72ch; }
.prices-first .pricebox__search { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.prices-first .pricebox__search label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.cited .pricebox__figures { margin-bottom: 8px; }

/* ---- F3: the map panel's national view ----------------------------------------------------------------- */
.sp-note { margin: 0; padding: 8px 22px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.sp-note strong { color: var(--ink); }
.offers { display: flex; flex-direction: column; gap: 6px; padding: 10px 22px; border-bottom: 1px solid var(--line-2); }
.offer { font-size: 14px; text-decoration: none; }
.offer strong { text-decoration: underline; text-underline-offset: 2px; }
.results-more { margin: 0; padding: 10px 22px; font-size: 13px; color: var(--ink-2); }
.alts { padding: 12px 22px 14px; border-top: 1px solid var(--line-2); }
.alts__label { margin: 0 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.alts__chips { gap: 6px; }
.alts__chips .chip { min-height: 36px; font-size: 13px; }
.legend__pin { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--white); border: 2px dashed var(--ink-3); font-size: 11px; font-weight: 800; color: var(--ink); }
@media (max-width: 768px) {
  .sp-note, .offers, .results-more, .alts { padding-left: 16px; padding-right: 16px; }
  /* the panel is first in the DOM (keyboard order); on phones the map still sits above the sheet */
  .map-shell > .map { order: 0; }
  .map-shell > .search-panel { order: 1; }
  .map-shell > .legend { order: 2; }
}
/* R91: a map price from the practice's own pre-CMA list carries a mark (the full note is in its label and row) */
.pin--pre::after { content: "*"; margin-left: 1px; font-weight: 800; }
.pin--pre.pin--mini::after { content: none; }
.legend__star { display: inline-flex; justify-content: center; width: 12px; flex: 0 0 12px; font-weight: 800; color: var(--ink); }
.legend__item--pre { font-weight: 500; font-size: 12px; line-height: 1.35; }
/* "check with the practice" line (config.PRICE_NOTICE) and per-price caveats: small, muted, always visible; AA on white and --soft */
.price-notice { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 12px; font-size: var(--fs-xs); line-height: 1.4; color: var(--ink-3); }
.price-notice__icon { flex: 0 0 14px; margin-top: 2px; }
.price-notice a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.results-notice { padding: 0 var(--sp-2); }
.sp-results:has(#results-list:empty) .results-notice { display: none; }  /* only while a list is shown */
.practice-notice { margin-top: -10px; }  /* adjacent to the header tiles it covers */
.price__caveat { font-style: italic; }
.tile .price__caveat { flex-basis: auto; }
.result__caveat { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.35; font-style: italic; }
.result__pre { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.35; }

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 14px 16px; }
}

/* ---- print: a practice's price list (and any content page) prints clean, sources and dates kept --------- */
@media print {
  @page { margin: 14mm 12mm; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .site-header .site-nav, .skip, .site-footer, .ad, .go-links, .practice-map-card, .map-shell, .town-map,
  .crumbs, .related, .corrections, .history-grid, .jump, #show-map, .nf__search { display: none !important; }
  .site-header { border: 0; padding: 0 0 8pt; min-height: 0; }
  .site-header::after { content: "thepetbill.com"; font-size: 9pt; color: #555; }
  .brand__mark { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .wrap { max-width: none; padding: 0; }
  .card, .tile, .notice { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
  .practice-layout { display: block !important; }
  .practice-side { display: block; margin-top: 12pt; }
  .price-list { border: 0; padding: 0; }
  .pl-row { break-inside: avoid; }
  .pl-more { display: none; }  /* only what the practice lists */
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles .tile:first-child { grid-column: auto; }
  .tile__value, .tile__value .price__amt { font-size: 20pt; }
  .dp-dot, .dp-track::after, .key::before, .dot, .tick::before, .history .line, .brand__mark { -webkit-print-color-adjust: exact;
    print-color-adjust: exact; }
  .price__src { color: #333; text-decoration: none; }
  a.price__src::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; word-break: break-all; }
  .pl-prices > li .price { flex-basis: 100%; justify-content: flex-end; }
  a { color: #000; }
  .anim .reveal, .anim .dotplot .dp-dot { opacity: 1 !important; transform: none !important; }
  .main > * { animation: none !important; }
}
