/* ---------- Colours ----------
   Every colour on the site comes from these tokens, so a palette change only touches this block.
   Navy and gold, taken from the logo, with cool blue-grey surfaces. The page background is pure
   white, dark is kept to the footer and a few bands, and the only green is the form success state.
   --c-panel is the background of the dark bands (map, ticker, facts strip, covers, mobile menu);
   --c-accent-text is the accent for small text on light backgrounds (eyebrows).
   Gold is too light for white text, so anything filled with it (buttons, tags) uses navy text (--c-btn-text).
   -rgb tokens are space separated channels for translucent colours: rgb(var(--c-x-rgb) / .5). */
:root {
  --c-darkest: #031F42; --c-darkest-rgb: 3 31 66;
  --c-primary: #052E5F;
  --c-panel: #052E5F; --c-panel-rgb: 5 46 95;
  --c-light: #1D4E89; --c-light-rgb: 29 78 137; --c-light-hover: #133F73;
  --c-link: #1D4E89; --c-link-hover: #052E5F;
  --c-accent: #E6A41D; --c-accent-rgb: 230 164 29; --c-accent-hover: #F2B93B;
  --c-accent-text: #8A5E05;
  --c-bg: #FFFFFF; --c-bg-rgb: 255 255 255;
  --c-card: #FFFFFF;
  --c-surface: #F3F6FA; --c-surface-strong: #E1E8F1;
  --c-tint: #EEF2F8; --c-tint-strong: #DCE4EE;
  --c-line: #DCE4EE;
  --c-text: #0B1B30; --c-text-rgb: 11 27 48; --c-text-soft: #22334A; --c-muted: #4F5D70;
  --c-shadow-rgb: 3 31 66;
  --c-scrim-rgb: 0 0 0;
  --c-on-dark: #FFFFFF; --c-on-dark-rgb: 255 255 255;
  --c-on-dark-accent: #F2C14E; --c-on-dark-accent-rgb: 242 193 78;
  --c-on-dark-icon: #F0B53A; --c-on-dark-dot: var(--c-accent); --c-on-dark-soft: #E6ECF4; --c-on-dark-note: #C9D4E3;
  --c-map-dot-rgb: 238 242 248; --c-pin-rgb: var(--c-accent-rgb);
  --c-highlight: #F2C14E; --c-highlight-rgb: 242 193 78;
  --c-haze-rgb: 255 238 196; /* the warm glare of a cataract, on the /appointment slider */
  --c-band: #1D4E89;
  --c-btn: var(--c-accent); --c-btn-hover: var(--c-accent-hover); --c-btn-text: #052E5F; --c-btn-glow-rgb: var(--c-accent-rgb);
  --c-focus: var(--c-light); --c-focus-on-dark: #F2C14E;
  --c-wa: #1D4E89;
  --c-success-bg: #EAF4EC; --c-success: #2E7D4F; --c-success-text: #FFFFFF;
  --c-error: #C2410C;
  --c-error-text: #B3370A;
  --c-error-bg: #FFF4EC;
  --c-error-ink: #7A2C07;
  --c-error-icon-bg: #FFE4D1;
  /* Urgency in the symptom guide: call now, book this week, routine check. Text colours pass 4.5:1 on their backgrounds. */
  --c-urg-red: #B42318; --c-urg-red-bg: #FEF3F2; --c-urg-red-rgb: 180 35 24;
  --c-urg-amber: #A15C07; --c-urg-amber-bg: #FFFAEB; --c-urg-amber-rgb: 220 140 20;
  --c-urg-green: #067647; --c-urg-green-bg: #ECFDF3; --c-urg-green-rgb: 6 118 71;
  /* Placeholders for facts the hospital still has to send ({{TODO: ...}}, see TODO-CLIENT.md). */
  --c-todo: #6B21A8; --c-todo-bg: #F5EEFF; --c-todo-line: #C4A5EE;
  --c-line-rgb: 220 228 238;
  /* Glowing navy: the career hero's background, a warm glow in the top left corner over navy. The title sections
     of the main pages and the doctor cards share it (see "Glowing navy title sections"). */
  --bg-glow: radial-gradient(circle 380px at calc(380px - 14%) 120px, rgb(var(--c-accent-rgb) / .24), transparent), var(--c-panel);
  /* Logo (assets/brand): navy and gold on light backgrounds, white and gold on dark. */
  --c-logo: var(--c-primary); --c-logo-accent: var(--c-accent); --c-logo-on-dark: #FFFFFF;
  /* Eye diagrams: cool greys and a navy iris plus the true-to-life warm parts. */
  --dg-chamber: #F6F8FB; --dg-nerve: #C5C8CD; --dg-iris: #2F5584; --dg-gland: #DDDFE2;
  --dg-tear: #9096A0; --dg-water: #EDEEF0; --dg-water-edge: #C7CACF;
  --dg-warm: #CC5236;
  --dg-amber: #E0952A;
  --dg-cloud: #C5CCD8;
  --dg-speck: #7F8AA0;
  --dg-nerve-bad: #EBAA98;
  --dg-fundus: #FBE7D9;
  --dg-fundus-edge: #E8C3A8;
  --dg-disc: #FFF7EA;
  --dg-disc-edge: #E6C49A;
  --dg-vessel: #C8665A;
  --dg-macula: #E4AD94;
  --dg-bleed: #A8322A;
  --dg-exudate: #E2B23A;
  --dg-oil: #E2B23A;
  --dg-brow: #6B5A4E;
  --dg-skin: #F3E2D6;
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052E5F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052E5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
}

/* Hindi, all of it: Anek Devanagari, the same file Sarvdrishti serves (assets/fonts, SIL Open Font License in
   OFL-anek.txt). Variable, weights 400 to 800, the whole Devanagari alphabet, so no weight is ever faked.
   unicode-range means a page downloads it only when it has Hindi on it. */
@font-face {
  font-family: "Anek Devanagari";
  src: url("../fonts/anek-devanagari.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0900-097F, U+200C-200D, U+25CC, U+A8E0-A8FF;
}

:root {
  /* Sora for headings (400 to 800 load), Figtree for text. Devanagari in any of them falls through to Anek. */
  --f-display: "Sora", "Anek Devanagari", "Figtree", system-ui, sans-serif;
  --f-body: "Figtree", "Anek Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-hi: "Anek Devanagari", "Nirmala UI", "Noto Sans Devanagari", sans-serif;

  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgb(var(--c-shadow-rgb) / .06), 0 4px 14px -6px rgb(var(--c-shadow-rgb) / .12);
  --shadow: 0 1px 2px rgb(var(--c-shadow-rgb) / .06), 0 18px 40px -18px rgb(var(--c-shadow-rgb) / .28);
  --gutter: 20px;
  --container: 1220px;
  /* The header is a floating pill (see "Header"). --header-h is the whole band it covers: the gap above the
     pill, the pill and a little room below it. Sticky parts and scroll offsets clear it with --header-h. */
  --hdr-top: 10px;
  --pill-h: 60px;
  --header-h: 78px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--f-body);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* With hidden on body alone, phones could still zoom the page out to fit content outside the screen; clip on html
   and body stops that. The open menu then locks scrolling on html, since body no longer passes it to the page,
   and body stays clip so the sticky header keeps working. Browsers without clip or :has() keep the hidden above. */
@supports (overflow-x: clip) and selector(:has(*)) {
  html, body { overflow-x: clip; }
  html:has(> body.menu-open) { overflow: hidden; }
  html > body.menu-open { overflow: clip; }
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--c-link-hover); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--c-primary); margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1em; }
/* Text straight after a heading needs a little air above it.
   Padding rather than margin, so it adds to each component's own spacing instead of fighting it. */
:is(h1, h2, h3, h4) + :is(p, ul, ol, dl):not(.wa__sub, .ap-card__sub) { padding-top: .45em; }
:is(h1, h2, h3, h4) + .hi { padding-top: .3em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--c-light); color: var(--c-on-dark); }

.hi { font-family: var(--f-hi); font-weight: 600; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--c-primary); color: var(--c-on-dark); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: var(--c-on-dark); }

.i { width: 1.25em; height: 1.25em; stroke-width: 1.8; flex: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section--ice { background: var(--c-surface); }
.section--navy { background: var(--c-panel); color: rgb(var(--c-on-dark-rgb) / .86); }
.section--navy h2, .section--navy h3 { color: var(--c-on-dark); }
.section--tight { padding-block: clamp(40px, 7vw, 72px); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 5vw, 52px); }
.section-head--split { max-width: none; display: grid; gap: 16px; align-items: end; }
.section-head h2 { font-size: clamp(1.85rem, 5.6vw, 3rem); font-weight: 700; letter-spacing: -0.018em; line-height: 1.1; max-width: 20ch; text-wrap: balance; }
.section-head p { color: var(--c-muted); font-size: 1.06rem; line-height: 1.6; margin: 14px 0 0; max-width: 560px; }
.section--navy .section-head p { color: rgb(var(--c-on-dark-rgb) / .72); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font: 700 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-text);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  box-shadow: 14px 0 0 -1px currentColor, 26px 0 0 -2px currentColor; margin-right: 26px;
}
@media (max-width: 479px) { .eyebrow { letter-spacing: .1em; font-size: .74rem; line-height: 1.3; } }
.eyebrow .hi { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 600; }
.eyebrow--light { color: var(--c-on-dark-accent); }

.lead { font-size: clamp(1.06rem, 2.6vw, 1.24rem); line-height: 1.55; color: var(--c-muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--c-btn); --btn-fg: var(--c-btn-text); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font: 650 1rem/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--primary:hover { --btn-bg: var(--c-btn-hover); box-shadow: 0 10px 22px -12px rgb(var(--c-btn-glow-rgb) / .8); }
.btn--navy { --btn-bg: var(--c-primary); --btn-fg: var(--c-on-dark); }
.btn--navy:hover { --btn-bg: var(--c-darkest); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-primary); --btn-bd: var(--c-line); }
.btn--ghost:hover { --btn-bd: var(--c-primary); }
.btn--light { --btn-bg: var(--c-card); --btn-fg: var(--c-primary); }
.btn--light:hover { --btn-bg: var(--c-tint); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--c-on-dark); --btn-bd: rgb(var(--c-on-dark-rgb) / .35); }
.btn--outline-light:hover { --btn-bd: var(--c-card); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .94rem; }
.btn--block { width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding-block: 12px; }
.btn .i--end { margin-left: 2px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; }
.link-arrow .i { transition: transform .2s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--c-tint); color: var(--c-primary); font-size: .84rem; font-weight: 650; line-height: 1.2;
}
.chip--line { background: transparent; border: 1px solid var(--c-line); }

/* ---------- Header ----------
   A frosted pill floating over the page. The header itself is a see-through band (it lets clicks through
   around the pill); the row inside is the pill. The home hero runs up behind it (see "Home hero"). */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h); padding-top: var(--hdr-top);
  pointer-events: none;
}
.site-header__row {
  position: relative; pointer-events: auto;
  width: calc(100% - 20px); height: var(--pill-h);
  display: flex; align-items: center; gap: 16px;
  padding-inline: 18px 8px; border-radius: 999px;
  background: rgb(var(--c-bg-rgb) / .9);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid rgb(var(--c-bg-rgb) / .6);
  box-shadow: 0 12px 32px -18px rgb(var(--c-shadow-rgb) / .38), inset 0 1px 0 rgb(var(--c-bg-rgb) / .5);
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled .site-header__row {
  background: rgb(var(--c-bg-rgb) / .94); border-color: rgb(var(--c-line-rgb) / .9);
  box-shadow: 0 16px 36px -18px rgb(var(--c-shadow-rgb) / .45);
}

/* Logo (brand_logo() in includes/icons.php). Set the height; the width follows the artwork. */
.logo { display: block; width: auto; flex: none; --logo-ink: var(--c-logo); --logo-accent: var(--c-logo-accent); }
.brand { display: inline-flex; flex: none; align-items: center; text-decoration: none; margin-right: auto; border-radius: 6px; }
.brand .logo { height: 40px; }
.brand__icon { display: none; }
/* The header shows the icon alone where the lockup would crowd the menu button (below 360px) or the
   desktop navigation (960 to 1199px). */
@media (max-width: 359px), (min-width: 960px) and (max-width: 1199px) {
  .site-header .brand__lockup { display: none; }
  .site-header .brand__icon { display: block; }
}
.brand--light .logo { --logo-ink: var(--c-logo-on-dark); }

/* The iris (iris_rings() in includes/icons.php), the one decorative pattern on the site: rings round the
   Buddha from the logo, all in currentColor. Only the rings turn when animated; the Buddha stays upright.
   Backgrounds drawn in CSS use the same picture as a mask: assets/brand/iris.svg. */
.iris__rings { transform-box: view-box; transform-origin: center; }
.iris__eye { --logo-ink: currentColor; --logo-accent: currentColor; }

.nav { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.hide-sm, .hide-xs { display: none; }

.menu-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-card);
  display: grid; place-items: center; color: var(--c-primary);
}
.menu-btn .i { width: 22px; height: 22px; }
.menu-btn .i--close { display: none; }
.menu-btn[aria-expanded="true"] { background: var(--c-primary); color: var(--c-on-dark); border-color: var(--c-primary); }
.menu-btn[aria-expanded="true"] .i--open { display: none; }
.menu-btn[aria-expanded="true"] .i--close { display: block; }

.mnav {
  /* from the very top, behind the header pill (the header sits above it) */
  position: fixed; inset: 0; z-index: 49; background: var(--c-panel); color: var(--c-on-dark);
  overflow-y: auto; padding: calc(var(--header-h) + 10px) 0 32px;
  animation: sheetIn .28s var(--ease);
}
.mnav[hidden] { display: none; }
.mnav__links { display: grid; }
.mnav__links > a, .mnav__acc > summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid rgb(var(--c-on-dark-rgb) / .12);
  font: 700 1.7rem/1.1 var(--f-display); letter-spacing: -0.018em; color: var(--c-on-dark); text-decoration: none;
}
.mnav__links > a .hi, .mnav__acc > summary .hi { font-size: 1rem; color: var(--c-on-dark-accent); font-weight: 500; }
.mnav__links > a[aria-current="page"] span:first-child::after, .mnav__acc > summary.is-current span:first-child::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-radius: 50%; background: var(--c-on-dark-accent); vertical-align: middle; }
.mnav__branches { display: grid; gap: 10px; margin-top: 26px; }
.mnav__call {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgb(var(--c-on-dark-rgb) / .08); color: var(--c-on-dark); text-decoration: none;
}
.mnav__call:hover { color: var(--c-on-dark); background: rgb(var(--c-on-dark-rgb) / .14); }
.mnav__call strong { display: block; font-size: 1rem; }
.mnav__call small { color: rgb(var(--c-on-dark-rgb) / .7); font-size: .9rem; }
/* Treatments as an accordion: the areas open one level down, each into its treatments. */
.mnav summary { list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav__acc > summary { align-items: center; }
.mnav__acc > summary .hi { margin-left: auto; }
.mnav__chev { width: 22px; height: 22px; flex: none; color: var(--c-on-dark-accent); transition: transform .2s var(--ease); }
details[open] > summary > .mnav__chev { transform: rotate(180deg); }
.mnav__areas { display: grid; gap: 8px; padding: 12px 0 18px; border-bottom: 1px solid rgb(var(--c-on-dark-rgb) / .12); }
.mnav__area { border-radius: var(--radius-sm); background: rgb(var(--c-on-dark-rgb) / .06); }
.mnav__area[open] { background: rgb(var(--c-on-dark-rgb) / .1); }
.mnav__area > summary { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 14px 8px 10px; border-radius: var(--radius-sm); }
.mnav__area-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: rgb(var(--c-on-dark-rgb) / .1); color: var(--c-on-dark-accent); }
.mnav__area-icon .i { width: 20px; height: 20px; }
.mnav__area-text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.mnav__area-text strong { font-weight: 650; font-size: 1rem; }
.mnav__area-text .hi { font-size: .84rem; font-weight: 500; color: rgb(var(--c-on-dark-rgb) / .72); }
.mnav__count { min-width: 26px; height: 24px; padding: 0 8px; display: grid; place-items: center; border-radius: 99px; background: rgb(var(--c-on-dark-rgb) / .12); font-size: .8rem; font-weight: 700; }
.mnav__area .mnav__chev { width: 18px; height: 18px; }
.mnav__area ul { list-style: none; display: grid; padding: 0 8px 10px; }
.mnav__area li a {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 12px 8px 16px; border-radius: 10px;
  color: var(--c-on-dark); text-decoration: none; font-weight: 500; font-size: .97rem; line-height: 1.3;
}
.mnav__area li a:hover { color: var(--c-on-dark); background: rgb(var(--c-on-dark-rgb) / .1); }
.mnav__area li .i { width: 18px; height: 18px; flex: none; color: var(--c-on-dark-accent); }
.mnav__all {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 14px;
  color: var(--c-on-dark-accent); font-weight: 700; text-decoration: none;
}
.mnav__all:hover { color: var(--c-on-dark); }
.mnav__all .i { width: 18px; height: 18px; }
.mnav__help {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius-sm);
  background: var(--c-btn); color: var(--c-btn-text); text-decoration: none; line-height: 1.3;
}
.mnav__help:hover { color: var(--c-btn-text); background: var(--c-btn-hover); }
.mnav__help strong { display: block; font-size: 1rem; }
.mnav__help small { display: block; font-size: .86rem; }
.mnav__help > .i { width: 20px; height: 20px; flex: none; margin-left: auto; }
.mnav__help-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: rgb(var(--c-on-dark-rgb) / .45); }
.mnav__help-icon .i { width: 20px; height: 20px; }

