/* Medical Tourism Information Centre. "Open Ledger" design, mulberry and marigold.
   Plain CSS, no build step. Mobile first. Plan: planning/05-design-plan.md. */
@layer tokens, base, layout, components, pages, utilities;

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2018-201D, U+2022, U+2026; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/atkinson-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2018-201D, U+2022, U+2026; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/newsreader-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2018-201D, U+2022, U+2026; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/newsreader-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2018-201D, U+2022, U+2026; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/newsreader-400i.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2018-201D, U+2022, U+2026; }
/* Metric-matched fallbacks so the swap does not shift lines. */
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); size-adjust: 96%; ascent-override: 98%; }
@font-face { font-family: "Atkinson Fallback"; src: local("Arial"); size-adjust: 97%; }

@layer tokens {
  :root {
    /* Colour. Contrast ratios: planning/05-design-plan.md, colour override. */
    --ink: #24172A;
    --plum: #5B2A4E;
    --plum-hover: #4A2140;
    --plum-link: #6E3561;
    --verified-bg: #E6F2EA;
    --verified-ink: #1F5B3F;
    --paper: #FFFFFF;
    --paper-warm: #FBF8F4;
    --paper-clear: rgba(255, 255, 255, 0);
    --print-ink: #000000;
    --print-rule: #999999;
    --stone: #F4EFE9;
    --line: #E4DCD2;
    --line-strong: #928676;
    --muted: #5E5560;
    --marigold: #E9A825;
    --amber-soft: #FFF1CC;
    --amber-ink: #7A4F00;
    --rose-soft: #FBE7E7;
    --rose-ink: #8E1B1B;
    --focus: #5B2A4E;
    --focus-on-dark: #FFD769;
    --footer-text: #D9CFDB;
    --footer-rule: rgba(255, 255, 255, .14);
    --credit-bg: rgba(36, 23, 42, .62);
    --header-glass: rgba(255, 255, 255, .92);

    /* Type */
    --serif: "Newsreader", "Newsreader Fallback", Georgia, "Times New Roman", serif;
    --sans: "Atkinson Hyperlegible", "Atkinson Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --t-display: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
    --t-h1: clamp(1.875rem, 1.45rem + 1.6vw, 2.625rem);
    --t-h2: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
    --t-h3: 1.1875rem;
    --t-lead: 1.125rem;
    --t-body: 1rem;
    --t-small: 0.9rem;
    --t-micro: 0.8rem;
    --t-price: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);

    /* Space, radii, shadows, motion */
    --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
    --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
    --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-pill: 999px;
    --shadow-card-hover: 0 1px 2px rgba(36, 23, 42, .06), 0 6px 16px rgba(36, 23, 42, .08);
    --shadow-float: 0 2px 4px rgba(36, 23, 42, .08), 0 12px 32px rgba(36, 23, 42, .12);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --dur-press: 140ms;
    --dur-ui: 200ms;
    --gutter: 1rem;
    --grid-gap: 1rem;
    --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2324172A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
  @media (min-width: 768px) { :root { --gutter: 1.5rem; --grid-gap: 1.5rem; } }
  @media (min-width: 1024px) { :root { --gutter: 2rem; } }
}

