@font-face {
  font-family: "Golos Text";
  src: url("assets/fonts/golos-text-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #203b34;
  --muted: #5c6b63;
  --surface: #fff;
  --canvas: #f7f7f2;
  --line: #dce2d9;
  --control-line: #88998e;
  --accent: #236451;
  --accent-hover: #184b3c;
  --accent-soft: #eaf0e8;
  --warning-bg: #faf0df;
  --warning-ink: #715329;
  --radius: 16px;
  font-family: "Golos Text", "Segoe UI", sans-serif;
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; margin: 0; background: var(--canvas); color: var(--ink); }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button, a { touch-action: manipulation; }
button, select, a { transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1:focus { outline: none; }
::selection { background: #d8e6d8; color: var(--ink); }
.icon { width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }

.app-shell { width: min(100% - 64px, 1040px); margin: 0 auto; }
main.app-shell { flex: 1 0 auto; }
.site-footer { padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.site-footer span { display: block; font-size: 14px; line-height: 1.5; }
.site-footer a { display: inline-block; min-height: 44px; padding: 8px 4px; color: var(--accent); font-size: 14px; font-weight: 500; line-height: 1.5; text-underline-offset: 4px; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
.analytics-settings { min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.analytics-settings[hidden], .analytics-choice[hidden] { display: none; }
.analytics-choice { position: fixed; z-index: 100; right: 20px; bottom: 20px; width: min(560px, calc(100% - 40px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 32px #203b3414; }
.analytics-choice h2 { margin-bottom: 10px; font-size: 19px; }
.analytics-choice p { margin-bottom: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.analytics-choice summary { width: fit-content; min-height: 44px; padding: 10px 0; color: var(--accent); cursor: pointer; font-size: 14px; }
.analytics-choice a { color: var(--accent); text-underline-offset: 3px; }
.analytics-choice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.analytics-choice-actions button { flex: 1 1 190px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--control-line); border-radius: 10px; background: var(--surface); color: var(--accent); font-size: 14px; font-weight: 500; }
.analytics-choice-actions button:hover { background: var(--accent-soft); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 105px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; font-size: 21px; font-weight: 600; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--accent); }
.brand-mark { width: 38px; height: 38px; flex: none; color: var(--accent); }
.city { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; }
.city .icon { width: 17px; height: 17px; }
.back-row { padding-top: 20px; }
.back-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 92px; min-height: 44px; padding: 8px 12px; margin-left: -12px; border: 1px solid transparent; border-radius: 10px; background: transparent; font-size: 14px; font-weight: 500; }
.back-button .icon { width: 18px; height: 18px; }

.page { padding: 24px 0 64px; margin: 0 auto; }
.page--entry { max-width: 624px; }
.page--results { max-width: 820px; }
.page--doctor { max-width: 720px; }
.page--not-found { max-width: 600px; padding-top: clamp(48px, 9vh, 96px); text-align: center; }
.not-found-code { margin: 0 0 24px; color: var(--accent); font-size: clamp(88px, 19vw, 152px); font-weight: 500; line-height: 1; letter-spacing: -.07em; }
.page--not-found .lead { max-width: 480px; margin: 0 auto 32px; }
.not-found-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.not-found-actions .primary-button { max-width: 280px; }
.not-found-search { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; color: var(--accent); font-weight: 500; text-underline-offset: 4px; }
.not-found-search:hover { color: var(--accent-hover); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: 42px; font-weight: 500; line-height: 1.14; letter-spacing: -.04em; overflow-wrap: break-word; text-wrap: balance; }
h2 { font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
h3 { margin-bottom: 8px; font-size: 21px; font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--accent); font-size: 14px; font-weight: 500; line-height: 1.4; }
.eyebrow .icon { width: 20px; height: 20px; }
.eyebrow-link { position: relative; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.eyebrow-link::after { content: ""; position: absolute; inset: -12px -4px; }
.eyebrow-link:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
.eyebrow-line { display: inline-block; width: 24px; height: 2px; background: var(--accent); }
.lead { max-width: 620px; margin-bottom: 32px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.heading-accent { color: var(--accent); }
.field-label { display: block; margin: 28px 0 14px; font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: -.015em; }

/* The landing page has a desktop composition of its own. */
.page--routes { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 56px; row-gap: 48px; padding-top: 72px; }
.route-intro { padding-top: 26px; }
.route-intro h1 { max-width: 440px; margin-bottom: 24px; font-size: 52px; line-height: 1.08; }
.route-intro .lead { max-width: 420px; margin: 0; font-size: 17px; }
.route-picker .field-label { margin: 0 0 18px; }
.route-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.route-choice { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 30px 8px; min-width: 0; min-height: 194px; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: left; }
.route-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.route-icon .icon { width: 27px; height: 27px; }
.route-choice--cardiology .route-icon { background: #f6eae3; color: #885842; }
.route-choice--ophthalmology .route-icon { background: #e8eef0; color: #486775; }
.route-choice--dentistry .route-icon { background: #f3efdf; color: #776432; }
.route-choice--dermatology .route-icon { background: #eee9e4; color: #755d4f; }
.route-copy { grid-column: 1 / -1; grid-row: 2; align-self: end; min-width: 0; }
.route-title { display: block; margin-bottom: 7px; font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -.03em; }
.route-description { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.route-arrow { grid-column: 2; grid-row: 1; align-self: center; width: 20px; height: 20px; color: var(--accent); }
.route-search { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.route-search__intro { margin: 0 0 10px; color: var(--muted); font-size: 14px; font-weight: 500; }
.route-search .doctor-search { margin-bottom: 0; }
.route-search .doctor-search .field-label { margin-bottom: 10px; }
.route-search .primary-button { border-color: var(--accent); background: transparent; color: var(--accent); }
.route-search .primary-button:not(:disabled):hover { background: var(--accent-soft); }
.route-footnote { grid-column: 1 / -1; }
.route-footnote .safety-note { margin: 0; padding: 18px 22px; }
.route-footnote .fine-print { margin-top: 18px; }
.home-supply-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.home-process { grid-column: 1 / -1; width: 100%; max-width: 780px; margin: 0 auto; padding-top: 32px; border-top: 1px solid var(--line); }
.home-process > h2 { max-width: 680px; margin: 0 0 24px; font-size: 28px; }
.home-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.home-step { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 20px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.home-step-number { grid-row: 1 / 3; display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.home-step:nth-child(2) .home-step-number { background: #e8eef0; color: #486775; }
.home-step:nth-child(3) .home-step-number { background: #f3efdf; color: #776432; }
.home-step h3 { grid-column: 2; margin-bottom: 8px; font-size: 20px; }
.home-step p { grid-column: 2; max-width: 720px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.home-evidence { grid-column: 1 / -1; width: 100%; max-width: 780px; margin: 0 auto; }
.home-evidence-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.home-evidence-heading > .icon { width: 28px; height: 28px; margin-top: 4px; color: var(--accent); stroke-width: 2; }
.home-evidence h2 { margin: 0; max-width: 680px; font-size: 28px; }
.home-evidence-note { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.home-evidence-note > div { min-width: 0; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.home-evidence-note dt { margin-bottom: 10px; color: var(--ink); font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: -.025em; }
.home-evidence-note dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* Form controls retain the existing selection and district flow. */
.form-panel { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.form-panel > .field-label:first-child { margin-top: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 68px; padding: 13px 14px; border: 1px solid var(--control-line); border-radius: 12px; background: var(--surface); font-size: 15px; line-height: 1.4; text-align: left; }
.choice-marker { display: grid; width: 20px; height: 20px; flex: none; place-items: center; border: 1px solid var(--control-line); border-radius: 50%; }
.choice-marker .icon { width: 13px; height: 13px; stroke-width: 2.5; visibility: hidden; }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice[aria-pressed="true"] .choice-marker { border-color: var(--accent); background: var(--accent); color: #fff; }
.choice[aria-pressed="true"] .choice-marker .icon { visibility: visible; }
.select { width: 100%; min-height: 54px; padding: 12px; border: 1px solid var(--control-line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 16px; cursor: pointer; }
.district-search { display: grid; gap: 18px; margin: 24px 0; }
.district-search > div { min-width: 0; }
.district-search select, .district-search input { display: block; width: 100%; min-width: 0; min-height: 54px; padding: 12px; border: 1px solid var(--control-line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.district-search input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.district-search .primary-button { justify-self: start; }
.sitemap-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 8px 24px; padding: 0; list-style: none; }
.sitemap-list li { min-width: 0; overflow-wrap: anywhere; }
.sitemap-list a { display: inline-block; padding: 10px 0; color: var(--accent); }
.sitemap-list span { color: var(--muted); font-size: 14px; }
.sitemap-pages { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.sitemap-pages a, .sitemap-pages span { display: grid; min-width: 44px; min-height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); }
.safety-note { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0; padding: 16px; border-radius: 12px; background: var(--warning-bg); color: var(--warning-ink); font-size: 14px; line-height: 1.55; }
.safety-note .icon { width: 20px; height: 20px; margin-top: 1px; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px; padding: 14px 18px; border: 1px solid transparent; border-radius: 12px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 500; line-height: 1.4; text-decoration: none; text-align: center; }
.primary-button .icon { width: 20px; height: 20px; }
.primary-button:disabled { background: #e3e8e0; color: #657161; cursor: not-allowed; }
.form-hint { margin: 10px 0 0; color: var(--ink); font-size: 14px; line-height: 1.5; text-align: center; }
.fine-print { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; text-align: center; }

/* Results: names, place of reception, then the same single card action. */
.page--results h1 { max-width: 700px; }
.page--results .results-title--empty { font-size: 34px; }
.page--results > .lead { margin-bottom: 24px; }
.page--results--empty .filter { margin-bottom: 22px; }
.page--results--empty > .lead { margin-bottom: 14px; }
.page--results--empty .result-section { margin-top: 0; }
.filter { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; border-radius: 12px; background: var(--accent-soft); font-size: 15px; }
.filter-label { display: flex; align-items: center; gap: 9px; min-width: 0; }
.filter-label .icon { width: 18px; height: 18px; }
.text-button { flex: none; min-height: 44px; padding: 8px 4px; border: 0; border-radius: 6px; background: transparent; color: var(--accent); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.result-section { margin-top: 32px; }
.result-section + .result-section { margin-top: 40px; }
.result-section__title { margin: 0 0 16px; scroll-margin-top: 24px; color: var(--muted); font-size: 15px; font-weight: 500; line-height: 1.45; letter-spacing: 0; }
.card-list { display: grid; gap: 14px; }
.doctor-card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 150ms ease, box-shadow 150ms ease; }
.doctor-card__body { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; }
.doctor-card__identity, .doctor-card__location { min-width: 0; }
.doctor-card__action { padding: 0; border: 0; background: transparent; font: inherit; letter-spacing: inherit; text-align: left; overflow-wrap: anywhere; }
.doctor-card__action::after { position: absolute; inset: 0; border-radius: var(--radius); content: ""; }
.doctor-card:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
.doctor-card__action:focus-visible { outline: none; }
.specialty { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.clinic-name { margin-bottom: 7px; font-size: 16px; font-weight: 500; line-height: 1.4; }
.address { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.badge { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin-top: 10px; padding: 4px 8px; border-radius: 6px; background: #f2f3ef; color: var(--muted); font-size: 13px; line-height: 1.4; }
.badge .icon { width: 14px; height: 14px; }
.badge--local { background: var(--accent-soft); color: var(--accent); }
.doctor-card__evidence { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.doctor-card__verified { display: inline-flex; align-items: flex-start; gap: 6px; color: var(--accent); font-weight: 500; }
.doctor-card__verified .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.doctor-card__sources { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 5px; }
.doctor-card__source { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doctor-card__source .icon { width: 13px; height: 13px; }
.doctor-card__source:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #edf0e9; color: var(--accent); font-size: 14px; font-weight: 500; }
.card-link .icon { width: 19px; height: 19px; }
.clinic-section__intro { margin: -6px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.clinic-card { padding: 24px; border: 1px solid var(--line); border-left: 3px solid #afbea7; border-radius: var(--radius); background: var(--surface); }
.clinic-card__type { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.clinic-card h3 { margin: 0 0 12px; font-size: 20px; font-weight: 500; line-height: 1.35; letter-spacing: -.02em; }
.clinic-card__service, .clinic-card__note { margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.clinic-card__service strong { font-weight: 500; }
.clinic-card__address { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.clinic-card__address .icon { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.clinic-card__note { color: var(--muted); font-size: 14px; }
.clinic-card__evidence { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; }
.clinic-card__evidence span, .clinic-card__evidence a { display: inline-flex; align-items: flex-start; gap: 5px; }
.clinic-card__evidence .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.clinic-card__evidence a { min-height: 44px; align-items: center; color: var(--accent); text-underline-offset: 3px; }
.clinic-card__action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; color: var(--accent); font-size: 14px; font-weight: 500; text-underline-offset: 3px; }
.clinic-card__action .icon { width: 15px; height: 15px; }
.page--results > .fine-print { max-width: 620px; margin: 28px auto 0; }

/* A calm information hierarchy for the doctor profile. */
.page--doctor h1 { max-width: 650px; }
.location-panel { display: flex; align-items: flex-start; gap: 18px; margin: 0 0 24px; padding: 28px; border-radius: var(--radius); background: var(--accent-soft); }
.location-panel__icon { display: grid; width: 44px; height: 44px; flex: none; place-items: center; border-radius: 12px; background: #dbe7d9; color: var(--accent); }
.detail-card__title { margin: 0 0 14px; font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.location-panel .detail-card__title { margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.location-panel .clinic-name { font-size: 20px; letter-spacing: -.025em; }
.location-panel .address { font-size: 15px; }
.details-panel { padding: 4px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.detail-section { padding: 24px 0; }
.detail-section + .detail-section { border-top: 1px solid var(--line); }
.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.6; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; }
.check-list .icon { width: 19px; height: 19px; margin-top: 2px; color: var(--accent); }
.source-copy { margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.source-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border-radius: 4px; color: var(--accent); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.source-link .icon { width: 16px; height: 16px; }
.doctor-booking__actions { margin-top: 28px; }
.page--doctor > .fine-print { max-width: 570px; margin-left: auto; margin-right: auto; }

@media (hover: hover) {
  .route-choice:hover, .doctor-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgb(32 59 52 / 5%); }
  .route-choice:hover { background: #fcfdf9; }
  .choice:hover { border-color: var(--accent); background: #f5f8f2; }
  .primary-button:not(:disabled):hover { background: var(--accent-hover); }
  .back-button:hover { border-color: var(--line); background: var(--accent-soft); }
  .text-button:hover, .source-link:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
}
button:not(:disabled):active, a.primary-button:active { background-color: #dce8d9; }
.primary-button:not(:disabled):active, a.primary-button:active { background-color: #143f33; }
.route-search .primary-button:not(:disabled):active { background-color: #dce8d9; }

@media (max-width: 1020px) and (min-width: 761px) {
  .page--routes { column-gap: 28px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .route-intro h1 { font-size: 43px; }
  .route-choice { padding: 18px 16px; }
  .route-title { font-size: 18px; }
}

@media (max-width: 760px) {
  .app-shell { width: min(100% - 40px, 600px); }
  main.app-shell[data-screen="not-found"] { flex-grow: 0; }
  .site-footer { padding-bottom: 24px; }
  body:has(.district-search) { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  html:has(.district-search) { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  /* The clinic link may wrap onto two lines on narrow screens. */
  .doctor-booking__actions { margin-top: 0; }
  body:has(.doctor-booking__actions) { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
  html:has(.doctor-booking__actions) { scroll-padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
  .district-search { gap: 20px; margin: 20px 0; }
  .district-search .field-label { margin: 0 0 8px; }
  .district-search .search-hint { margin-top: 8px; }
  .district-search__actions, .doctor-booking__actions { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); background: var(--canvas); }
  .district-search__actions .primary-button, .doctor-booking__actions .primary-button { max-width: 600px; margin: 0 auto; }
  /* Let the browser scroll the text field naturally above the on-screen keyboard. */
  .district-search--editing .district-search__actions { position: static; padding: 0; border: 0; }
  .topbar { min-height: 88px; gap: 12px; }
  .brand { gap: 8px; font-size: 18px; }
  .brand-mark { width: 32px; height: 32px; }
  .city { max-width: 110px; font-size: 12px; }
  .city .icon { display: none; }
  .back-row { padding-top: 12px; }
  .page { padding-top: 20px; padding-bottom: 40px; }
  .page--not-found { padding-top: clamp(28px, 5vh, 48px); padding-bottom: 16px; }
  h1 { margin-bottom: 16px; font-size: 34px; line-height: 1.14; letter-spacing: -.04em; }
  .eyebrow { margin-bottom: 16px; }
  .lead { margin-bottom: 26px; line-height: 1.6; }
  .page--routes { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 36px; }
  .route-intro { padding-top: 0; }
  .route-intro h1 { max-width: 460px; margin-bottom: 18px; font-size: 38px; line-height: 1.1; }
  .route-intro .lead { max-width: 480px; font-size: 16px; }
  .home-process > h2 { font-size: 24px; }
  .home-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .home-step-number { grid-row: 1 / 3; width: 44px; height: 44px; margin: 0; border-radius: 12px; }
  .home-step h3, .home-step p { grid-column: 2; }
  .home-step h3 { font-size: 19px; }
  .home-evidence-heading { margin-bottom: 20px; }
  .home-evidence h2 { font-size: 24px; }
  .home-evidence-note { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .route-picker .field-label { margin-bottom: 14px; }
  .route-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .route-choice { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; gap: 14px; min-height: 96px; padding: 18px 16px; }
  .route-icon { width: 44px; height: 44px; border-radius: 12px; }
  .route-icon .icon { width: 25px; height: 25px; }
  .route-copy { grid-column: 2; grid-row: 1; align-self: center; }
  .route-title { margin-bottom: 5px; font-size: 19px; }
  .route-arrow { grid-column: 3; width: 18px; height: 18px; }
  .route-footnote .safety-note { padding: 16px; }
  .form-panel { padding: 22px 20px; border-radius: var(--radius); }
  .choice-grid { gap: 10px; }
  .choice { gap: 8px; min-height: 76px; padding: 12px 10px; }
  .choice-marker { width: 18px; height: 18px; }
  .safety-note { gap: 10px; }
  .filter { gap: 12px; padding: 8px 12px; font-size: 14px; }
  .page--results .results-title--empty { font-size: 28px; }
  .result-section { margin-top: 28px; }
  .doctor-card { padding: 20px; }
  .clinic-card { padding: 20px; }
  .doctor-card__body { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  h3 { font-size: 21px; }
  .card-link { margin-top: 18px; padding-top: 14px; }
  .location-panel { gap: 12px; padding: 20px; }
  .location-panel__icon { width: 34px; height: 34px; border-radius: 10px; }
  .location-panel__icon .icon { width: 20px; height: 20px; }
  .details-panel { padding: 0 20px; }
}

@media (max-width: 440px) {
  .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .choice { min-height: 54px; padding: 12px 14px; gap: 12px; }
}

@media (max-width: 359px) {
  .app-shell { width: calc(100% - 32px); }
  .brand { font-size: 16px; gap: 6px; }
  .brand-mark { width: 28px; height: 28px; }
  .city { max-width: 92px; font-size: 11px; }
  h1 { font-size: 30px; }
  .route-intro h1 { font-size: 33px; }
  .route-choice { gap: 10px; padding: 16px 12px; }
  .route-title { font-size: 17px; }
  .route-icon { width: 36px; height: 40px; }
  .form-panel { padding: 20px 16px; }
  .location-panel { padding: 18px; }
  .location-panel__icon { display: none; }
  .primary-button { gap: 8px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .choice[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -3px; }
  .choice[aria-pressed="true"] .choice-marker { color: ButtonText; }
  .primary-button, .route-choice, .doctor-card, .location-panel { border: 1px solid ButtonText; }
}
/* Each claim keeps its own dated, linked evidence. */
.bio-panel { margin-bottom: 32px; }
.bio-copy { line-height: 1.7; }
.reception-section { margin-bottom: 28px; }
.reception-section .location-panel { margin-bottom: 12px; }
.location-panel__body { min-width: 0; overflow-wrap: anywhere; }
.location-panel .evidence-block:last-child { margin-bottom: 0; }
.location-match { color: var(--accent); font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.other-locations { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.evidence-block { margin-block: 1rem; }
.evidence-block .source-copy { margin-bottom: .25rem; }
.evidence-block .source-link { margin-right: .8rem; overflow-wrap: anywhere; }
.route-choice, .doctor-card__action { color: inherit; text-decoration: none; }
.topbar-tools { display: flex; align-items: center; gap: 24px; }
.city-switch { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.city-switch a { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 10px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); font-size: 14px; text-decoration: none; }
.city-switch a:hover { background: var(--accent-soft); color: var(--accent); }
.city-switch a[aria-current="page"] { border-color: var(--line); background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.city-switch-mobile{display:none}
.search-nav { color: var(--accent); font-size: 14px; font-weight: 500; padding: 12px 0; text-underline-offset: 4px; }
.doctor-search { margin: 0 0 32px; }
.doctor-search .field-label { margin: 0 0 12px; }
.search-controls { display: flex; align-items: stretch; gap: 12px; }
.search-controls input { min-width: 0; width: 100%; min-height: 52px; border: 1px solid var(--control-line); border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--surface); }
.search-controls input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.search-controls .primary-button { width: auto; margin: 0; min-width: 90px; padding: 12px 20px; }
.search-hint { color: var(--muted); font-size: 14px; margin: 12px 0 0; line-height: 1.5; }
@media (max-width: 900px) {
 .topbar { flex-wrap: wrap; gap: 8px; padding-block: 16px; }
 .topbar-tools { flex-wrap: wrap; gap: 8px 20px; }
 .city-switch{display:none}.city-switch-mobile{display:block;position:relative}
 .city-switch-mobile summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--accent-soft);cursor:pointer;font-size:14px;font-weight:600;list-style:none}
 .city-switch-mobile summary .icon{width:16px;height:16px;transform:rotate(90deg)}
 .city-switch-mobile[open] summary .icon{transform:rotate(-90deg)}
 .city-switch-mobile summary::-webkit-details-marker{display:none}
 .city-switch-mobile nav{position:absolute;z-index:10;top:calc(100% + 6px);left:0;display:grid;min-width:224px;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 12px 24px rgb(26 47 40 / .16)}
 .city-switch-mobile a{min-height:40px;padding:9px 10px;border-radius:8px;color:var(--muted);font-size:14px;text-decoration:none}
 .city-switch-mobile a[aria-current="page"]{background:var(--accent-soft);color:var(--ink);font-weight:600}
 .search-controls { gap: 8px; }
 .search-controls .primary-button { min-width: 72px; padding-inline: 12px; }
}
/* Compact secondary directions and bounded catalogue lists. */
.more-directions { margin-top:18px; }
.directions-toggle { display:flex; align-items:center; justify-content:center; gap:12px; min-height:52px; padding:12px 20px; border:1px solid var(--accent); border-radius:var(--radius); color:var(--accent); background:var(--surface); font-weight:500; cursor:pointer; list-style:none; }
.directions-toggle::-webkit-details-marker { display:none; }
.directions-toggle .icon { transform:rotate(90deg); }
.directions-toggle__open, .more-directions[open] .directions-toggle__closed { display:none; }
.more-directions[open] .directions-toggle__open { display:inline; }
.more-directions[open] .directions-toggle .icon { transform:rotate(-90deg); }
.more-directions[open] > .route-list { margin-top:18px; }
.directions-toggle:hover { background:var(--accent-soft); }
.directions-toggle:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.catalog-actions { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:28px; }
.catalog-actions .primary-button { flex:1 1 200px; min-width:0; }
.catalog-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin:28px 0; }
.direction-directory { margin-top:48px; scroll-margin-top:24px; }
.direction-doctors { display:grid; gap:16px; padding:0; margin:24px 0; list-style:none; }
.direction-doctors > li { min-width:0; padding:22px 24px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); overflow-wrap:anywhere; }
.direction-doctors h3 { margin:0; }
.direction-doctors h3 a { display:inline-block; padding-block:8px; color:var(--ink); text-underline-offset:4px; }
.direction-doctors p, .direction-locations { margin:6px 0 0; color:var(--muted); font-size:14px; line-height:1.6; }
.direction-locations { padding-left:18px; }
.direction-locations li + li { margin-top:6px; }
@media (max-width:599px) { .direction-doctors > li { padding:16px; } }