/* Desktop: treatments by area, opened by hovering or tabbing to "Treatments". */
.megamenu { display: none; }
body.menu-open { overflow: hidden; }

/* ---------- Header over a dark hero (body class has-hero: /appointment) ----------
   A dark glass pill with light text and a white logo until the page scrolls (main.js adds .is-scrolled). */
.has-hero .site-header:not(.is-scrolled) .site-header__row {
  background: rgb(var(--c-on-dark-rgb) / .08); border-color: rgb(var(--c-on-dark-rgb) / .16);
  box-shadow: 0 12px 32px -18px rgb(var(--c-darkest-rgb) / .6), inset 0 1px 0 rgb(var(--c-on-dark-rgb) / .1);
}
.has-hero .site-header:not(.is-scrolled) .brand .logo { --logo-ink: var(--c-logo-on-dark); }
.has-hero .site-header:not(.is-scrolled) .btn--ghost { --btn-fg: var(--c-on-dark); --btn-bd: rgb(var(--c-on-dark-rgb) / .3); }
.has-hero .site-header:not(.is-scrolled) .btn--ghost:hover { --btn-bd: var(--c-on-dark); }
.has-hero .site-header:not(.is-scrolled) .menu-btn { background: rgb(var(--c-on-dark-rgb) / .08); border-color: rgb(var(--c-on-dark-rgb) / .22); color: var(--c-on-dark); }
.has-hero .site-header:not(.is-scrolled) .menu-btn[aria-expanded="true"] { background: var(--c-on-dark); color: var(--c-primary); }
.has-hero .site-header :focus-visible { outline-color: var(--c-focus-on-dark); }
.has-hero .site-header.is-scrolled :focus-visible, .has-hero .megamenu :focus-visible { outline-color: var(--c-focus); }
@media (min-width: 960px) {
  .has-hero .site-header:not(.is-scrolled) .nav > a,
  .has-hero .site-header:not(.is-scrolled) .nav__drop > a { color: rgb(var(--c-on-dark-rgb) / .86); }
  .has-hero .site-header:not(.is-scrolled) .nav > a:hover,
  .has-hero .site-header:not(.is-scrolled) .nav__drop > a:hover { color: var(--c-on-dark); }
  .has-hero .site-header:not(.is-scrolled) .nav > a[aria-current="page"]::after,
  .has-hero .site-header:not(.is-scrolled) .nav__drop > a[aria-current="page"]::after { background: var(--c-on-dark-accent); }
}

@keyframes sheetIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Eye chart headline and buttons (404 page) ---------- */
.chart { display: grid; grid-template-columns: 40px 1fr; align-items: baseline; column-gap: 8px; margin: 6px 0 22px; }
.chart__label { font: 700 .7rem/1 var(--f-body); letter-spacing: .06em; color: var(--c-link); opacity: .85; font-variant-numeric: tabular-nums; }
.chart__row { font-family: var(--f-display); color: var(--c-primary); font-weight: 800; display: block; }
.chart__r1 { font-size: clamp(5.2rem, 26vw, 10.6rem); line-height: .86; letter-spacing: -0.018em; }
.chart__r2 { font-size: clamp(2.4rem, 11.2vw, 5rem); line-height: .98; letter-spacing: -0.024em; }
.chart__r3 { font-size: clamp(1.8rem, 8.2vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--c-link); }
.chart__r4 { font-family: var(--f-hi); font-weight: 600; font-size: clamp(1.1rem, 4.6vw, 1.55rem); line-height: 1.3; color: var(--c-text); letter-spacing: 0; padding-top: 4px; }
.chart__line { grid-column: 2; height: 2px; width: 72px; background: var(--c-light); border-radius: 2px; margin: 10px 0 8px; opacity: .9; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__actions .btn { flex: 1 1 auto; }

/* ---------- Home hero: photo slides (index.php, main.js) ----------
   A light stage that starts at the very top of the page, behind the floating header pill. On wide screens
   the stage fills the screen: the text keeps to the left edge and the photos fill the right two thirds,
   fading into the page from their left edge (see "Larger screens"); on phones the photos run across the
   top and fade into the text below.
   One slide shows at a time: its text rises in, and its photo cross-fades in and slowly settles from a
   slight zoom. The page heading stays put. Without JavaScript the first slide shows on its own. */
.hs {
  position: relative; isolation: isolate; overflow: hidden;
  /* Phones: the glow sits under the text and starts where the photos end, so the photos' navy foot meets
     plain navy with no step. Wide screens use --bg-glow as is (see "Larger screens"). */
  background:
    radial-gradient(circle 300px at 18% calc(clamp(300px, 92vw, 560px) + var(--header-h) + 300px), rgb(var(--c-accent-rgb) / .2), transparent),
    var(--c-panel);
  color: rgb(var(--c-on-dark-rgb) / .8);
}
.hs__photos {
  position: relative; height: calc(clamp(300px, 92vw, 560px) + var(--header-h));
}
/* The photos fade into the navy under a navy layer painted over them (::after), not a CSS mask. Chrome draws a
   masked box as a separate layer and drops it when the tab goes to the background; redrawing it on the way back
   showed as blocky, flickering patches where the photo meets the text. A painted gradient has nothing to rebuild. */
/* It reaches 2px past the photos' foot (and on wide screens their left edge too). The photo box can start part
   way through a pixel; the photo and a layer the same size would each half cover that pixel, leaving a 1px line
   of photo showing through the navy. */
.hs__photos::after {
  content: ""; position: absolute; inset: 0 0 -2px; pointer-events: none;
  /* eased, so it tapers into the navy instead of stopping at a visible line */
  background: linear-gradient(to bottom, rgb(var(--c-panel-rgb) / 0) 42%, rgb(var(--c-panel-rgb) / .3) 60%, rgb(var(--c-panel-rgb) / .68) 76%, rgb(var(--c-panel-rgb) / .92) 89%, rgb(var(--c-panel-rgb)) 97%);
}
/* Each photo zooms inside its own clipped box, and stays on its own layer for the whole slide: when the
   zoom spilled past the faded edge, or the layer was dropped as the zoom ended, Chrome could flash a
   dark hairline where the photo meets the fade. */
.hs__photo { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .9s var(--ease); will-change: opacity; }
.hs__photo.is-active, .hs__photos:not(.is-ready) .hs__photo:first-child { opacity: 1; }
.hs__photo picture, .hs__photo img { width: 100%; height: 100%; }
/* Phones: a slide can draw its photo taller than the stage (--zoom-m, from index.php), kept to the top, so a wide
   photo still fills the whole stage with its subject clear of the header pill. The part below is cut off. */
.hs__photo img { height: calc(100% * var(--zoom-m, 1)); }
.hs__photo img {
  object-fit: cover; object-position: var(--pos-m); transform-origin: var(--pos-m);
  transform: scale(1.06); will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transition: transform 0s .9s; /* back to the start only once it has faded out */
}
.hs__photo.is-active img { transform: none; transition: transform 9s cubic-bezier(.3, .5, .3, 1); }

.hs__body { position: relative; margin-top: -20px; }
.hs__eyebrow { margin-bottom: 16px; }

/* All slides share one grid cell, so the stage is as tall as the longest and nothing jumps. */
.hs__slides { display: grid; }
.hs__slide { grid-area: 1 / 1; align-self: start; min-width: 0; } /* own height, so main.js can measure it */
html:not(.js) .hs__slide + .hs__slide { display: none; }
.js .hs__slide:not(.is-active) { visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s; }
.js .hs__slide.is-active > * { animation: hsIn .8s var(--ease) both; }
.js .hs__slide.is-active > :nth-child(2) { animation-delay: .07s; }
.js .hs__slide.is-active > :nth-child(3) { animation-delay: .14s; }
.js .hs__slide.is-active > :nth-child(4) { animation-delay: .21s; }
.js .hs__slide.is-active > :nth-child(5) { animation-delay: .28s; }
@keyframes hsIn { from { opacity: 0; transform: translateY(18px); } }

.hs__title { font-size: clamp(2.3rem, 8.6vw, 3.7rem); font-weight: 800; letter-spacing: -0.024em; line-height: 1.02; text-wrap: balance; }
.hs__title { color: var(--c-on-dark); }
.hs__title em { display: block; font-style: normal; color: var(--c-on-dark-accent); }
.hs__hi { margin: 14px 0 10px; font-size: clamp(1.05rem, 3.8vw, 1.3rem); line-height: 1.4; color: var(--c-on-dark-soft); }
.hs__text { margin: 14px 0 0; max-width: 48ch; font-size: clamp(1rem, 2.4vw, 1.12rem); line-height: 1.6; color: rgb(var(--c-on-dark-rgb) / .78); }
.hs__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hs__actions .btn { flex: 1 1 auto; }
.hs__body .btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-on-dark); --btn-bd: rgb(var(--c-on-dark-rgb) / .35); }
.hs__body .btn--ghost:hover { --btn-bd: var(--c-on-dark); }
.cdock .btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-primary); --btn-bd: var(--c-primary); }
.cdock .btn--ghost:hover { --btn-bg: var(--c-primary); --btn-fg: var(--c-on-dark); }
.hs__body :focus-visible { outline-color: var(--c-focus-on-dark); }

/* The note under the buttons: a white pill with an icon or the doctors' faces. */
.hs__chip {
  display: inline-flex; align-items: center; gap: 12px; margin: 20px 0 0; padding: 6px 18px 6px 6px; border-radius: 999px;
  background: rgb(var(--c-on-dark-rgb) / .1); border: 1px solid rgb(var(--c-on-dark-rgb) / .16);
  font-size: .92rem; line-height: 1.25; color: var(--c-on-dark);
}
.hs__chip strong { display: block; font-weight: 700; }
.hs__chip small { display: block; font-size: .8rem; color: rgb(var(--c-on-dark-rgb) / .7); }
.hs__chip-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgb(var(--c-on-dark-accent-rgb) / .16); color: var(--c-on-dark-accent); }
.hs__faces { display: flex; flex: none; }
.hs__faces picture { width: 40px; height: 40px; overflow: hidden; border-radius: 50%; border: 2px solid var(--c-panel); background: var(--c-tint); }
.hs__faces picture + picture { margin-left: -12px; }
.hs__faces img { width: 100%; height: 100%; object-fit: cover; }

/* Controls, shown once main.js runs: previous and next arrows. --hs-lift (main.js) pulls them up to the
   foot of the slide showing, however much shorter it is than the longest. */
.hs__controls {
  display: flex; align-items: center; gap: 10px; margin-top: 24px;
  transform: translateY(calc(-1 * var(--hs-lift, 0px))); transition: transform .5s var(--ease);
}
.hs__controls[hidden] { display: none; }
.hs__btn {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%;
  border: 1.5px solid rgb(var(--c-on-dark-rgb) / .25); background: rgb(var(--c-on-dark-rgb) / .06); color: var(--c-on-dark);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.hs__btn:hover { background: var(--c-on-dark); border-color: var(--c-on-dark); color: var(--c-primary); }
.hs__btn:active { transform: scale(.94); }
.hs__btn .i { width: 20px; height: 20px; }
.hs__btn--prev .i { transform: rotate(180deg); }

.hs__dock { position: relative; z-index: 1; }
@media (max-width: 599px) { .hs__dock { padding-bottom: 24px; } }

/* ---------- Centre dock (index.php, main.js) ----------
   A two-tone card at the foot of the hero: a graphite picker with a sliding terracotta pill, and a light
   panel for the picked centre with today's status, its doctor, the phone number and two buttons. */
.cdock {
  --n: 2; --i: 0;
  display: grid; gap: 6px; margin-top: 30px; padding: 6px;
  border-radius: var(--radius); border: 1px solid var(--c-line);
  background: rgb(var(--c-bg-rgb) / .9); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: var(--shadow);
}
.cdock__pick {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 12px;
  padding: 16px; border-radius: calc(var(--radius) - 6px);
  background: var(--c-panel); color: var(--c-on-dark);
}
/* a warm glow in the corner, like light through a lens */
.cdock__pick::before {
  content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -90px; top: -110px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--c-accent-rgb) / .45), transparent);
}
.cdock__label { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 .74rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c-on-dark-accent); }
.cdock__label .i { width: 16px; height: 16px; color: var(--c-on-dark-icon); }
.cdock__tabs {
  position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); padding: 4px; border-radius: 16px;
  background: rgb(var(--c-on-dark-rgb) / .08); box-shadow: inset 0 0 0 1px rgb(var(--c-on-dark-rgb) / .08);
}
html:not(.js) .cdock__tabs { display: none; }
.cdock__glider {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 12px;
  background: var(--c-accent); box-shadow: 0 8px 20px -8px rgb(var(--c-accent-rgb) / .9);
  transform: translateX(calc(var(--i) * 100%)); transition: transform .45s var(--ease);
}
.cdock__tab {
  position: relative; z-index: 1; display: grid; gap: 3px; justify-items: center; padding: 9px 12px; border: 0; border-radius: 12px;
  background: none; color: rgb(var(--c-on-dark-rgb) / .72); font-weight: 700; font-size: .95rem; line-height: 1.1; white-space: nowrap;
  transition: color .25s;
}
.cdock__tab:hover { color: var(--c-on-dark); }
.cdock__tab[aria-selected="true"] { color: var(--c-on-dark); }
.cdock__tab-hi { font-size: .8rem; font-weight: 500; opacity: .8; }
.cdock__tab:focus-visible { outline-color: var(--c-focus-on-dark); outline-offset: -2px; }

.cdock__panel { display: grid; gap: 16px; padding: 14px 12px 10px; }
.cdock__panel[hidden] { display: none; }
html:not(.js) .cdock__panel[hidden] { display: grid; }
html:not(.js) .cdock__panel + .cdock__panel { border-top: 1px solid var(--c-line); }
.js .cdock__panel { animation: cdockIn .5s var(--ease) both; }
@keyframes cdockIn { from { opacity: 0; transform: translateY(8px); } }

.cdock__where p { margin: 0; }
.cdock__name { font: 800 1.12rem/1.2 var(--f-display); letter-spacing: -.02em; color: var(--c-primary); }
.cdock__name span { font: 500 .9rem var(--f-body); letter-spacing: 0; color: var(--c-muted); }
.cdock__addr { margin-top: 3px !important; font-size: .92rem; color: var(--c-text-soft); }
.cdock__status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 10px !important; font-size: .86rem; color: var(--c-muted); }
.cdock__status strong { color: var(--c-primary); }
.cdock__status.is-open strong { color: var(--c-success); }
.cdock__status--days { flex-wrap: nowrap; align-items: flex-start; gap: 8px; }
.cdock__status .i { width: 16px; height: 16px; margin-top: 1px; color: var(--c-link); }
.cdock__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--c-muted); }
.is-open .cdock__dot { background: var(--c-success); }
.is-open .cdock__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: cdockPulse 2.2s ease-out infinite; }
@keyframes cdockPulse { to { transform: scale(3); opacity: 0; } }

.cdock__doc {
  display: none; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; text-decoration: none;
  background: var(--c-tint); color: var(--c-primary); line-height: 1.2; transition: background .2s;
}
.cdock__doc:hover { background: var(--c-tint-strong); color: var(--c-primary); }
.cdock__doc small { display: block; font-size: .74rem; color: var(--c-muted); }
.cdock__doc strong { font-size: .92rem; }
.cdock__face { flex: none; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; border: 2px solid var(--c-bg); background: var(--c-tint-strong); }
.cdock__face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

.cdock__call { display: grid; gap: 12px; }
.cdock__phone {
  font: 800 clamp(1.45rem, 1.2rem + 1vw, 1.75rem)/1.1 var(--f-display); letter-spacing: -.02em; white-space: nowrap;
  color: var(--c-primary); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px;
}
.cdock__phone:hover { color: var(--c-accent-text); text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; }
.cdock__actions { display: flex; gap: 8px; }
.cdock__actions .btn { flex: 1 1 auto; }

/* Round icon tile used by .review-link (About and doctor pages). */
.quick__icon { width: 44px; height: 44px; border-radius: 14px; background: var(--c-tint); color: var(--c-link); display: grid; place-items: center; flex: none; transition: background .2s, color .2s; }

/* ---------- Ticker ---------- */
.ticker { background: var(--c-panel); color: var(--c-on-dark); overflow: hidden; padding: 16px 0; }
.ticker__track { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: baseline; gap: 10px; padding-right: 34px; white-space: nowrap; font: 700 1.12rem/1 var(--f-display); letter-spacing: -0.01em; }
.ticker__item .hi { font-weight: 500; color: var(--c-on-dark-accent); font-size: 1.02rem; }
.ticker__item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-on-dark-dot); margin-left: 24px; align-self: center; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (max-width: 599px) { .ticker { display: none; } }

/* ---------- Facts strip ---------- */
.facts-strip { background: var(--c-panel); color: rgb(var(--c-on-dark-rgb) / .78); padding: 22px 0; }
.facts-strip__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.facts-strip li { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; line-height: 1.35; }
.facts-strip .i { color: var(--c-on-dark-accent); margin-top: 2px; }
.facts-strip strong { display: block; color: var(--c-on-dark); font: 700 1rem/1.25 var(--f-display); letter-spacing: -0.01em; margin-bottom: 2px; }