@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { font-size: 106.25%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  @media (min-width: 768px) { html { font-size: 112.5%; } }
  body {
    margin: 0; background: var(--paper); color: var(--ink);
    font-family: var(--sans); font-size: var(--t-body); line-height: 1.6;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  }
  img, svg { display: block; max-width: 100%; }
  img { height: auto; }
  .icon { display: inline-block; flex: none; vertical-align: middle; max-width: none;
    fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
  h1 { font-family: var(--serif); font-weight: 600; font-size: var(--t-h1); line-height: 1.12; letter-spacing: -0.01em; }
  h2 { font-family: var(--serif); font-weight: 600; font-size: var(--t-h2); line-height: 1.2; letter-spacing: -0.005em; margin: 2.5rem 0 .75rem; }
  h3 { font-family: var(--sans); font-weight: 700; font-size: var(--t-h3); line-height: 1.3; margin: 1.75rem 0 .5rem; }
  p, ul, ol, dl, table { margin: 0 0 1rem; }
  ul, ol { padding-left: 1.25rem; }
  li + li { margin-top: .35rem; }
  a { color: var(--plum-link); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  @media (hover: hover) and (pointer: fine) { a:hover { color: var(--plum); text-decoration-thickness: 2px; } }
  strong, b { font-weight: 700; }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  ::selection { background: var(--stone); color: var(--ink); }
  table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
  th, td { text-align: left; vertical-align: top; padding: .625rem .75rem; border-bottom: 1px solid var(--line); }
  th { background: var(--stone); font-size: var(--t-small); font-weight: 700; }
  hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
  input, select, textarea, button { font: inherit; color: inherit; }
}

@layer layout {
  .wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
  .prose { max-width: 40rem; }
  .section { margin-top: var(--s-8); }
  .section > h2:first-child, .section-head h2 { margin-top: 0; }
  .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
  .section-head a { white-space: nowrap; font-size: var(--t-small); display: inline-flex; align-items: center; gap: .25rem; }
  .grid { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  @media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
  .grid-3 { grid-template-columns: 1fr; }
  @media (min-width: 600px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
  .grid-1 { grid-template-columns: 1fr; }
  main { display: block; padding-bottom: var(--s-8); }
  .page-body { margin-top: var(--s-6); }
}

@layer components {
  /* Skip link */
  .skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--paper); color: var(--ink);
    padding: .75rem 1rem; border-radius: var(--r-2); box-shadow: var(--shadow-float); font-weight: 700; }
  .skip:focus { top: 1rem; }

  /* Assurance line */
  .assure { background: var(--stone); font-size: var(--t-small); line-height: 1.3; }
  .assure p { margin: 0; min-height: 36px; display: flex; align-items: center; gap: .4rem; white-space: nowrap; overflow: hidden; }
  .assure a { font-weight: 700; }

  /* Header */
  .site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
  .header-row { display: flex; align-items: center; gap: .375rem; min-height: 56px; }
  @media (min-width: 768px) {
    .site-header { position: sticky; top: 0; background: var(--header-glass);
      -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
    .header-row { min-height: 64px; gap: 1rem; }
  }
  @media (prefers-reduced-transparency: reduce) { .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; } }
  .brand { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); text-decoration: none; margin-right: auto; min-height: 44px; }
  .brand .mark { width: 26px; height: 26px; flex: none; max-width: none; color: var(--plum); }
  .wordmark { display: flex; flex-direction: column; line-height: 1.05; }
  .wm-1 { font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
  .wm-2 { font-size: 11.5px; letter-spacing: .02em; color: var(--muted); margin-top: 2px; white-space: nowrap; }
  @media (min-width: 480px) {
    .brand { gap: .75rem; }
    .brand .mark { width: 32px; height: 32px; }
    .wm-1 { font-size: 19px; }
    .wm-2 { font-size: 12.5px; }
  }

  .nav { display: none; }
  .nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .125rem; }
  .nav li + li { margin: 0; }
  .nav a { display: block; padding: .5rem .625rem; color: var(--ink); text-decoration: none; font-size: 17px;
    border-bottom: 2px solid transparent; line-height: 1.4; white-space: nowrap; }
  .nav a[aria-current="page"] { border-bottom-color: var(--plum); font-weight: 700; }
  @media (min-width: 1024px) { .nav { display: block; } }
  @media (min-width: 1200px) { .nav a { padding-inline: .75rem; } }

  .header-cta { display: none; }
  @media (min-width: 360px) { .header-cta { display: inline-flex; } }
  .btn.header-cta { min-height: 44px; padding: 0 .8rem; font-size: 15px; white-space: nowrap; }
  .btn.header-cta[aria-current="page"]:not(.btn-quiet) { background: var(--plum-hover); }
  @media (min-width: 768px) { .btn.header-cta { min-height: 48px; padding: 0 1.25rem; font-size: 17px; } }

  /* Mobile menu: <details>, works with JS off */
  .menu > summary { list-style: none; display: inline-flex; align-items: center; gap: .375rem; height: 44px; padding: 0 .75rem 0 .6rem;
    border: 1px solid var(--line-strong); border-radius: var(--r-pill); cursor: pointer; font-weight: 700; font-size: 15px; user-select: none; }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu .menu-close { display: none; }
  .menu[open] .menu-close { display: inline; }
  .menu[open] .menu-open { display: none; }
  .menu-open, .menu-close { line-height: 0; }
  .menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-float); padding: .5rem var(--gutter) 1.25rem; }
  .menu[open] .menu-panel { animation: menu-in var(--dur-ui) var(--ease-out); }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  .menu-panel ul { list-style: none; margin: 0 0 1rem; padding: 0; }
  .menu-panel li + li { margin: 0; border-top: 1px solid var(--line); }
  .menu-panel ul a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
  .menu-panel ul a .icon { color: var(--line-strong); }
  .menu-panel a[aria-current="page"] { font-weight: 700; color: var(--plum); }
  .menu-panel .btn { width: 100%; justify-content: center; }
  .menu-panel p { margin: 0; }
  @media (min-width: 1024px) { .menu { display: none; } }

  /* Flash */
  .flashes { margin-top: 1rem; }
  .flash { display: flex; gap: .625rem; align-items: flex-start; background: var(--verified-bg); color: var(--verified-ink);
    border-left: 3px solid var(--verified-ink); border-radius: 0 var(--r-2) var(--r-2) 0; padding: .875rem 1rem; margin: 0 0 .5rem; }
  .flash .icon { margin-top: 2px; }

  /* Breadcrumbs */
  .crumbs { font-size: var(--t-small); color: var(--muted); }
  .crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
  .crumbs li { display: inline-flex; align-items: center; gap: .25rem; margin: 0; min-height: 28px; }
  .crumbs a { color: var(--muted); }
  .crumbs [aria-current] { color: var(--ink); }
  .crumb-sep { color: var(--line-strong); }
  @media (max-width: 479.98px) {
    .crumbs ol { flex-wrap: nowrap; }
    .crumbs li:not(:nth-last-child(-n+2)) { display: none; }
    .crumbs li:nth-last-child(2) > .crumb-sep { display: none; }
    .crumbs li:last-child { min-width: 0; }
    .crumbs li:last-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  }

  /* Page header bands */
  .page-head { padding-top: 1.5rem; padding-bottom: .5rem; }
  .page-head .crumbs { margin-bottom: .75rem; }
  .page-head h1 { max-width: 22ch; }
  .page-head .lead { margin: .875rem 0 0; max-width: 40rem; }
  .page-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
  .page-head-text { flex: 1 1 28rem; min-width: 0; }
  .page-head-text > :last-child { margin-bottom: 0; }
  .band { position: relative; margin: 0 0 1.25rem; aspect-ratio: 16 / 9; border-radius: var(--r-3); overflow: hidden; background: var(--stone); }
  @media (min-width: 768px) { .band { aspect-ratio: auto; height: clamp(13rem, 24vw, 18rem); } }
  .band img { width: 100%; height: 100%; object-fit: cover; }
  .lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); }
  .meta-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

  .photo-credit { position: absolute; right: .5rem; bottom: .5rem; z-index: 2; font-size: var(--t-micro); line-height: 1.4;
    color: var(--paper); background: var(--credit-bg); padding: 2px 8px; border-radius: var(--r-1); text-decoration: none; max-width: calc(100% - 1rem);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .photo-credit:focus-visible { outline-color: var(--focus-on-dark); }

  /* Buttons */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .625rem 1.25rem; text-align: center;
    border-radius: var(--r-2); border: 1.5px solid transparent; font-family: var(--sans); font-weight: 700; font-size: 17px;
    line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: transform var(--dur-press) var(--ease-out), background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
  .btn .icon { width: 18px; height: 18px; }
  .btn:active { transform: scale(0.98); }
  .btn-primary, .btn:not(.btn-secondary):not(.btn-quiet):not(.btn-ghost) { background: var(--plum); color: var(--paper); }
  .btn-secondary, .btn-ghost { background: var(--paper); color: var(--plum); border-color: var(--plum); }
  .btn-quiet { background: transparent; color: var(--plum-link); text-decoration: underline; text-underline-offset: 3px; padding-inline: .75rem; }
  .btn-pill { border-radius: var(--r-pill); }
  .btn-danger { color: var(--rose-ink); border-color: var(--rose-ink); }
  .btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
  .actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.5rem 0 0; }
  @media (max-width: 479.98px) { .actions .btn { width: 100%; } }

  /* Stamps and chips */
  .stamp { display: inline-flex; align-items: center; gap: .375rem; background: var(--stone); color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--r-1); padding: 2px 8px; font-size: 14px; line-height: 1.45;
    font-variant-numeric: tabular-nums; white-space: nowrap; vertical-align: middle; }
  .stamp .icon { width: 16px; height: 16px; }
  .stamp-sm { font-size: var(--t-micro); padding: 1px 7px; }
  .stamp-sm .icon { width: 14px; height: 14px; }
  .stamp-ok { background: var(--verified-bg); color: var(--verified-ink); border-color: transparent; }
  .stamp-stale, .stamp-preview { background: var(--amber-soft); color: var(--amber-ink); border-color: transparent; }
  .stamp-missing { background: transparent; color: var(--muted); border: 1px dashed var(--line-strong); }
  .stamp-closed { background: var(--stone); color: var(--muted); }
  .chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--stone); color: var(--ink);
    border-radius: var(--r-1); font-size: var(--t-micro); line-height: 1.45; padding: 2px 8px; white-space: nowrap; vertical-align: middle; }
  .chip-required { background: var(--paper); border: 1px solid var(--line-strong); padding: 0 6px; margin-left: .25rem; }
  .chip-meta { font-size: var(--t-small); gap: .4rem; padding: 4px 10px; }
  .chip-meta .icon { color: var(--plum-link); }

  /* Callouts */
  .callout { display: flex; gap: .75rem; align-items: flex-start; border-left: 3px solid var(--plum-link); background: var(--stone);
    border-radius: 0 var(--r-2) var(--r-2) 0; padding: .875rem 1rem; margin: 1.5rem 0; max-width: 48rem; }
  .callout-icon { color: var(--plum-link); margin-top: 3px; }
  .callout-body > :last-child { margin-bottom: 0; }
  .callout-body p { margin-bottom: .5rem; }
  .callout-warn { border-color: var(--amber-ink); background: var(--amber-soft); }
  .callout-warn .callout-icon { color: var(--amber-ink); }
  .callout-ok { border-color: var(--verified-ink); background: var(--verified-bg); }
  .callout-ok .callout-icon { color: var(--verified-ink); }
  .callout-danger { border-color: var(--rose-ink); background: var(--rose-soft); }
  .callout-danger .callout-icon, .callout-danger a { color: var(--rose-ink); }
  .errors { scroll-margin-top: 6rem; }
  .errors:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
  .errors-title { font-family: var(--sans); font-size: var(--t-body); font-weight: 700; margin: 0 0 .375rem; color: var(--rose-ink); }
  .errors ul { margin: 0; padding-left: 1.1rem; }

  /* Hero (home) */
  .hero { padding-top: 2rem; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero h1 { font-family: var(--serif); font-weight: 500; font-size: var(--t-display); line-height: 1.08; letter-spacing: -0.015em; max-width: 15ch; }
  .hero .lead { margin: 1.25rem 0 0; max-width: 34rem; color: var(--muted); }
  .hero .actions { margin-top: 1.75rem; }
  .assurances { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: var(--t-small); }
  .assurances li { margin: 0; display: inline-flex; align-items: center; gap: .4rem; }
  .assurances .icon { color: var(--plum-link); }
  .hero-media { position: relative; }
  .hero-photo { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-3); overflow: hidden; background: var(--stone); margin: 0; }
  .hero-photo img { width: 100%; height: 100%; object-fit: cover; }
  .fact-card { position: relative; display: block; margin-top: 1rem; background: var(--paper); border-radius: var(--r-3); box-shadow: var(--shadow-float);
    border-left: 4px solid var(--marigold); padding: 1rem 1.125rem 1.125rem; color: var(--ink); text-decoration: none;
    transition: transform var(--dur-press) var(--ease-out); }
  .fact-card:active { transform: scale(0.98); }
  .fact-card .fact-title { font-weight: 700; margin: 0 0 .5rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
  .fact-card .fact-title .icon { color: var(--plum-link); }
  .fact-card .range { margin: 0; }
  .fact-card .range-source { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .fact-card p:last-child { margin-bottom: 0; }
  @media (min-width: 1024px) {
    .hero { padding-top: 3.5rem; }
    .hero-grid { grid-template-columns: 7fr 5fr; gap: 3rem; align-items: center; }
    .hero-grid { align-items: start; }
    .hero-media { padding-top: .5rem; }
    .fact-card { width: 18rem; margin: -4.5rem 0 0 -2rem; z-index: 3; }
  }

  /* Price range */
  .range { margin: 0 0 1rem; font-variant-numeric: tabular-nums; }
  .range-labels { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--serif); font-weight: 600;
    font-size: var(--t-price); line-height: 1.1; margin-bottom: .625rem; }
  .range-labels span { white-space: nowrap; }
  .range-track { position: relative; height: 8px; border-radius: 4px; background: var(--stone); box-shadow: inset 0 0 0 1px var(--line); }
  .range-fill { position: absolute; top: 0; bottom: 0; left: var(--lo); width: calc(var(--hi) - var(--lo)); background: var(--marigold); border-radius: 4px; }
  .range-includes { margin: .875rem 0 0; }
  .range-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .625rem; margin: .75rem 0 0; font-size: var(--t-small); color: var(--muted); }
  .range-source { min-width: 0; }
  .range-compact .range-labels { font-size: 1.0625rem; margin-bottom: .375rem; }
  .range-compact .range-track { height: 6px; }
  .range-compact .range-meta { font-size: var(--t-micro); margin-top: .5rem; gap: .25rem .5rem; }
  /* One Marigold per screen: compact ranges in lists use Plum. The fact card keeps Marigold. */
  .range-compact .range-fill { background: var(--plum); }
  .fact-card .range-compact .range-fill { background: var(--marigold); }
  .range-empty .range-track { height: 0; background: none; box-shadow: none; border-top: 1px dashed var(--line-strong); margin: .625rem 0; }
  .range-empty-title { font-weight: 700; margin: 0; }
  .range-empty-text { margin: 0; }
  .range-compact.range-empty .range-empty-title { font-size: var(--t-small); }

  /* Cards: hospital */
  .hospital { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); padding: 1.125rem 1.25rem 1.25rem;
    transition: box-shadow var(--dur-ui) var(--ease-out), border-color 150ms ease; }
  .hospital.is-preview { border: 1px dashed var(--line-strong); background: var(--paper-warm); }
  .hospital-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
  .hospital-name { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.25; margin: 0; }
  .hospital-name a { color: var(--ink); text-decoration: none; }
  .hospital-name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
  .hospital-name a:focus-visible { outline: none; }
  .hospital:has(.hospital-name a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
  .hospital.is-preview .hospital-name a { color: var(--plum-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  .hospital-icon { color: var(--line-strong); margin-top: 2px; }
  .hospital-place { display: flex; align-items: center; gap: .3rem; font-size: var(--t-small); color: var(--muted); margin: .375rem 0 .75rem; }
  .hospital-stamps { display: flex; flex-wrap: wrap; gap: .375rem; margin: 0 0 .75rem; }
  .hospital-specs { font-size: var(--t-small); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  @media (max-width: 479.98px) { .hospital { padding: 1rem; } .hospital-specs { -webkit-line-clamp: 1; } }

  /* Cards: city */
  .cities { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (min-width: 600px) { .cities { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); } }
  @media (min-width: 1024px) { .cities { grid-template-columns: repeat(6, 1fr); } }
  .city { position: relative; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--paper); overflow: hidden;
    transition: box-shadow var(--dur-ui) var(--ease-out); }
  .city.is-selected { border: 2px solid var(--plum); }
  .city-photo { position: relative; aspect-ratio: 3 / 2; background: var(--stone); }
  .city-photo img { width: 100%; height: 100%; object-fit: cover; }
  .city-photo .photo-credit { right: .375rem; bottom: .375rem; font-size: 11px; padding: 1px 6px; max-width: calc(100% - .75rem); }
  .city-body { padding: .75rem .875rem .875rem; }
  @media (max-width: 479.98px) { .cities .city-body { padding: .625rem .75rem .75rem; } .cities .city-name { font-size: 1.1rem; } }
  .city-name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.2; margin: 0; }
  .city-name a { color: var(--ink); text-decoration: none; }
  .city-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
  .city-name a:focus-visible { outline: none; }
  .city:has(.city-name a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
  .city-state { font-size: var(--t-small); color: var(--muted); margin: .125rem 0 .375rem; }
  .city-count { font-size: var(--t-micro); margin: 0; color: var(--ink); font-weight: 700; }
  .city-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(11rem, 1fr); gap: var(--grid-gap); overflow-x: auto;
    scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: thin; }
  .city-strip .city { scroll-snap-align: start; min-width: 11rem; }
  @media (min-width: 1024px) { .city-strip { grid-auto-columns: minmax(0, 1fr); overflow: visible; } .city-strip .city { min-width: 0; } }
  @media (max-width: 767.98px) { .city-strip { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } }

  /* Cards: treatment, guide, generic */
  .treatment, .card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-2); padding: 1.125rem 1.25rem 1.25rem; background: var(--paper); position: relative; }
  .treatment-head, .card-head { display: flex; align-items: center; gap: .625rem; }
  .treatment-icon, .card-head .icon { color: var(--plum-link); }
  .treatment-name, .card-title { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.25; margin: 0; }
  .treatment-name a, .card-title a { color: var(--ink); text-decoration: none; }
  .treatment-name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-2); }
  .treatment-name a:focus-visible { outline: none; }
  .treatment:has(.treatment-name a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
  .treatment { transition: box-shadow var(--dur-ui) var(--ease-out); }
  .treatment-summary, .card-text { font-size: var(--t-small); color: var(--muted); margin: .5rem 0 1rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card-text { -webkit-line-clamp: 3; }
  .treatment-foot { margin-top: auto; padding-top: .875rem; border-top: 1px solid var(--line); }
  .treatment-foot .range { margin: 0; }
  .card > :last-child { margin-bottom: 0; }
  .treatments-grid { align-items: start; }
  .grid-note { display: flex; gap: .4rem; align-items: center; font-size: var(--t-small); color: var(--muted); margin: 0 0 1rem; }
  .grid-note .icon { color: var(--amber-ink); }
  .card-foot { margin-top: auto; }

  /* How we help */
  .help .card-head .icon { width: 24px; height: 24px; }
  .help .card-text { -webkit-line-clamp: unset; color: var(--ink); font-size: var(--t-body); }
  .help .card-foot a { font-weight: 700; display: inline-flex; align-items: center; gap: .25rem; }

  /* Trip link list */
  .trip-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; column-gap: 2rem; border-top: 1px solid var(--line); }
  @media (min-width: 768px) { .trip-list { grid-template-columns: 1fr 1fr; } }
  .trip-list li { margin: 0; border-bottom: 1px solid var(--line); }
  .trip-list a { display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: .5rem 0; color: var(--ink); text-decoration: none; }
  .trip-list a .icon:first-child { color: var(--plum-link); }
  .trip-list a .icon:last-child { margin-left: auto; color: var(--line-strong); }

  /* Journey (plan your trip index) */
  .journey { list-style: none; margin: 0 0 2rem; padding: 0; border-top: 1px solid var(--line); }
  .journey li { display: grid; grid-template-columns: 2rem 6rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 0; margin: 0; border-bottom: 1px solid var(--line); position: relative; }
  .journey-n { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--plum); font-variant-numeric: tabular-nums; }
  .journey-photo { aspect-ratio: 3 / 2; border-radius: var(--r-1); overflow: hidden; background: var(--stone); }
  .journey-photo img { width: 100%; height: 100%; object-fit: cover; }
  .journey-body .card-text { margin: .25rem 0 0; }
  .journey .card-title a::after { content: ""; position: absolute; inset: 0; }
  .journey .card-title a:focus-visible { outline: none; }
  .journey li:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
  .journey-arrow { color: var(--plum-link); }
  @media (max-width: 479.98px) { .journey li { grid-template-columns: 1.5rem 5rem minmax(0, 1fr); gap: .75rem; } .journey-arrow { display: none; } .journey .card-title { font-size: 1.0625rem; } .journey-body .card-text { -webkit-line-clamp: 2; } }
  @media (min-width: 768px) { .journey li { grid-template-columns: 2.5rem 12.5rem minmax(0, 1fr) auto; gap: 1.5rem; } }

  /* Neutrality block */
  .neutral { display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
    background: var(--stone); border-radius: var(--r-3); padding: 1.5rem; margin: 3rem 0 0; }
  .neutral-item .icon { color: var(--plum-link); width: 24px; height: 24px; }
  .neutral-item h3 { margin: .625rem 0 .25rem; font-size: var(--t-body); }
  .neutral-item p { font-size: var(--t-small); margin: 0; }

  /* Empty state */
  .empty { text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-2); padding: 2rem 1.25rem; color: var(--ink); }
  .empty > .icon { width: 28px; height: 28px; color: var(--muted); margin: 0 auto .75rem; }
  .empty p { max-width: 32rem; margin: 0 auto; }
  .empty p + p { margin-top: 1rem; }

  /* Next steps */
  .next-steps { background: var(--stone); border-radius: var(--r-3); padding: 1.5rem; margin: 3rem 0 0; }
  .next-steps h2 { font-size: var(--t-h3); margin: 0; }
  .next-steps .actions { margin-top: 1rem; }
  .help-aside { margin-top: 2rem; max-width: 40rem; }
  .help-aside p { margin: .5rem 0 0; }
  .help-aside .meta { margin-top: 1rem; }
  .contact-cards { margin: 1.5rem 0; }
  @media (min-width: 1024px) { .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .contact-cards .btn { width: 100%; }
  .sticky-cta { position: sticky; bottom: 0; z-index: 15; background: var(--paper); border-top: 1px solid var(--line); box-shadow: var(--shadow-float);
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); margin-top: 2rem; transition: opacity var(--dur-ui) ease, visibility var(--dur-ui); }
  .sticky-cta .btn { width: 100%; }
  .sticky-cta.is-hidden { opacity: 0; visibility: hidden; }
  @media (min-width: 768px) { .sticky-cta { display: none; } }

  /* Tables */
  .table-wrap { position: relative; overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: var(--r-2); }
  .table-wrap table { margin: 0; }
  .table-wrap tr:last-child td { border-bottom: 0; }
  .table-fade { position: relative; }
  @media (max-width: 767.98px) {
    .table-min { min-width: 32rem; }
    .table-fade::after { content: ""; position: absolute; top: 1px; right: 1px; bottom: 1px; width: 2rem; pointer-events: none;
      background: linear-gradient(to right, var(--paper-clear), var(--paper)); border-radius: 0 var(--r-2) var(--r-2) 0; }
  }
  .prose table { font-size: var(--t-small); }

  /* Icon lists */
  .icon-list { list-style: none; padding: 0; margin: 0 0 1rem; }
  .icon-list li { display: flex; gap: .625rem; align-items: flex-start; margin: 0; padding: .375rem 0; }
  .icon-list .icon { margin-top: 3px; color: var(--plum-link); }
  .icon-list.is-ban .icon { color: var(--rose-ink); }
  .icon-list.is-ok .icon { color: var(--verified-ink); }

  /* Article layout */
  .article-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 1.5rem; }
  .article-main { min-width: 0; max-width: 40rem; }
  .article-main > h2:first-child, .article-main > .callout:first-child { margin-top: 0; }
  .review-meta { font-size: var(--t-small); color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
  .toc { display: none; }
  @media (min-width: 1024px) {
    .article-grid { grid-template-columns: minmax(0, 1fr) 16rem; gap: 4rem; }
    .toc { display: block; }
    .toc nav { position: sticky; top: 5.5rem; border-left: 1px solid var(--line); padding-left: 1.25rem; }
    .toc h2 { font-family: var(--sans); font-size: var(--t-small); font-weight: 700; margin: 0 0 .5rem; }
    .toc ol { list-style: none; padding: 0; margin: 0; font-size: var(--t-small); }
    .toc li { margin: 0; }
    .toc a { display: block; padding: .3rem 0; color: var(--muted); text-decoration: none; line-height: 1.35; }
    .toc a:hover { color: var(--plum); text-decoration: underline; }
    .toc a.is-current { color: var(--ink); font-weight: 700; }
  }
  .prose h2 { scroll-margin-top: 6rem; }
  .prose ul li::marker { color: var(--plum-link); }
  .sources { font-size: var(--t-small); }
  .sources li { overflow-wrap: anywhere; }

  /* Checklists */
  .checklist .prose-body ul { list-style: none; padding: 0; }
  .checklist .prose-body ul li { position: relative; padding-left: 2.25rem; margin: 0; padding-block: .5rem; border-bottom: 1px solid var(--line); }
  .checklist .prose-body ul li::before { content: ""; position: absolute; left: 0; top: .75rem; width: 20px; height: 20px;
    border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper); }
  .checklist-list { list-style: none; padding: 0; margin: 0 0 1rem; }
  .checklist-list li { position: relative; padding: .5rem 0 .5rem 2.25rem; margin: 0; border-bottom: 1px solid var(--line); }
  .checklist-list li::before { content: ""; position: absolute; left: 0; top: .75rem; width: 20px; height: 20px; border: 1.5px solid var(--ink); border-radius: 3px; }
  .print-btn { flex: none; }

  /* Forms */
  .form-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 2rem; }
  @media (min-width: 1024px) { .form-layout { grid-template-columns: 14rem minmax(0, 1fr); gap: 3rem; } }
  .form-main { max-width: 40rem; min-width: 0; }
  .form-note { font-size: var(--t-small); color: var(--muted); margin: 0 0 1.5rem; }
  fieldset { border: 0; padding: 0; margin: 0 0 2.5rem; min-width: 0; }
  fieldset.step { scroll-margin-top: 6rem; }
  .step-title { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.25rem; }
  .step-title .step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--stone);
    font-family: var(--sans); font-size: 16px; font-weight: 700; flex: none; }
  .field { margin: 0 0 1.25rem; }
  .field label { display: block; font-weight: 700; margin-bottom: .375rem; }
  .hint { font-size: var(--t-small); color: var(--muted); margin: -.125rem 0 .5rem; }
  .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"],
  .field input[type="password"], .field input[type="date"], .field input[type="number"], .field select, .field textarea {
    display: block; width: 100%; min-height: 48px; padding: .625rem .75rem; border: 1px solid var(--line-strong);
    border-radius: var(--r-1); background: var(--paper); font-size: var(--t-body); line-height: 1.4; transition: border-color 150ms ease; }
  .field textarea { min-height: 8rem; resize: vertical; }
  .field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background: var(--paper) var(--select-chevron) no-repeat right .75rem center / 20px 20px; }
  .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--plum); }
  .field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--rose-ink); box-shadow: inset 0 0 0 1px var(--rose-ink); }
  .field-error { display: flex; gap: .3rem; align-items: center; color: var(--rose-ink); font-weight: 700; font-size: var(--t-small); margin: .375rem 0 0; }
  .step-title + .field-error { margin: -.75rem 0 1rem; }
  @media (prefers-contrast: more) { .field input, .field select, .field textarea { border: 2px solid var(--ink); } }
  .panel { background: var(--stone); border: 1px solid var(--line); border-radius: var(--r-2); padding: 1.25rem; }
  .panel > :last-child { margin-bottom: 0; }
  .check { display: flex; gap: .75rem; align-items: flex-start; padding: .5rem 0; cursor: pointer; line-height: 1.5; }
  .check input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--plum); cursor: pointer; }
  .check input:disabled + .check-text { color: var(--muted); }
  .check input:disabled { cursor: not-allowed; }
  .picker .check + .check, .consent .check + .check { border-top: 1px solid var(--line); }
  .picker .stamp { margin-left: .25rem; }
  @media (max-width: 479.98px) { .picker .stamp { display: table; margin: .25rem 0 0; } }
  .picker-count { font-size: var(--t-small); color: var(--muted); margin: .5rem 0 0; min-height: 1.4em; }
  .picker-count:empty { display: none; }
  .consent-intro { margin: 0 0 .5rem; }
  .consent .hint { margin: .75rem 0 0; }
  .consent .hint + .hint { margin-top: .375rem; }
  .form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: -.5rem; }
  @media (max-width: 479.98px) { .form-submit .btn { width: 100%; } }
  .form-after { font-size: var(--t-small); color: var(--muted); margin-top: 1.25rem; }
  .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

  /* Steps rail */
  .steps-nav { position: relative; }
  .steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
  .steps li { margin: 0; }
  .steps a { display: flex; align-items: center; gap: .75rem; color: var(--muted); text-decoration: none; min-height: 44px; }
  .steps .step-n { position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink); font-weight: 700; font-size: 15px; flex: none;
    transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease; }
  .steps .step-check { display: none; }
  .steps .is-done .step-n { background: var(--plum); border-color: var(--plum); color: var(--paper); }
  .steps .is-done .step-num { display: none; }
  .steps .is-done .step-check { display: block; width: 16px; height: 16px; }
  .steps .is-active .step-n { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }
  .steps .is-active a { color: var(--ink); font-weight: 700; }
  @media (max-width: 1023.98px) {
    .steps-nav { padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
    .steps { display: flex; align-items: center; }
    .steps li { display: flex; align-items: center; flex: 1 1 auto; }
    .steps li:last-child { flex: 0 0 auto; }
    .steps li:not(:last-child)::after { content: ""; flex: 1 1 auto; height: 1.5px; background: var(--line); margin: 0 .5rem; min-width: .75rem; }
    .steps a { min-width: 44px; justify-content: center; }
    .steps .step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .steps .is-active .step-label { position: absolute; left: 0; bottom: 0; width: auto; height: auto; clip-path: none; font-size: var(--t-small); }
  }
  @media (min-width: 1024px) {
    .steps-nav { position: sticky; top: 5.5rem; align-self: start; }
    .steps { border-left: 1.5px solid var(--line); margin-left: 13px; }
    .steps a { margin-left: -14.75px; padding: .25rem 0; }
    .steps li + li { margin-top: .5rem; }
  }

  /* Facts list (status, contact) */
  .facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 1rem 0 1.5rem; border-top: 1px solid var(--line); }
  .facts > div { display: grid; grid-template-columns: 1fr; gap: .125rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
  @media (min-width: 480px) { .facts > div { grid-template-columns: 10rem 1fr; gap: 1rem; } }
  .facts dt { font-size: var(--t-small); color: var(--muted); display: flex; align-items: center; align-self: start; gap: .4rem; padding-top: .15rem; }
  .facts dt .icon { color: var(--plum-link); }
  .facts dd { margin: 0; }
  .facts dd .stamp { margin-bottom: .375rem; }
  .city-facts { max-width: 40rem; margin-top: 1.5rem; }

  /* Feature rows */
  .features { display: grid; gap: 0; margin: 2rem 0; border-top: 1px solid var(--line); }
  .feature { display: grid; grid-template-columns: 2.5rem 1fr; gap: .25rem 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
  .feature > .icon { width: 28px; height: 28px; color: var(--plum-link); grid-row: span 2; margin-top: 2px; }
  .feature h3 { margin: 0; font-size: var(--t-body); }
  .feature p { margin: 0; }

  /* Process list (assisted) */
  .process { list-style: none; padding: 0; margin: 0; }
  .process li { display: grid; grid-template-columns: 2rem 1fr; gap: .125rem 1rem; padding: 1rem 0; margin: 0; border-bottom: 1px solid var(--line); }
  .process li:first-child { padding-top: 0; }
  .process .n { grid-row: span 2; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--plum);
    color: var(--paper); font-weight: 700; font-size: 15px; }
  .process strong { display: block; }
  .process p { margin: 0; }

  /* Service card */
  .service-card { border: 1px solid var(--line); border-top: 4px solid var(--marigold); border-radius: var(--r-3); padding: 1.5rem; max-width: 28rem; background: var(--paper); }
  .service-card h2 { margin: 0 0 .75rem; }
  .service-price { font-family: var(--serif); font-weight: 600; font-size: var(--t-price); line-height: 1.1; margin: 0; font-variant-numeric: tabular-nums; }
  .service-price-note { color: var(--muted); font-size: var(--t-small); margin: .25rem 0 1rem; }
  .service-fee-tbc { font-size: var(--t-h3); font-weight: 700; margin: 0 0 .25rem; }
  .service-rule { display: flex; gap: .625rem; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 1rem; margin: 1rem 0 0; font-size: var(--t-small); }
  .service-rule .icon { color: var(--rose-ink); margin-top: 2px; }
  .hosp-side .service-card .btn { width: 100%; }
  .hosp-side .service-card h3 { font-size: var(--t-body); margin: 1.5rem 0 .25rem; }
  .doctors-grid { margin-top: 0; }
  .doctors-grid .hosp-side { margin-top: 2.5rem; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
  .split { margin-top: 2.5rem; }
  .split > section > h2:first-child { margin-top: 0; }
  @media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr) 26rem; gap: 3.5rem; } }

  /* Tier cards */
  .tiers { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); margin: 1.25rem 0 0; }
  .tier { border: 1px solid var(--line); border-radius: var(--r-3); padding: 1.5rem; background: var(--paper); }
  .tier.is-key { border: 2px solid var(--plum); }
  .tier h3 { font-family: var(--serif); font-weight: 600; font-size: var(--t-h3); margin: 0 0 .5rem; }
  .tier-price { font-family: var(--serif); font-weight: 600; font-size: var(--t-price); line-height: 1.1; margin: 0; font-variant-numeric: tabular-nums; }
  .tier-note { font-size: var(--t-small); color: var(--muted); margin: .25rem 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
  .tier-plus { font-size: var(--t-small); font-weight: 700; margin: 0 0 .25rem; }
  .tier .icon-list li { padding: .25rem 0; font-size: var(--t-small); }
  .tier .icon-list .icon { width: 18px; height: 18px; margin-top: 2px; }

  /* Diagram */
  .diagram { max-width: 40rem; margin: 0 0 2rem; }
  .diagram text { font-family: var(--sans); }
  .diagram svg { width: 100%; height: auto; overflow: visible; }
  .dg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
  .dg-wide { display: none; }
  .dg-tall { max-width: 22rem; }
  @media (min-width: 600px) { .dg-wide { display: block; } .dg-tall { display: none; } }
  .dg-box { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
  .dg-site { fill: var(--stone); }
  .dg-name { font-family: var(--sans); font-size: 15px; font-weight: 700; fill: var(--ink); }
  .dg-label { font-family: var(--sans); font-size: 13px; fill: var(--ink); }
  .dg-label-muted { fill: var(--muted); }
  .dg-label-link { fill: var(--plum-link); font-weight: 700; }
  .dg-line { stroke: var(--ink); stroke-width: 1.5; fill: none; }
  .dg-link { stroke: var(--plum-link); }
  .dg-dash { stroke-dasharray: 5 4; }
  .dg-head { fill: var(--ink); }
  .dg-head-link { fill: var(--plum-link); }
  .dg-no { fill: var(--paper); stroke: var(--plum-link); stroke-width: 2; }

  /* Hospital page */
  .verify-panel { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; background: var(--stone); border-radius: var(--r-3); padding: 1rem 1.25rem; margin: 1.5rem 0 0; }
  .verify-panel p { margin: 0; flex: 1 1 24rem; }
  .verify-panel .verify-due { font-size: var(--t-small); color: var(--muted); flex-basis: 100%; }
  .hosp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 1rem; }
  @media (min-width: 1024px) { .hosp-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3.5rem; } .hosp-side { position: sticky; top: 5.5rem; align-self: start; } }
  .hosp-main > h2:first-child { margin-top: 1.5rem; }
  .spec-list { list-style: none; padding: 0; margin: 0 0 1rem; border-top: 1px solid var(--line); }
  .spec-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0; padding: .625rem 0; border-bottom: 1px solid var(--line); }
  .link-list { list-style: none; padding: 0; margin: 0; }
  .link-list li { margin: 0; }
  .link-list a { display: inline-flex; align-items: center; gap: .25rem; min-height: 40px; }
  .side-card { border: 1px solid var(--line); border-radius: var(--r-3); padding: 1.25rem; }
  .side-card h2 { font-size: var(--t-h3); margin: 0 0 .75rem; }
  .side-card .empty { padding: 1.25rem 1rem; }
  .side-card .btn { width: 100%; margin-top: 1rem; font-size: 16px; padding-inline: 1rem; }
  .side-meta { font-size: var(--t-small); color: var(--muted); margin: 1rem 0 0; overflow-wrap: anywhere; }
  .desk { margin: 0 0 1rem; }
  .desk p { margin: 0 0 .25rem; display: flex; gap: .5rem; align-items: center; overflow-wrap: anywhere; }
  .desk .icon { color: var(--plum-link); }

  /* Results bar */
  .filters { background: var(--stone); border-radius: var(--r-2); padding: 1rem; display: grid; gap: .25rem 1rem; margin: 2rem 0 1rem; }
  .filters .field { margin: 0 0 .75rem; }
  .filters .btn { width: 100%; }
  @media (min-width: 768px) { .filters { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; } .filters .field { margin: 0; } .filters .btn { width: auto; } }
  .active-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
  .active-filters a { display: inline-flex; align-items: center; gap: .375rem; background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink);
    border-radius: var(--r-pill); padding: .25rem .5rem .25rem .875rem; font-size: var(--t-small); text-decoration: none; min-height: 36px; }
  .active-filters a .icon { color: var(--muted); }
  .results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin: 0 0 1rem; font-size: var(--t-small); color: var(--muted); }
  .results-bar p { margin: 0; }
  .key { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
  .key span.key-item { display: inline-flex; align-items: center; gap: .375rem; }

  /* Costs */
  .cost-key { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; font-size: var(--t-small); color: var(--muted); margin: 1.5rem 0; }
  .cost-key span.key-item { display: inline-flex; gap: .5rem; align-items: center; }
  .costs-table td { vertical-align: middle; }
  .costs-table .range { margin: 0; min-width: 14rem; }
  .costs-table .t-name { font-family: var(--serif); font-weight: 600; font-size: 1.125rem; }
  .costs-table .t-source { font-size: var(--t-small); color: var(--muted); }
  .costs-table .t-source .stamp { margin-bottom: .375rem; }
  .pending-row th { background: none; font-family: var(--serif); font-weight: 600; font-size: 1.125rem; vertical-align: middle; }
  .pending-row p { margin: 0; }
  .pending-note { font-size: var(--t-small); color: var(--muted); }
  .legend-note { color: var(--muted); }
  @media (max-width: 767.98px) {
    .costs-wrap { border: 0; overflow: visible; }
    .costs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .costs-table, .costs-table tbody { display: block; }
    .costs-table tr { display: grid; gap: .75rem; border: 1px solid var(--line); border-radius: var(--r-2); padding: 1rem; margin-bottom: .75rem; }
    .costs-table td, .costs-table th { display: block; padding: 0; border: 0; }
    .costs-table td::before { content: attr(data-label); display: block; font-size: var(--t-micro); color: var(--muted); margin-bottom: .25rem; }
    .costs-table td:empty { display: none; }
    .costs-table td:first-child::before { content: none; }
    .costs-table .range { min-width: 0; }
  }
  .price-panel { border: 1px solid var(--line); border-radius: var(--r-3); padding: 1.5rem; margin: 1.5rem 0; max-width: 44rem; }
  .price-panel .range { margin: 0; }
  @media (max-width: 479.98px) { .price-panel { padding: 1rem 1.125rem; } .price-panel .range-labels { font-size: 1.1875rem; } }
  .price-panel + .price-panel { margin-top: 1rem; }

  /* Footer */
  .site-footer { background: var(--ink); color: var(--footer-text); padding: 3rem 0 2rem; margin-top: 2rem; font-size: var(--t-small); }
  .site-footer a { color: var(--paper); text-decoration: none; }
  .site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
  .site-footer :focus-visible { outline-color: var(--focus-on-dark); }
  .footer-cols { display: grid; gap: 2rem; grid-template-columns: 1fr; }
  @media (min-width: 600px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
  @media (min-width: 1024px) { .footer-cols { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.5fr; gap: 2.5rem; } .footer-about { grid-column: auto; padding-right: 1rem; } }
  .site-footer .footer-contact a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0; }
  .footer-contact .icon { color: var(--footer-text); }
  .footer-note { margin: .5rem 0 0; }
  .site-footer h2 { font-family: var(--sans); font-size: var(--t-small); font-weight: 700; color: var(--paper); margin: 0 0 .75rem; }
  .site-footer ul { list-style: none; padding: 0; margin: 0; }
  .site-footer li { margin: 0; }
  .site-footer li a { display: inline-block; padding: .3rem 0; }
  .brand-footer { color: var(--paper); margin-bottom: 1rem; }
  .brand-footer .mark { color: var(--paper); }
  .brand-footer .wm-2 { color: var(--footer-text); }
  .site-footer .brand-footer:hover { text-decoration: none; color: var(--paper); }
  .footer-about p { max-width: 30rem; }
  .footer-about p a { text-decoration: underline; text-underline-offset: 3px; }
  .footer-base { margin-top: 2.5rem; }
  .footer-base p { border-top: 1px solid var(--footer-rule); padding-top: 1.25rem; margin: 0; }

  /* Admin */
  .admin-header { background: var(--ink); color: var(--paper); }
  .admin-header .header-row { min-height: 56px; }
  .admin-header .brand { color: var(--paper); }
  .admin-header .brand .mark { color: var(--paper); }
  .admin-header .wm-2 { color: var(--footer-text); }
  .admin-header :focus-visible { outline-color: var(--focus-on-dark); }
  .admin-chip { background: var(--stone); color: var(--ink); border-radius: var(--r-1); padding: 2px 8px; font-size: var(--t-micro); font-weight: 700; margin-left: .5rem; }
  .admin-nav { border-bottom: 1px solid var(--line); background: var(--paper); }
  .admin-nav .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; padding-block: .5rem; }
  .admin-nav a { color: var(--ink); padding: .25rem 0; }
  .admin-nav form { margin-left: auto; }
  .admin-nav button { background: none; border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: .25rem .875rem; cursor: pointer; }
  .admin-main { padding-top: 1.5rem; }
  .admin-main h1 { margin-bottom: 1rem; }
  .stat { font-family: var(--serif); font-weight: 600; font-size: var(--t-h1); line-height: 1; margin: 0 0 .5rem; font-variant-numeric: tabular-nums; }
  .badge { display: inline-block; background: var(--stone); border-radius: var(--r-1); padding: 1px 8px; font-size: var(--t-micro); }
  .meta { font-size: var(--t-small); color: var(--muted); }
  .login-card { max-width: 24rem; margin: 3rem auto; border: 1px solid var(--line); border-radius: var(--r-3); padding: 2rem; }
  .login-card .mark { width: 32px; height: 32px; color: var(--plum); margin-bottom: 1rem; }
  .login-card h1 { font-size: var(--t-h2); margin: 0 0 1.25rem; }
  .login-card .btn { width: 100%; }

  /* Hover, for fine pointers only */
  @media (hover: hover) and (pointer: fine) {
    .brand:hover { color: var(--ink); }
    .brand:hover .wm-1 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
    .nav a:hover { color: var(--plum); border-bottom-color: var(--line); }
    .nav a[aria-current="page"]:hover { border-bottom-color: var(--plum); }
    .photo-credit:hover { color: var(--paper); text-decoration: underline; }
    .btn-primary:hover, .btn:not(.btn-secondary):not(.btn-quiet):not(.btn-ghost):hover { background: var(--plum-hover); color: var(--paper); }
    .btn-secondary:hover, .btn-ghost:hover { background: var(--stone); color: var(--plum); }
    .btn-quiet:hover { color: var(--plum); text-decoration-thickness: 2px; }
    .btn-danger:hover { background: var(--rose-soft); color: var(--rose-ink); }
    .fact-card:hover .fact-title span { text-decoration: underline; text-underline-offset: 3px; }
    .hospital:hover { box-shadow: var(--shadow-card-hover); border-color: var(--line-strong); }
    .hospital:hover .hospital-name a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
    .city:hover { box-shadow: var(--shadow-card-hover); }
    .city:hover .city-name a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
    .treatment:hover { box-shadow: var(--shadow-card-hover); }
    .treatment:hover .treatment-name a, .card-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
    .trip-list a:hover span { text-decoration: underline; text-underline-offset: 3px; }
    .trip-list a:hover .icon:last-child { color: var(--plum); }
    .active-filters a:hover { border-color: var(--plum); }
    .active-filters a:hover .icon { color: var(--plum); }
  }
}

