/* Precision Health — ph-md · hospital-grade design system
   Audience: oncology patients & families (45+, often anxious, on phones) and referring clinicians.
   Language: clinical white, brand blues, precise grid, mono "instrument" labels, one clear action. */

@font-face { font-family: "Plex"; src: url("/fonts/plex-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/fonts/plex-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/fonts/plex-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/fonts/plex-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --navy: #00214a;
  --navy-2: #06305f;
  --blue: #0067b8;      /* primary action, 5.9:1 on white */
  --blue-500: #0486da;  /* brand blue: large text & graphics */
  --sky-100: #e9f3fc;
  --sky-50: #f4f9fe;
  --gold: #dbbe6c;
  --ink: #0d1b2e;
  --muted: #4d5f77;
  --line: #d9e4ef;
  --line-2: #c4d4e5;
  --sans: "Plex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 14px;
  --r-lg: 22px;
  --shadow-1: 0 1px 2px rgba(0, 33, 74, .06);
  --shadow-2: 0 2px 6px rgba(0, 33, 74, .06), 0 18px 40px -12px rgba(0, 33, 74, .18);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --head-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.125rem/1.68 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3, h4, h5 { color: var(--navy); font-weight: 600; line-height: 1.14; letter-spacing: -.018em; margin: 0 0 .55em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.75rem); font-weight: 700; letter-spacing: -.028em; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4, h5 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1.05em; max-width: 72ch; }
li { margin-bottom: .35em; }
ul li::marker { color: var(--blue-500); }
strong { font-weight: 600; color: var(--navy); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 .8rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--gold); }
.eyebrow:has(.pulse)::before { display: none; }
blockquote { margin: 1.4em 0; padding: 1em 1.3em; border-left: 3px solid var(--blue-500); background: var(--sky-50); border-radius: 0 var(--r) var(--r) 0; }
table { border-collapse: collapse; width: 100%; margin: 1em 0 1.5em; font-size: 1rem; }
th, td { border-bottom: 1px solid var(--line); padding: .75em .6em; text-align: left; vertical-align: top; }
th { font: 500 .8rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Section index: clinical numbering on content headings */
main { counter-reset: sec; }
.block > .wrap > h2:first-child::before, .block > .wrap > div:first-child > h2:first-child::before {
  counter-increment: sec; content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 14px;
  font: 500 .8rem/1 var(--mono); letter-spacing: .12em; color: var(--blue); padding-left: 28px;
  background: linear-gradient(var(--gold), var(--gold)) left center / 18px 2px no-repeat;
}

/* ---------- Buttons ---------- */
.btn, input[type="submit"].btn {
  --bg: var(--blue); --fg: #fff; --bd: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: .7em 1.45em;
  border-radius: 12px; border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg);
  font: 600 1.02rem/1.2 var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.btn:hover { --bg: var(--navy); --bd: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 33, 74, .5); transform: translateY(-1px); }
.btn-ghost { --bg: #fff; --fg: var(--navy); --bd: var(--line-2); }
.btn-ghost:hover { --bg: var(--sky-50); --bd: var(--navy); color: var(--navy); }
.btn-sm { min-height: 44px; padding: .5em 1.05em; font-size: .97rem; }
.btn-lg { min-height: 58px; padding: .8em 1.7em; font-size: 1.08rem; }
.btn-light { --bg: #fff; --fg: var(--navy); --bd: #fff; }
.btn-light:hover { --bg: var(--gold); --bd: var(--gold); color: var(--navy); }
.btn-outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { --bg: rgba(255, 255, 255, .1); --bd: #fff; }
.btn .arr, .doc-more .arr, .tile .arr { width: 18px; height: 18px; flex: none; }

/* ---------- Utility + header ---------- */
.utility { background: var(--navy); color: #b9c8db; font-size: .88rem; }
.utility-row { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.utility p { margin: 0; display: flex; align-items: center; gap: 8px; font: 500 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.utility .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(219, 190, 108, .2); }
.utility ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.utility li { margin: 0; }
.utility a { color: #dbe5f1; text-decoration: none; }
.utility a:hover { color: #fff; }

.site-head { position: sticky; top: 0; z-index: 80; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: var(--head-h); }
.logo img { width: 210px; }
.menu { margin-left: auto; }
.menu > summary { display: none; }
.menu::details-content { display: contents; }
.nav { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; max-width: none; }
.nav li { margin: 0; position: relative; }
.nav a, .nav summary { position: relative; display: block; padding: 10px 13px; border-radius: 10px; color: var(--navy); text-decoration: none; font-weight: 500; font-size: 1rem; cursor: pointer; list-style: none; white-space: nowrap; transition: background .15s; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .7; }
.nav a:hover, .nav summary:hover, .nav details[open] > summary { background: var(--sky-50); }
.nav a[aria-current="page"], .nav summary.is-on { color: var(--blue); }
.nav > li > a[aria-current="page"]::after, .nav summary.is-on::before { content: ""; position: absolute; left: 13px; right: 13px; bottom: -16px; height: 2px; background: var(--blue-500); border-radius: 2px; }
.has-sub ul { position: absolute; top: calc(100% + 14px); left: -6px; min-width: 290px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-2); }
.has-sub ul a { font-weight: 400; padding: 11px 14px; }
.has-sub ul a::before { content: "→"; color: var(--blue-500); margin-right: 10px; font-family: var(--mono); }
.head-cta { display: flex; gap: 10px; }
.nav-mobile-cta { display: none; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--sky-50) 100%); border-bottom: 1px solid var(--line); }
.hero-grid-bg, .page-head-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(4, 134, 218, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(4, 134, 218, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero-row { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(120px, 12vw, 170px); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.04; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--blue-500); }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--blue-500); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hero-visual { position: relative; }
.hero-rings { position: absolute; inset: -12% -18% -12% -6%; pointer-events: none;
  background: radial-gradient(circle at 55% 50%, transparent 39%, rgba(4, 134, 218, .16) 39.2%, transparent 39.6%, transparent 49%, rgba(219, 190, 108, .35) 49.2%, transparent 49.6%, transparent 59%, rgba(4, 134, 218, .1) 59.2%, transparent 59.6%); }
.hero-photo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--sky-100); box-shadow: 0 40px 80px -30px rgba(0, 33, 74, .45); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 33, 74, .35)); }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(4, 134, 218, .16) 70%, rgba(140, 210, 255, .85) 99%, transparent);
  animation: scan 5.5s cubic-bezier(.6, 0, .4, 1) infinite; mix-blend-mode: screen; }