/* ---------- Photo placeholder (shown until the WebP for a slot is uploaded) ---------- */
.ph {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; width: 100%; height: 100%; color: var(--c-link);
  background-color: var(--c-tint);
}
.ph::before { content: ""; position: absolute; z-index: -1; right: -28%; bottom: -34%; width: 86%; aspect-ratio: 1; background: var(--c-tint-strong); -webkit-mask: url("../brand/iris.svg") center / contain no-repeat; mask: url("../brand/iris.svg") center / contain no-repeat; }
.ph__icon { width: 34%; max-width: 76px; height: auto; aspect-ratio: 1; stroke-width: 1.3; opacity: .75; }

/* ---------- Pillars ---------- */
.pillars {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.pillars::-webkit-scrollbar { display: none; }
.pillar {
  scroll-snap-align: start; position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--c-card); border: 1px solid var(--c-line);
  text-decoration: none; color: var(--c-text);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.pillar:hover { color: var(--c-text); transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pillar__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--c-tint); overflow: hidden; }
.pillar__stock { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px; background: rgb(var(--c-darkest-rgb) / .62); color: rgb(var(--c-on-dark-rgb) / .92); font-size: .68rem; font-weight: 600; letter-spacing: .02em; line-height: 1.4; }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pillar:hover .pillar__media img { transform: scale(1.04); }
.pillar__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.pillar__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font: 700 1.6rem/1.1 var(--f-display); color: var(--c-primary); letter-spacing: -0.018em; }
.pillar__hi { font-size: 1rem; color: var(--c-link); font-weight: 500; }
.pillar__text { color: var(--c-muted); font-size: .97rem; line-height: 1.55; }
.pillar__more { margin-top: auto; padding-top: 6px; color: var(--c-link); font-size: .95rem; }
.pillar:hover .pillar__more .i { transform: translateX(4px); }

/* ---------- Highlighted treatments (home) ---------- */
.tfeat-grid { display: grid; gap: 14px; }
.tfeat {
  display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: var(--c-card);
  text-decoration: none; color: var(--c-text); box-shadow: var(--shadow-sm); border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.tfeat:hover { color: var(--c-text); transform: translateY(-3px); box-shadow: var(--shadow); }
.tfeat__icon { width: 54px; height: 54px; border-radius: 16px; background: var(--c-tint); color: var(--c-link); display: grid; place-items: center; margin-bottom: 18px; transition: background .2s, color .2s; }
.tfeat__icon .i { width: 28px; height: 28px; stroke-width: 1.6; }
.tfeat:hover .tfeat__icon { background: var(--c-light); color: var(--c-on-dark); }
.tfeat__name { font-size: 1.4rem; letter-spacing: -0.025em; margin-bottom: 8px; }
.tfeat__short { color: var(--c-muted); font-size: .98rem; margin-bottom: 18px; }
.tfeat__label { font: 700 .74rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c-primary); margin: 0 0 10px; padding-top: 16px; border-top: 1px solid var(--c-line); }
.tfeat__signs { list-style: none; display: grid; gap: 8px; margin-bottom: 20px; }
.tfeat__signs li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: .94rem; line-height: 1.45; }
.tfeat__signs .i { width: 18px; height: 18px; color: var(--c-link); stroke-width: 2.4; margin-top: 2px; }
.tfeat__more { margin-top: auto; color: var(--c-link); }
.tfeat:hover .tfeat__more .i { transform: translateX(4px); }

.tmore { margin-top: 28px; padding: 22px; border-radius: var(--radius); background: var(--c-card); display: grid; gap: 16px; }
.tmore__title { margin: 0; font: 700 .78rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.tmore__list { list-style: none; display: grid; gap: 8px; }
.tmore__list a {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border-radius: 14px;
  background: var(--c-tint); color: var(--c-primary); font-weight: 650; text-decoration: none; transition: background .2s, color .2s;
}
.tmore__list a:hover { background: var(--c-light); color: var(--c-on-dark); }
.tmore__list .i { width: 22px; height: 22px; stroke-width: 1.7; }
.tmore__list .i--end { margin-left: auto; width: 18px; height: 18px; }
.tmore .btn { justify-self: start; }

/* ---------- Treatment index ---------- */
.tindex { list-style: none; border-top: 1px solid var(--c-line); }
.tindex__row {
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid var(--c-line); text-decoration: none; color: var(--c-text);
  position: relative;
}
.tindex__row:hover { color: var(--c-text); }
.tindex__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--c-tint); color: var(--c-primary); display: grid; place-items: center; transition: background .2s, color .2s; }
.tindex__icon .i { width: 26px; height: 26px; stroke-width: 1.6; }
.tindex__row:hover .tindex__icon { background: var(--c-light); color: var(--c-on-dark); }
.tindex__name { display: block; font: 700 1.16rem/1.2 var(--f-display); color: var(--c-primary); letter-spacing: -0.02em; }
.tindex__name .hi { font-size: .95rem; font-weight: 500; color: var(--c-link); margin-left: 6px; letter-spacing: 0; }
.tindex__short { display: none; color: var(--c-muted); font-size: .95rem; margin-top: 4px; }
.tindex__arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--c-link); transition: transform .2s var(--ease); }
.tindex__row:hover .tindex__arrow { transform: translateX(4px); }

/* ---------- Treatment cards ---------- */
.tgrid { display: grid; gap: 14px; }
.tcard {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--c-card); border: 1px solid var(--c-line); text-decoration: none; color: var(--c-text);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.tcard:hover { color: var(--c-text); transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.tcard__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--c-tint); overflow: hidden; }
.tcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tcard:hover .tcard__media img { transform: scale(1.04); }
.tcard__body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; padding: 18px 20px 20px; }
.tcard h3 { font-size: 1.28rem; letter-spacing: -0.025em; }
.tcard .hi { color: var(--c-link); font-size: 1rem; line-height: 1.3; }
.tcard p { color: var(--c-muted); margin: 0; font-size: .96rem; line-height: 1.5; }
.tcard .link-arrow { margin-top: auto; padding-top: 6px; color: var(--c-link); }
/* Phones: compact rows, photo on the left, so a long list stays easy to scan. */
@media (max-width: 599px) {
  .tcard { flex-direction: row; }
  .tcard__media { flex: 0 0 34%; aspect-ratio: auto; min-height: 136px; }
  .tcard__body { padding: 12px 14px 14px; gap: 4px; }
  .tcard h3 { font-size: 1.06rem; line-height: 1.15; }
  .tcard .hi { font-size: .88rem; }
  .tcard p { font-size: .87rem; line-height: 1.42; }
  .tcard .link-arrow { font-size: .88rem; padding-top: 4px; }
  .tcard .pillar__stock { right: 5px; bottom: 5px; padding: 2px 6px; font-size: .58rem; }
}
@media (min-width: 600px) and (max-width: 719px) { .tgrid { grid-template-columns: 1fr 1fr; } }

/* Treatments page: area filter and grouped lists. Without JS every area shows, and the chips jump to it. */
.tfilter {
  position: sticky; top: var(--header-h); z-index: 20; display: flex; gap: 8px;
  margin: 0 calc(var(--gutter) * -1) 22px; padding: 10px var(--gutter);
  background: var(--c-surface); overflow-x: auto; scrollbar-width: none; scroll-padding-inline: var(--gutter);
}
.tfilter::-webkit-scrollbar { display: none; }
.tfilter__chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 12px 0 14px;
  border-radius: 999px; background: var(--c-card); border: 1px solid var(--c-line); color: var(--c-primary);
  font-weight: 650; font-size: .92rem; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
.tfilter__chip:hover { border-color: var(--c-light); color: var(--c-link); }
.tfilter__chip .i { width: 18px; height: 18px; stroke-width: 1.8; }
.tfilter__chip b { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--c-tint); color: var(--c-muted); font-size: .76rem; font-weight: 700; text-align: center; }
.tfilter__chip.is-active { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-dark); }
.tfilter__chip.is-active b { background: rgb(var(--c-on-dark-rgb) / .18); color: var(--c-on-dark); }
.tgroup { scroll-margin-top: calc(var(--header-h) + 74px); }
.tgroup + .tgroup { margin-top: 44px; }
.tgroup[hidden] { display: none; }
.tgroup__head { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 4px 14px; margin-bottom: 16px; }
.tgroup__icon { width: 48px; height: 48px; border-radius: 15px; background: var(--c-card); color: var(--c-link); display: grid; place-items: center; grid-row: span 2; align-self: start; }
.tgroup__icon .i { width: 26px; height: 26px; stroke-width: 1.6; }
.tgroup__head h2 { font-size: 1.5rem; letter-spacing: -0.025em; }
.tgroup__head h2 .hi { display: inline-block; font-size: 1rem; font-weight: 500; color: var(--c-link); margin-left: 4px; letter-spacing: 0; }
.tgroup__head p { margin: 0; color: var(--c-muted); font-size: .95rem; line-height: 1.45; }
/* A card listed under a second area (for example ROP under Children) shows only when that area is picked. */
.tgroups:not([data-active]) .tcard.is-also { display: none; }
.t-hero__jump { margin: 18px 0 0; }
.t-hero__hi { margin: 10px 0 0; color: var(--c-link); font-size: 1.06rem; line-height: 1.5; font-weight: 500; }
.tmore__count { margin-left: 2px; padding: 1px 8px; border-radius: 999px; background: var(--c-card); color: var(--c-muted); font-size: .76rem; font-weight: 700; }
.tmore__list a:hover .tmore__count { background: rgb(var(--c-on-dark-rgb) / .2); color: var(--c-on-dark); }

/* Treatments hero: the four signboard areas as small links that jump to their group below. */
.tfocus { margin-top: 22px; }
.tfocus__label { margin: 0 0 8px; color: var(--c-muted); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tfocus__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tfocus__list a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px 0 12px; border-radius: 999px;
  background: var(--c-card); border: 1px solid var(--c-line); color: var(--c-primary); font-weight: 650; font-size: .92rem; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.tfocus__list a:hover { border-color: var(--c-light); color: var(--c-link); }
.tfocus__list .i { width: 18px; height: 18px; stroke-width: 1.8; color: var(--c-link); }

/* Treatments page: a short last row fills the width. 'half3' cards take half a row and a lone 'wide' card the whole row,
   both with the photo on the left. data-fit-all applies to the full list, data-fit-area when one area is picked. */
@media (min-width: 600px) and (max-width: 959px) {
  .tgroups:not([data-active]) .tcard[data-fit-all~="wide2"],
  .tgroups[data-active] .tcard[data-fit-area~="wide2"] { grid-column: 1 / -1; flex-direction: row; }
  .tgroups:not([data-active]) .tcard[data-fit-all~="wide2"] .tcard__media,
  .tgroups[data-active] .tcard[data-fit-area~="wide2"] .tcard__media { flex: 0 0 calc(50% - 7px); aspect-ratio: auto; min-height: 200px; }
}
@media (min-width: 960px) {
  .tgroups .tgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tgroups .tcard { grid-column: span 2; }
  .tgroups:not([data-active]) .tcard[data-fit-all~="half3"],
  .tgroups[data-active] .tcard[data-fit-area~="half3"] { grid-column: span 3; flex-direction: row; }
  .tgroups:not([data-active]) .tcard[data-fit-all~="half3"] .tcard__media,
  .tgroups[data-active] .tcard[data-fit-area~="half3"] .tcard__media { flex: 0 0 46%; aspect-ratio: auto; min-height: 230px; }
  .tgroups:not([data-active]) .tcard[data-fit-all~="wide3"],
  .tgroups[data-active] .tcard[data-fit-area~="wide3"] { grid-column: 1 / -1; flex-direction: row; }
  .tgroups:not([data-active]) .tcard[data-fit-all~="wide3"] .tcard__media,
  .tgroups[data-active] .tcard[data-fit-area~="wide3"] .tcard__media { flex: 0 0 calc((100% - 28px) / 3); aspect-ratio: auto; min-height: 240px; }
}

/* Treatments hero: a sign-to-treatment guide and both phone numbers */
.finder { width: 100%; }
.finder__list { list-style: none; display: grid; }
.finder__list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.finder__list li:first-child a { border-top: 0; padding-top: 0; }
.finder__list b { display: inline-flex; align-items: center; gap: 4px; color: var(--c-link); font-weight: 700; white-space: nowrap; font-size: .9rem; }
.finder__list .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.finder__list a:hover { color: var(--c-primary); }
.finder__list a:hover .i { transform: translateX(3px); }
.finder__calls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.finder__calls a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--c-tint); color: var(--c-primary); text-decoration: none; font-size: .86rem; line-height: 1.3; min-width: 0; }
.finder__calls a:hover { background: var(--c-light); color: var(--c-on-dark); }
.finder__calls strong { display: block; font-size: .92rem; }
.finder__calls .i { width: 18px; height: 18px; flex: none; }
.finder__calls span { white-space: nowrap; }
@media (max-width: 479px) {
  .finder__calls { grid-template-columns: minmax(0, 1fr); }
  .finder__calls span { display: flex; flex: 1; justify-content: space-between; gap: 10px; }
}

/* ---------- Doctors ---------- */
.doc-grid { display: grid; gap: 18px; }
.doc-card {
  display: grid; gap: 22px; padding: 22px; border-radius: var(--radius-lg); background: var(--c-card);
  border: 1px solid var(--c-line); position: relative;
}
.section--ice .doc-card { border-color: transparent; box-shadow: var(--shadow-sm); }
.doc-card__photo { position: relative; width: 168px; aspect-ratio: 1; }
/* Square doctor frame (doctor_portrait() in cards.php). --pf-r is the corner, --pf-o how far the gold outline and the
   dot patch sit out from the photo. */