@layer pages {
  .home-section { margin-top: 4.5rem; }
  .home-section > h2, .home-section .section-head h2 { margin: 0; }
  .home-section .section-head { margin-bottom: 1.25rem; }
  .home-callouts { display: grid; gap: 1rem; margin-top: 2rem; }
  @media (min-width: 768px) { .home-callouts { grid-template-columns: 1fr 1fr; } .home-callouts .callout { margin: 0; max-width: none; } }
  .home-callouts .callout { margin: 0; }
  .show-all { display: inline-flex; margin-top: 1.25rem; }
  .error-page { padding-block: 3rem 1rem; }
  .city-section { margin-top: 2rem; }
  .hosp-desc { margin: 1.5rem 0 0; max-width: 40rem; }
  .credits-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
  .credits-list li { margin: 0; padding: .625rem 0; border-bottom: 1px solid var(--line); }
  .credits-list .page-label { font-weight: 700; }
  .status-hospitals { list-style: none; padding: 0; border-top: 1px solid var(--line); }
  .status-hospitals li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin: 0; padding: .625rem 0; border-bottom: 1px solid var(--line); }
  .withdraw { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: .5rem; }
  .fee-panel { background: var(--stone); border-radius: var(--r-2); padding: 1rem 1.25rem; margin: 2rem 0 1rem; }
  .fee-panel p { margin: 0; }
}