@keyframes scan { 0% { transform: translateY(-130px); } 60%, 100% { transform: translateY(640px); } }
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 16px; box-shadow: var(--shadow-2); color: var(--navy); text-decoration: none; line-height: 1.25;
  animation: float 7s ease-in-out infinite; }
.float strong { display: block; font-size: .98rem; }
.float small { display: block; font-size: .82rem; color: var(--muted); }
.float:hover { color: var(--navy); border-color: var(--blue-500); }
.float-a { left: -40px; bottom: 16%; }
.float-b { right: -28px; top: 9%; animation-delay: -2.3s; }
.float-c { right: 6%; bottom: -26px; animation-delay: -4.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--sky-100); color: var(--blue); display: grid; place-items: center; flex: none; }
.float-ico svg, .tile-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.faces { display: flex; }
.faces img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: var(--sky-100); }
.faces img + img { margin-left: -12px; }

/* Finder panel overlapping the hero */
.finder { position: relative; z-index: 3; margin-top: -84px; }
.finder-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 22px; }
.finder-title { font: 500 .8rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 4px 6px 16px; }
.finder-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); background: var(--sky-50); transition: border-color .18s, background .18s, transform .18s; }
.tile strong { display: block; font-size: 1.04rem; }
.tile small { display: block; color: var(--muted); font-size: .88rem; }
.tile .arr { margin-left: auto; color: var(--blue); transition: transform .18s; }
.tile:hover { background: #fff; border-color: var(--blue-500); color: var(--navy); transform: translateY(-2px); }
.tile:hover .arr { transform: translateX(3px); }
.tile-ico { width: 48px; height: 48px; flex: none; border-radius: 14px; background: #fff; color: var(--blue); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }

/* Logos & stats */
.logos { padding: 44px 0 8px; }
.logos-row { display: flex; align-items: center; gap: 28px 48px; flex-wrap: wrap; justify-content: center; }
.logos .eyebrow { margin: 0; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 44px; }
.logo-row img { max-height: 30px; width: auto; filter: grayscale(1) contrast(.9); opacity: .6; transition: opacity .2s, filter .2s; }
.logo-row img:hover { opacity: 1; filter: none; }
.stats { padding: 44px 0; }
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; text-decoration: none; color: var(--navy); border-right: 1px solid var(--line); transition: background .18s; }
.stat:last-child { border-right: 0; }
.stat:hover { background: var(--sky-50); color: var(--navy); }
.stat-n { font: 500 clamp(2.2rem, 3.6vw, 3rem)/1 var(--mono); color: var(--blue); letter-spacing: -.04em; }
.stat-l { font-size: .98rem; color: var(--muted); }

/* ---------- Page header (inner pages) ---------- */
.page-head { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky-50), #fff); border-bottom: 1px solid var(--line); padding: 26px 0 clamp(40px, 6vw, 72px); }
.page-head::after { content: ""; position: absolute; right: -90px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%); pointer-events: none; opacity: .07;
  background: url("/brand/PH_icona.svg") center / contain no-repeat; }