.pframe { --pf-r: 22px; --pf-o: 14px; position: relative; isolation: isolate; }
.pframe::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--pf-r);
  border: 2px solid var(--c-accent); transform: translate(var(--pf-o), var(--pf-o));
  transition: transform .6s var(--ease);
}
.pframe::after {
  content: ""; position: absolute; z-index: -2; width: 64%; aspect-ratio: 1; left: -32%; top: -32%;
  background: rgb(var(--c-light-rgb) / .32); -webkit-mask: url("../brand/iris.svg") center / contain no-repeat; mask: url("../brand/iris.svg") center / contain no-repeat;
}
.pframe picture { position: absolute; inset: 0; overflow: hidden; border-radius: var(--pf-r); background: var(--c-tint); box-shadow: 0 30px 50px -30px rgb(var(--c-shadow-rgb) / .55); }
.pframe img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .9s var(--ease); }
a:hover > .pframe img, .dprof:hover .pframe img, .doc-card:hover .pframe img { transform: scale(1.04); }
a:hover > .pframe::before, .dprof:hover .pframe::before, .doc-card:hover .pframe::before { transform: translate(calc(var(--pf-o) * .55), calc(var(--pf-o) * .55)); }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--c-link); }
.ring__deg { position: absolute; right: -6px; top: 12px; font: 700 .66rem/1 var(--f-body); color: var(--c-link); letter-spacing: .08em; background: var(--c-card); padding: 4px 6px; border-radius: 6px; box-shadow: var(--shadow-sm); }
.doc-card__exp { position: absolute; z-index: 1; left: -10px; bottom: -10px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--c-primary); color: var(--c-on-dark); text-align: center; line-height: 1; box-shadow: 0 10px 22px -12px rgb(var(--c-darkest-rgb) / .8); }
.doc-card__exp strong { font: 800 1.3rem/1 var(--f-display); letter-spacing: -0.018em; display: block; }
.doc-card__exp small { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; display: block; margin-top: 2px; }
.doc-card h3 { font-size: clamp(1.6rem, 6vw, 2.2rem); letter-spacing: -0.02em; font-weight: 800; }
.doc-card__hi { color: var(--c-link); font-size: 1.05rem; margin: 4px 0 2px; }
.doc-card__role { font-weight: 650; color: var(--c-text); margin: 0 0 12px; }
.doc-card__summary { color: var(--c-muted); margin-bottom: 16px; }
.creds { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-bottom: 18px; }
.creds li { padding: 5px 10px; border-radius: 8px; background: var(--c-tint); color: var(--c-primary); font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.doc-card__where { display: flex; align-items: center; gap: 8px; font-size: .94rem; color: var(--c-muted); margin-bottom: 18px; }
.doc-card__where .i { color: var(--c-link); }
.doc-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Patna map ---------- */
.pmap { background: var(--c-panel); color: rgb(var(--c-on-dark-rgb) / .86); overflow: hidden; }
.pmap .section-head h2 { color: var(--c-on-dark); }
.pmap .section-head p { color: rgb(var(--c-on-dark-rgb) / .72); }
.pmap__frame { position: relative; overflow: hidden; margin-inline: calc(var(--gutter) * -1); }
.pmap__canvas { position: relative; width: 170%; margin-left: -20%; }
.pmap__svg { width: 100%; height: auto; overflow: visible; }
.pmap__river { fill: none; stroke: rgb(var(--c-on-dark-accent-rgb) / .16); stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; }
.pmap__dots path { fill: none; stroke-width: 4.8; stroke-linecap: round; }
.pmap__dots .d1 { stroke: rgb(var(--c-map-dot-rgb) / .3); }
.pmap__dots .d2 { stroke: rgb(var(--c-map-dot-rgb) / .42); }
.pmap__dots .d3 { stroke: var(--c-on-dark-icon); }
.pmap__river-label, .pmap__place { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none; }
.pmap__river-label { color: var(--c-on-dark-soft); font-size: .92rem; font-weight: 600; letter-spacing: .08em; font-style: italic; text-shadow: 0 1px 6px var(--c-primary), 0 0 2px var(--c-primary); }
.pmap__place {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 7px; border-radius: 999px;
  background: rgb(var(--c-darkest-rgb) / .78); border: 1px solid rgb(var(--c-on-dark-accent-rgb) / .28);
  font-size: .8rem; font-weight: 700; letter-spacing: .05em; line-height: 1.2; text-transform: uppercase; color: var(--c-on-dark);
}
.pmap__place::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-on-dark-accent); flex: none; }
.pmap__place--far { display: none; }
.pmap__pin { position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; text-decoration: none; color: var(--c-primary); z-index: 2; }
.pmap__pin::before { content: ""; position: absolute; inset: -12px; }
.pmap__dot { position: absolute; inset: 0; border-radius: 50%; background: var(--c-card); box-shadow: 0 0 0 5px rgb(var(--c-pin-rgb) / .9); }
.pmap__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--c-on-dark-icon); animation: pulse 2.4s var(--ease) infinite; }
.pmap__chip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%);
  background: var(--c-card); color: var(--c-primary); border-radius: 12px; padding: 8px 13px; white-space: nowrap;
  box-shadow: 0 12px 26px -14px rgb(var(--c-scrim-rgb) / .6); line-height: 1.15; text-align: center;
  transition: transform .25s var(--ease), background .2s, color .2s;
}
.pmap__chip::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--c-card); transition: border-color .2s; }
.pmap__chip strong { display: block; font: 700 1rem/1.1 var(--f-display); letter-spacing: -0.01em; }
.pmap__chip-sub { display: block; font-size: .76rem; color: var(--c-muted); font-weight: 600; margin-top: 2px; }
.pmap__pin:hover .pmap__chip, .pmap__pin.is-active .pmap__chip, .pmap__pin:focus-visible .pmap__chip { background: var(--c-light); color: var(--c-on-dark); transform: translateX(-50%) translateY(-3px); }
.pmap__pin:hover .pmap__chip-sub, .pmap__pin.is-active .pmap__chip-sub, .pmap__pin:focus-visible .pmap__chip-sub { color: var(--c-on-dark-soft); }
.pmap__pin:focus-visible { outline: none; }
.pmap__pin:hover .pmap__chip::after, .pmap__pin.is-active .pmap__chip::after, .pmap__pin:focus-visible .pmap__chip::after { border-top-color: var(--c-light); }
.pmap__pin:focus-visible .pmap__chip { outline: 3px solid var(--c-focus-on-dark); outline-offset: 3px; }
/* Below 1100px the map is zoomed in, so the Kankarbagh chip sits below its pin and leaves Boring Road and Patna Jn. readable. */
@media (max-width: 1099px) {
  .pmap__pin[data-pin="kankarbagh"] .pmap__chip { bottom: auto; top: calc(100% + 12px); }
  .pmap__pin[data-pin="kankarbagh"] .pmap__chip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--c-card); }
  .pmap__pin[data-pin="kankarbagh"]:hover .pmap__chip::after, .pmap__pin[data-pin="kankarbagh"].is-active .pmap__chip::after, .pmap__pin[data-pin="kankarbagh"]:focus-visible .pmap__chip::after { border-top-color: transparent; border-bottom-color: var(--c-light); }
}
.pmap__you { position: absolute; width: 14px; height: 14px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--c-highlight); box-shadow: 0 0 0 6px rgb(var(--c-highlight-rgb) / .25); }
.pmap__you[hidden] { display: none; }
@keyframes pulse { 0% { transform: scale(.7); opacity: 1; } 80%, 100% { transform: scale(2.3); opacity: 0; } }

.pmap__foot { display: grid; gap: 14px; margin-top: 26px; }
.locate { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.locate__result { margin: 0; color: rgb(var(--c-on-dark-rgb) / .8); font-size: .95rem; min-height: 1.4em; }
.locate__result strong { color: var(--c-on-dark); }

.branch-cards { display: grid; gap: 14px; margin-top: 18px; }
.branch-card {
  position: relative; display: grid; gap: 14px; padding: 22px; border-radius: var(--radius);
  background: rgb(var(--c-on-dark-rgb) / .06); border: 1px solid rgb(var(--c-on-dark-rgb) / .12); color: rgb(var(--c-on-dark-rgb) / .86);
  transition: background .25s, border-color .25s, transform .25s var(--ease);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.branch-card.is-active, .branch-card:target { background: rgb(var(--c-on-dark-rgb) / .11); border-color: var(--c-on-dark-icon); }
.branch-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.branch-card h3 { color: var(--c-on-dark); font-size: 1.6rem; letter-spacing: -0.018em; }
.branch-card h3 .hi { font-size: 1.05rem; color: var(--c-on-dark-accent); font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.branch-card__full { font-size: .86rem; color: rgb(var(--c-on-dark-rgb) / var(--c-on-dark-faint-alpha, .62)); margin: 4px 0 0; }
.branch-card__dist { font-size: .78rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--c-card); color: var(--c-primary); white-space: nowrap; }
.branch-card__dist[hidden] { display: none; }
.branch-card__list { list-style: none; display: grid; gap: 10px; font-size: .97rem; }
.branch-card__list li { display: flex; gap: 10px; }
.branch-card__list .i { color: var(--c-on-dark-icon); margin-top: 2px; }
.branch-card__list a:not(.btn) { color: var(--c-on-dark); font-weight: 650; text-decoration: none; white-space: nowrap; display: inline-block; padding-block: 2px; }
.branch-card__phones { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.branch-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.branch-card__actions .btn { min-height: 46px; padding-inline: 12px; }
.branch-card__actions .btn:last-child { grid-column: span 2; }
.branch-card__photo .ph { color: var(--c-link); }

/* Light variant used on the contact page */
.branch-card--light { background: var(--c-card); border-color: var(--c-line); color: var(--c-text); }
.branch-card--light h3 { color: var(--c-primary); }
.branch-card--light h3 .hi { color: var(--c-link); }
.branch-card--light .branch-card__full { color: var(--c-muted); }
.branch-card--light .branch-card__list .i { color: var(--c-link); }
.branch-card--light .branch-card__list a { color: var(--c-primary); }
/* No map beside the light cards, so hovering one does not mark it. Both keep the same border; a #branch link flashes it once. */
.branch-card--light.is-active { background: var(--c-card); border-color: var(--c-line); }
.branch-card--light:target { animation: cardFlash 1.6s var(--ease); }
@keyframes cardFlash { 0%, 40% { border-color: var(--c-light); box-shadow: 0 0 0 3px rgb(var(--c-light-rgb) / .18); } 100% { border-color: var(--c-line); box-shadow: none; } }
.branch-card__photo { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-tint); }
.branch-card__photo img { width: 100%; height: 100%; object-fit: cover; }
/* Home: the Gola Road signboard runs to the top and right edges of its 3:2 photo, so a 16:9 crop cut it off.
   Showing both centre photos at 3:2, anchored to the top, keeps the full board in view. */
.pmap .branch-card__photo { aspect-ratio: 3 / 2; }
.pmap .branch-card__photo img { object-position: 50% 0; }
/* Home, phones: phone numbers and doctor names are tapped with a thumb, so give them a 40px tall target. */
.pmap .branch-card__list { gap: 4px; }
.pmap .branch-card__list li { align-items: flex-start; }
.pmap .branch-card__list .i { margin-top: 10px; }
.pmap .branch-card__list li > span:not(.branch-card__phones) { padding-block: 8px; }
.pmap .branch-card__list a:not(.btn) { display: inline-flex; align-items: center; min-height: 40px; padding-block: 0; }
.pmap .branch-card__phones { gap: 0 18px; }
.mapframe { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius-sm); background: var(--c-tint); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--c-tint); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 6px 12px; border-radius: 999px; background: rgb(var(--c-on-dark-rgb) / .94); color: var(--c-primary); font-size: .82rem; font-weight: 700; line-height: 1.3; }
.gallery__hint { display: flex; align-items: center; gap: 8px; color: var(--c-muted); font-size: .88rem; margin-top: 12px; }
/* Home gallery: every photo is 3:2, so tiles keep that shape and nothing important (like the reception sign) is cropped off. */
.gallery--home { grid-auto-columns: 86%; scroll-padding-inline: var(--gutter); }
.gallery--home figcaption { font-size: .86rem; }
.gallery--home figure.is-wide img { object-position: 50% 60%; }
/* The operation theatre photo is nearly square; keep the surgeons' heads in the 3:2 frame. */
.gallery--home figure:first-child img { object-position: 50% 15%; }

/* ---------- Before you visit ---------- */
.prep { display: grid; gap: 12px; counter-reset: prep; list-style: none; }
.prep li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--c-card); border: 1px solid var(--c-line); }
.prep__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--c-tint); color: var(--c-link); display: grid; place-items: center; }
.prep h3 { font-size: 1.1rem; letter-spacing: -0.015em; margin-bottom: 4px; }
.prep p { margin: 0; color: var(--c-muted); font-size: .95rem; }

.cover { border-radius: var(--radius-lg); background: var(--c-panel); color: rgb(var(--c-on-dark-rgb) / .85); padding: 26px; display: grid; gap: 18px; position: relative; overflow: hidden; }
.cover::after { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; background: rgb(var(--c-on-dark-accent-rgb) / .22); -webkit-mask: url("../brand/iris.svg") center / contain no-repeat; mask: url("../brand/iris.svg") center / contain no-repeat; pointer-events: none; }
.cover h3 { color: var(--c-on-dark); font-size: 1.5rem; letter-spacing: -0.025em; }
.cover p { margin: 0; }
.cover__list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.cover__list li { padding: 6px 11px; border-radius: 999px; background: rgb(var(--c-on-dark-rgb) / .09); color: var(--c-on-dark); font-size: .84rem; font-weight: 600; }
.cover__ayush { display: flex; gap: 12px; padding: 14px; border-radius: var(--radius-sm); background: rgb(var(--c-on-dark-rgb) / .07); font-size: .95rem; }
.cover__ayush .i { color: var(--c-on-dark-accent); width: 26px; height: 26px; }
.cover small { color: rgb(var(--c-on-dark-rgb) / .6); font-size: .84rem; }
.cover__calls { display: grid; gap: 8px; position: relative; z-index: 1; }
.cover__call {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--c-card); color: var(--c-primary); text-decoration: none; font-weight: 650; transition: background .2s;
}
.cover__call:hover { background: var(--c-tint); color: var(--c-primary); }
.cover__call .i { color: var(--c-link); }
.cover__call strong { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.cover__hi { font-size: .98rem; color: var(--c-on-dark-note); }

/* Focus rings that stay visible on the dark sections */
.pmap :focus-visible, .cover :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible, .mnav :focus-visible, .facts-strip :focus-visible { outline-color: var(--c-focus-on-dark); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius-sm); background: var(--c-card); border: 1px solid var(--c-line); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: transparent; box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 18px 18px 20px;
  font: 700 1.05rem/1.35 var(--f-body); color: var(--c-primary); cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--c-tint); color: var(--c-link); transition: transform .25s var(--ease), background .2s, color .2s; }
.faq details[open] summary .i { transform: rotate(45deg); background: var(--c-light); color: var(--c-on-dark); }
.faq details p { padding: 0 20px 20px; margin: 0; color: var(--c-muted); }
/* On the home page the questions are always shown at full strength. The fade-in left items half drawn
   (or blank) until the scroll observer fired, which read as a broken, cut-off item. */
.js .is-home .faq .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--c-band); color: var(--c-on-dark); padding: clamp(44px, 8vw, 80px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -170px; top: 50%; width: 560px; aspect-ratio: 1; translate: 0 -50%; background: rgb(var(--c-on-dark-rgb) / .1); -webkit-mask: url("../brand/iris.svg") center / contain no-repeat; mask: url("../brand/iris.svg") center / contain no-repeat; pointer-events: none; }
.cta-band__inner { position: relative; display: grid; gap: 24px; }
.cta-band .eyebrow--light { color: var(--c-on-dark-soft); }
.cta-band__title { color: var(--c-on-dark); font-size: clamp(1.9rem, 6.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; max-width: 760px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-darkest); color: rgb(var(--c-on-dark-rgb) / .72); padding: 56px 0 24px; font-size: .95rem; border-top: 1px solid rgb(var(--c-on-dark-rgb) / .08); }
.site-footer__grid { display: grid; gap: 34px; }
.site-footer__hi { font-size: 1.05rem; color: var(--c-on-dark-accent); margin: 18px 0 6px; }
.site-footer__tag { max-width: 340px; margin: 0; }
.site-footer h3 { color: var(--c-on-dark); font-size: 1.1rem; margin-bottom: 12px; letter-spacing: -0.01em; }
.site-footer h3 .hi { color: var(--c-on-dark-accent); font-weight: 500; font-size: .95rem; margin-left: 4px; }
.site-footer__col p { margin-bottom: 10px; }
.site-footer__phone { display: flex; align-items: center; gap: 8px; color: var(--c-on-dark); font-weight: 650; text-decoration: none; padding: 4px 0; }
.site-footer__phone:hover { color: var(--c-on-dark-accent); }
.site-footer__phone .i { color: var(--c-on-dark-icon); }
.site-footer__muted { font-size: .86rem; color: rgb(var(--c-on-dark-rgb) / .5); margin-top: 8px; }
.site-footer__links { list-style: none; display: grid; gap: 8px; }
.site-footer__links a { color: rgb(var(--c-on-dark-rgb) / .8); text-decoration: none; }
.site-footer__links a:hover { color: var(--c-on-dark); }
/* Home, phones and tablets: footer links were 18px tall, too small to tap reliably. */
@media (max-width: 959px) {
  .is-home .site-footer__links { gap: 0; }
  .is-home .site-footer__links a { display: flex; align-items: center; min-height: 40px; }
  .is-home .site-footer__phone { min-height: 40px; }
}
.site-footer__bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgb(var(--c-on-dark-rgb) / .1); display: grid; gap: 6px; font-size: .84rem; color: rgb(var(--c-on-dark-rgb) / .5); }
.site-footer__bottom p { margin: 0; }
/* Wide screens: room below the last line for the floating WhatsApp button (58px, 18px from the edge). */
@media (min-width: 960px) { .site-footer { padding-bottom: 96px; } }

/* ---------- Call sheet ---------- */
.call-sheet {
  width: min(100% - 20px, 460px); max-height: calc(100dvh - 40px); margin: auto auto 10px; padding: 22px;
  border: 0; border-radius: 26px; background: var(--c-card); color: var(--c-text); box-shadow: 0 30px 80px -20px rgb(var(--c-darkest-rgb) / .55);
}
.call-sheet[open] { animation: sheetUp .3s var(--ease); }
.call-sheet::backdrop { background: rgb(var(--c-darkest-rgb) / .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.call-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.call-sheet h2 { font-size: 1.3rem; letter-spacing: -0.02em; }
.call-sheet__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--c-tint); color: var(--c-primary); display: grid; place-items: center; flex: none; }
.call-sheet__branch { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.call-sheet__name { margin: 0; font: 700 1.1rem/1.2 var(--f-display); color: var(--c-primary); }
.call-sheet__name .hi { color: var(--c-link); font-weight: 500; font-size: .95rem; margin-left: 4px; }
.call-sheet__addr { margin: 2px 0 10px; font-size: .88rem; color: var(--c-muted); }
.call-sheet__num { display: flex; align-items: center; gap: 12px; padding: 13px 16px; margin-top: 8px; border-radius: 14px; background: var(--c-tint); color: var(--c-primary); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.call-sheet__num:hover { background: var(--c-light); color: var(--c-on-dark); }
.call-sheet__num .i--end { margin-left: auto; }
.call-sheet__num--wa .i:first-child { color: var(--c-wa); }
.call-sheet__num--wa:hover .i:first-child { color: inherit; }
.call-sheet__note { margin: 14px 0 0; font-size: .86rem; color: var(--c-muted); }
@keyframes sheetUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Floating WhatsApp chat ----------
   Needs main.js, so it stays hidden without it. */
.wa { display: none; }
.js .wa { display: block; --wa-gap: 18px; }
.wa__fab {
  position: fixed; z-index: 45; right: calc(var(--wa-gap) + env(safe-area-inset-right));
  bottom: calc(var(--wa-gap) + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 14px 30px -12px rgb(var(--c-darkest-rgb) / .7), 0 0 0 4px rgb(var(--c-on-dark-rgb) / .9);
  transition: transform .2s var(--ease), background-color .2s; -webkit-tap-highlight-color: transparent;
}
/* WhatsApp brand green, with its darker teal-green on hover. */
.wa__fab:hover { background: #128C7E; transform: translateY(-2px); }
.wa__fab:focus-visible { outline-offset: 4px; border-radius: 50%; }
.wa__fab .i { width: 28px; height: 28px; grid-area: 1 / 1; transition: transform .25s var(--ease), opacity .2s; }
.wa__fab-close, .wa__fab[aria-expanded="true"] .wa__fab-open { opacity: 0; transform: rotate(-60deg) scale(.6); }
.wa__fab[aria-expanded="true"] { background: var(--c-primary); }
.wa__fab[aria-expanded="true"] .wa__fab-close { opacity: 1; transform: none; }
.menu-open .wa { display: none; }

.wa__panel {
  position: fixed; z-index: 46; right: calc(var(--wa-gap) + env(safe-area-inset-right));
  bottom: calc(var(--wa-gap) + 72px + env(safe-area-inset-bottom));
  width: 370px; max-height: calc(100dvh - var(--header-h) - 110px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--c-card); color: var(--c-text); border-radius: 24px; border: 1px solid var(--c-line);
  box-shadow: 0 30px 70px -24px rgb(var(--c-darkest-rgb) / .55);
  transform-origin: bottom right; animation: waIn .26s var(--ease);
}
.wa__panel[hidden] { display: none; }
@keyframes waIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

.wa__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--c-panel); color: var(--c-on-dark); }
.wa__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--c-card); color: var(--c-primary); display: grid; place-items: center; flex: none; }
.wa__mark { width: 33px; height: auto; }
.wa__who { min-width: 0; flex: 1; }
.wa__title { color: var(--c-on-dark); font-size: 1.08rem; letter-spacing: -0.01em; line-height: 1.2; }
.wa__sub { margin: 0; font-size: .8rem; color: var(--c-on-dark-accent); line-height: 1.3; }
.wa__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(var(--c-on-dark-rgb) / .12); color: var(--c-on-dark); display: grid; place-items: center; flex: none; }
.wa__close:hover { background: rgb(var(--c-on-dark-rgb) / .22); }
.wa__close:focus-visible { outline-color: var(--c-focus-on-dark); border-radius: 50%; }