@layer utilities {
  .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .show-sm { display: none; }
  @media (max-width: 479.98px) { .hide-sm { display: none; } .show-sm { display: inline; } }
  .show-md { display: none; }
  @media (max-width: 767.98px) { .hide-md { display: none; } .show-md { display: inline; } }
  @media (min-width: 1024px) and (max-width: 1199.98px) { .hide-md { display: none; } .show-md { display: inline; } }
  @media (min-width: 1024px) { .hide-lg { display: none; } }
  @media (max-width: 1023.98px) { .show-lg { display: none; } }
  .print-only { display: none; }
  .muted { color: var(--muted); }
  .small { font-size: var(--t-small); }
}

/* Reduced motion: no press scale, no menu movement. Colour and opacity changes stay. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; scroll-behavior: auto !important; }
  .btn:active, .fact-card:active { transform: none; }
  .menu[open] .menu-panel { animation: none; }
}
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }

/* Print: checklists and guides */
@page { margin: 16mm 14mm 18mm; }
@media print {
  .no-print, .site-header, .assure, .site-footer, .crumbs, .band, .steps-nav, .next-steps, .sticky-cta, .btn, .toc, .photo-credit { display: none !important; }
  html { font-size: 11pt; }
  body { color: var(--print-ink); background: var(--paper); font-family: var(--sans); }
  h1, h2, h3 { color: var(--print-ink); break-after: avoid; }
  .page-head { padding-top: 0; }
  .article-grid { display: block; margin-top: .5rem; }
  .article-main { max-width: none; }
  .callout { background: none; border: 1px solid var(--print-ink); }
  .checklist .prose-body ul li, .checklist-list li { break-inside: avoid; border-color: var(--print-rule); }
  .checklist .prose-body ul li::before, .checklist-list li::before { border-color: var(--print-ink); }
  a { color: var(--print-ink); }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; overflow-wrap: anywhere; }
  .print-only { display: block; margin-top: 2rem; font-size: 9pt; border-top: 1px solid var(--print-rule); padding-top: .5rem; }
}