.page-head .wrap { position: relative; }
.page-head h1 { max-width: 22ch; margin-bottom: .35em; }
.page-lead { font-size: 1.22rem; color: var(--muted); max-width: 62ch; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 clamp(28px, 4vw, 48px); padding: 0; max-width: none; font-size: .92rem; }
.crumbs li { margin: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); font-family: var(--mono); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Blocks ---------- */
.block { padding: clamp(56px, 8vw, 104px) 0; }
.tone-sky { background: var(--sky-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tone-navy { position: relative; background: var(--navy); color: #d3deec; overflow: hidden; }
.tone-navy::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.tone-navy .wrap { position: relative; }
.tone-navy h1, .tone-navy h2, .tone-navy h3, .tone-navy h4, .tone-navy strong { color: #fff; }
.tone-navy a:not(.btn) { color: #a8d8fa; }
.tone-navy .eyebrow, .tone-navy h2::before { color: #8fcaf5 !important; }
.block .wrap > * + * { margin-top: 1.15em; }
.head-split { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.head-split h2 { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split > * + * { margin-top: 0 !important; }
.split img:not(.icon) { border-radius: var(--r-lg); width: 100%; object-fit: cover; box-shadow: var(--shadow-1); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; gap: .35em; min-width: 0; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .18s, box-shadow .18s, transform .18s; }
.card::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue-500); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card:hover::before { transform: scaleX(1); }
.card img:not(.icon) { border-radius: 12px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: .5em; background: var(--sky-100); }
.card h2, .card h3, .card h4 { font-size: 1.22rem; margin: .15em 0; }
.card h2::before, .card h3::before { display: none !important; }
.card p { font-size: 1rem; color: var(--muted); margin: 0 0 .6em; }
.cards .card :is(p, div):not(:has(*)) { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card a:not(.btn) { font-weight: 600; text-decoration: none; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card-link a:first-of-type::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.card-link:hover :is(h2, h3, h4) { color: var(--blue); }
img.icon { width: 46px; height: 46px; object-fit: contain; padding: 11px; box-sizing: content-box; border-radius: 13px; background: var(--sky-100); }
.tone-navy .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
.tone-navy .card p { color: #b9c8db; }

.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); text-decoration: none; font: 500 .85rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.jump a:hover { border-color: var(--blue-500); color: var(--blue); }

/* FAQ */
.faqs { display: grid; gap: 10px; max-width: 920px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .18s, box-shadow .18s; }
.faq[open] { border-color: var(--blue-500); box-shadow: var(--shadow-1); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 64px 20px 22px; font-weight: 600; color: var(--navy); font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 9px; background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%230067b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 22px 20px; color: var(--ink); }
.faq + .faq { margin-top: 0 !important; }
.panes { display: grid; gap: 18px; }
.pane { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }

/* ---------- Doctors ---------- */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.doc { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .18s, box-shadow .18s, transform .18s; }
.doc:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.doc-photo { aspect-ratio: 1 / 1; background: linear-gradient(180deg, var(--sky-100), #fff); overflow: hidden; }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .4s; }
.doc:hover .doc-photo img { transform: scale(1.04); }
.doc-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.doc h3 { font-size: 1.18rem; margin: 2px 0 0; }
.doc h3 a { color: var(--navy); text-decoration: none; }
.doc h3 a::after { content: ""; position: absolute; inset: 0; }
.doc:hover h3 a { color: var(--blue); }
.doc-role { font: 500 .8rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.doc-bio { font-size: .96rem; color: var(--muted); margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.doc-more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 10px; color: var(--blue); font-weight: 600; font-size: .96rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chip { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 8px; background: var(--sky-100); color: var(--blue); font: 500 .76rem/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; border: 1px solid transparent; }
.chip-solid { background: var(--navy); color: #fff; }
.page-head .chips { margin-top: 18px; }

.filter { display: grid; gap: 14px; margin: 26px 0 26px; }
.search { position: relative; display: block; max-width: 640px; }
.search svg { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; min-height: 60px; padding: 0 20px 0 52px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; font: inherit; font-size: 1.08rem; color: var(--ink); box-shadow: var(--shadow-1); }
.search input:focus { outline: 3px solid rgba(4, 134, 218, .22); border-color: var(--blue); }
.chips-filter .chip { cursor: pointer; background: #fff; border-color: var(--line); color: var(--navy); padding: 9px 14px; font-size: .8rem; }
.chips-filter .chip:hover { border-color: var(--blue-500); }
.chips-filter .chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-count { margin: 0; font: 500 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.filter-empty { padding: 28px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); }
[data-hidden] { display: none !important; }

/* Doctor profile */
.profile { position: sticky; top: calc(var(--head-h) + 24px); display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.profile img:not(.icon) { border-radius: 16px; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 20%; background: var(--sky-100); box-shadow: none; }
.profile .cards { display: flex; flex-wrap: wrap; gap: 6px; }
.profile .card { padding: 5px 10px; border-radius: 8px; background: var(--sky-100); border: 0; font: 500 .76rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--blue); }
.profile .card::before { display: none; }
.profile .card:hover { transform: none; box-shadow: none; }
.profile .btn { width: 100%; --bg: var(--blue); --fg: #fff; --bd: var(--blue); }
.split:has(> .profile) { grid-template-columns: minmax(260px, 340px) 1fr; }
.split:has(> .profile) > :last-child h2 { font-size: 1.5rem; padding-top: 1.2em; margin-top: .4em; border-top: 1px solid var(--line); }
.split:has(> .profile) > :last-child h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

/* Tests catalog */
.tests { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.test { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .18s, box-shadow .18s, transform .18s; }
.test:hover { border-color: var(--blue-500); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.test-cat { margin: 0; font: 500 .74rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.test h3 { font-size: 1.12rem; margin: 2px 0 4px; }
.test h3 a { color: var(--navy); text-decoration: none; }
.test h3 a::after { content: ""; position: absolute; inset: 0; }
.test p:not(.test-cat) { font-size: .96rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Forms */
.form-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.form-layout > * + * { margin-top: 0 !important; }
.form-layout a:has(> img.icon) { display: flex; align-items: center; gap: 12px; margin: 10px 0; text-decoration: none; font-weight: 600; }
.tone-navy img.icon { background: rgba(255, 255, 255, .1); }
.form { display: grid; gap: 14px; padding: clamp(22px, 4vw, 36px); background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .4); }
.tone-white .form, .tone-sky .form { box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.form > * + * { margin-top: 0 !important; }
.form label { font-weight: 600; color: var(--navy); font-size: .98rem; }
.form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), .form select, .form textarea {
  width: 100%; min-height: 54px; padding: 12px 14px; margin-top: 6px; border: 1.5px solid var(--line-2); border-radius: 12px; font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff; }
.form textarea { min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: 3px solid rgba(4, 134, 218, .2); outline-offset: 0; }
.form input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--blue); margin-right: 8px; vertical-align: -5px; }
.form input[type="submit"] { width: 100%; }
.form-note { font-size: .95rem; color: var(--navy); background: var(--sky-100); border-radius: 10px; padding: 12px 14px; }
iframe { width: 100%; min-height: 380px; border: 0; border-radius: var(--r-lg); }

/* ---------- CTA band + footer ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--blue) 0%, var(--navy) 70%); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.cta-band::after { content: ""; position: absolute; right: -140px; top: 50%; width: 520px; height: 520px; margin-top: -260px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 0 0 60px rgba(255, 255, 255, .03), 0 0 0 120px rgba(255, 255, 255, .02); }
.cta-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; max-width: 22ch; }
.cta-band .eyebrow { color: #bfe3fb; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-foot { background: #00183a; color: #b2c2d6; font-size: .98rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 36px; padding-top: 64px; padding-bottom: 44px; }
.foot-brand img { width: 210px; margin-bottom: 18px; }
.site-foot h2 { font: 500 .76rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot a { color: #e3ebf5; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; color: #8ea2bb; }
.foot-legal p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .head-cta .btn-ghost { display: none; }
  .finder-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 1040px) {
  :root { --head-h: 66px; }
  .utility ul { display: none; }
  .logo img { width: 176px; }
  .menu { order: 3; margin-left: 0; }
  .head-cta { margin-left: auto; }
  .menu > summary { display: grid; gap: 5px; width: 48px; height: 48px; place-content: center; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; list-style: none; }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu > summary span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu[open] > summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu[open] > summary span:nth-child(2) { opacity: 0; }
  .menu[open] > summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu > nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); max-height: calc(100vh - 66px); overflow: auto; padding: 8px var(--gutter) 24px; }
  .menu:not([open]) > nav { display: none; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav a, .nav summary { padding: 16px 4px; font-size: 1.12rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav > li > a[aria-current="page"]::after, .nav summary.is-on::before { display: none; }
  .has-sub ul { position: static; box-shadow: none; border: 0; padding: 0 0 8px 8px; min-width: 0; }
  .nav-mobile-cta { display: grid; gap: 10px; margin-top: 18px; }
  .hero-row { grid-template-columns: 1fr; padding-bottom: 120px; }
  .hero-visual { max-width: 560px; margin: 10px auto 0; width: 100%; }
  .float-a { left: -6px; } .float-b { right: -6px; }
  .split, .form-layout, .split:has(> .profile) { grid-template-columns: 1fr; }
  .profile { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .utility p { font-size: .66rem; }
  .head-cta .btn { padding: .5em .9em; }
  .logo img { width: 150px; }
  .hero h1 { font-size: 2.35rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .float { padding: 9px 12px 9px 9px; }
  .float small { display: none; }
  .float-b { top: -14px; }
  .float-c { display: none; }
  .finder { margin-top: -70px; }
  .finder-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 1px solid var(--line) !important; border-top: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0 !important; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0 !important; }
  .foot-grid { grid-template-columns: 1fr; }
  .page-head::after { display: none; }
  .docs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .doc-body { padding: 14px; }
  .doc-bio { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.page-jump { margin-top: 26px; }
.page-jump .jump a::before { content: "↓"; margin-right: 8px; color: var(--blue-500); }

.doc-place { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
.doc-place svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--blue-500); stroke-width: 1.8; }
@media (max-width: 640px) {
  .chips-filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .chips-filter::-webkit-scrollbar { display: none; }
  .chips-filter .chip { flex: none; }
}

/* Photos beside long text */
.media-split { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.media-split.is-rev { grid-template-columns: .92fr 1.08fr; }
.media-split.is-rev .media-fig { order: -1; }
.media-split > * + * { margin-top: 0 !important; }
.media-text > * + * { margin-top: 1.15em; }
.media-text > h2:first-child::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 14px; font: 500 .8rem/1 var(--mono); letter-spacing: .12em; color: var(--blue); padding-left: 28px; background: linear-gradient(var(--gold), var(--gold)) left center / 18px 2px no-repeat; }
.media-fig { position: sticky; top: calc(var(--head-h) + 28px); margin: 0; }
.media-fig::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--line-2); border-radius: 26px; z-index: 0;
  background-image: linear-gradient(rgba(4, 134, 218, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(4, 134, 218, .08) 1px, transparent 1px); background-size: 22px 22px; }
.media-split.is-rev .media-fig::before { inset: 18px 18px -18px -18px; }
.media-fig img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 60px -28px rgba(0, 33, 74, .45); background: var(--sky-100); }
.media-fig::after { content: ""; position: absolute; z-index: 2; left: 22px; bottom: 22px; width: 44px; height: 4px; border-radius: 4px; background: var(--gold); }
@media (max-width: 1040px) {
  .media-split, .media-split.is-rev { grid-template-columns: 1fr; }
  .media-fig, .media-split.is-rev .media-fig { position: relative; top: 0; order: -1; margin-right: 18px; }
  .media-fig img { aspect-ratio: 16 / 10; }
}

.jump a { display: inline-flex; align-items: center; white-space: nowrap; }

/* ===================== v3: inner page templates ===================== */
/* Page header with photo */
.page-head.has-media { padding-bottom: clamp(36px, 5vw, 64px); }
.page-head.has-media::after { display: none; }
.page-head-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-head-media { position: relative; margin: 0; }
.page-head-media::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border-radius: 26px; border: 1px solid var(--line-2);
  background-image: linear-gradient(rgba(4, 134, 218, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(4, 134, 218, .08) 1px, transparent 1px); background-size: 22px 22px; }
.page-head-media img { position: relative; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 60px -28px rgba(0, 33, 74, .45); background: var(--sky-100); }

/* Cards: image on top, people and logos */
.card > img:first-child:not(.icon) { order: -1; margin: -24px -24px 14px; width: calc(100% + 48px); max-width: none; border-radius: var(--r-lg) var(--r-lg) 0 0; aspect-ratio: 16 / 10; }
.card-person > img:first-child { aspect-ratio: 1 / 1 !important; object-position: center 18%; background: linear-gradient(180deg, var(--sky-100), #fff); }
.card-person { padding-bottom: 20px; }
.card-person h3, .card-person h4 { font-size: 1.12rem; }
.card-person div:not(:has(*)) { font: 500 .78rem/1.35 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.card-logo > img:first-child { width: auto !important; max-width: 70%; height: 64px; object-fit: contain; object-position: left center; margin: 4px 0 16px; padding: 0; background: none; border-radius: 0; aspect-ratio: auto; }
.card-logo a:not(.btn) { display: inline-flex; margin-top: auto; color: var(--blue); }
.card-cover { order: -1; margin: -24px -24px 14px; width: calc(100% + 48px); max-width: none; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.card h2 { font-size: 1.15rem; line-height: 1.3; }

/* Chapters */
.chapters { display: grid; gap: 0; }
.chapter { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(24px, 4vw, 64px); padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.chapter:first-child, .chapter-intro + .chapter { border-top: 0; }
.chapter-intro { display: block; padding: 0 0 clamp(20px, 3vw, 32px); }
.chapter-intro .ch-body > :first-child { font-size: 1.22rem; color: var(--navy); }
.ch-head h2 { position: sticky; top: calc(var(--head-h) + 28px); font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 0; }
.ch-body > :last-child { margin-bottom: 0; }
.ch-body > * + * { margin-top: 0; }
.chapters { counter-reset: ch; }
.chapter .ch-head h2::before { counter-increment: ch; content: counter(ch, decimal-leading-zero) !important; display: block; margin-bottom: 14px; font: 500 .8rem/1 var(--mono); letter-spacing: .12em; color: var(--blue); padding-left: 28px; background: linear-gradient(var(--gold), var(--gold)) left center / 18px 2px no-repeat; }
.ch-photo { margin: clamp(8px, 2vw, 16px) 0 clamp(20px, 3vw, 32px); position: relative; }
.ch-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(0, 33, 74, .4); background: var(--sky-100); }
.ch-photo::after { content: ""; position: absolute; left: 26px; bottom: 26px; width: 56px; height: 4px; border-radius: 4px; background: var(--gold); }

/* Hubs */
.hubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; margin-top: 26px; }
.hub { position: relative; display: grid; grid-template-columns: 150px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .18s, box-shadow .18s, transform .18s; }
.hub:hover { border-color: var(--blue-500); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.hub-photo { background: var(--sky-100); display: grid; place-items: center; min-height: 150px; }
.hub-photo img { width: 100%; height: 100%; object-fit: cover; }
.hub-ico svg { width: 40px; height: 40px; fill: none; stroke: var(--blue); stroke-width: 1.6; }
.hub-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.hub h3 { font-size: 1.15rem; margin: 0; }
.hub h3 a { color: var(--navy); text-decoration: none; }
.hub h3 a::after { content: ""; position: absolute; inset: 0; }
.hub-addr { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: .95rem; color: var(--muted); }
.hub-addr svg { width: 16px; height: 16px; flex: none; margin-top: 4px; fill: none; stroke: var(--blue-500); stroke-width: 1.8; }

/* Article */
.article-head h1 { max-width: 28ch; font-size: clamp(2rem, 4vw, 3.1rem); }
.article-head .chips { margin-bottom: 18px; }
.article-head .chip { text-decoration: none; }
.byline { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; text-decoration: none; color: var(--navy); padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 20%; background: var(--sky-100); }
.byline small { display: block; font-size: .8rem; color: var(--muted); }
.byline strong { display: block; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.article-cover { margin: 0 0 32px; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; }
.prose { max-width: 720px; font-size: 1.14rem; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose h2::before { display: none !important; }
.prose img { border-radius: 16px; margin: 1.2em 0; }
.article-aside { position: sticky; top: calc(var(--head-h) + 24px); padding: 24px; background: var(--sky-50); border: 1px solid var(--line); border-radius: var(--r-lg); }
.article-aside h2, .article-aside h3 { font-size: 1.3rem; }
.article-aside .form { padding: 18px; box-shadow: none; border: 1px solid var(--line); }
.article-aside .form > * { font-size: .95rem; }

/* Booking wizard */
.wizard { display: grid; gap: 18px; }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; margin: 0 0 6px; padding: 0; max-width: none; counter-reset: none; }
.stepper li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--sky-50); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--muted); }
.stepper li span { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line-2); font: 500 .85rem/1 var(--mono); color: var(--muted); }
.stepper li.is-on { border-color: var(--blue-500); color: var(--navy); background: #fff; }
.stepper li.is-on span, .stepper li.is-done span { background: var(--blue); border-color: var(--blue); color: #fff; }
.wstep { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.wstep[hidden] { display: none; }
.wnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.wnav .btn, .wnav input[type="submit"] { width: auto; min-width: 150px; }
.wstep label:has(input[type="radio"]) { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 500; }
.wstep label:has(input[type="radio"]:checked) { border-color: var(--blue); background: var(--sky-50); box-shadow: 0 0 0 3px rgba(4, 134, 218, .15); }
.wstep label:has(input[type="radio"]) img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; box-shadow: none; }
.wstep input[type="radio"] { width: 20px; height: 20px; accent-color: var(--blue); }

@media (max-width: 1040px) {
  .page-head-row, .chapter, .article-grid { grid-template-columns: 1fr; }
  .page-head-media { margin-right: 16px; }
  .page-head-media img { aspect-ratio: 16 / 10; }
  .ch-head h2 { position: static; }
  .ch-photo img { aspect-ratio: 16 / 10; }
  .article-aside { position: static; }
  .hubs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hub { grid-template-columns: 1fr; }
  .hub-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .stepper { grid-template-columns: 1fr; }
  .stepper li:not(.is-on) { display: none; }
}

/* ===================== v3.1: QA fixes ===================== */
.form h1, .form h2, .form h3, .form h4 { color: var(--navy) !important; }
.form p { color: var(--muted); }
.block-form .wrap > .form, .block-form .wrap > div > .form:only-child { max-width: 680px; }
.btn { white-space: normal; text-align: center; }
.split img:not(.icon) { max-height: 560px; aspect-ratio: 4 / 3; }
.split { align-items: center; }
.split:has(> .profile) { align-items: start; }
.cards .card:not(.card-link) :is(p, div):not(:has(*)) { display: block; -webkit-line-clamp: unset; overflow: visible; }
.more-link { margin-top: 22px; }
.hub { min-height: 176px; }
.hub-photo { height: 100%; min-height: 176px; }
.hub-photo img { position: absolute; inset: 0; }
.hub-photo { position: relative; }
.wstep img { width: 96px !important; height: 72px !important; max-width: none; object-fit: cover; border-radius: 10px; box-shadow: none; aspect-ratio: auto; margin: 0; }
.wstep label:has(input[type="radio"]) { align-items: center; }
.wstep:has(input[type="radio"]) { grid-template-columns: 1fr 1fr; }
.wstep:has(input[type="radio"]) > :not(label) { grid-column: 1 / -1; }
.wstep label:has(input[type="radio"]) * { color: var(--navy); }
.block > .wrap > div:only-child:has(> img + img + img):not(:has(p)) { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; }
.block > .wrap > div:only-child:has(> img + img + img):not(:has(p)) > img { max-height: 56px; width: auto; }
.status-card { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px); box-shadow: var(--shadow-2); }
.status-card .hero-actions { justify-content: center; }
.status-card p { margin-left: auto; margin-right: auto; }
.status-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sky-100); color: var(--blue); font: 600 1.8rem/1 var(--sans); margin-bottom: 14px; }
@media (max-width: 640px) {
  .wstep:has(input[type="radio"]) { grid-template-columns: 1fr; }
  .cards:has(> .card-person) { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-person { padding: 14px; }
  .card-person > img:first-child { margin: -14px -14px 10px; width: calc(100% + 28px); }
}

/* ===================== v3.2: QA fixes (medici/test/lab) ===================== */
.media-split.is-short .media-fig img { aspect-ratio: 4 / 3; }
.media-split.is-short { align-items: center; }
.media-split.is-short .media-fig { position: relative; top: 0; }
.chips-one { flex-wrap: nowrap; overflow: hidden; }
.chips-one .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-more { flex: none; background: #fff; border-color: var(--line); color: var(--muted); }
.chip { letter-spacing: .03em; }
.profile { max-width: 340px; }
.profile > div:not(.cards):not(:has(*)) { font-weight: 600; color: var(--navy); }
.profile > div:not(.cards):not(:has(*)) + div:not(.cards):not(:has(*)) { font: 500 .8rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.profile .cards { margin-top: 4px; }
@media (max-width: 1040px) { .profile { max-width: 360px; margin: 0 auto; } }
.page-head .chips .chip-solid { text-decoration: none; }
a.chip-solid:hover { background: var(--blue); color: #fff; }

/* ===================== v3.3: news, categories, search, header ===================== */
.head-cta .btn { white-space: nowrap; }
@media (max-width: 1320px) { .head-cta .btn-ghost { display: none; } }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 26px; }
.post { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .18s, box-shadow .18s, transform .18s; }
.post:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.post-img { aspect-ratio: 16 / 10; background: var(--sky-100); overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post:hover .post-img img { transform: scale(1.04); }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.post h3 { font-size: 1.15rem; line-height: 1.3; margin: 0; }
.post h3 a { color: var(--navy); text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post:hover h3 a { color: var(--blue); }
.post p:not(.test-cat) { margin: 0; font-size: .98rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cat-nav { margin-top: 26px; gap: 8px; }
.cat-nav .chip { text-decoration: none; background: #fff; border-color: var(--line); color: var(--navy); padding: 9px 14px; }
.cat-nav .chip small { color: var(--muted); margin-left: 4px; font-size: .72rem; }
.cat-nav .chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.cat-nav .chip.is-on small { color: #b9c8db; }
.cat-nav .chip:hover:not(.is-on) { border-color: var(--blue-500); }
.article-aside { position: static; padding: 0; background: none; border: 0; }
.aside-card { position: sticky; top: calc(var(--head-h) + 24px); padding: 24px; background: var(--sky-50); border: 1px solid var(--line); border-radius: var(--r-lg); }
.results { list-style: none; padding: 0; margin: 10px 0 0; max-width: 860px; display: grid; gap: 10px; }
.results li { margin: 0; }
.results a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.results a:hover { border-color: var(--blue-500); box-shadow: var(--shadow-1); }
.results .r-cat { font: 500 .72rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.results .r-title { display: block; font-weight: 600; color: var(--navy); font-size: 1.08rem; margin: 4px 0; }
.results .r-x { display: block; color: var(--muted); font-size: .95rem; }
.results mark { background: rgba(219, 190, 108, .45); color: inherit; border-radius: 3px; padding: 0 2px; }
body.menu-open { overflow: hidden; }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } }

/* ===================== v3.4: verifier fixes ===================== */
.ch-photo img { aspect-ratio: 16 / 8; object-position: center 28%; }
.split img:not(.icon) { object-position: center 22%; }
.media-fig img { object-position: center 25%; }
.cards-text { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.cards-text .card { padding: 28px; }
img.is-logo { object-fit: contain !important; background: #fff !important; padding: 28px; aspect-ratio: 3 / 2 !important; max-height: 260px; box-shadow: none !important; border: 1px solid var(--line); }
.card { justify-content: flex-start; }
.card > a:last-child, .card > :last-child > a:only-child { margin-top: auto; }
.form-layout:not(:has(> :nth-child(2))) { grid-template-columns: minmax(0, 720px); justify-content: center; }
.split > img + img, .split img ~ img { max-height: 64px; width: auto; object-fit: contain; aspect-ratio: auto; box-shadow: none; }
@media (max-width: 640px) {
  .chips-one { flex-wrap: wrap; }
  .chips-one .chip { white-space: normal; }
  .stepper { grid-template-columns: repeat(3, 1fr); }
  .stepper li { display: flex !important; flex-direction: column; text-align: center; font-size: .72rem; padding: 8px 4px; gap: 4px; }
  .cards-text { grid-template-columns: 1fr; }
  .menu > nav { min-height: calc(100vh - 66px); }
}

/* ===================== v3.5: round-3 fixes ===================== */
.logo-row-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; margin: 24px 0; }
.logo-row-inline img { max-height: 44px; width: auto !important; object-fit: contain; box-shadow: none !important; border-radius: 0 !important; aspect-ratio: auto !important; }
.cards-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cards-list .card { padding: 26px; border-top: 3px solid var(--blue-500); }
.cards-list .card::before { display: none; }
.cards-list .card h3 { font-size: 1.15rem; margin-bottom: .5em; }
.cards-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cards-list li { position: relative; padding-left: 26px; margin: 0; font-size: 1rem; }
.cards-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.profile img.is-logo { border: 0; }
.chips .chip { overflow-wrap: anywhere; }
@media (max-width: 640px) { .chips-one .chip { overflow: visible; text-overflow: clip; letter-spacing: .02em; font-size: .7rem; } }
/* booking: one compact tile per location */
.wstep label:has(input[type="radio"]) { display: grid; grid-template-columns: 1fr 22px; gap: 14px; align-items: center; padding: 14px 16px; }
.wstep label:has(input[type="radio"]):has(img) { grid-template-columns: 72px 1fr 22px; padding: 10px 14px 10px 10px; }
.wstep label:has(input[type="radio"]) > div > div:first-child { font-weight: 600; }
.wstep label:has(input[type="radio"]) p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.wstep label:has(input[type="radio"]) img { width: 72px !important; height: 56px !important; grid-row: 1 / span 3; }
.wstep label:has(input[type="radio"]) input[type="radio"] { grid-column: -2; grid-row: 1 / span 3; justify-self: end; }
.wstep label:has(input[type="radio"]) div { border: 0 !important; padding: 0 !important; margin: 0 !important; background: none !important; box-shadow: none !important; }
.wstep label:has(input[type="radio"]) * { font-size: .95rem; line-height: 1.35; }
.block .wrap > p + h2, .block .wrap > div + h2 { margin-top: 1.6em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.two-col > div { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue-500); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); }
.two-col > div > * + * { margin-top: .8em; }
.two-col h2 { font-size: 1.5rem; }
.two-col h2::before { display: none !important; }
.two-col h3 { font-size: 1.05rem; margin-top: 1.2em; color: var(--blue); font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.two-col ul, .chapter ul, .media-text ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.two-col li, .chapter li, .media-text li { position: relative; padding-left: 26px; margin: 0; }
.two-col li::before, .chapter li::before, .media-text li::before { content: ""; position: absolute; left: 0; top: .55em; width: 13px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ===================== v4: QA round (layout, mobile, wizard) ===================== */
/* Section numbers come from data-n (computed at build), not CSS counters */
.block > .wrap > h2:first-child::before, .block > .wrap > div:first-child > h2:first-child::before, .media-text > h2:first-child::before { content: none; display: none; }
h2[data-n]::before { content: attr(data-n) !important; display: block !important; margin-bottom: 14px; font: 500 .8rem/1 var(--mono); letter-spacing: .12em; color: var(--blue); padding-left: 28px; background: linear-gradient(var(--gold), var(--gold)) left center / 18px 2px no-repeat; }
.tone-navy h2[data-n]::before { color: #8fcaf5; }
/* Person cards: photo always inside the card */
.card-person { overflow: hidden; }
.card.card-person > img:first-child:not(.icon) { margin: -24px -24px 14px; width: calc(100% + 48px); }
.card-person a > div > div > div:first-child, .card-person > div > div:first-child:not(:has(*)) { font: 600 1.05rem/1.25 var(--sans); text-transform: none; letter-spacing: 0; color: var(--navy); }
.cards-people { margin-top: 12px; }
.people-head { margin-top: clamp(48px, 7vw, 80px); margin-bottom: 18px; }
.people-head h2 { margin: 0; }
.cards-text > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Campaign / generic: empty split columns, single-child forms centred */
.split > div:empty { display: none; }
.split:has(> div:empty) { grid-template-columns: minmax(0, 760px); justify-content: center; }
.block .wrap > form.form, .block .wrap > div:not([class]) > form.form:only-child { max-width: 680px; margin-inline: auto; }
.split:has(> .profile):not(:has(> .profile + :not(:empty))) { grid-template-columns: minmax(0, 420px); justify-content: center; }
/* Stats band gutter */
.stats-row.wrap { padding: 0; max-width: calc(var(--wrap) - 2 * var(--gutter)); }
@media (max-width: 1240px) { .stats-row.wrap { margin-inline: var(--gutter); } }
/* Status card icon on its own line */
.status-ico { display: grid; margin: 0 auto 14px; }
.status-card .eyebrow { display: flex; justify-content: center; }
/* Readability + tap targets */
.post-body p, .post-body li { font-size: 1.0625rem; }
.test p:not(.test-cat) { font-size: 1rem; }
.page-jump .jump a { min-height: 44px; }
.crumbs a { display: inline-block; padding-block: 10px; }
.crumbs ol { margin-top: -10px; }
.site-foot li a { display: inline-block; padding-block: 8px; }
.site-foot li { margin: 0; }
.logo { padding-block: 12px; }
mark { padding: 0; border-radius: 2px; }
.nav details[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
html.menu-open, html.menu-open body { overflow: hidden; }
@media (max-width: 640px) {
  .chip, .cat-nav .chip, .chips-filter .chip { min-height: 44px; display: inline-flex; align-items: center; }
  .chips-filter { mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .card.card-person > img:first-child:not(.icon) { margin: -14px -14px 10px; width: calc(100% + 28px); }
  .page-head h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); overflow-wrap: anywhere; }
  .crumbs ol { flex-wrap: nowrap; min-width: 0; }
  .crumbs li[aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .crumbs li { flex: none; }
  main:has(.page-head.has-media) > section:first-of-type .media-fig, main:has(.page-head.has-media) > header + section .media-fig { display: none; }
}
/* Booking wizard v2 */
.wizard, form[data-wizard] { display: grid; gap: 16px; }
.wstep { grid-template-columns: minmax(0, 1fr); }
.wstep-title { font: 600 1.15rem/1.3 var(--sans); color: var(--navy); padding: 0; margin-bottom: 4px; outline: none; }
.req { color: #b42318; }
.opt { color: var(--muted); font-weight: 400; font-size: .9rem; }
.w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.w-grid > label { grid-row: 1; } .w-grid > input { grid-row: 2; }
.sedi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sede { display: grid !important; grid-template-columns: 64px minmax(0, 1fr) 22px; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.sede:hover { border-color: var(--blue-500); }
.sede:has(input:checked) { border-color: var(--blue); background: var(--sky-50); box-shadow: 0 0 0 3px rgba(4, 134, 218, .15); }
.sede-img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--sky-100); display: grid; place-items: center; color: var(--blue); }
.sede-img img { width: 64px !important; height: 64px !important; object-fit: cover; margin: 0; box-shadow: none; border-radius: 0; }
.sede-img svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.sede-txt strong { display: block; color: var(--navy); font-size: .98rem; line-height: 1.3; }
.sede-txt small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.35; margin-top: 2px; }
.sede input[type="radio"] { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; }
.wq { margin: 0; font-weight: 600; color: var(--navy); }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .95rem !important; color: var(--ink) !important; }
.consent input { flex: none; width: 22px; height: 22px; margin: 2px 0 0 !important; }
.stepper li { font-size: .8125rem; }
@media (max-width: 640px) {
  .w-grid, .sedi { grid-template-columns: minmax(0, 1fr); }
  .w-grid > label, .w-grid > input { grid-row: auto; }
  .wnav .btn, .wnav input[type="submit"], .wnav button { min-width: 0; flex: 1; }
}

/* ===================== v4.1: re-verify fixes ===================== */
.wstep label.sede { grid-template-columns: 64px minmax(0, 1fr) 22px !important; padding: 10px 14px 10px 10px !important; }
.wstep label.sede input[type="radio"] { grid-row: 1 !important; grid-column: 3 !important; }
.wstep .sede .sede-img img { width: 64px !important; height: 64px !important; grid-row: auto !important; }
.split:has(> .profile:only-child) { grid-template-columns: minmax(0, 420px); justify-content: center; }
.profile img.is-logo { aspect-ratio: auto !important; height: 110px; width: 100%; padding: 18px; }
.site-foot li a { padding-block: 10px; }
.foot-legal a { display: inline-block; padding-block: 13px; }
.crumbs ol { align-items: center; } .crumbs li { line-height: 1.3; }

/* v2 stats: icon + animated number */
.stats-v2 .stat { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
.stats-v2 .stat-ico { grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 50%; background: var(--sky-100); color: var(--blue); display: grid; place-items: center; }
.stats-v2 .stat-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stats-v2 .stat-n::after { content: "↑"; font-size: .45em; margin-left: 6px; vertical-align: super; color: var(--blue-500); }
@media (max-width: 640px) { .stats-v2 .stat { grid-template-columns: 40px 1fr; column-gap: 10px; } .stats-v2 .stat-ico { width: 40px; height: 40px; } .stats-v2 .stat-ico svg { width: 21px; height: 21px; } }

/* v2 topbar: shorter line on phones */
@media (max-width: 600px) { .tb-more { display: none; } }