.wa__body { padding: 16px; overflow-y: auto; overscroll-behavior: contain; background: var(--c-surface); }
.wa__bubble {
  position: relative; margin: 0 0 14px; padding: 10px 14px; max-width: 88%; width: fit-content;
  background: var(--c-card); color: var(--c-text); border-radius: 4px 16px 16px 16px; box-shadow: var(--shadow-sm); font-size: .96rem; line-height: 1.45;
}
.wa__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 999px; background: var(--c-surface-strong); }
.wa__tab {
  min-height: 42px; padding: 4px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--c-primary);
  font-weight: 650; font-size: .92rem; line-height: 1.15; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 5px;
}
.wa__tab .hi { font-size: .8rem; font-weight: 500; color: var(--c-muted); }
.wa__tab[aria-selected="true"] { background: var(--c-card); box-shadow: var(--shadow-sm); }
.wa__tab[aria-selected="true"] .hi { color: var(--c-link); }
.wa__tab:focus-visible { outline-offset: -3px; border-radius: 999px; }
.wa__pane:focus-visible { outline-offset: 2px; border-radius: 12px; }
.wa__hint { margin: 0 0 10px; font-size: .86rem; color: var(--c-muted); line-height: 1.45; }
.wa__topics { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wa__topic {
  display: flex; align-items: flex-start; gap: 8px; height: 100%; min-height: 50px; padding: 10px 12px; border-radius: 14px;
  background: var(--c-card); border: 1px solid var(--c-line); color: var(--c-primary); font-weight: 650; font-size: .9rem; line-height: 1.25; text-decoration: none;
  transition: border-color .2s, background-color .2s, color .2s;
}
.wa__topic .i { color: var(--c-link); width: 1.15em; height: 1.15em; margin-top: 1px; }
.wa__topic small { display: block; margin-top: 3px; font-weight: 500; font-size: .76rem; color: var(--c-muted); line-height: 1.3; }
.wa__topic:hover { border-color: var(--c-light); color: var(--c-primary); background: var(--c-card); }
.wa__form { display: flex; align-items: flex-end; gap: 8px; margin-top: 14px; padding: 6px 6px 6px 14px; border-radius: 24px; background: var(--c-card); border: 1px solid var(--c-line); }
.wa__form:focus-within { border-color: var(--c-light); box-shadow: 0 0 0 3px rgb(var(--c-light-rgb) / .18); }
.wa__input {
  flex: 1; min-width: 0; min-height: 40px; max-height: 120px; padding: 9px 0; border: 0; resize: none; background: transparent;
  font: 400 1rem/1.35 var(--f-body); color: var(--c-text);
}
.wa__input:focus { outline: none; }
.wa__input::placeholder { color: var(--c-muted); }
.wa__send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--c-btn); color: var(--c-btn-text); display: grid; place-items: center; flex: none; }
.wa__send:hover { background: var(--c-btn-hover); }
.wa__send:focus-visible { border-radius: 50%; }
.wa__call { display: flex; align-items: center; gap: 12px; padding: 13px 16px; margin-top: 8px; border-radius: 14px; background: var(--c-btn); color: var(--c-btn-text); font-weight: 650; text-decoration: none; }
.wa__call:hover { background: var(--c-btn-hover); color: var(--c-btn-text); }
.wa__call strong { display: block; font-size: 1.05rem; }

/* Phones: the panel becomes a bottom sheet; its own close button replaces the floating one. */
@media (max-width: 599px) {
  .js .wa { --wa-gap: 14px; }
  .wa__fab { width: 54px; height: 54px; }
  .wa__panel {
    left: 0; right: 0; bottom: 0; width: auto; max-height: calc(100dvh - 56px);
    border-radius: 24px 24px 0 0; border-width: 1px 0 0; transform-origin: bottom center; animation-name: sheetUp;
  }
  .wa__body { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .wa.is-open .wa__fab { display: none; }
}
@media (max-width: 379px) {
  .wa__topic { padding: 9px 10px; font-size: .86rem; }
}

/* ---------- Title sections run up behind the header ----------
   The first section of every page starts at the very top, behind the header pill, so its background
   (and photo) fills the space around the pill instead of leaving a white strip. Each one adds the
   header band back to its top padding: calc(var(--header-h) + the space it wants under the pill). */
.hs, .page-head, .page-hero, .abh, .crh, .dh, .ap-hero { margin-top: calc(-1 * var(--header-h)); }

/* ---------- Glowing navy title sections ----------
   Home, About, Doctors, Treatments, Contact, Career and each doctor's and treatment's own page open on the same background (--bg-glow), with the iris
   rings from the logo faint in the bottom right corner. Each section sets its own text colours for it. */
.hs::after, .page-head::after {
  content: ""; position: absolute; z-index: -1; right: -30%; bottom: -70%; width: 1200px; aspect-ratio: 1; pointer-events: none;
  background: rgb(var(--c-on-dark-rgb) / .06); -webkit-mask: url("../brand/iris.svg") center / contain no-repeat; mask: url("../brand/iris.svg") center / contain no-repeat;
}
:is(.hs, .page-head, .page-hero, .abh, .dh, .crh) .crumbs :is(a, li) { color: rgb(var(--c-on-dark-rgb) / .72); }
:is(.hs, .page-head, .page-hero, .abh, .dh, .crh) .crumbs a:hover { color: var(--c-on-dark); }
:is(.hs, .page-head, .page-hero, .abh, .dh, .crh) .crumbs li + li::before { color: rgb(var(--c-on-dark-rgb) / .35); }
:is(.hs, .page-head, .page-hero, .abh, .dh) .eyebrow { color: var(--c-on-dark-accent); }
:is(.page-head, .page-hero, .abh, .dh) :focus-visible { outline-color: var(--c-focus-on-dark); }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--bg-glow); color: rgb(var(--c-on-dark-rgb) / .8); padding: calc(var(--header-h) + 28px) 0 clamp(40px, 8vw, 80px); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -90px; bottom: -110px; width: 380px; height: 380px; pointer-events: none;
  background: rgb(var(--c-on-dark-rgb) / .06); -webkit-mask: url("../brand/iris.svg") center / contain no-repeat; mask: url("../brand/iris.svg") center / contain no-repeat;
}
.page-hero .container { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .86rem; color: var(--c-muted); margin-bottom: clamp(26px, 6vw, 48px); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--c-line); }
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-link); }
.page-hero__title { font-size: clamp(2.6rem, 11vw, 5.6rem); font-weight: 800; letter-spacing: -0.026em; line-height: .96; max-width: 14ch; color: var(--c-on-dark); }
.page-hero__hi { display: block; font-size: clamp(1.2rem, 4.6vw, 1.7rem); color: var(--c-on-dark-accent); margin: 14px 0 18px; }
.page-hero .lead { max-width: 640px; margin: 0; color: rgb(var(--c-on-dark-rgb) / .8); }
.page-hero .btn--ghost { --btn-fg: var(--c-on-dark); --btn-bd: rgb(var(--c-on-dark-rgb) / .35); }
.page-hero .btn--ghost:hover { --btn-bd: var(--c-on-dark); }
.page-hero .creds li { background: rgb(var(--c-on-dark-rgb) / .1); color: var(--c-on-dark); }
/* On the navy hero the glance card turns to glass, so it doesn't vanish into the same background. */
.page-hero .glance { background: rgb(var(--c-on-dark-rgb) / .06); border: 1px solid rgb(var(--c-on-dark-rgb) / .14); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- Main page title band (page_head() in includes/partials/page-head.php) ----------
   About, Treatments, Doctors, Career and Contact. White band, accent second line,
   and on desktop a photo on the right that fades into the page. */
.page-head { position: relative; isolation: isolate; overflow: hidden; background: var(--bg-glow); color: rgb(var(--c-on-dark-rgb) / .8); padding: calc(var(--header-h) + 24px) 0 36px; }
.page-head__photo { display: none; }
.page-head__inner { position: relative; z-index: 1; }
.page-head .crumbs { margin-bottom: 22px; }
.page-head__title { font-size: clamp(2.4rem, 9.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.024em; line-height: 1; max-width: 13ch; text-wrap: balance; }
.page-head__title { color: var(--c-on-dark); }
.page-head__title em { font-style: normal; color: var(--c-on-dark-accent); display: block; }
.page-head__hi { font-size: clamp(1.1rem, 4.2vw, 1.45rem); color: var(--c-on-dark-soft); margin: 14px 0 10px; line-height: 1.4; }
.page-head__lead { color: rgb(var(--c-on-dark-rgb) / .78); font-size: 1.05rem; max-width: 50ch; margin: 12px 0 0; }

/* Treatments page: the quick guide under the title band. */
.finder-band__grid { display: grid; gap: 22px; }
.finder-band__head h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); letter-spacing: -0.018em; }
.finder-band__head > p:not(.eyebrow) { color: var(--c-muted); margin: 12px 0 0; max-width: 42ch; }
.finder-band .finder__calls { margin-top: 18px; max-width: 460px; }
@media (min-width: 960px) {
  .finder-band__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 56px; align-items: start; }
  .finder-band .finder__list { grid-template-columns: 1fr 1fr; column-gap: 36px; }
  .finder-band .finder__list li:nth-child(2) a { border-top: 0; padding-top: 0; }
}

/* ---------- Treatment detail ---------- */
.t-hero__grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.t-hero__icon { width: 64px; height: 64px; border-radius: 20px; background: rgb(var(--c-on-dark-rgb) / .1); color: var(--c-on-dark-accent); display: grid; place-items: center; border: 1px solid rgb(var(--c-on-dark-rgb) / .16); margin-bottom: 18px; }
.t-hero__icon .i { width: 34px; height: 34px; stroke-width: 1.5; }
.glance { position: relative; isolation: isolate; overflow: hidden; background: var(--bg-glow); color: rgb(var(--c-on-dark-rgb) / .8); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); align-self: start; }
.glance::after { content: ""; position: absolute; z-index: -1; right: -90px; bottom: -90px; width: 240px; aspect-ratio: 1; pointer-events: none; background: rgb(var(--c-on-dark-rgb) / .07); -webkit-mask: url("../brand/iris.svg") center / contain no-repeat; mask: url("../brand/iris.svg") center / contain no-repeat; }
.glance :focus-visible { outline-color: var(--c-focus-on-dark); }
.glance h2 { font-size: .8rem; font-family: var(--f-body); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-on-dark-accent); margin-bottom: 14px; }
.glance dl { margin: 0; display: grid; gap: 14px; }
.glance dt { font-size: .82rem; color: rgb(var(--c-on-dark-rgb) / .66); font-weight: 600; margin-bottom: 3px; }
.glance dd { margin: 0; font-weight: 650; color: var(--c-on-dark); }
.glance dd a { color: var(--c-on-dark-accent); text-decoration: none; }
.glance dd a:hover { color: var(--c-on-dark); text-decoration: underline; }
.glance .btn { margin-top: 18px; }

.t-body { display: grid; gap: 28px; }
.prose { font-size: 1.06rem; }
.prose h2 { font-size: clamp(1.7rem, 5.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.018em; margin-bottom: 16px; }
.prose p { color: var(--c-text-soft); }

.signs { padding: 24px; border-radius: var(--radius); background: var(--c-surface); align-self: start; }
.signs h3 { font-size: 1.25rem; margin-bottom: 14px; }
.signs ul { list-style: none; display: grid; gap: 10px; }
.signs li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .98rem; }
.signs .i { color: var(--c-link); width: 20px; height: 20px; margin-top: 2px; stroke-width: 2.2; }

.options { display: grid; gap: 14px; counter-reset: opt; }
.option { padding: 24px; border-radius: var(--radius); border: 1px solid var(--c-line); background: var(--c-card); position: relative; }
.option::before { counter-increment: opt; content: counter(opt, decimal-leading-zero); display: block; font: 700 .8rem/1 var(--f-body); color: var(--c-link); letter-spacing: .1em; margin-bottom: 14px; }
.option h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.option p { margin: 0; color: var(--c-muted); }

/* Hero photo strip: one large photo and two smaller ones. */
.t-strip { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(220px, 62vw, 300px); }
.t-strip__tile { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-sm); background: var(--c-tint-strong); }
.t-strip__tile--main { grid-row: span 2; border-radius: var(--radius); }
.t-strip__tile picture, .t-strip__tile img { width: 100%; height: 100%; object-fit: cover; }
.t-strip__tile .pillar__stock { right: 6px; bottom: 6px; padding: 2px 7px; font-size: .62rem; }

/* Section heading with a photo beside it. */
.t-mediahead { display: grid; gap: 20px; margin-bottom: clamp(28px, 5vw, 52px); }
.t-mediahead .section-head { margin-bottom: 0; }
.t-mediahead__photo { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--c-tint-strong); }
.t-mediahead__photo picture, .t-mediahead__photo img { width: 100%; height: 100%; object-fit: cover; }

.steps { list-style: none; display: grid; gap: 0; position: relative; }
.steps li { position: relative; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto 1fr; column-gap: 16px; padding-bottom: 26px; }
.steps__mark {
  grid-row: 1 / span 2; position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-card); border: 2px solid var(--c-light); color: var(--c-link);
}
.steps__mark .i { width: 24px; height: 24px; stroke-width: 1.7; }
.steps__n {
  position: absolute; top: -5px; right: -7px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
  background: var(--c-light); color: var(--c-on-dark); font: 800 .74rem/22px var(--f-display); text-align: center;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 56px; bottom: 4px; border-left: 2px dotted var(--c-light); opacity: .5; }
.steps h3 { font-size: 1.2rem; margin: 13px 0 6px; letter-spacing: -0.015em; text-wrap: balance; }
.steps p { margin: 0; color: var(--c-muted); }
.section--ice .steps__mark { background: var(--c-surface); }

/* Small doctor cards on treatment pages. */
.doc-minis { display: grid; gap: 12px; }
.doc-mini { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 16px 18px 16px 14px; border-radius: var(--radius); background: var(--c-card); box-shadow: var(--shadow-sm); }
.doc-mini__photo { position: relative; width: 96px; aspect-ratio: 1; }
.doc-mini__photo { --pf-r: 16px; --pf-o: 6px; }
.doc-mini__body { min-width: 0; }
.doc-mini h3 { font-size: 1.22rem; letter-spacing: -0.02em; }
.doc-mini h3 a { color: inherit; text-decoration: none; }
.doc-mini h3 a:hover { color: var(--c-link); }
.doc-mini__role { margin: 3px 0 6px; font-size: .92rem; font-weight: 600; line-height: 1.35; }
.doc-mini__meta { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .86rem; color: var(--c-muted); }
.doc-mini__meta .i { width: 16px; height: 16px; color: var(--c-link); }
.doc-mini .link-arrow { font-size: .92rem; }

/* Diagrams (includes/partials/diagrams.php). */
.dg-figure { margin: 28px 0 0; padding: 16px; border-radius: var(--radius); background: var(--c-surface); }
.dg-figure__title { margin-bottom: 12px; font: 700 .78rem/1.35 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c-link); }
.dg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dg-panel__art { padding: 4px; border-radius: var(--radius-sm); background: var(--c-card); }
.dg-figure--single .dg-panel__art { padding: 10px; }
.dg-figure--single .dg { max-width: 460px; margin-inline: auto; }
.dg { width: 100%; height: auto; }
.dg-figure .dg-panel__tag { display: flex; align-items: center; gap: 7px; margin: 10px 0 3px; font: 700 .92rem/1.2 var(--f-display); color: var(--c-primary); }
.dg-panel__tag::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c-light); }
.dg-panel__tag--issue::before { background: var(--dg-warm); }
.dg-figure .dg-panel__text { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--c-muted); }
.dg-figure--single .dg-panel__text { margin-top: 10px; font-size: .92rem; }
.dg-vit { fill: var(--c-tint); }
.dg-chamber { fill: var(--dg-chamber); }
.dg-wall { fill: none; stroke: var(--c-primary); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.dg-wall--thin { stroke-width: 1.3; }
.dg-ghost { fill: none; stroke: var(--c-primary); stroke-width: 1.2; stroke-dasharray: 3 3; opacity: .45; }
.dg-iris { stroke: var(--c-primary); stroke-width: 4; stroke-linecap: round; }
.dg-lens { fill: var(--c-card); stroke: var(--c-primary); stroke-width: 1.6; }
.dg-iol { fill: rgb(var(--c-light-rgb) / .22); stroke: var(--c-light); stroke-width: 1.8; }
.dg-cloud { fill: var(--dg-cloud); stroke: var(--c-primary); stroke-width: 1.6; }
.dg-speck { fill: var(--dg-speck); }
.dg-add { fill: none; stroke: var(--c-light); stroke-width: 2.6; stroke-linecap: round; }
.dg-add--thin { stroke-width: 1.4; }
.dg-stitch { stroke: var(--c-light); stroke-width: 1.6; stroke-linecap: round; }
.dg-retina { fill: none; stroke: var(--c-light); stroke-width: 3.2; stroke-linecap: round; }
.dg-retina--bad { stroke: var(--dg-warm); }
.dg-nerve { fill: none; stroke: var(--dg-nerve); stroke-width: 13; }
.dg-nerve--bad { stroke: var(--dg-nerve-bad); }
.dg-ray { fill: none; stroke: var(--dg-amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dg-ray--faint { opacity: .6; stroke-dasharray: 3 3; }
.dg-spot { fill: var(--dg-amber); }
.dg-blur { fill: var(--dg-amber); opacity: .28; }
.dg-flow { fill: none; stroke: var(--c-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dg-bad-stroke { fill: none; stroke: var(--dg-warm); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dg-bad-stroke--thin { stroke-width: 1.8; }
.dg-bad-fill { fill: var(--dg-warm); }
.dg-fundus { fill: var(--dg-fundus); stroke: var(--dg-fundus-edge); stroke-width: 2; }
.dg-disc { fill: var(--dg-disc); stroke: var(--dg-disc-edge); stroke-width: 1.5; }
.dg-vessel { fill: none; stroke: var(--dg-vessel); stroke-width: 2.2; stroke-linecap: round; }
.dg-macula { fill: var(--dg-macula); opacity: .7; }
.dg-bleed { fill: var(--dg-bleed); }
.dg-exudate { fill: var(--dg-exudate); }
.dg-white { fill: var(--c-card); }
.dg-irisfill { fill: var(--dg-iris); }
.dg-pupil { fill: var(--c-primary); }
.dg-brow { fill: none; stroke: var(--dg-brow); stroke-width: 5; stroke-linecap: round; }
.dg-skin { fill: var(--dg-skin); }
.dg-lash { fill: none; stroke: var(--c-primary); stroke-width: 1.6; stroke-linecap: round; }
.dg-gland { fill: var(--dg-gland); stroke: var(--c-light); stroke-width: 1.4; }
.dg-duct { fill: none; stroke: var(--dg-nerve); stroke-width: 6; stroke-linecap: round; }
.dg-tear { fill: var(--dg-tear); }
.dg-cornea-band { fill: var(--dg-gland); }
.dg-mucus { fill: var(--dg-nerve); }
.dg-water { fill: var(--dg-water); stroke: var(--dg-water-edge); }
.dg-oil { fill: none; stroke: var(--dg-oil); stroke-width: 4; stroke-linecap: round; }
.dg-label { font: 600 14px var(--f-body); fill: var(--c-muted); }
.dg-label--lg { font-size: 15px; }
.dg-leader { fill: none; stroke: var(--c-muted); stroke-width: 1; }
.dg-needle { stroke: var(--c-primary); stroke-width: 3; stroke-linecap: round; }
.dg-drop { fill: rgb(var(--c-light-rgb) / .35); }

.callout { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px; border-radius: var(--radius); }
.callout__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.callout p { margin: 0; }
.callout strong { display: block; font-family: var(--f-display); font-size: 1.1rem; margin-bottom: 4px; }
.callout--urgent { background: var(--c-panel); color: rgb(var(--c-on-dark-rgb) / .88); }
.callout--urgent strong { color: var(--c-on-dark); }
.callout--urgent .callout__icon { background: rgb(var(--c-on-dark-rgb) / .12); color: var(--c-highlight); }
.callout--urgent a:not(.btn) { color: var(--c-on-dark); font-weight: 700; }
.callout--note { background: var(--c-card); border: 1px solid var(--c-line); }
.callout--note .callout__icon { background: var(--c-tint); color: var(--c-link); }
.callout--note strong { color: var(--c-primary); }

.related { display: grid; gap: 10px; }

/* ---------- Doctor detail ---------- */
.d-hero__grid { display: grid; gap: 26px; align-items: center; }
.d-hero__photo { position: relative; width: min(300px, 78vw); aspect-ratio: 1; }
.d-hero__photo { --pf-r: 28px; --pf-o: 18px; }
.d-hero__photo .doc-card__exp { width: 86px; height: 86px; left: 0; bottom: 8px; background: var(--c-card); color: var(--c-primary); }
.d-hero__photo .doc-card__exp strong { font-size: 1.7rem; }
.d-hero .lead { margin: 16px 0 0; }
.d-hero .creds { margin-top: 18px; }
.d-grid { display: grid; gap: 30px; }
.edu { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--c-line); }
.edu li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.edu strong { color: var(--c-primary); font-family: var(--f-display); font-size: 1.1rem; letter-spacing: -0.01em; }
.edu span { grid-column: 1; color: var(--c-muted); font-size: .95rem; }
.edu em { grid-row: 1; grid-column: 2; font-style: normal; font-weight: 700; color: var(--c-link); font-size: .9rem; }
.timeline { list-style: none; position: relative; display: grid; gap: 18px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; border-left: 2px dotted var(--c-light); opacity: .5; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-card); border: 3px solid var(--c-light); }
.timeline li:last-child::before { background: var(--c-light); }
.timeline b { display: block; font: 800 1.05rem/1.2 var(--f-display); color: var(--c-link); }
.timeline span { color: var(--c-text); }
.focus { display: grid; gap: 10px; }
.practical { padding: 24px; border-radius: var(--radius); background: var(--c-panel); color: rgb(var(--c-on-dark-rgb) / .85); }
.practical h3 { color: var(--c-on-dark); font-size: 1.3rem; margin-bottom: 14px; }
.practical ul { list-style: none; display: grid; gap: 12px; margin-bottom: 18px; }
.practical li { display: flex; gap: 10px; }
.practical .i { color: var(--c-on-dark-icon); margin-top: 2px; }
.practical a:not(.btn) { color: var(--c-on-dark); font-weight: 650; }

/* ---------- About ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--c-line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); }
.fact { background: var(--c-card); padding: 22px 18px; }
.fact strong { display: block; font: 800 clamp(2.2rem, 9vw, 3.4rem)/1 var(--f-display); color: var(--c-primary); letter-spacing: -0.026em; }
.fact span { display: block; margin-top: 8px; color: var(--c-muted); font-size: .92rem; line-height: 1.35; }
/* Three stats: on phones each one is a row (number, then its label) instead of leaving a lone tile. */
.facts--3 { grid-template-columns: 1fr; }
.facts--3 .fact { display: grid; grid-template-columns: 5.6rem 1fr; align-items: center; gap: 14px; padding: 16px 18px; }
.facts--3 .fact strong { font-size: 2.2rem; }
.facts--3 .fact span { margin-top: 0; }
/* What we do: one chip per treatment area, each jumping to that area on the Treatments page. */
.areas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.areas a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 13px; border-radius: 999px;
  background: var(--c-card); border: 1px solid var(--c-line); color: var(--c-primary); font-weight: 650; font-size: .95rem; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.areas a:hover { border-color: var(--c-light); color: var(--c-link); }
.areas .i { width: 20px; height: 20px; stroke-width: 1.8; color: var(--c-link); flex: none; }
/* Visit us: a short address card per centre with Call and Directions. */
.visit { display: grid; gap: 14px; }
.visit__card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px 18px; }
.visit__card h3 { margin: 0 0 10px; font: 700 1.2rem/1.2 var(--f-display); color: var(--c-primary); }
.visit__card p { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--c-muted); line-height: 1.5; }
.visit__card p .i { flex: none; margin-top: 3px; color: var(--c-link); }
.visit__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.split { display: grid; gap: 28px; align-items: center; }
.photo-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card figcaption { padding: 12px 16px; background: var(--c-card); font-size: .88rem; color: var(--c-muted); }
.reviews { display: grid; gap: 12px; }
.review-link { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--c-card); border: 1px solid var(--c-line); text-decoration: none; color: var(--c-text); }
.review-link:hover { color: var(--c-text); border-color: var(--c-light); }
.review-link .quick__icon { background: var(--c-tint); }
.review-link strong { display: block; color: var(--c-primary); }
.review-link small { color: var(--c-muted); }
.review-link .i--end { margin-left: auto; color: var(--c-link); }
/* Small centre card at the end of a doctor profile's side column. */
.centre-mini { padding: 18px 20px; border-radius: var(--radius); background: var(--c-card); border: 1px solid var(--c-line); }
.centre-mini h3 { font-size: 1.15rem; color: var(--c-primary); margin-bottom: 8px; }
.centre-mini h3 .hi { font-size: .9rem; color: var(--c-link); font-weight: 600; margin-left: 4px; }
.centre-mini__addr { display: flex; gap: 10px; font-size: .92rem; color: var(--c-muted); margin-bottom: 14px; }
.centre-mini__addr .i { flex: none; color: var(--c-link); margin-top: 2px; }
.centre-mini__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Forms ---------- */
.form-card { background: var(--c-card); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--c-line); scroll-margin-top: calc(var(--header-h) + 16px); }
.form-card h2 { font-size: clamp(1.6rem, 5.8vw, 2.2rem); letter-spacing: -0.018em; font-weight: 800; }
.form-card > p { color: var(--c-muted); }
.form-card h2 + p { margin-top: 6px; }
.form { display: grid; gap: 16px; margin-top: 18px; }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-weight: 700; font-size: .94rem; color: var(--c-primary); }
.field label small, .field .label small { font-weight: 500; color: var(--c-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--c-line);
  background: var(--c-card); color: var(--c-text); font: 500 1rem/1.3 var(--f-body);
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: var(--icon-chevron); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-light); box-shadow: 0 0 0 4px rgb(var(--c-light-rgb) / .14); }
.field [aria-invalid="true"] { border-color: var(--c-error); }

/* select2, styled like the plain fields */
.field .select2-container { font: 500 1rem/1.3 var(--f-body); }
.field .select2-container--default .select2-selection--single {
  display: flex; align-items: center; height: auto; min-height: 52px; padding: 0 44px 0 16px; border-radius: 14px;
  border: 1.5px solid var(--c-line); background: var(--c-card); transition: border-color .2s, box-shadow .2s;
}
.field .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.3; color: var(--c-text); }
.field .select2-container--default .select2-selection--single .select2-selection__arrow { top: 0; right: 14px; width: 18px; height: 100%; background: var(--icon-chevron) center / 18px no-repeat; transition: transform .2s; }
.field .select2-container--default .select2-selection--single .select2-selection__arrow b { display: none; }
.field .select2-container--open .select2-selection--single .select2-selection__arrow { transform: rotate(180deg); }
.field .select2-container--focus .select2-selection--single, .field .select2-container--open .select2-selection--single { outline: none; border-color: var(--c-light); box-shadow: 0 0 0 4px rgb(var(--c-light-rgb) / .14); }
.field select[aria-invalid="true"] + .select2 .select2-selection { border-color: var(--c-error); }
/* Multiple picks show as chips inside the field. */
.field .select2-container--default .select2-selection--multiple {
  display: flex; align-items: center; min-height: 52px; padding: 6px 44px 6px 10px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--c-line); background: var(--c-card) var(--icon-chevron) right 14px center / 18px no-repeat; transition: border-color .2s, box-shadow .2s;
}
.field .select2-container--default.select2-container--focus .select2-selection--multiple, .field .select2-container--open .select2-selection--multiple { outline: none; border-color: var(--c-light); box-shadow: 0 0 0 4px rgb(var(--c-light-rgb) / .14); }
.field .select2-container--default .select2-selection--multiple .select2-selection__rendered { display: inline; margin: 0; padding: 0; }
.field .select2-container--default .select2-selection--multiple .select2-selection__choice {
  display: inline-flex; align-items: center; gap: 4px; margin: 3px 6px 3px 0; padding: 5px 10px 5px 4px; border: 0; border-radius: 999px;
  background: var(--c-tint); color: var(--c-primary); font-size: .9rem; font-weight: 650;
}
.field .select2-container--default .select2-selection--multiple .select2-selection__choice__display { padding: 0; }
.field .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  position: static; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; color: var(--c-muted); font-size: 1.1rem; line-height: 1;
}
.field .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover, .field .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus { background: var(--c-card); color: var(--c-primary); outline: none; }
.field .select2-container--default .select2-selection--multiple .select2-selection__clear { display: none; }
.field .select2-container .select2-search--inline .select2-search__field {
  width: auto; min-height: 0; height: 30px; margin: 3px 0 3px 6px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none;
  font: 500 1rem/30px var(--f-body); resize: none;
}
.field .select2-container .select2-search--inline .select2-search__field::placeholder { color: var(--c-muted); }
/* select2 sizes the empty field in its own font, which cuts the placeholder short. */
.field .select2-container .select2-search--inline .select2-search__field:not([placeholder=""]) { width: 100% !important; }
.select2-container--default .select2-dropdown { border: 1.5px solid var(--c-light); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); font: 500 1rem/1.3 var(--f-body); }
.select2-container--default .select2-dropdown--below { margin-top: 6px; }
.select2-container--default .select2-dropdown--above { margin-top: -6px; }
.select2-container--default .select2-results > .select2-results__options { max-height: 300px; padding: 6px; }
.select2-container--default .select2-results__option { padding: 11px 12px; border-radius: 10px; color: var(--c-text); }
/* Doctors at the other centre are disabled by the booking form; keep them out of the list as before. */
.select2-container--default .select2-results__option--disabled { display: none; }
.select2-container--default .select2-results__option--selected { background: var(--c-tint); color: var(--c-primary); font-weight: 700; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--c-light); color: var(--c-on-dark); }
.select2-container--default .select2-search--dropdown { padding: 8px 8px 0; }
.select2-container--default .select2-search--dropdown .select2-search__field { min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--c-line); border-radius: 10px; font: inherit; }
.select2-container--default .select2-search--dropdown .select2-search__field:focus { outline: none; border-color: var(--c-light); }

/* flatpickr, in the site colours */
.field input.date-field { cursor: pointer; background: var(--c-card) var(--icon-calendar) right 14px center / 18px no-repeat; padding-right: 44px; }
.flatpickr-calendar { font-family: var(--f-body); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--c-line); }
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after { display: none; }
.flatpickr-months .flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-current-month input.cur-year { color: var(--c-primary); font-weight: 700; }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--c-light); }
span.flatpickr-weekday { color: var(--c-muted); font-weight: 700; }
.flatpickr-day { color: var(--c-text); font-weight: 500; }
.flatpickr-day:hover, .flatpickr-day:focus { background: var(--c-tint); border-color: var(--c-tint); }
.flatpickr-day.today { border-color: var(--c-light); }
.flatpickr-day.today:hover, .flatpickr-day.today:focus { background: var(--c-tint); color: var(--c-primary); border-color: var(--c-light); }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.selected:focus { background: var(--c-light); border-color: var(--c-light); color: var(--c-on-dark); }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover { color: rgb(var(--c-text-rgb) / .25); }
.field__error { margin: 0; color: var(--c-error-text); font-size: .88rem; font-weight: 600; }
.field__hint { margin: 0; font-size: .84rem; color: var(--c-muted); }
.field-row { display: grid; gap: 16px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 16px; background: var(--c-tint); }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; left: 0; top: 0; }
.seg label { display: grid; place-items: center; text-align: center; min-height: 46px; padding: 6px 8px; border-radius: 12px; font-size: .9rem; font-weight: 700; color: var(--c-primary); cursor: pointer; line-height: 1.15; transition: background .2s, color .2s, box-shadow .2s; }
.seg label small { display: block; font-family: var(--f-hi); font-weight: 500; font-size: .78rem; color: var(--c-muted); }
.seg input:checked + label { background: var(--c-card); box-shadow: var(--shadow-sm); color: var(--c-link); }
.seg input:focus-visible + label { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: .92rem; color: var(--c-muted); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--c-light); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.file { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed var(--c-line); border-radius: 14px; color: var(--c-muted); font-size: .94rem; cursor: pointer; }
.file:hover { border-color: var(--c-light); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file .i { color: var(--c-link); }
.notice { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; border-radius: var(--radius); margin-bottom: 6px; }
.notice p { margin: 0 0 6px; }
.notice p:last-child { margin: 0; }
.notice--error { background: var(--c-error-bg); color: var(--c-error-ink); }
.notice--error .callout__icon { background: var(--c-error-icon-bg); color: var(--c-error-text); }
.notice--success { background: var(--c-success-bg); color: var(--c-text); }
.notice--success .callout__icon { background: var(--c-success); color: var(--c-success-text); }
.notice--success strong { color: var(--c-primary); font-family: var(--f-display); font-size: 1.25rem; display: block; margin-bottom: 4px; }
.notice__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.form .btn[disabled] { opacity: .7; pointer-events: none; }

.contact-grid { display: grid; gap: 24px; align-items: start; }
.contact-main { display: grid; gap: 24px; align-self: stretch; align-content: start; }
.next-steps { background: var(--c-surface); border-radius: var(--radius-lg); padding: 22px; }
.next-steps h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 16px; }
.next-steps__list { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.next-steps__list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.next-steps__n { width: 34px; height: 34px; border-radius: 50%; background: var(--c-light); color: var(--c-on-dark); display: grid; place-items: center; font: 700 .95rem/1 var(--f-display); }
.next-steps__list strong { color: var(--c-primary); display: block; margin-top: 5px; }
.next-steps__list p { margin: 2px 0 0; font-size: .93rem; color: var(--c-muted); }
.next-steps__note { display: flex; gap: 10px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--c-surface-strong); font-size: .9rem; color: var(--c-text); }
.next-steps__note .i { flex: none; color: var(--c-link); margin-top: 2px; }
.linkbtn { border: 0; padding: 0; background: none; color: var(--c-link); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.check a { color: var(--c-link); }

/* ---------- Privacy policy ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(1.35rem, 4.6vw, 1.75rem); margin: 34px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; color: var(--c-text-soft); }
.legal code { font-size: .9em; background: var(--c-tint); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.legal__table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--c-line); }
.legal__table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-link); }
.legal__table td:first-child { font-weight: 700; color: var(--c-primary); width: 34%; }
.legal__table td:last-child { color: var(--c-text-soft); }
.legal__calls { list-style: none; padding: 0 !important; }
.legal__back { margin-top: 32px; }
.site-footer__bottom a { color: inherit; }
.contact-side { display: grid; gap: 16px; }
.contact-side .prep { grid-template-columns: 1fr; }

/* ---------- 404 ---------- */
.nf { text-align: left; }
.nf .chart { margin-top: 10px; }

/* ---------- Small layout helpers ---------- */
.section-head--flush { margin: 0; }
.page-hero__title--wide { max-width: none; }
.block-gap { margin-top: 40px; }
.h-sub { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; letter-spacing: -0.018em; margin-bottom: 16px; }
.stack { display: grid; gap: 18px; align-content: start; }
.focus--single { grid-template-columns: 1fr !important; }
.doc-grid--single { grid-template-columns: 1fr !important; }
.split--top { align-items: start; }
.callout--spaced { margin-top: 26px; }
.callout__phones { margin-top: 10px !important; }
.notice-after { margin-top: 18px; }
.ticker__set { display: flex; }
.practical strong, .cover__ayush strong { color: var(--c-on-dark); }
.doc-card h3 a { color: inherit; text-decoration: none; }
.doc-card h3 a:hover { color: var(--c-link); }

/* One doctor card on a profile page: photo on the left, text on the right. On phones only the name
   and role sit beside the photo, and the rest of the card runs full width below them. */
.doc-grid--single .doc-card { grid-template-columns: 200px 1fr; align-items: center; }
@media (max-width: 719px) {
  .doc-grid--single .doc-card { grid-template-columns: 92px 1fr; column-gap: 16px; row-gap: 0; align-items: center; }
  .doc-grid--single .doc-card > div { display: contents; }
  .doc-grid--single .doc-card > a:first-child { grid-row: 1 / span 2; }
  .doc-grid--single .doc-card__photo { width: 92px; }
  .doc-grid--single .doc-card__photo picture { inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); }
  .doc-grid--single .doc-card h3 { grid-column: 2; align-self: end; font-size: 1.45rem; }
  .doc-grid--single .doc-card__role { grid-column: 2; align-self: start; margin: 4px 0 0; }
  .doc-grid--single .doc-card > div > :not(h3):not(.doc-card__role) { grid-column: 1 / -1; }
  .doc-grid--single .doc-card .creds { margin-top: 18px; }
}

/* Doctors side by side: each part of the card (photo, name, role, qualifications, summary, centre,
   buttons) shares a row with the same part of the other card, so they line up whatever the text length. */
@media (min-width: 960px) {
  .doc-grid:not(.doc-grid--single):not(.doc-grid--wide) .doc-card { display: flex; flex-direction: column; }
  .doc-grid:not(.doc-grid--single):not(.doc-grid--wide) .doc-card > div { display: flex; flex-direction: column; flex: 1; }
  .doc-grid:not(.doc-grid--single):not(.doc-grid--wide) .doc-card__actions { margin-top: auto; }
  @supports (grid-template-rows: subgrid) {
    .doc-grid:not(.doc-grid--single):not(.doc-grid--wide) { row-gap: 0; }
    .doc-grid:not(.doc-grid--single):not(.doc-grid--wide) .doc-card { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; }
    .doc-grid:not(.doc-grid--single):not(.doc-grid--wide) .doc-card > div { display: contents; }
    .doc-grid:not(.doc-grid--single):not(.doc-grid--wide) .doc-card > a:first-child { margin-bottom: 22px; }
    .doc-grid:not(.doc-grid--single):not(.doc-grid--wide) .doc-card__actions { margin-top: 0; align-self: end; }
  }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

/* ==========================================================================
   Larger screens
   ========================================================================== */
@media (min-width: 600px) {
  .cdock__panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; }
  .cdock__actions .btn { flex: 0 0 auto; }
}
@media (min-width: 480px) {
  .hide-xs { display: inline-flex; }
  .hero__actions .btn, .hs__actions .btn { flex: 0 0 auto; }
  .branch-card__actions { display: flex; flex-wrap: wrap; }
  .branch-card__actions .btn { padding-inline: 16px; }
  .pillars { grid-auto-columns: 58%; }
  .gallery { grid-auto-columns: 56%; }
  .gallery--home { grid-auto-columns: 64%; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts--3 { grid-template-columns: repeat(3, 1fr); }
  .facts--3 .fact { display: block; padding: 22px 18px; }
  .facts--3 .fact strong { font-size: clamp(2.2rem, 7vw, 3.4rem); }
  .facts--3 .fact span { margin-top: 8px; }
}

@media (min-width: 720px) {
  .visit { grid-template-columns: 1fr 1fr; }
  .visit__actions { display: flex; flex-wrap: wrap; }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hide-sm { display: inline-flex; }
  .section-head--split { grid-template-columns: 1.3fr 1fr; }
  .section-head--split p { justify-self: end; }
  .tindex__short { display: block; }
  .tindex__row { grid-template-columns: 56px 1fr auto; gap: 20px; padding: 22px 6px; }
  .tindex__icon { width: 56px; height: 56px; }
  .tgrid { grid-template-columns: 1fr 1fr; }
  .doc-card { grid-template-columns: 200px 1fr; align-items: start; padding: 30px; }
  .doc-card__photo { width: 200px; }
  .branch-cards { grid-template-columns: 1fr 1fr; }
  .facts-strip__list { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .facts-strip li { font-size: .9rem; }
  .tmore__list { grid-template-columns: repeat(3, 1fr); }
  .tmore { padding: 26px; }
  .pmap__place { font-size: .88rem; }
  .pmap__frame { margin-inline: 0; }
  .pmap__canvas { width: 130%; margin-left: -12%; }
  .pmap__river-label { font-size: 1.05rem; }
  .pmap__foot { grid-template-columns: 1fr auto; align-items: center; }
  .prep { grid-template-columns: 1fr 1fr; }
  .options { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: 1fr 1fr; }
  .t-strip { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr; gap: 14px; height: 300px; }
  .t-strip__tile--main { grid-row: auto; }
  .t-strip__tile { border-radius: var(--radius); }
  .t-mediahead { grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
  .doc-minis { grid-template-columns: 1fr 1fr; gap: 16px; }
  .dg-figure { padding: 22px; }
  .dg-pair { gap: 16px; }
  .form-card { padding: 34px; }
  .focus { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .call-sheet { margin: auto; }
  .menu-btn { display: none; }
  .nav { display: flex; gap: 4px; margin-right: 12px; }
  .nav > a, .nav .nav__top {
    position: relative; padding: 10px 12px; border-radius: 10px; text-decoration: none;
    color: var(--c-text); font-weight: 600; font-size: .97rem;
  }
  .nav > a:hover, .nav .nav__top:hover, .nav__drop.is-open .nav__top { color: var(--c-link); }
  .nav > a[aria-current="page"], .nav .nav__top[aria-current="page"] { color: var(--c-primary); }
  .nav > a[aria-current="page"]::after, .nav .nav__top[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--c-light); }
  .nav .nav__top[aria-current="page"]::after { margin-left: -11px; }

  /* Treatments mega menu. The panel hangs below the header pill (the pill is its containing block) and is as
     wide as it. main.js opens it on hover intent, focus, a first tap or
     Space, and adds .is-open; without main.js it opens on hover and focus alone. */
  .nav__drop { display: flex; }
  .nav .nav__top { display: inline-flex; align-items: center; gap: 4px; }
  .nav__chev { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .18s var(--ease); }
  .nav__top[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
  /* Hover bridge: carries the pointer from the link down across the header to the panel. */
  .nav__bridge { position: absolute; left: -10px; right: -10px; top: 100%; height: 34px; }
  .megamenu {
    display: block; position: absolute; left: 0; right: 0; top: calc(100% + 10px);
    max-height: calc(100vh - var(--header-h) - 16px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius);
    box-shadow: 0 28px 50px -24px rgb(var(--c-shadow-rgb) / .38);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s;
  }
  html:not(.js) .nav__drop:hover .megamenu, html:not(.js) .nav__drop:focus-within .megamenu, .nav__drop.is-open .megamenu {
    opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
  }
  .megamenu__body { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 28px; padding-block: 22px 24px; }

  /* Left: the areas. Hovering or focusing one shows its treatments. */
  .megamenu__rail { list-style: none; display: grid; gap: 2px; align-content: start; padding-right: 18px; border-right: 1px solid var(--c-line); }
  .megamenu__cat {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 10px 7px 12px; border-radius: 12px;
    color: var(--c-text); text-decoration: none; transition: background-color .15s;
  }
  .megamenu__cat::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--c-accent); transform: scaleY(0); transition: transform .15s var(--ease); }
  .megamenu__cat:hover { color: var(--c-primary); background: var(--c-surface); }
  .megamenu__cat.is-active { color: var(--c-primary); background: var(--c-tint); }
  .megamenu__cat.is-active::before { transform: none; }
  .megamenu__cat-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--c-surface); color: var(--c-link); }
  .megamenu__cat.is-active .megamenu__cat-icon { background: var(--c-card); }
  .megamenu__cat-icon .i { width: 20px; height: 20px; }
  .megamenu__cat-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
  .megamenu__cat-text > * { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .megamenu__cat-text strong { font-weight: 650; font-size: .93rem; }
  .megamenu__cat-text .hi { padding-top: 2px; font-size: .78rem; line-height: 1.35; font-weight: 500; color: var(--c-muted); }
  .megamenu__count { min-width: 24px; height: 22px; padding: 0 7px; display: grid; place-items: center; border-radius: 99px; background: var(--c-surface); color: var(--c-muted); font-size: .75rem; font-weight: 700; }
  .megamenu__cat.is-active .megamenu__count { background: var(--c-primary); color: var(--c-on-dark); }

  /* Middle: every area's list sits in the same grid cell, so the cell keeps the tallest one's height and
     switching areas cross-fades without the panel jumping. */
  .megamenu__panes { display: grid; }
  .megamenu__pane { grid-area: 1 / 1; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .16s, visibility 0s .16s; }
  .megamenu__pane.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
  .megamenu__eyebrow { display: flex; align-items: center; gap: 8px; margin: 4px 0 4px 10px; font: 700 .74rem/1.2 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--c-accent-text); }
  .megamenu__eyebrow .i { width: 16px; height: 16px; }
  .megamenu__eyebrow .hi { font-size: .86rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--c-muted); }
  .megamenu__lead { max-width: 52ch; margin: 0 0 12px 10px; font-size: .88rem; line-height: 1.45; color: var(--c-muted); }
  .megamenu__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
  .megamenu__item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--c-text); text-decoration: none; transition: background-color .15s; }
  .megamenu__item:hover, .megamenu__item:focus-visible { background: var(--c-surface); }
  .megamenu__tile { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--c-tint); color: var(--c-primary); transition: background-color .15s, color .15s; }
  .megamenu__tile .i { width: 22px; height: 22px; }
  .megamenu__item:hover .megamenu__tile, .megamenu__item:focus-visible .megamenu__tile { background: var(--c-primary); color: var(--c-on-dark-accent); }
  .megamenu__item-text { min-width: 0; display: grid; line-height: 1.3; }
  .megamenu__item-text > * { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .megamenu__item-text strong { font-weight: 650; font-size: .93rem; color: var(--c-primary); }
  .megamenu__item-text small { font-size: .8rem; color: var(--c-muted); }
  .megamenu__more { align-self: flex-start; margin: auto 0 0 10px; padding-top: 14px; font-size: .9rem; color: var(--c-link); }

  /* Right: a way in for people who do not know the name of what they need (from 1200px, where there is room). */
  .megamenu__feature { display: none; }

  /* Bottom: days, hours and phones (Kankarbagh first, the order of branches()), and the full list. */
  .megamenu__strip { background: var(--c-surface); border-top: 1px solid var(--c-line); }
  .megamenu__strip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding-block: 12px; font-size: .88rem; }
  .megamenu__strip .i { width: 18px; height: 18px; color: var(--c-link); }
  .megamenu__days { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--c-primary); }
  .megamenu__calls { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; }
  .megamenu__calls li { display: flex; align-items: center; gap: 8px; }
  .megamenu__calls a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; margin: -4px -6px; border-radius: 8px; color: var(--c-text); text-decoration: none; font-weight: 500; }
  .megamenu__calls a:hover { color: var(--c-link); }
  .megamenu__calls strong { color: var(--c-primary); font-weight: 650; }
  .megamenu__calls small { color: var(--c-muted); font-size: .82rem; }
  .megamenu__all { margin-left: auto; font-size: .9rem; color: var(--c-link); }
  .brand { margin-right: 0; }
  /* A little narrower than the page, so the pill reads as floating over it. */
  .site-header__row { justify-content: space-between; width: calc(100% - 40px); max-width: calc(var(--container) - 100px); padding-inline: 26px 12px; }
  :root { --hdr-top: 14px; --pill-h: 70px; --header-h: 94px; }
  .brand .logo { height: 48px; }

  .chart { grid-template-columns: 52px 1fr; }
  .chart__label { font-size: .76rem; }

  /* Home hero, as on the Sarvdrishti home page: the stage fills the screen, the text keeps to the left edge in a
     column of its own (--hs-text, measured from the screen edge), and the photos fill the right two thirds from
     the very top (behind the header pill) to the foot, where the centre picker sits over them. Each photo fades
     in from its left edge, and a little at its foot into the next section. */
  .hs {
    --hs-gut: clamp(32px, 4.5vw, 104px);
    --hs-text: clamp(480px, 42vw, 720px);
    display: flex; flex-direction: column;
    min-height: clamp(680px, 100svh, 1040px);
    background: var(--bg-glow);
  }
  /* The photo dissolves into the navy in a wide oval centred to the right, so there is no straight edge where
     it meets the text: the oval is solid navy by the box's left edge, and the foot fades as well. The top layer
     repeats the hero's gold glow (--bg-glow) where the box overlaps it: the box starts at 24% of the hero, so the
     glow's centre, 380px less 14% of the hero, is 380px less 50% of the box. */
  .hs__photos { position: absolute; inset: 0 0 0 auto; width: min(76%, 1640px); height: auto; }
  .hs__photos::after {
    left: -2px;
    background:
      radial-gradient(circle 380px at calc(380px - 50%) 120px, rgb(var(--c-accent-rgb) / .24), transparent),
      linear-gradient(to top, rgb(var(--c-panel-rgb)) 0, rgb(var(--c-panel-rgb) / 0) 22%),
      radial-gradient(ellipse 74% 112% at 74% 38%, rgb(var(--c-panel-rgb) / 0) 28%, rgb(var(--c-panel-rgb) / .24) 43%, rgb(var(--c-panel-rgb) / .6) 58%, rgb(var(--c-panel-rgb) / .9) 74%, rgb(var(--c-panel-rgb)) 88%);
  }
  .hs__photo img { height: 100%; object-position: var(--pos); transform-origin: var(--pos); }
  .hs__body {
    flex: 1; z-index: 1; max-width: none; margin: 0; padding: calc(var(--header-h) + 84px) 0 36px var(--hs-gut);
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  }
  .hs__slider { width: var(--hs-text); }
  .hs__title { font-size: clamp(2.6rem, 3.7vw, 4rem); }
  .hs__text { max-width: 44ch; }
  .hs__dock { max-width: none; margin: 0; padding: 0 var(--hs-gut) 28px; }
  /* Capped so the panel doesn't stretch into empty space across wide screens. */
  .cdock { max-width: 1120px; margin: 0 auto; grid-template-columns: minmax(250px, auto) minmax(0, 1fr); align-items: stretch; }
  .cdock__pick { align-content: center; }
  .cdock__panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 28px; padding: 10px 14px 10px 6px; }

  .pillars { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 18px; overflow: visible; margin: 0; padding: 0; }
  .tfeat-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .tmore { grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
  .tmore__list { display: flex; flex-wrap: wrap; }
  .tmore__list a { min-height: 46px; }
  .pmap__place { font-size: .95rem; padding: 5px 11px 5px 9px; }
  .pmap__chip strong { font-size: 1.08rem; }
  .tindex { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 0; }
  .tindex li:nth-child(-n+2) .tindex__row { border-top: 1px solid var(--c-line); }
  .tgrid { grid-template-columns: repeat(3, 1fr); }
  .tfilter { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .doc-grid { grid-template-columns: 1fr 1fr; }
  .doc-card { grid-template-columns: 1fr; }
  .doc-grid--wide .doc-card { grid-template-columns: 220px 1fr; }
  /* One large photo with two beside it, then two even rows of three. Every tile stays at least a third of the width. */
  .gallery { grid-auto-flow: row dense; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 214px; gap: 14px; overflow: visible; margin: 0; padding: 0; }
  .gallery figure { grid-column: span 2; }
  .gallery img { aspect-ratio: auto; height: 100%; }
  .gallery figure:first-child { grid-column: span 4; grid-row: span 2; }
  .gallery__hint { display: none; }
  /* Home: one large photo with two beside it, two rows of 3:2 tiles, and one wide strip at the end. */
  .gallery--home { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 16px; }
  .gallery--home figure { grid-column: auto; grid-row: auto; aspect-ratio: 3 / 2; }
  .gallery--home figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .gallery--home figure.is-wide { grid-column: span 2; aspect-ratio: auto; }
  .gallery--home img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .gallery--home figcaption { left: 14px; bottom: 14px; font-size: .9rem; padding: 7px 14px; }
  .prep-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
  .cta-band__inner { grid-template-columns: 1fr auto; align-items: end; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr .7fr; }
  .site-footer__bottom { grid-template-columns: 1fr auto; }

  .t-hero__grid { grid-template-columns: 1.5fr 1fr; grid-template-areas: "text glance" "strip strip"; gap: 40px 56px; align-items: end; }
  .t-hero__text { grid-area: text; }
  .t-hero .glance { grid-area: glance; }
  .t-strip { grid-area: strip; height: 340px; }
  .t-body { grid-template-columns: 1.4fr 1fr; gap: 56px; }
  .options { grid-template-columns: repeat(var(--cols, 3), 1fr); }
  /* Each step shares the rows of the list, so all titles sit on one line and all texts start level. */
  .steps { grid-template-columns: repeat(var(--cols, 4), 1fr); grid-template-rows: auto auto 1fr; column-gap: 20px; }
  .steps li { grid-row: span 3; grid-template-columns: 1fr; grid-template-rows: subgrid; padding-bottom: 0; }
  .steps__mark { grid-row: auto; }
  .steps h3 { margin: 18px 0 8px; }
  .steps li:not(:last-child)::after { left: 58px; right: -16px; top: 25px; bottom: auto; border-left: 0; border-top: 2px dotted var(--c-light); }
  .related { grid-template-columns: repeat(3, 1fr); }

  .d-hero__grid { grid-template-columns: auto 1fr; gap: 56px; }
  .d-hero__photo { width: 340px; }
  .d-grid { grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--wide { grid-template-columns: 1.1fr .9fr; }
  .contact-grid { grid-template-columns: 1.15fr .85fr; gap: 32px; }
  /* The centre cards are taller than the form, so the next steps stay in view beside them. */
  .next-steps { position: sticky; top: calc(var(--header-h) + 20px); padding: 28px; }

}

/* The whole city map, with the outer places, only once labels have room not to collide. */
@media (min-width: 1100px) {
  .pmap__canvas { width: 100%; margin-left: 0; }
  .pmap__place--far { display: inline-flex; }
  /* Two labels sit close to a neighbour at full size, so they are shifted a little off their point. */
  .pmap__place--up { transform: translate(-50%, -130%); }
  .pmap__place--left { transform: translate(-82%, -50%); }
}

/* Big PC screens: let the page use more of the width instead of leaving wide empty margins. */
@media (min-width: 1400px) {
  :root { --container: 1440px; }
}

@media (min-width: 1200px) {
  .chart__r1 { font-size: 11.4rem; }
  .cdock__panel { grid-template-columns: minmax(0, 1fr) auto auto; }
  .cdock__doc { display: flex; }
}

@media (hover: none) {
  .pillar:hover, .tcard:hover { transform: none; }
}


/* Treatments mega menu, wide screens: the help card joins the panel on the right. */
@media (min-width: 1200px) {
  .megamenu__body { grid-template-columns: 272px minmax(0, 1fr) 264px; }
  .megamenu__feature {
    position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
    border-radius: var(--radius-sm); background: var(--c-primary); color: var(--c-on-dark);
  }
  .megamenu__feature picture { position: absolute; inset: 0; z-index: -2; }
  .megamenu__feature-img { width: 100%; height: 100%; object-fit: cover; }
  .megamenu__feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(var(--c-darkest-rgb) / .3) 0%, rgb(var(--c-darkest-rgb) / .9) 58%); }
  .megamenu__feature-body { display: grid; justify-items: start; gap: 4px; padding: 20px; }
  .megamenu__feature-body p { margin: 0; }
  .megamenu__feature-hi { font-size: 1.02rem; color: var(--c-on-dark-accent); }
  .megamenu__feature-title { font: 700 1.3rem/1.15 var(--f-display); letter-spacing: -0.02em; color: var(--c-on-dark); }
  .megamenu__feature-text { margin-bottom: 10px !important; font-size: .88rem; line-height: 1.45; color: rgb(var(--c-on-dark-rgb) / .84); }
  .megamenu__feature-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .88rem; font-weight: 600; color: var(--c-on-dark); text-decoration: none; }
  .megamenu__feature-link:hover { color: var(--c-on-dark-accent); }
  .megamenu__feature-link .i { width: 16px; height: 16px; }
  .megamenu__feature :focus-visible, .has-hero .megamenu .megamenu__feature :focus-visible { outline-color: var(--c-focus-on-dark); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

@media print {
  .site-header, .cta-band, .site-footer, .ticker, .wa, .hs__controls { display: none !important; }
  body { padding: 0; }
}

/* ---------- Booking form parts (/appointment) and thank-you slip ---------- */
.bk-main { padding-top: 28px; }
.bk-grid { display: grid; gap: 28px; align-items: start; }
.bk-form { padding: 20px 16px; }
.bk-form__head { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; }
.bk-form__head h2 { font-size: clamp(1.45rem, 5vw, 1.9rem); }
.bk-form__head p { margin: 4px 0 0; color: var(--c-muted); font-size: .95rem; }
.bk-form__icon { width: 52px; height: 52px; border-radius: 50%; background: rgb(var(--c-accent-rgb) / .1); color: var(--c-accent-text); display: grid; place-items: center; }
.bk-form__icon .i { width: 26px; height: 26px; }
.bk { gap: 20px; }
.bk__row { display: grid; gap: 20px; }
.bk__row > .field { align-content: start; }
.bk__set { border: 0; padding: 0; margin: 0; min-width: 0; }
.bk__set > legend { display: block; padding: 0; margin-bottom: 8px; font-weight: 700; font-size: .94rem; color: var(--c-primary); }
.bk__set > legend small { font-weight: 500; color: var(--c-muted); }
.bk .req { color: var(--c-accent-text); }
.bk__about { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--c-tint); color: var(--c-primary); font-size: .94rem; }
.bk__about .i { color: var(--c-accent-text); }
.tel { position: relative; }
.tel__cc { position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; display: grid; place-items: center; width: 56px; border-right: 1px solid var(--c-line); font-weight: 700; color: var(--c-primary); border-radius: 12px 0 0 12px; background: var(--c-surface); pointer-events: none; }
.field .tel input { padding-left: 70px; letter-spacing: .04em; }
.seg--2, .seg--4 { grid-template-columns: repeat(2, 1fr); }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin-inline: -2px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.days input, .pick input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; pointer-events: none; }
.days__day { display: grid; justify-items: center; gap: 1px; padding: 9px 4px; min-height: 76px; border-radius: 14px; border: 1.5px solid var(--c-line); background: var(--c-card); cursor: pointer; scroll-snap-align: start; transition: border-color .2s, background .2s, color .2s; }
.days__wd { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.days__d { font: 700 1.35rem/1.1 var(--f-display); color: var(--c-primary); }
.days__m { font-size: .74rem; font-weight: 600; color: var(--c-muted); }
.days__day:hover { border-color: var(--c-light); }
.days input:checked + .days__day { background: var(--c-primary); border-color: var(--c-primary); }
.days input:checked + .days__day span { color: var(--c-on-dark); }
.days input:focus-visible + .days__day, .pick input:focus-visible + label { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.days input:disabled + .days__day { cursor: not-allowed; background: var(--c-surface); border-style: dashed; }
.days input:disabled + .days__day span { color: rgb(var(--c-text-rgb) / .45); }
.days[aria-invalid="true"] .days__day { border-color: var(--c-error); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--c-line); background: var(--c-card); font-size: .9rem; font-weight: 650; color: var(--c-primary); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.pick label .i { width: 1.1em; height: 1.1em; color: var(--c-link); }
.pick label:hover { border-color: var(--c-light); }
.pick input:checked + label { background: var(--c-tint); border-color: var(--c-accent); color: var(--c-primary); }
.pick input:checked + label .i { color: var(--c-accent-text); }
.bk__count { text-align: right; font-variant-numeric: tabular-nums; }
.bk__count.is-near { color: var(--c-error-text); }
.bk .check { min-height: 44px; }
.field .check input { width: 22px; height: 22px; min-height: 0; padding: 0; border-radius: 4px; -webkit-appearance: auto; appearance: auto; }
.bk__submit { min-height: 56px; font-size: 1.06rem; }
.bk__safe { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -6px 0 0; font-size: .88rem; color: var(--c-muted); text-align: center; }
.bk__safe .i { color: var(--c-accent-text); }

.bk-info { background: var(--c-surface); border-radius: var(--radius-lg); padding: 24px 20px; }
.bk-info__title { font-size: clamp(1.6rem, 5.4vw, 2.3rem); letter-spacing: -0.018em; max-width: 18ch; text-wrap: balance; }
.bk-info__text { color: var(--c-muted); margin: 12px 0 22px; }
.bk-facts { list-style: none; display: grid; gap: 18px; }
.bk-facts li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.bk-facts__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--c-card); color: var(--c-accent-text); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.bk-facts strong { display: block; color: var(--c-primary); font-family: var(--f-display); font-size: 1.08rem; margin-top: 2px; }
.bk-facts p { margin: 2px 0 0; color: var(--c-muted); font-size: .95rem; }
.bk-facts__call { display: grid; grid-template-columns: 96px 1fr; align-items: start; gap: 0 10px; }
.bk-facts__nums { display: flex; flex-wrap: wrap; column-gap: 14px; }
.bk-facts__call > span:first-child { color: var(--c-text-soft); font-weight: 600; line-height: 40px; }
.bk-facts__call a { display: inline-flex; align-items: center; min-height: 40px; color: var(--c-accent-text); font-weight: 700; text-decoration: none; white-space: nowrap; }
.bk-facts__call a:hover { text-decoration: underline; }

.bk-visit .section-head { margin-bottom: 24px; }
.bk-visit .section-head h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.bk-cards { list-style: none; display: grid; gap: 14px; }
.bk-cards li { padding: 20px; border-radius: var(--radius); border: 1px solid var(--c-line); background: var(--c-card); }
.bk-cards__icon { width: 48px; height: 48px; border-radius: 50%; background: rgb(var(--c-accent-rgb) / .1); color: var(--c-accent-text); display: grid; place-items: center; margin-bottom: 14px; }
.bk-cards h3 { font-size: 1.12rem; margin-bottom: 6px; }
.bk-cards p { margin: 0; color: var(--c-muted); font-size: .95rem; }

.bk-faq__grid { display: grid; gap: 24px; }
.bk-faq__head h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); max-width: 12ch; }
.bk-faq__head p:not(.eyebrow) { color: var(--c-muted); margin: 12px 0 16px; }
.bk-faq__cols { display: grid; gap: 10px; align-items: start; }
.bk-faq .faq summary { font-size: 1rem; padding: 14px 14px 14px 18px; }

.bk-done__grid { display: grid; gap: 24px; align-items: start; }
.bk-slip { padding: 22px 18px; }
.bk-slip__top { display: grid; grid-template-columns: 52px 1fr; gap: 14px; }
.bk-slip__tick { width: 52px; height: 52px; border-radius: 50%; background: var(--c-success); color: var(--c-success-text); display: grid; place-items: center; }
.bk-slip__tick .i { width: 28px; height: 28px; stroke-width: 2.4; }
.bk-slip__top .eyebrow { margin-bottom: 8px; }
.bk-slip__title { font-size: clamp(1.7rem, 6vw, 2.5rem); letter-spacing: -0.018em; margin-bottom: 10px; }
.bk-slip__top p:last-child { color: var(--c-text-soft); margin: 0; }
.bk-slip__ref { margin: 22px 0; padding: 18px; border-radius: var(--radius); border: 1.5px dashed var(--c-accent); background: rgb(var(--c-accent-rgb) / .05); display: grid; gap: 2px; text-align: center; }
.bk-slip__ref span { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-text); }
.bk-slip__ref strong { font: 800 clamp(1.6rem, 7vw, 2.2rem)/1.15 var(--f-display); letter-spacing: .04em; color: var(--c-primary); }
.bk-slip__ref small { color: var(--c-muted); font-size: .86rem; }
.bk-slip__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0 0 22px; }
.bk-slip__list dt { font-size: .8rem; font-weight: 600; color: var(--c-muted); }
.bk-slip__list dd { margin: 2px 0 0; font-weight: 650; color: var(--c-primary); overflow-wrap: anywhere; }
.bk-slip__wide { grid-column: 1 / -1; }
.bk-slip__actions { display: grid; gap: 10px; margin-bottom: 12px; }
.bk-slip__actions .bk-slip__wa { grid-column: 1 / -1; min-height: 56px; }
.bk-done .centre-mini { margin: 18px 0; }

@media (min-width: 600px) {
  .bk-form, .bk-slip { padding: 28px; }
  .seg--4 { grid-template-columns: repeat(4, 1fr); }
  .bk-cards { grid-template-columns: 1fr 1fr; }
  .bk-slip__actions { grid-template-columns: 1fr 1fr; }
  .bk-slip__list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .bk__row { grid-template-columns: 1fr 1fr; }
  .days { grid-auto-flow: row; grid-template-columns: repeat(7, 1fr); grid-auto-columns: auto; overflow: visible; padding: 0; margin: 0; }
}
@media (min-width: 960px) {
  .page-head { padding: calc(var(--header-h) + 28px) 0 48px; }
  .page-head__photo { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: 46%; max-width: 760px; }
  .page-head__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--ph-pos, 30% 40%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgb(var(--c-scrim-rgb)) 38%); mask-image: linear-gradient(90deg, transparent 0, rgb(var(--c-scrim-rgb)) 38%); }
  .page-head__inner > * { max-width: 600px; }
  .page-head__inner >     .bk-main { padding-top: 48px; }
  .bk-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-areas: "info form"; gap: 40px; }
  .bk-form { grid-area: form; padding: 32px; }
  .bk-info { grid-area: info; padding: 36px 32px; position: sticky; top: calc(var(--header-h) + 20px); }
  .bk-cards { grid-template-columns: repeat(4, 1fr); }
  .bk-faq__grid { grid-template-columns: .7fr 2fr; gap: 40px; align-items: start; }
  .bk-faq__cols { grid-template-columns: 1fr 1fr; }
  .bk-done__grid { grid-template-columns: 1.3fr 1fr; gap: 32px; }
  .bk-done .next-steps { position: sticky; top: calc(var(--header-h) + 20px); padding: 28px; }
}

@media print {
  .is-book .next-steps, .bk-slip__actions { display: none !important; }
  .bk-slip { box-shadow: none; border: 1px solid var(--c-line); }
}

/* ---------- Placeholder for a fact the hospital still has to send (todo() in bootstrap.php) ---------- */
.todo {
  display: inline-block; max-width: 100%; padding: 2px 8px; border-radius: 6px; border: 1px dashed var(--c-todo-line);
  background: var(--c-todo-bg); color: var(--c-todo); font: 600 .78rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0; text-transform: none; white-space: normal; overflow-wrap: anywhere; vertical-align: middle;
}

/* Placeholder preview (?preview=todo): a note pinned to the top of the window, with a way out. */
.todo-bar {
  position: fixed; z-index: 60; top: 8px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 16px);
  margin: 0; padding: 6px 14px; border-radius: 999px; border: 1px dashed var(--c-todo-line); background: var(--c-todo-bg); color: var(--c-todo);
  font: 600 .78rem/1.4 var(--f-body); box-shadow: var(--shadow-sm); text-align: center;
}
.todo-bar a { color: inherit; font-weight: 700; }

/* Demo mode review (?demo=1&mark=1): sample values get a dotted underline and the tooltip "sample";
   researched values only a tooltip with their source. Plain ?demo=1 prints none of these attributes. */
[data-demo="sample"] { text-decoration: underline dotted var(--c-todo); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: help; }
[data-demo="real"] { cursor: help; }

/* A button that reads like a link, inside running text */
.link-btn { display: inline; padding: 0; border: 0; background: none; color: var(--c-link); font: inherit; font-weight: 650; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.link-btn:hover { color: var(--c-link-hover); }
.link-btn--light { color: var(--c-on-dark); }
.link-btn--light:hover { color: var(--c-on-dark-accent); }
