/* Buddha Eye Care: feature sections (includes/partials/features.php, assets/js/features.js).
   Loaded after style.css on pages that set $page['features']. Mobile first; colours come from the
   tokens in style.css. The motif throughout is the iris: rings round the Buddha from the logo (iris_rings() in
   icons.php, or assets/brand/iris.svg as a mask where a background is enough). */

@keyframes irisSpin { to { transform: rotate(360deg); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } }

/* Single-column section grids: never let a wide child (a swipe rail, a long label) widen the column. */
.sx__grid, .cday__grid, .vchart__grid, .cfind__below, .hfaq__wrap, .dprof { grid-template-columns: minmax(0, 1fr); }
/* Long eyebrows (English plus Hindi) wrap neatly on phones. */
.eyebrow { flex-wrap: wrap; row-gap: 6px; }

.f-label { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.f-label .hi, .sx__label .hi, .lens__label .hi { text-transform: none; letter-spacing: 0; font-size: .9rem; }

/* ---------- Conditions marquee (index.php) ----------
   Big condition names drifting across the top of "What we treat", in soft navy with every fourth word stronger,
   separated by small gold irises. Decorative only (aria-hidden): the tiles below carry the links. */
.bento-sec { padding-top: 0; background: linear-gradient(to bottom, var(--c-surface), var(--c-bg) 340px); }
.mq { overflow: hidden; padding: clamp(40px, 6vw, 76px) 0 clamp(28px, 4vw, 52px); -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.mq__track { display: flex; width: max-content; animation: mqLeft 80s linear infinite; }
.mq:hover .mq__track { animation-play-state: paused; }
.mq__set { display: flex; align-items: center; }
.mq__word {
  padding-inline: .32em; white-space: nowrap;
  font: 900 clamp(3.2rem, 1.6rem + 7vw, 8.6rem)/1.04 var(--f-display); letter-spacing: -.02em;
  color: rgb(var(--c-light-rgb) / .13);
  transition: color .4s;
}
.mq__word:nth-child(8n+1) { color: rgb(var(--c-light-rgb) / .62); }
.mq__word:nth-child(8n+5) { color: transparent; -webkit-text-stroke: 1.5px rgb(var(--c-light-rgb) / .4); }
/* an iris: a gold ring round a navy pupil */
.mq__sep {
  flex: none; position: relative; width: clamp(18px, 1.6vw, 28px); aspect-ratio: 1; margin-inline: clamp(10px, 1.6vw, 26px); border-radius: 50%;
  border: clamp(3px, .32vw, 5px) solid var(--c-accent);
}
.mq__sep::after { content: ""; position: absolute; inset: 28%; border-radius: 50%; background: var(--c-primary); }
@keyframes mqLeft { to { transform: translateX(-50%); } }

/* ---------- 1. Symptom guide ---------- */
/* clip, not hidden: hidden would turn the section into a scroll box and stop the sticky guide card and pill. */
.sx { overflow: clip; }
@supports not (overflow: clip) { .sx::before { display: none; } }
.sx::before {
  content: ""; position: absolute; right: -260px; top: -240px; width: 680px; height: 680px; pointer-events: none;
  background: rgb(var(--c-line-rgb) / .7); -webkit-mask: url("../brand/iris.svg") center / contain no-repeat; mask: url("../brand/iris.svg") center / contain no-repeat;
}
.sx__grid { position: relative; display: grid; gap: 30px; }
.sx__title { margin-bottom: 16px; font-size: clamp(2.1rem, 7.4vw, 3.4rem); font-weight: 900; line-height: 1.04; letter-spacing: -.022em; text-wrap: balance; }
.sx__title em { font-style: normal; color: var(--c-link); }
.sx__lead { max-width: 52ch; margin: 0; color: var(--c-muted); font-size: 1.04rem; }
.sx__group { margin: 26px 0 10px; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.sx__group .hi { text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--c-primary); }
.sx__chips { display: grid; gap: 8px; }
.sx__chip {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) 24px; align-items: center; gap: 12px; min-height: 66px;
  padding: 10px 14px 10px 10px; border-radius: 18px; border: 1.5px solid var(--c-line); background: var(--c-card);
  text-align: left; -webkit-tap-highlight-color: transparent;
  transition: border-color .2s, background-color .25s, box-shadow .25s, transform .15s var(--ease);
}
.sx__chip:hover { border-color: var(--c-light); }
.sx__chip:active { transform: scale(.985); }
.sx__icon { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--c-tint); color: var(--c-link); transition: background .25s, color .25s; }
.sx__icon::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid transparent; transform: scale(.85); transition: border-color .25s, transform .35s var(--ease); }
.sx__words { display: grid; gap: 2px; }
.sx__hi { font-size: 1.1rem; line-height: 1.25; color: var(--c-primary); }
.sx__en { font-size: .85rem; line-height: 1.3; color: var(--c-muted); }
.sx__tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--c-line); color: transparent; transition: background .2s, border-color .2s, color .2s; }
.sx__tick .i { width: 14px; height: 14px; stroke-width: 2.8; }
.sx__chip[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); box-shadow: 0 14px 28px -18px rgb(var(--c-shadow-rgb) / .8); }
.sx__chip[aria-pressed="true"] .sx__hi { color: var(--c-on-dark); }
.sx__chip[aria-pressed="true"] .sx__en { color: var(--c-on-dark-soft); }
.sx__chip[aria-pressed="true"] .sx__icon { background: var(--c-accent); color: var(--c-btn-text); }
.sx__chip[aria-pressed="true"] .sx__icon::after { border-color: rgb(var(--c-accent-rgb) / .7); transform: none; }
.sx__chip[aria-pressed="true"] .sx__tick { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-btn-text); }

.sx__peek {
  position: sticky; z-index: 5; bottom: calc(78px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 52px; margin-top: 16px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--c-primary); color: var(--c-on-dark);
  font-weight: 700; font-size: .95rem; text-align: left; box-shadow: 0 16px 32px -14px rgb(var(--c-shadow-rgb) / .8); animation: riseIn .3s var(--ease);
}
.sx__peek[hidden] { display: none; }
.sx__peek { transition: opacity .25s, transform .25s var(--ease); }
.sx__peek.is-away { opacity: 0; transform: translateY(12px); pointer-events: none; }
.sx__peek span:nth-child(2) { flex: 1; }
.sx__peek .i { transform: rotate(90deg); color: var(--c-on-dark-accent); }
.sx__peek-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #32D583; box-shadow: 0 0 0 4px rgb(var(--c-on-dark-rgb) / .15); }
.sx__peek[data-level="red"] .sx__peek-dot { background: #F04438; }
.sx__peek[data-level="amber"] .sx__peek-dot { background: #FDB022; }
@media (min-width: 960px) { .sx__peek { display: none !important; } }
html:not(.js) .sx__tool, html:not(.js) .sx__panel { display: none; }
.js .sx__fallback { display: none; }
.sx__fallback { list-style: none; display: grid; gap: 8px; margin-top: 22px; }
.sx__fallback a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; min-height: 56px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--c-line); text-decoration: none; color: var(--c-primary); }
.sx__fallback b { display: inline-flex; align-items: center; gap: 6px; color: var(--c-link); font-size: .9rem; }

.sx__card {
  position: relative; display: grid; gap: 16px; padding: 22px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--c-surface); border: 1px solid var(--c-line); transition: background-color .4s, border-color .4s;
}
.sx__card[data-level="red"] { background: var(--c-urg-red-bg); border-color: rgb(var(--c-urg-red-rgb) / .3); }
.sx__card[data-level="amber"] { background: var(--c-urg-amber-bg); border-color: rgb(var(--c-urg-amber-rgb) / .35); }
.sx__card[data-level="green"] { background: var(--c-urg-green-bg); border-color: rgb(var(--c-urg-green-rgb) / .25); }
.sx__empty { display: grid; justify-items: center; gap: 8px; padding: 10px 4px 2px; text-align: center; color: var(--c-muted); }
.sx__empty[hidden] { display: none; }
.sx__iris { width: 128px; height: 128px; color: var(--c-light); opacity: .5; }
.sx__iris .iris__rings { animation: irisSpin 50s linear infinite; }
.sx__empty-hi { margin: 4px 0 0; font-size: 1.6rem; line-height: 1.2; color: var(--c-primary); }
.sx__empty p:last-child { max-width: 34ch; margin: 0; }
.sx__empty strong { color: var(--c-primary); }
.sx__out { display: grid; gap: 14px; }
.sx__out[hidden] { display: none; }
.sx__out.is-new { animation: riseIn .35s var(--ease); }
.sx__level { display: flex; align-items: center; gap: 14px; }
.sx__level p { display: grid; gap: 4px; margin: 0; }
.sx__level strong { font-size: 1.7rem; line-height: 1.15; }
.sx__level [data-sx-level-en] { font: 700 .8rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
[data-level="red"] .sx__level { color: var(--c-urg-red); }
[data-level="amber"] .sx__level { color: var(--c-urg-amber); }
[data-level="green"] .sx__level { color: var(--c-urg-green); }
.sx__light { flex: none; display: grid; gap: 5px; padding: 7px; border-radius: 999px; background: var(--c-darkest); }
.sx__light i { width: 14px; height: 14px; border-radius: 50%; background: rgb(var(--c-on-dark-rgb) / .14); transition: background .3s, box-shadow .3s; }
[data-level="red"] .sx__light i:nth-child(1) { background: #F04438; box-shadow: 0 0 12px #F04438; }
[data-level="amber"] .sx__light i:nth-child(2) { background: #FDB022; box-shadow: 0 0 12px #FDB022; }
[data-level="green"] .sx__light i:nth-child(3) { background: #32D583; box-shadow: 0 0 12px #32D583; }
.sx__level-text { margin: 0; font-weight: 650; color: var(--c-text); }
.sx__notes { list-style: none; display: grid; gap: 8px; }
.sx__notes li { padding-left: 12px; border-left: 3px solid currentColor; font-size: .94rem; color: var(--c-text-soft); }
[data-level="red"] .sx__notes li { border-left-color: rgb(var(--c-urg-red-rgb) / .5); }
[data-level="amber"] .sx__notes li { border-left-color: rgb(var(--c-urg-amber-rgb) / .6); }
[data-level="green"] .sx__notes li { border-left-color: rgb(var(--c-urg-green-rgb) / .45); }
.sx__label { margin: 4px 0 -6px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.sx__areas { list-style: none; display: grid; gap: 8px; }
.sx__areas a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 14px; border-radius: 14px; background: var(--c-card); color: var(--c-primary); text-decoration: none; box-shadow: var(--shadow-sm); }
.sx__areas a:hover { color: var(--c-link); }
.sx__areas strong { display: block; font-size: 1rem; }
.sx__areas small { display: block; font-size: .9rem; color: var(--c-link); }
.sx__who { display: grid; gap: 8px; }
.sx__doc, .sx__centre {
  display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: var(--c-card); color: var(--c-primary); text-decoration: none; line-height: 1.25; box-shadow: var(--shadow-sm);
}
.sx__doc:hover { color: var(--c-link); }
.sx__doc img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; box-shadow: 0 0 0 2px var(--c-card), 0 0 0 4px rgb(var(--c-accent-rgb) / .6); }
.sx__centre { border-radius: 16px; padding: 12px 14px; }
.sx__centre .i { flex: none; color: var(--c-link); }
.sx__doc small, .sx__centre small { display: block; font-size: .84rem; color: var(--c-muted); }
.sx__either { margin: 0; font-size: .86rem; color: var(--c-muted); }
.sx__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sx__actions .btn { flex: 1 1 auto; }
.btn--urgent { --btn-bg: var(--c-urg-red); --btn-fg: #FFFFFF; }
.btn--urgent:hover { --btn-bg: #912018; }
.sx__or { flex-basis: 100%; margin: 2px 0 0; font-size: .9rem; color: var(--c-muted); }
.sx__note { display: flex; gap: 10px; margin: 0; padding-top: 14px; border-top: 1px solid rgb(var(--c-text-rgb) / .1); font-size: .86rem; color: var(--c-muted); }
.sx__note .i { flex: none; margin-top: 2px; color: var(--c-link); }
.sx__note strong { display: block; font-size: 1rem; color: var(--c-primary); }

/* ---------- 2. Vision simulator ---------- */
.sim {
  /* a shorter foot: the conditions marquee below already opens with its own space */
  position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(64px, 9vw, 112px) clamp(44px, 5vw, 64px);
  background: radial-gradient(120% 70% at 50% 0%, var(--c-light) 0%, var(--c-primary) 35%, var(--c-darkest) 85%);
  color: rgb(var(--c-on-dark-rgb) / .82);
}
.sim__rings { position: absolute; z-index: -1; left: 50%; top: -460px; width: 980px; height: 980px; margin-left: -490px; color: rgb(var(--c-on-dark-rgb) / .07); }
.sim__rings .iris__rings { animation: irisSpin 120s linear infinite; }
.sim__head { display: grid; gap: 14px; margin-bottom: 24px; }
.sim__title { color: var(--c-on-dark); font-size: clamp(2.5rem, 9.4vw, 4.8rem); font-weight: 800; letter-spacing: -.026em; line-height: 1; }
.sim__hi { margin: 12px 0 0; color: var(--c-on-dark-accent); font-size: clamp(1.05rem, 3.6vw, 1.35rem); }
.sim__lead { max-width: 48ch; margin: 0; color: rgb(var(--c-on-dark-rgb) / .78); }
.sim__tabs {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) 16px; padding: 4px var(--gutter);
}
.sim__tabs::-webkit-scrollbar { display: none; }
html:not(.js) .sim__tabs { display: none; }
.sim__tab {
  flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid rgb(var(--c-on-dark-rgb) / .2); background: rgb(var(--c-on-dark-rgb) / .05); color: var(--c-on-dark);
  font-weight: 700; font-size: .95rem; line-height: 1.15; text-align: left; transition: background .2s, border-color .2s, color .2s;
}
.sim__tab:hover { border-color: rgb(var(--c-on-dark-rgb) / .5); }
.sim__tab[aria-selected="true"] { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-btn-text); }
.sim :focus-visible { outline-color: var(--c-focus-on-dark); }

.sim__stage {
  --pos: 50%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: #DCE8F0;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .8), 0 0 0 1px rgb(var(--c-on-dark-rgb) / .14);
  -webkit-user-select: none; user-select: none;
}
.sim__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.sim__fx { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.sim__layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.sim__glare, .sim__tunnel, .sim__spots { display: none; }
.sim__img--edge, .sim__img--near { display: none; }
[data-mode="normal"] .sim__fx, [data-mode="normal"] .sim__range, [data-mode="normal"] .sim__divider, [data-mode="normal"] .sim__tag { display: none; }
[data-mode="cataract"] .sim__img--fx { filter: blur(2.6px) sepia(.55) saturate(.7) contrast(.75) brightness(1.06); }
[data-mode="cataract"] .sim__glare { display: inline; }
[data-mode="glaucoma"] .sim__img--edge {
  display: block; filter: blur(5px) brightness(.85);
  -webkit-mask-image: radial-gradient(circle at 53% 44%, transparent 16%, #000 38%); mask-image: radial-gradient(circle at 53% 44%, transparent 16%, #000 38%);
}
[data-mode="glaucoma"] .sim__tunnel { display: inline; }
[data-mode="diabetic"] .sim__img--fx { filter: blur(1.4px) saturate(.8) contrast(.88); }
[data-mode="diabetic"] .sim__spots { display: inline; }
[data-mode="myopia"] .sim__img--fx { filter: blur(4.6px); }
[data-mode="myopia"] .sim__img--near {
  display: block;
  -webkit-mask-image: linear-gradient(to top, #000 0 20%, transparent 40%); mask-image: linear-gradient(to top, #000 0 20%, transparent 40%);
}
/* Labels sit at the foot of the street, so they never cover the road sign people try to read. */
.sim__tag {
  position: absolute; z-index: 3; bottom: 12px; padding: 6px 12px; border-radius: 999px; pointer-events: none;
  background: rgb(var(--c-darkest-rgb) / .8); color: var(--c-on-dark); font-size: .8rem; font-weight: 700; line-height: 1.2;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sim__tag--fx { left: 12px; max-width: calc(var(--pos) - 24px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sim__tag--ok { right: 12px; background: rgb(var(--c-bg-rgb) / .92); color: var(--c-primary); }
.sim__divider { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--c-on-dark); box-shadow: 0 0 0 1px rgb(0 0 0 / .12); pointer-events: none; }
.sim__handle {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-items: center; background: var(--c-accent); color: var(--c-btn-text);
  box-shadow: 0 0 0 6px rgb(var(--c-on-dark-rgb) / .4), 0 0 0 13px rgb(var(--c-on-dark-rgb) / .14), 0 12px 26px -8px rgb(0 0 0 / .6);
}
.sim__handle .i { width: 24px; height: 24px; }
.sim__range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.sim__range:focus-visible + .sim__divider .sim__handle { outline: 3px solid var(--c-focus-on-dark); outline-offset: 16px; }
.sim__info { margin-top: 16px; padding: 20px; border-radius: var(--radius); background: rgb(var(--c-on-dark-rgb) / .06); border: 1px solid rgb(var(--c-on-dark-rgb) / .12); }
.sim__about[hidden] { display: none !important; }
.sim__rings, .bcta__rings, .tech__ph-rings, .bento__rings, .sx__iris { max-width: none; }
/* Photo-less tiles put their own icon in the middle of the iris, so the Buddha steps aside there. */
.bento__rings .iris__eye, .tech__ph-rings .iris__eye, .tart__rings .iris__eye { display: none; }
.sim__about h3 { margin-bottom: 4px; color: var(--c-on-dark); font-size: 1.35rem; letter-spacing: -.02em; }
.sim__about h3 .hi { margin-left: 6px; font-size: 1.05rem; font-weight: 500; letter-spacing: 0; color: var(--c-on-dark-accent); }
.sim__about p { max-width: 70ch; margin: 0; }
.sim__about p.hi { font-weight: 500; color: var(--c-on-dark-note); }
.sim__about .btn { margin-top: 16px; }
.sim__foot { margin: 14px 0 0; font-size: .84rem; color: rgb(var(--c-on-dark-rgb) / .58); }

/* Compact simulator (vision_sim(true)): the booking page hero. No padded box around it: the street is the frame,
   with a hairline edge and a soft drop shadow, and the note below hangs off an accent rule. */
.simc { margin: 0; min-width: 0; color: rgb(var(--c-on-dark-rgb) / .74); }
.simc :focus-visible { outline-color: var(--c-focus-on-dark); }
.simc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.simc__title { font: 700 1.05rem/1.25 var(--f-display); letter-spacing: -.01em; color: var(--c-on-dark); }
.simc__hint { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .78rem; color: rgb(var(--c-on-dark-rgb) / .62); }
.simc__hint .i { width: 16px; height: 16px; color: var(--c-on-dark-accent); }
.simc .sim__tabs { gap: 6px; margin-bottom: 12px; padding-block: 2px; }
.simc .sim__tab { min-height: 38px; padding: 0 14px; border-width: 1px; font-size: .86rem; }
.simc .sim__stage {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgb(var(--c-on-dark-rgb) / .16), 0 32px 64px -30px rgb(0 0 0 / .85);
}
.simc .sim__handle { width: 46px; height: 46px; box-shadow: 0 0 0 5px rgb(var(--c-on-dark-rgb) / .35), 0 10px 22px -8px rgb(0 0 0 / .6); }
.simc .sim__handle .i { width: 22px; height: 22px; }
.simc .sim__tag { bottom: 10px; padding: 5px 10px; font-size: .74rem; }
.simc .sim__tag--fx { left: 10px; max-width: calc(var(--pos) - 20px); }
.simc .sim__tag--ok { right: 10px; }
.simc .sim__info { margin-top: 14px; padding: 1px 0 1px 14px; border: 0; border-left: 2px solid var(--c-accent); border-radius: 0; background: none; }
.simc .sim__about { display: block; }
.simc .sim__about p { font-size: .9rem; line-height: 1.6; }
.simc .sim__about strong { color: var(--c-on-dark); }

/* ---------- What we treat: bento (index.php) ---------- */
.bento-sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: clamp(24px, 4vw, 40px); }
.bento-sec__head h2 { max-width: 20ch; font-size: clamp(1.85rem, 5.6vw, 3rem); font-weight: 700; letter-spacing: -.018em; line-height: 1.1; text-wrap: balance; }
.bento-sec__head h2 span { color: var(--c-link); }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bento__tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 230px; border-radius: var(--radius); background: var(--c-panel); color: var(--c-on-dark); text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.bento__tile:hover { color: var(--c-on-dark); transform: translateY(-4px); box-shadow: var(--shadow); }
.bento__tile--xl, .bento__tile--wide { grid-column: 1 / -1; }
.bento__tile--xl { min-height: 340px; }
.bento__tile--tall, .bento__tile--art { min-height: 290px; }
.bento__media { position: absolute; inset: 0; z-index: -1; }
.bento__media picture, .bento__media img { display: block; width: 100%; height: 100%; }
.bento__media img { object-fit: cover; transition: transform .8s var(--ease); }
.bento__tile:hover .bento__media img { transform: scale(1.05); }
.bento__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(var(--c-darkest-rgb) / .94) 0%, rgb(var(--c-darkest-rgb) / .55) 45%, rgb(var(--c-darkest-rgb) / .05) 80%); }
.bento__art { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 34%, var(--c-light), var(--c-panel) 72%); }
.bento__rings { position: absolute; top: -12%; width: 150%; max-width: none; height: auto; aspect-ratio: 1; color: rgb(var(--c-on-dark-rgb) / .2); }
.bento__rings .iris__rings { animation: irisSpin 70s linear infinite; }
.bento__art-icon { position: absolute; top: 24%; width: 60px; height: 60px; color: var(--c-on-dark-accent); stroke-width: 1.3; }
.bento__body { position: relative; display: grid; gap: 4px; padding: 18px; }
.bento__tag {
  justify-self: start; margin-bottom: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .03em;
  background: rgb(var(--c-on-dark-rgb) / .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.bento__name { font: 800 clamp(1.2rem, 3.6vw, 1.6rem)/1.1 var(--f-display); letter-spacing: -.02em; }
.bento__tile--xl .bento__name { font-size: clamp(1.8rem, 5.4vw, 2.8rem); letter-spacing: -.02em; }
.bento__hi { color: var(--c-on-dark-accent); font-size: 1rem; }
.bento__text { max-width: 42ch; font-size: .92rem; line-height: 1.45; color: rgb(var(--c-on-dark-rgb) / .84); }
.bento__go {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(var(--c-bg-rgb) / .94); color: var(--c-primary); transition: transform .35s var(--ease);
}
.bento__go::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid rgb(var(--c-on-dark-rgb) / .7); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .4s var(--ease); }
.bento__tile:hover .bento__go { transform: rotate(-45deg); }
.bento__tile:hover .bento__go::after { opacity: 1; transform: none; }
.bento__tile--sm {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: start; align-content: start; gap: 2px; min-height: 0; padding: 18px;
  background: var(--bg-glow); color: var(--c-on-dark);
}
.bento__tile--sm:hover { color: var(--c-on-dark); }
.bento__icon {
  width: 44px; height: 44px; margin-bottom: 10px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--c-on-dark-rgb) / .1); color: var(--c-on-dark-accent);
  box-shadow: 0 0 0 4px rgb(var(--c-on-dark-rgb) / .05), 0 0 0 5px rgb(var(--c-on-dark-rgb) / .18); transition: box-shadow .3s;
}
.bento__tile--sm:hover .bento__icon { box-shadow: 0 0 0 4px rgb(var(--c-on-dark-rgb) / .05), 0 0 0 5px var(--c-on-dark-accent), 0 0 0 10px rgb(var(--c-on-dark-accent-rgb) / .12); }
.bento__tile--sm .bento__name { font-size: 1.02rem; letter-spacing: -.01em; }
.bento__tile--sm .bento__hi { font-size: .9rem; color: var(--c-on-dark-accent); }
.bento__count { margin-top: 4px; font-size: .8rem; color: rgb(var(--c-on-dark-rgb) / .7); }
.bento__tile--all { background: var(--c-accent); color: var(--c-btn-text); }
.bento__tile--all:hover { background: var(--c-accent-hover); color: var(--c-btn-text); }
.bento__tile--all .bento__icon { background: var(--c-card); color: var(--c-primary); box-shadow: 0 0 0 4px rgb(var(--c-bg-rgb) / .3), 0 0 0 5px rgb(var(--c-darkest-rgb) / .15); }
.bento__tile--all:hover .bento__icon { box-shadow: 0 0 0 4px rgb(var(--c-bg-rgb) / .3), 0 0 0 5px var(--c-primary), 0 0 0 10px rgb(var(--c-darkest-rgb) / .08); }
.bento__tile--all .bento__count { color: rgb(var(--c-darkest-rgb) / .78); }
.bento__tile--all .bento__hi, .bento__tile--all .bento__count { color: rgb(var(--c-darkest-rgb) / .78); }
.bento__tile--all .bento__icon { background: var(--c-primary); color: var(--c-on-dark); box-shadow: 0 0 0 4px var(--c-accent), 0 0 0 5px rgb(var(--c-darkest-rgb) / .3); }
@media (max-width: 719px) {
  .bento__tile--tall .bento__text, .bento__tile--art .bento__text { display: none; }
  .bento__tile--tall .bento__body, .bento__tile--art .bento__body { padding: 14px; }
  .bento__tile--tall .bento__go, .bento__tile--art .bento__go { width: 38px; height: 38px; top: 10px; right: 10px; }
}

/* ---------- 3. Cataract surgery day ---------- */
.cday { background: var(--c-surface); }
.cday__grid { display: grid; gap: 30px; }
.cday__title { font-size: clamp(1.95rem, 6vw, 3.2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.cday__title em { display: block; font-style: normal; color: var(--c-link); }
.cday__hi { margin: 12px 0 0; font-size: 1.15rem; color: var(--c-text-soft); }
.cday__lead { max-width: 44ch; margin: 14px 0 0; color: var(--c-muted); }
.cday__dial { display: none; }
.cday__bring { margin: 22px 0; padding: 16px 18px; border-radius: var(--radius); background: var(--c-card); border: 1px solid var(--c-line); }
.cday__bring-title { margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.cday__bring-title .hi { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.cday__bring ul { list-style: none; display: grid; gap: 8px; }
.cday__bring li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.cday__bring .i { color: var(--c-accent-text); }
.cday__steps { --p: 0; position: relative; list-style: none; display: grid; gap: 14px; }
.cday__steps::before, .cday__steps::after { content: ""; position: absolute; left: 25px; top: 26px; width: 2px; }
.cday__steps::before { bottom: 26px; background: repeating-linear-gradient(to bottom, var(--c-tint-strong) 0 6px, transparent 6px 12px); }
.cday__steps::after { height: calc((100% - 52px) * var(--p)); background: var(--c-accent); transition: height .35s var(--ease); }
.cday__step { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; }
.cday__node {
  position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-card); color: var(--c-link); border: 2px solid var(--c-tint-strong); box-shadow: 0 0 0 6px var(--c-surface);
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.cday__node .i { width: 22px; height: 22px; }
.cday__step.is-on .cday__node { background: var(--c-primary); color: var(--c-on-dark-accent); border-color: var(--c-primary); }
.cday__step.is-now .cday__node { transform: scale(1.08); box-shadow: 0 0 0 6px var(--c-surface), 0 0 0 9px rgb(var(--c-accent-rgb) / .5); }
.cday__card { padding: 16px 18px; border-radius: var(--radius); background: var(--c-card); border: 1px solid var(--c-line); transition: box-shadow .3s, border-color .3s; }
.cday__step.is-now .cday__card { border-color: transparent; box-shadow: var(--shadow); }
.cday__when { margin: 0 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-text); }
.cday__step:not(.is-group) .cday__when { display: none; }
.cday__card h3 { margin-bottom: 6px; font-size: 1.18rem; letter-spacing: -.015em; }
.cday__card h3 .hi { margin-left: 4px; font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--c-link); }
.cday__card p:last-child { margin: 0; font-size: .95rem; color: var(--c-muted); }

/* ---------- 4. Lenses and paying ---------- */
.lenses__head { display: grid; gap: 14px; margin-bottom: clamp(24px, 4vw, 40px); }
.lenses__head h2 { max-width: 20ch; font-size: clamp(1.85rem, 5.6vw, 3rem); font-weight: 700; letter-spacing: -.018em; line-height: 1.1; text-wrap: balance; }
.lenses__head p { max-width: 60ch; margin: 0; color: var(--c-muted); }
/* An inline link inside the paragraph: keeps the paragraph's line height (inline-flex and a 44px min-height made its line taller). */
.lenses__head p .link-arrow { display: inline; white-space: nowrap; }
.lenses__head p .link-arrow .i { display: inline-block; width: 1.05em; height: 1.05em; margin-left: 4px; vertical-align: -.16em; }
.lenses__grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scroll-padding-inline: var(--gutter);
}
.lenses__grid::-webkit-scrollbar { display: none; }
/* The lens cards sit on the glowing navy (--bg-glow), with the iris rings faint in the corner. */
.lens { position: relative; isolation: isolate; overflow: hidden; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--radius-lg); background: var(--bg-glow); color: rgb(var(--c-on-dark-rgb) / .8); box-shadow: var(--shadow-sm); }
.lens::after { content: ""; position: absolute; z-index: -1; right: -110px; bottom: -110px; width: 280px; 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; }
.lens :focus-visible { outline-color: var(--c-focus-on-dark); }
.lens__top { display: flex; align-items: center; gap: 14px; }
.lens-art { flex: none; width: 84px; height: 84px; transition: transform .6s var(--ease); }
.lens:hover .lens-art { transform: rotate(-18deg); }
.lens-art__optic { fill: var(--c-tint); stroke: var(--c-link); stroke-width: 2; }
.lens-art__haptic { fill: none; stroke: var(--c-accent); stroke-width: 3.2; stroke-linecap: round; }
.lens-art__shine { fill: var(--c-card); opacity: .9; }
.lens-art__ring { fill: none; stroke: var(--c-link); stroke-width: 1.3; opacity: .7; }
.lens-art__axis { stroke: var(--c-accent-text); stroke-width: 1.3; stroke-dasharray: 3 3; }
.lens-art__mark { fill: var(--c-accent-text); }
.lens__name { font-size: 1.55rem; letter-spacing: -.025em; color: var(--c-on-dark); }
.lens__name span { display: block; margin-top: 3px; font: 600 .86rem/1.3 var(--f-body); letter-spacing: 0; color: rgb(var(--c-on-dark-rgb) / .7); }
.lens__hi { margin: 4px 0 0; color: var(--c-on-dark-accent); }
.lens__label { margin: 4px 0 -4px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--c-on-dark-rgb) / .62); }
.lens__focus { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lens__focus li { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: rgb(var(--c-on-dark-rgb) / .05); color: rgb(var(--c-on-dark-rgb) / .58); text-align: center; }
.lens__focus strong { font-size: .9rem; }
.lens__focus small { font-size: .72rem; line-height: 1.25; }
.lens__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed rgb(var(--c-on-dark-rgb) / .25); }
.lens__dot .i { width: 15px; height: 15px; stroke-width: 2.8; }
.lens__focus li.is-on { background: rgb(var(--c-on-dark-rgb) / .13); color: var(--c-on-dark); }
.lens__focus li.is-on .lens__dot { border: 0; background: var(--c-accent); color: var(--c-btn-text); box-shadow: 0 0 0 3px rgb(var(--c-on-dark-rgb) / .08), 0 0 0 4px rgb(var(--c-accent-rgb) / .4); }
.lens__extra { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .92rem; font-weight: 700; color: var(--c-on-dark); }
.lens__extra .i { color: var(--c-on-dark-accent); }
.lens__best { margin: 0; color: rgb(var(--c-on-dark-rgb) / .86); }
.lens__suits { list-style: none; display: grid; gap: 6px; }
.lens__suits li { position: relative; padding-left: 18px; font-size: .92rem; color: rgb(var(--c-on-dark-rgb) / .72); }
.lens__suits li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--c-accent); }
.lens__note { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: rgb(var(--c-on-dark-accent-rgb) / .12); border: 1px solid rgb(var(--c-on-dark-accent-rgb) / .22); font-size: .86rem; color: rgb(var(--c-on-dark-rgb) / .86); }
.lens__note .i { flex: none; margin-top: 2px; color: var(--c-on-dark-accent); }
.lens__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: auto 0 0; padding-top: 14px; border-top: 1px dashed rgb(var(--c-on-dark-rgb) / .2); }
.lens__price span:first-child { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--c-on-dark-rgb) / .62); }
.lens__price strong { font: 800 1.15rem var(--f-display); color: var(--c-on-dark); }
.lens__price small { flex-basis: 100%; color: rgb(var(--c-on-dark-rgb) / .62); font-size: .84rem; }

.pay { display: grid; gap: 16px; margin-top: 22px; padding: 22px; border-radius: var(--radius-lg); background: var(--c-surface); }
.pay__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 6px; font: 700 1.15rem/1.25 var(--f-display); color: var(--c-primary); }
.pay__title .i { color: var(--c-accent-text); }
.pay__title .hi { font-size: .98rem; font-weight: 500; color: var(--c-link); }
.pay__text p:last-child { margin: 0; font-size: .95rem; color: var(--c-muted); }
.pay__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pay__chips li { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 14px; border: 1.5px dashed var(--c-tint-strong); background: var(--c-card); font-size: .9rem; font-weight: 700; color: var(--c-primary); }
.pay__chips li.is-ok { border-style: solid; border-color: var(--c-success); }
.pay__chips li.is-ok .i { color: var(--c-success); }
.pay__chips li small { font-weight: 500; opacity: .8; }
.pay__calls { display: flex; flex-wrap: wrap; gap: 8px; }
/* Shown in place of the chips while no scheme or insurer is confirmed. */
.pay__none { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 650; line-height: 1.35; color: var(--c-primary); }
.pay__none .i { flex: none; color: var(--c-accent-text); }

/* ---------- 5. Inside our centres ---------- */
.tech { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 112px); background: var(--c-darkest); color: rgb(var(--c-on-dark-rgb) / .78); }
.tech::before {
  content: ""; position: absolute; right: -320px; bottom: -340px; width: 860px; height: 860px; 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;
}
.tech__head { position: relative; display: grid; gap: 14px; margin-bottom: 28px; }
.tech__title { color: var(--c-on-dark); font-size: clamp(2.1rem, 6.6vw, 3.5rem); font-weight: 800; letter-spacing: -.024em; line-height: 1.04; }
.tech__head > p { max-width: 46ch; margin: 0; }
.tech__nav { display: none; gap: 10px; }
.tech__btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgb(var(--c-on-dark-rgb) / .3); background: transparent; color: var(--c-on-dark); transition: background .2s, border-color .2s, color .2s, opacity .2s; }
.tech__btn:hover:not(:disabled) { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-btn-text); }
.tech__btn:disabled { opacity: .3; cursor: default; }
.tech__btn--prev .i { transform: rotate(180deg); }
.tech :focus-visible { outline-color: var(--c-focus-on-dark); }
.tech__rail {
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 310px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px var(--edge) 12px; scroll-padding-inline: var(--edge);
}
.tech__rail::-webkit-scrollbar { display: none; }
.tech__rail:focus-visible { outline: 3px solid var(--c-focus-on-dark); outline-offset: -3px; }
.tech__card { display: flex; flex-direction: column; margin: 0; scroll-snap-align: start; overflow: hidden; border-radius: var(--radius); background: rgb(var(--c-on-dark-rgb) / .05); border: 1px solid rgb(var(--c-on-dark-rgb) / .1); transition: transform .3s var(--ease), border-color .3s; }
.tech__card:hover { transform: translateY(-4px); border-color: rgb(var(--c-on-dark-accent-rgb) / .5); }
.tech__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-panel); }
.tech__media picture, .tech__media img { display: block; width: 100%; height: 100%; }
.tech__media img { object-fit: cover; transition: transform .8s var(--ease); }
.tech__card:hover .tech__media img { transform: scale(1.05); }
/* hover: an iris ring "focuses" on the photo */
.tech__media::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px; border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgb(var(--c-on-dark-rgb) / .75); box-shadow: 0 0 0 16px rgb(var(--c-on-dark-rgb) / .12), 0 0 0 17px rgb(var(--c-on-dark-rgb) / .3);
  opacity: 0; transform: scale(.55); transition: opacity .35s, transform .5s var(--ease);
}
.tech__card:hover .tech__media::after { opacity: 1; transform: none; }
.tech__card figcaption { padding: 16px 18px 20px; }
.tech__card h3 { margin-bottom: 6px; color: var(--c-on-dark); font-size: 1.12rem; letter-spacing: -.01em; }
.tech__card h3 .hi { display: block; margin-top: 3px; font-size: .92rem; font-weight: 500; letter-spacing: 0; color: var(--c-on-dark-accent); }
.tech__card p { margin: 0; font-size: .92rem; line-height: 1.5; }
.tech__ph { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 42%, var(--c-light), var(--c-panel) 72%); }
.tech__ph-rings { position: absolute; width: 130%; max-width: none; height: auto; aspect-ratio: 1; color: rgb(var(--c-on-dark-rgb) / .16); }
.tech__ph-icon { position: relative; width: 56px; height: 56px; color: var(--c-on-dark-accent); stroke-width: 1.3; }
.tech__todo { position: absolute; left: 12px; right: 12px; bottom: 12px; }
.tech__card p.tech__machine { margin: 0 0 8px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--c-on-dark-accent); }

/* ---------- 6. Doctors ---------- */
.docs__head { max-width: 760px; margin-bottom: clamp(28px, 5vw, 52px); }
.docs__head h2 { font-size: clamp(1.85rem, 5.6vw, 3rem); font-weight: 700; letter-spacing: -.018em; line-height: 1.1; text-wrap: balance; }
.docs__head p { max-width: 56ch; margin: 14px 0 0; color: var(--c-muted); font-size: 1.04rem; }
.dprof { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 26px; padding: clamp(22px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--c-panel); color: rgb(var(--c-on-dark-rgb) / .8); }
.dprof + .dprof { margin-top: 18px; }
/* a warm glow behind the photo, like light through a lens */
.dprof::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -160px; width: 520px; height: 520px; margin-left: -260px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(var(--c-accent-rgb) / .24), transparent);
}
/* and the iris rings, faint, in the far corner */
.dprof::after {
  content: ""; position: absolute; z-index: -1; right: -260px; bottom: -340px; width: 760px; 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;
}
.dprof--flip::after { right: auto; left: -260px; }
.dprof :focus-visible { outline-color: var(--c-focus-on-dark); }
.dprof__photo { position: relative; justify-self: center; width: min(270px, 74vw); aspect-ratio: 1; }
.dprof__ring { position: relative; width: 100%; height: 100%; }
.dprof__ring { --pf-r: 26px; --pf-o: 16px; }
.dprof__exp {
  position: absolute; z-index: 1; left: -14px; bottom: 26px; width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center; align-content: center; text-align: center;
  background: var(--c-card); color: var(--c-primary); box-shadow: 0 0 0 5px var(--c-panel), 0 18px 30px -16px rgb(0 0 0 / .6);
}
.dprof__exp strong { font: 800 1.5rem/1 var(--f-display); letter-spacing: -.018em; }
.dprof__exp small { margin-top: 2px; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.dprof__where { position: absolute; z-index: 1; right: -12px; top: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--c-accent); color: var(--c-btn-text); font-size: .85rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.dprof__where .i { width: 16px; height: 16px; }
.dprof__body { min-width: 0; }
.dprof__role { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-on-dark-accent); }
.dprof__name { margin-bottom: 14px; font-size: clamp(2.1rem, 7.4vw, 3.3rem); font-weight: 800; letter-spacing: -.024em; line-height: 1; color: var(--c-on-dark); }
.dprof__name a { color: inherit; text-decoration: none; }
.dprof__name a:hover { color: var(--c-on-dark-accent); }
.dprof__hi { margin: 8px 0 14px; font-size: 1.15rem; color: var(--c-on-dark-accent); }
.dprof__summary { max-width: 58ch; color: rgb(var(--c-on-dark-rgb) / .8); }
.dprof .creds li { background: rgb(var(--c-on-dark-rgb) / .1); color: var(--c-on-dark); }
.dprof__facts { margin: 18px 0; border-top: 1px solid var(--c-line); }
.dprof__facts > div { display: grid; gap: 2px 14px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.dprof__facts dt { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; color: var(--c-muted); }
.dprof__facts dt .i { width: 18px; height: 18px; color: var(--c-link); }
.dprof__facts dd { margin: 0; font-weight: 650; color: var(--c-primary); }
.dprof__facts dd small { display: block; font-weight: 500; color: var(--c-muted); }
.dprof__label { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--c-on-dark-rgb) / .66); }
.dprof__treats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 22px; }
.dprof__treats a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgb(var(--c-on-dark-rgb) / .18); background: rgb(var(--c-on-dark-rgb) / .06); color: var(--c-on-dark); text-decoration: none; font-size: .9rem; font-weight: 650; transition: border-color .2s, background-color .2s; }
.dprof__treats a:hover { border-color: var(--c-on-dark-accent); background: rgb(var(--c-on-dark-rgb) / .1); color: var(--c-on-dark); }
.dprof__treats .i { width: 18px; height: 18px; color: var(--c-on-dark-accent); }
.dprof__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dprof .btn--ghost { --btn-fg: var(--c-on-dark); --btn-bd: rgb(var(--c-on-dark-rgb) / .35); }
.dprof .btn--ghost:hover { --btn-bd: var(--c-on-dark); }
/* The facts list is also used on the doctor's own page, on white, so these colours stay inside the card. */
.dprof .dprof__facts, .dprof .dprof__facts > div { border-color: rgb(var(--c-on-dark-rgb) / .14); }
.dprof .dprof__facts dt { color: rgb(var(--c-on-dark-rgb) / .66); }
.dprof .dprof__facts dt .i { color: var(--c-on-dark-icon); }
.dprof .dprof__facts dd { color: var(--c-on-dark); }
.dprof .dprof__facts dd small { color: rgb(var(--c-on-dark-rgb) / .66); }

/* ---------- 7. Trust ---------- */
.trust { overflow: hidden; background: var(--c-surface); }
.trust__mark {
  position: absolute; left: 50%; top: clamp(18px, 4vw, 44px); margin: 0; transform: translateX(-50%); white-space: nowrap; pointer-events: none; -webkit-user-select: none; user-select: none;
  font-size: clamp(5rem, 24vw, 15.5rem); font-weight: 800; line-height: 1; letter-spacing: 0;
  /* A solid colour faded as a whole: with a see-through colour, every place two Devanagari strokes overlap
     (the top line, the vowel signs) doubles up into a darker mark. */
  color: var(--c-light); opacity: .06;
}
.trust .container { position: relative; }
.trust__head { max-width: 780px; margin: 0 auto clamp(28px, 5vw, 48px); text-align: center; }
.trust__head h2 { font-size: clamp(1.9rem, 5.6vw, 3.1rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
.trust__head h2 em { font-style: normal; color: var(--c-link); }
/* Numbers (trust_block): a navy card with the years on a ruler, one mark per year, filling with gold as it comes
   into view; beside it white cards, each with an icon (or the doctor's face), a big number and what it counts. */
.tstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tstat {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: start; gap: 10px;
  padding: clamp(18px, 2.4vw, 28px); border-radius: var(--radius-lg); background: var(--c-card); border: 1px solid var(--c-line);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
/* a quarter of an iris in the corner */
.tstat::after {
  content: ""; position: absolute; z-index: -1; right: -90px; bottom: -90px; width: 220px; height: 220px; pointer-events: none;
  background: rgb(var(--c-light-rgb) / .14); -webkit-mask: url("../brand/iris.svg") center / contain no-repeat; mask: url("../brand/iris.svg") center / contain no-repeat;
  transition: transform .8s var(--ease);
}
.tstat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.tstat:hover::after { transform: scale(1.12); }
.tstat:last-child:nth-child(even) { grid-column: 1 / -1; }
.tstat__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.tstat__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgb(var(--c-accent-rgb) / .14); color: var(--c-accent-text); }
.tstat__icon .i { width: 22px; height: 22px; }
.tstat__face { width: 46px; height: 46px; overflow: hidden; border-radius: 14px; background: var(--c-tint); box-shadow: 0 0 0 2px var(--c-card), 0 0 0 3.5px var(--c-accent); }
.tstat__face picture, .tstat__face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.tstat__index { font: 700 .74rem/1 var(--f-body); letter-spacing: .14em; color: var(--c-muted); opacity: .7; }
.tstat__num { margin: 0; }
.tstat__num strong { display: block; font: 900 clamp(2.4rem, 6.4vw, 3.6rem)/.95 var(--f-display); letter-spacing: -.02em; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.tstat__num--todo { font-size: 1rem; }
.tstat__label { margin: 0; display: grid; gap: 2px; line-height: 1.35; }
.tstat__label strong { font-weight: 700; color: var(--c-text); }
.tstat__label span { font-size: .88rem; color: var(--c-muted); }

.tstat--years { grid-column: 1 / -1; background: var(--c-panel); border-color: transparent; color: rgb(var(--c-on-dark-rgb) / .8); }
.tstat--years::after { background: rgb(var(--c-on-dark-rgb) / .08); width: 420px; height: 420px; right: -170px; bottom: -200px; }
.tstat--years::before {
  content: ""; position: absolute; z-index: -1; left: -120px; top: -160px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--c-accent-rgb) / .3), transparent);
}
.tstat__kicker { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 .76rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c-on-dark-accent); }
.tstat__kicker .i { width: 16px; height: 16px; }
.tstat__big { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 0; }
.tstat__big strong { font: 900 clamp(5.4rem, 16vw, 9.5rem)/.82 var(--f-display); letter-spacing: -.03em; color: var(--c-on-dark); font-variant-numeric: tabular-nums; }
.tstat__big span { font: 700 clamp(1.4rem, 3vw, 2rem)/1 var(--f-display); color: var(--c-on-dark-accent); }
.tstat--years .tstat__label { max-width: 34ch; font-size: 1.02rem; color: rgb(var(--c-on-dark-rgb) / .78); }
.tstat__ruler { margin-top: auto; padding-top: clamp(18px, 3vw, 32px); }
.tstat__ticks { display: grid; grid-template-columns: repeat(var(--y), 1fr); align-items: end; height: 34px; }
.tstat__tick { justify-self: center; width: 2px; height: 14px; border-radius: 2px; background: rgb(var(--c-on-dark-rgb) / .28); transition: background-color .3s calc(var(--k) * 70ms + .2s), height .3s calc(var(--k) * 70ms + .2s); }
.tstat__tick.is-major { height: 24px; }
.tstat__tick:first-child, .tstat__tick:last-child { justify-self: stretch; width: auto; max-width: 2px; }
.tstat__tick:first-child { justify-self: start; }
.tstat__tick:last-child { justify-self: end; height: 34px; box-shadow: 0 0 0 4px rgb(var(--c-accent-rgb) / .25); }
.js .tstat--years.is-in .tstat__tick, html:not(.js) .tstat__tick { background: var(--c-accent); }
.tstat__ends { display: flex; justify-content: space-between; margin-top: 10px; font: 700 .82rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--c-on-dark-rgb) / .7); }
.tstat__ends span:last-child { color: var(--c-on-dark-accent); }
/* Reviews (reviews_block): one component on the home page, About and the treatment pages. */
.trust__reviews { margin-top: clamp(32px, 5vw, 56px); }
.rates__title { margin: 0 0 12px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.rates__title .hi { text-transform: none; letter-spacing: 0; font-size: .92rem; }
.rv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.rv__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 18px; }
.rv__title { margin: 0; }
.rv__score { display: inline-flex; align-items: baseline; gap: 6px; margin: 0; font-size: .9rem; color: var(--c-muted); }
.rv__score .i { align-self: center; width: 18px; height: 18px; color: var(--c-accent); }
.rv__score strong { font: 800 1.25rem/1 var(--f-display); color: var(--c-primary); }
.rv__all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 650; color: var(--c-link); text-decoration: none; }
.rv__all:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.rv__all .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.rv__all:hover .i { transform: translateX(4px); }
/* Nothing to show yet: the title and the Google link sit in one quiet card. */
.rv--solo { padding: 14px 20px; border-radius: var(--radius); background: var(--c-card); border: 1px solid var(--c-line); }
.rv__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rv__chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--c-line); background: var(--c-card);
  color: var(--c-text); font: 650 .92rem/1 var(--f-body); cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.rv__chip:hover { border-color: var(--c-light); }
.rv__chip[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-dark); }
.rv__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; align-items: start; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--c-tint-strong) transparent;
}
.rv__rail:focus-visible { outline: 3px solid var(--c-focus, var(--c-primary)); outline-offset: 3px; border-radius: var(--radius); }
.rv__nav { display: none; justify-content: flex-end; gap: 10px; }
.rv__btn {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--c-line); background: var(--c-card);
  color: var(--c-primary); cursor: pointer; transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.rv__btn:hover:not(:disabled) { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-btn-text); }
.rv__btn:disabled { opacity: .35; cursor: default; }
.rv__btn--prev .i { transform: rotate(180deg); }
.voice { display: grid; gap: 12px; align-content: start; margin: 0; padding: 20px; scroll-snap-align: start; border-radius: var(--radius); background: var(--c-card); border: 1px solid var(--c-line); }
.voice[hidden] { display: none; }
.voice__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.voice__stars { display: inline-flex; gap: 2px; color: var(--c-accent); }
.voice__star { width: 18px; height: 18px; fill: currentColor; }
.voice__stars[data-stars="4"] .voice__star:nth-child(5), .voice__stars[data-stars="3"] .voice__star:nth-child(n + 4) { color: var(--c-tint-strong); }
.voice__rec { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 650; color: var(--c-primary); }
.voice__rec .i { width: 16px; height: 16px; color: var(--c-accent-text); }
.voice__src { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 650; color: var(--c-muted); }
.voice__src-ic { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--c-tint); color: var(--c-primary); font: 800 .68rem/1 var(--f-display); }
.voice__text { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.voice__text.hi { font-size: 1.06rem; font-weight: 450; line-height: 1.6; }
.voice.is-open .voice__text { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
.voice__more {
  justify-self: start; min-height: 44px; margin: -10px 0 -8px; padding: 0; border: 0; background: none; color: var(--c-link);
  font: 650 .92rem/1 var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.voice figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .86rem; color: var(--c-muted); }
.voice figcaption strong { color: var(--c-text); }

/* ---------- 8. Vision chart ---------- */
.vchart { --vc-base: 5.4rem; overflow: hidden; }
.vchart__grid { display: grid; gap: 28px; align-items: center; }
.vchart__board {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 4px; padding: 26px 14px; border-radius: var(--radius-lg);
  background: var(--c-card); box-shadow: var(--shadow), inset 0 0 0 1px var(--c-line); text-align: center;
}
.vchart__board::before {
  content: ""; position: absolute; z-index: -1; inset: -30%; pointer-events: none;
  background: rgb(var(--c-line-rgb) / .45); -webkit-mask: url("../brand/iris.svg") center / contain no-repeat; mask: url("../brand/iris.svg") center / contain no-repeat;
}
.vchart__row { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin: 0; padding: 4px 0; border-radius: 10px; transition: background .3s, box-shadow .3s, opacity .3s; }
.vchart__ratio { font: 700 .68rem/1 var(--f-body); text-align: left; padding-left: 6px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.vchart__letters { font: 800 calc(var(--vc-base) * var(--n, 60) / 60)/1.05 var(--f-display); letter-spacing: .14em; color: var(--c-text); white-space: nowrap; }
.vchart__row.is-current { background: rgb(var(--c-accent-rgb) / .14); box-shadow: inset 0 0 0 2px rgb(var(--c-accent-rgb) / .7); }
.vchart__row.is-done { opacity: .4; }
.vchart__title { font-size: clamp(2.1rem, 6.6vw, 3.5rem); font-weight: 800; letter-spacing: -.024em; line-height: 1.02; }
.vchart__hi { margin: 10px 0 14px; font-size: 1.2rem; color: var(--c-link); }
.vchart__status { min-height: 3.2em; margin-top: 8px; font-size: 1.04rem; color: var(--c-text-soft); }
.vchart__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.vchart__btns[hidden] { display: none; }
.vchart__end { display: grid; justify-items: start; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--c-surface); transition: background .3s; }
.vchart__end p { margin: 0; }
.vchart__end strong { display: block; font: 700 1.15rem/1.3 var(--f-display); color: var(--c-primary); }
.vchart__end .hi { color: var(--c-link); }
.vchart__end.is-shout { background: var(--c-primary); }
.vchart__end.is-shout strong { color: var(--c-on-dark); }
.vchart__end.is-shout .hi, .vchart__end.is-shout .vchart__again { color: var(--c-on-dark-accent); }
.vchart__end.is-shout :focus-visible { outline-color: var(--c-focus-on-dark); }
.vchart__again { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--c-link); font-weight: 650; }
.vchart__again[hidden] { display: none; }
.vchart__warn { display: flex; gap: 10px; margin: 18px 0 0; font-size: .86rem; color: var(--c-muted); }
.vchart__warn .i { flex: none; margin-top: 2px; color: var(--c-urg-amber); }
.vchart__warn strong { color: var(--c-text); }

/* ---------- 9. Centre finder (uses the .pmap map from style.css) ---------- */
.cfind__head { display: grid; gap: 14px; margin-bottom: 26px; }
.cfind__head h2 { color: var(--c-on-dark); font-size: clamp(1.85rem, 5.6vw, 3rem); font-weight: 700; letter-spacing: -.018em; line-height: 1.1; }
.cfind__head p { max-width: 56ch; margin: 0; color: rgb(var(--c-on-dark-rgb) / .74); }
.cfind__below { display: grid; gap: 18px; margin-top: 22px; }
.cfind__panel { display: grid; gap: 10px; align-content: start; }
.cfind__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: rgb(var(--c-on-dark-rgb) / .08); }
html:not(.js) .cfind__tabs { display: none; }
.cfind__tab {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 8px; min-height: 50px; padding: 8px 12px;
  border: 0; border-radius: 12px; background: transparent; color: rgb(var(--c-on-dark-rgb) / .78); font-weight: 700; transition: background .25s, color .25s;
}
.cfind__tab .hi { font-size: .86rem; font-weight: 500; }
.cfind__tab:hover { color: var(--c-on-dark); }
.cfind__tab[aria-selected="true"] { background: var(--c-accent); color: var(--c-btn-text); }
.cfind__tab:focus-visible { outline-color: var(--c-focus-on-dark); outline-offset: -2px; }
.cfind__mine { display: none; }
.cfind__tab.is-mine .cfind__mine { display: inline; }
.ccard { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--c-card); color: var(--c-text); scroll-margin-top: calc(var(--header-h) + 20px); }
.js .ccard[hidden] { display: none; }
.js .ccard:not([hidden]) { animation: riseIn .35s var(--ease); }
.ccard__photo { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-sm); background: var(--c-tint); }
.ccard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.ccard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ccard h3 { font-size: 1.6rem; letter-spacing: -.018em; }
.ccard h3 .hi { margin-left: 4px; font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--c-link); }
.ccard__top .branch-card__dist { background: var(--c-primary); color: var(--c-on-dark); }
.ccard__status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--c-surface); font-size: .92rem; color: var(--c-muted); }
.ccard__status strong { color: var(--c-primary); }
.ccard__status.is-open strong { color: var(--c-success); }
.ccard__status.is-soon strong { color: var(--c-urg-amber); }
.ccard__status.is-closed strong { color: var(--c-urg-red); }
.ccard__dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c-muted); }
.is-open .ccard__dot { background: var(--c-success); }
.is-open .ccard__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: cdockPulse 2.2s ease-out infinite; }
.is-soon .ccard__dot { background: #F79009; }
.is-closed .ccard__dot { background: var(--c-urg-red); }
/* Until the hospital confirms the hours: the open days, without a live badge. */
.ccard__status--days { flex-wrap: nowrap; align-items: flex-start; color: var(--c-text); }
.ccard__status--days .i { width: 18px; height: 18px; margin-top: 2px; color: var(--c-link); }
.ccard__list { list-style: none; display: grid; gap: 4px; font-size: .95rem; }
.ccard__list li { display: flex; gap: 10px; }
.ccard__list .i { flex: none; margin-top: 3px; color: var(--c-link); }
.ccard__list a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; font-weight: 650; color: var(--c-primary); text-decoration: none; white-space: nowrap; }
.ccard__list a:hover { color: var(--c-link); text-decoration: underline; }
.ccard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ccard__actions .btn { min-height: 46px; padding-inline: 10px; }
.ccard__actions .btn:first-child { grid-column: 1 / -1; }
.ccard__wa .i { color: #128C7E; }
.ccard__mine {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 999px;
  border: 1.5px dashed var(--c-tint-strong); background: transparent; color: var(--c-primary); font-weight: 700; transition: background .2s, border-color .2s;
}
.ccard__mine[hidden] { display: none; }
.ccard__star { font-size: 1.1rem; color: var(--c-tint-strong); transition: color .2s, transform .3s var(--ease); }
.ccard__mine[aria-pressed="true"] { border-style: solid; border-color: var(--c-accent); background: rgb(var(--c-accent-rgb) / .12); }
.ccard__mine[aria-pressed="true"] .ccard__star { color: var(--c-accent); transform: scale(1.2) rotate(72deg); }
.near { padding: 20px; border-radius: var(--radius); background: rgb(var(--c-on-dark-rgb) / .06); border: 1px solid rgb(var(--c-on-dark-rgb) / .12); }
html:not(.js) .near { display: none; }
.near__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 14px; font: 700 1.15rem/1.3 var(--f-display); color: var(--c-on-dark); }
.near__title .i { color: var(--c-on-dark-icon); }
.near__title .hi { font-size: .98rem; font-weight: 500; color: var(--c-on-dark-accent); }
.near__places { display: flex; flex-wrap: wrap; gap: 8px; }
.near__place {
  display: inline-flex; align-items: baseline; gap: 6px; min-height: 44px; padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid rgb(var(--c-on-dark-rgb) / .24); background: transparent; color: var(--c-on-dark); font-size: .92rem; font-weight: 650; transition: background .2s, border-color .2s, color .2s;
}
.near__place .hi { font-size: .82rem; font-weight: 500; color: rgb(var(--c-on-dark-rgb) / .66); }
.near__place:hover { border-color: rgb(var(--c-on-dark-rgb) / .6); }
.near__place[aria-pressed="true"] { background: var(--c-on-dark); border-color: var(--c-on-dark); color: var(--c-primary); }
.near__place[aria-pressed="true"] .hi { color: var(--c-link); }
.near__place--gps { align-items: center; border-style: dashed; }
.near__place--gps[hidden] { display: none; }
.near__place--gps .i { width: 18px; height: 18px; }
.near :focus-visible { outline-color: var(--c-focus-on-dark); }
@media (max-width: 599px) {
  .near__places { display: grid; grid-template-columns: 1fr 1fr; }
  .near__place { display: grid; align-content: center; gap: 1px; min-height: 54px; padding: 7px 14px; border-radius: 16px; text-align: left; }
  .near__place--gps { grid-column: 1 / -1; display: flex; justify-content: center; }
}
.near__result { min-height: 1.5em; margin: 14px 0 0; color: rgb(var(--c-on-dark-rgb) / .86); }
.near__result strong { color: var(--c-on-dark); }

/* ---------- 10. FAQ in two languages ---------- */
.hfaq__wrap { display: grid; gap: 24px; }
.hfaq__head h2 { max-width: 14ch; font-size: clamp(1.85rem, 5.6vw, 3rem); font-weight: 700; letter-spacing: -.018em; line-height: 1.1; }
.langsw { display: inline-flex; gap: 4px; margin-top: 18px; padding: 4px; border-radius: 999px; background: var(--c-tint); }
.langsw[hidden] { display: none; }
.langsw button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--c-primary); font-weight: 700; }
.langsw button[lang="hi"] { font-family: var(--f-hi); font-size: 1.05rem; }
.langsw button[aria-pressed="true"] { background: var(--c-card); box-shadow: var(--shadow-sm); }
.hfaq__list { border-top: 1px solid var(--c-line); }
.hfaq__item { border-bottom: 1px solid var(--c-line); }
.hfaq__item summary { list-style: none; display: grid; grid-template-columns: 30px minmax(0, 1fr) 40px; gap: 12px; align-items: center; padding: 18px 0; cursor: pointer; }
.hfaq__item summary::-webkit-details-marker { display: none; }
.hfaq__n { font: 800 .9rem/1 var(--f-display); color: var(--c-accent-text); font-variant-numeric: tabular-nums; }
.hfaq__q { display: flex; flex-direction: column; gap: 3px; }
.hfaq__q .hfaq__en { font: 700 1.08rem/1.35 var(--f-body); color: var(--c-primary); }
.hfaq__q .hfaq__hi { font-size: .98rem; font-weight: 500; color: var(--c-link); }
.hfaq__item summary .i { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--c-tint); color: var(--c-link); transition: transform .3s var(--ease), background .2s, color .2s, box-shadow .3s; }
.hfaq__item[open] summary .i { transform: rotate(45deg); background: var(--c-primary); color: var(--c-on-dark); box-shadow: 0 0 0 5px var(--c-tint); }
.hfaq__a { padding: 0 0 20px 42px; }
.hfaq__a p { max-width: 68ch; margin: 0 0 10px; color: var(--c-text-soft); }
.hfaq__a .hfaq__hi { font-size: 1.05rem; font-weight: 500; }
.hfaq__list[data-lang="en"] .hfaq__a .hfaq__hi, .hfaq__list[data-lang="hi"] .hfaq__a .hfaq__en { display: none; }
.hfaq__list[data-lang="hi"] .hfaq__q .hfaq__hi { order: -1; font-size: 1.15rem; font-weight: 600; color: var(--c-primary); }
.hfaq__list[data-lang="hi"] .hfaq__q .hfaq__en { font-size: .9rem; font-weight: 600; color: var(--c-muted); }
.hfaq__more { margin: 20px 0 0; color: var(--c-muted); }

/* ---------- 11. Booking band ---------- */
/* Closes most pages: a few words and one button to the booking form on /appointment, beside the three steps. */
.bcta {
  position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(64px, 8vw, 104px);
  background: linear-gradient(160deg, var(--c-light) 0%, var(--c-primary) 45%, var(--c-darkest) 100%); color: rgb(var(--c-on-dark-rgb) / .84);
}
.bcta__rings { position: absolute; z-index: -1; right: -260px; top: -220px; width: 780px; height: 780px; color: rgb(var(--c-on-dark-accent-rgb) / .16); }
.bcta__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.bcta__title { max-width: 18ch; color: var(--c-on-dark); font-size: clamp(2rem, 5.4vw, 3rem); font-weight: 800; letter-spacing: -.024em; line-height: 1.08; text-wrap: balance; }
.bcta__title em { display: block; font-style: normal; color: var(--c-on-dark-accent); }
.bcta__lead { max-width: 46ch; margin: 14px 0 0; font-size: 1.06rem; line-height: 1.6; color: rgb(var(--c-on-dark-rgb) / .78); }
.bcta__lead strong { color: var(--c-on-dark); font-weight: 650; }
.bcta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bcta__btn { min-height: 56px; padding-inline: 26px; font-size: 1.04rem; }
.bcta :focus-visible { outline-color: var(--c-focus-on-dark); }
.bcta__steps {
  list-style: none; display: grid; padding: 6px 22px; border-radius: var(--radius-lg);
  background: rgb(var(--c-on-dark-rgb) / .06); border: 1px solid rgb(var(--c-on-dark-rgb) / .12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.bcta__step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; padding-block: 18px; }
.bcta__step + .bcta__step { border-top: 1px solid rgb(var(--c-on-dark-rgb) / .1); }
.bcta__n {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: rgb(var(--c-accent-rgb) / .16); color: var(--c-on-dark-accent); box-shadow: 0 0 0 5px rgb(var(--c-on-dark-rgb) / .04);
}
.bcta__n .i { width: 22px; height: 22px; }
.bcta__step-text { display: grid; gap: 3px; padding-top: 2px; line-height: 1.4; }
.bcta__step-text small { font: 700 .72rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c-on-dark-accent); }
.bcta__step-text strong { font: 700 1.08rem/1.3 var(--f-display); color: var(--c-on-dark); }
.bcta__step-text > span { font-size: .93rem; color: rgb(var(--c-on-dark-rgb) / .72); }
@media (max-width: 479px) {
  .bcta__actions .btn { flex: 1 1 100%; }
  .bcta__steps { padding-inline: 16px; }
}

/* ==========================================================================
   Larger screens
   ========================================================================== */
@media (min-width: 480px) {
  .sx__chips { grid-template-columns: 1fr 1fr; }
  .dprof__facts > div { grid-template-columns: minmax(150px, .8fr) 1.2fr; align-items: center; }
}

@media (min-width: 720px) {
  .sim__stage { aspect-ratio: 16 / 9; }
}
/* Laptops and desktops: the conditions stack on the left with the note under them, and the street takes the rest
   of the width on the right, kept short enough that the whole thing fits on a laptop screen. */
@media (min-width: 1024px) {
  .sim > .container {
    display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); column-gap: clamp(28px, 3vw, 48px);
    grid-template-areas: "head head" "tabs stage" "info stage" "foot foot"; grid-template-rows: auto auto 1fr auto;
  }
  .sim__head { grid-area: head; margin-bottom: 32px; }
  .sim__title { font-size: clamp(2.6rem, 3.8vw, 3.9rem); }
  .sim .sim__tabs { grid-area: tabs; flex-direction: column; flex-wrap: nowrap; gap: 8px; margin: 0; padding: 0; overflow: visible; }
  .sim .sim__tab { width: 100%; min-height: 50px; padding: 0 20px; border-radius: 14px; }
  .sim .sim__tab[aria-selected="true"]::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: currentColor; }
  .sim .sim__stage { grid-area: stage; align-self: start; width: 100%; max-height: calc(100svh - var(--header-h) - 120px); }
  .sim .sim__info { grid-area: info; margin-top: 14px; align-self: start; }
  .sim .sim__about { display: block; }
  .sim .sim__about p { font-size: .96rem; }
  .sim .sim__about .btn { margin-top: 16px; }
  .sim__foot { grid-area: foot; margin-top: 20px; }
}
@media (min-width: 720px) {
  .sim__head { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 32px; }
  .sim__tabs { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .sim__about { display: grid; grid-template-columns: 1fr auto; column-gap: 32px; align-items: start; }
  .sim__about h3, .sim__about p { grid-column: 1; }
  .sim__about .btn { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
  .lenses__grid { grid-auto-columns: 46%; }
  .tstats { grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: minmax(0, auto); gap: 16px; }
  .tstat--years { grid-column: 1; grid-row: span 2; min-height: 100%; }
  .tstat:last-child:nth-child(even) { grid-column: 2 / -1; }
  .tstats:has(> .tstat:nth-child(3):last-child) .tstat--years { grid-row: auto; }
  .rv__rail { grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; }
  .rv__nav:not([hidden]) { display: flex; }
  .cfind__below { grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
  .tech__nav:not([hidden]) { display: flex; }
}

@media (min-width: 960px) {
  .sx__grid { grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: start; }
  .sx__panel { position: sticky; top: calc(var(--header-h) + 24px); }
  .sx__card { padding: 28px; }

  .bento { grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(4, 118px) auto; gap: 16px; }
  .bento__tile--xl { grid-column: 1 / span 6; grid-row: 1 / span 4; min-height: 0; }
  .bento__tile--tall { grid-column: 7 / span 3; grid-row: 1 / span 4; min-height: 0; }
  .bento__tile--art { grid-column: 10 / span 3; grid-row: 1 / span 2; min-height: 0; }
  .bento__tile--wide { grid-column: 10 / span 3; grid-row: 3 / span 2; min-height: 0; }
  .bento__tile--art .bento__text, .bento__tile--wide .bento__text { display: none; }
  .bento__tile--art .bento__art-icon { top: 18%; width: 48px; height: 48px; }
  .bento__tile--sm { grid-column: span 2; grid-row: 5; }
  .bento__body { padding: 22px; }

  .cday__grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .cday__side { position: sticky; top: calc(var(--header-h) + 28px); }
  .cday__dial { position: relative; display: block; width: 112px; height: 112px; margin-top: 22px; }
  .cday__dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
  .cday__track { fill: none; stroke: var(--c-tint-strong); stroke-width: 6; }
  .cday__fill { fill: none; stroke: var(--c-accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .5s var(--ease); }
  .cday__count { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
  .cday__count b { font: 800 2rem/1 var(--f-display); color: var(--c-primary); }
  .cday__count small { font-size: .76rem; color: var(--c-muted); }
  .cday__steps { gap: 18px; padding-block: 6px; }
  .cday__card { padding: 20px 22px; }

  .lenses__head { grid-template-columns: 1.05fr 1fr; align-items: end; gap: 40px; }
  .lenses__grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 18px; overflow: visible; margin: 0; padding: 0; }
  .pay { grid-template-columns: 1.1fr 1.5fr auto; align-items: center; gap: 28px; padding: 26px 28px; }
  .pay__calls { flex-direction: column; }

  .tech__head { grid-template-columns: 1.2fr 1fr auto; align-items: end; gap: 32px; }
  .tech__rail { grid-auto-columns: 300px; gap: 18px; }

  .dprof { grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: center; }
  .dprof--flip { grid-template-columns: minmax(0, 1fr) 340px; }
  .dprof--flip .dprof__photo { order: 2; }
  .dprof__photo { width: 340px; }
  .dprof::before { left: 0; margin-left: -110px; top: 50%; margin-top: -280px; }
  .dprof--flip::before { left: auto; right: 0; margin-right: -110px; }

  .rv__rail { grid-auto-columns: calc((100% - 32px) / 3); }

  .vchart { --vc-base: 6.6rem; }
  .vchart__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .vchart__board { padding: 34px 24px; }

  .cfind__head { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 40px; }
  .ccard { grid-template-columns: 210px minmax(0, 1fr); column-gap: 20px; padding: 20px; }
  .ccard > :not(.ccard__photo) { grid-column: 2; }
  .ccard__photo { grid-column: 1; grid-row: 1 / span 6; aspect-ratio: auto; height: 100%; max-height: 300px; }

  .hfaq__wrap { grid-template-columns: .72fr 1.6fr; gap: 64px; align-items: start; }
  .hfaq__head { position: sticky; top: calc(var(--header-h) + 28px); }
  .hfaq__item summary { padding: 22px 0; }

  .bcta__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: center; }
}

@media (hover: none) {
  .bento__tile:hover, .tech__card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mq__track, .iris__rings { animation: none !important; }
}

/* ---------- Doctors page title (doctors.php) ----------
   Text and a card per doctor on the left; the two doctors in the square frame (.pframe, style.css) on the right,
   over the iris rings from the logo, with a glass name tag beside each. */
.dh {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + 22px) 0 clamp(64px, 8vw, 104px);
  background: var(--bg-glow); color: rgb(var(--c-on-dark-rgb) / .8);
}
.dh__iris {
  position: absolute; z-index: -1; width: min(1180px, 190vw); height: auto; max-width: none; right: -36%; top: 54%; translate: 0 -50%;
  color: rgb(var(--c-on-dark-rgb) / .06); pointer-events: none;
}
.dh__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
.dh .crumbs { margin-bottom: 22px; }
.dh__title { font-size: clamp(2.6rem, 9vw, 5rem); font-weight: 900; line-height: .98; letter-spacing: -.024em; max-width: 12ch; color: var(--c-on-dark); }
.dh__title em { font-style: normal; color: var(--c-on-dark-accent); display: block; }
.dh__lead { max-width: 46ch; margin: 20px 0 0; font-size: clamp(1.04rem, 2.4vw, 1.18rem); color: rgb(var(--c-on-dark-rgb) / .8); }

/* a card per doctor: portrait, name, role, centre */
.dh__docs { list-style: none; display: grid; gap: 10px; margin-top: 28px; max-width: 520px; }
.dh__doc {
  display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 20px;
  background: rgb(var(--c-on-dark-rgb) / .07); border: 1px solid rgb(var(--c-on-dark-rgb) / .16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--c-on-dark); text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .25s var(--ease);
}
.dh__doc:hover { color: var(--c-on-dark); background: rgb(var(--c-on-dark-rgb) / .12); border-color: rgb(var(--c-on-dark-accent-rgb) / .6); transform: translateY(-2px); }
.dh__doc-photo { flex: none; width: 60px; height: 60px; border-radius: 16px; overflow: hidden; background: var(--c-tint); }
.dh__doc-photo picture, .dh__doc-photo img { display: block; width: 100%; height: 100%; }
.dh__doc-photo img { object-fit: cover; object-position: 50% 18%; }
.dh__doc-text { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.3; }
.dh__doc-text strong { font: 800 1.06rem/1.2 var(--f-display); letter-spacing: -.01em; color: var(--c-on-dark); }
.dh__doc-text small { font-size: .86rem; color: rgb(var(--c-on-dark-rgb) / .72); }
.dh__doc-where { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: .8rem; font-weight: 700; color: var(--c-on-dark-accent); }
.dh__doc-where .i { width: 14px; height: 14px; }
.dh__doc > .i { flex: none; width: 20px; height: 20px; color: var(--c-on-dark-accent); transition: transform .25s var(--ease); }
.dh__doc:hover > .i { transform: translateX(3px); }

/* the photo: the square doctor frame, a little wider than tall so both doctors fit */
.dh__figure { position: relative; margin: 0 0 0 4px; width: min(500px, calc(100% - 24px)); justify-self: center; }
.dh__frame { --pf-r: 28px; --pf-o: 16px; aspect-ratio: 5 / 4; }
.dh__frame img { object-position: 50% 0; }
/* glass name tags, pinned beside each doctor */
.dh__tag {
  position: absolute; z-index: 2; display: grid; gap: 2px; padding: 9px 14px 9px 30px; border-radius: 14px; line-height: 1.2;
  background: rgb(var(--c-bg-rgb) / .86); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgb(var(--c-bg-rgb) / .7); box-shadow: var(--shadow); white-space: nowrap;
}
.dh__tag::before {
  content: ""; position: absolute; left: 12px; top: 14px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-accent); box-shadow: 0 0 0 4px rgb(var(--c-accent-rgb) / .22);
}
.dh__tag strong { font-size: .86rem; font-weight: 750; color: var(--c-primary); }
.dh__tag small { font-size: .74rem; color: var(--c-muted); }
.dh__tag--l { left: -10px; bottom: 9%; }
.dh__tag--r { right: -10px; top: 47%; }
@media (max-width: 479px) {
  .dh__tag { padding: 7px 10px 7px 24px; }
  .dh__tag::before { left: 9px; top: 12px; width: 7px; height: 7px; }
  .dh__tag strong { font-size: .76rem; }
  .dh__tag small { font-size: .68rem; }
}
@media (min-width: 960px) {
  .dh { padding-top: calc(var(--header-h) + 32px); }
  .dh__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .dh__figure { justify-self: end; margin: 0 24px 0 0; }
  .dh__tag--l { left: -40px; }
  .dh__tag--r { right: -36px; }
}

@media print {
  .sim, .simc, .tech, .mq, .vchart, .bcta, .near, .cfind__tabs { display: none !important; }
}

/* ==========================================================================
   Inner pages: treatment template (treatment.php) and the shared pieces it uses
   ========================================================================== */

/* Section heading for the inner pages (sec_head() in features.php) */
.shead { max-width: 760px; margin-bottom: clamp(24px, 4vw, 40px); }
.shead h2 { font-size: clamp(1.8rem, 5.4vw, 2.8rem); font-weight: 700; letter-spacing: -.018em; line-height: 1.08; text-wrap: balance; }
.shead p:not(.eyebrow) { max-width: 60ch; margin: 14px 0 0; color: var(--c-muted); font-size: 1.04rem; }

/* Drawn treatment picture, where a stock photo used to be (treatment_art() in cards.php) */
.tart {
  --tart-a: var(--c-light); --tart-b: var(--c-primary); --tart-ring: rgb(var(--c-on-dark-rgb) / .2); --tart-icon: var(--c-on-dark-accent);
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, var(--tart-a), var(--tart-b) 78%);
}
.tart--retina, .tart--refractive { --tart-a: var(--c-primary); --tart-b: var(--c-darkest); --tart-ring: rgb(var(--c-on-dark-accent-rgb) / .28); }
.tart--cornea, .tart--eyelid { --tart-a: var(--c-accent-hover); --tart-b: var(--c-accent); --tart-ring: rgb(var(--c-darkest-rgb) / .16); --tart-icon: var(--c-primary); }
.tart--children, .tart--checkup { --tart-a: var(--c-card); --tart-b: var(--c-tint-strong); --tart-ring: rgb(var(--c-light-rgb) / .3); --tart-icon: var(--c-link); }
.tart__rings { position: absolute; width: 150%; max-width: none; height: auto; aspect-ratio: 1; color: var(--tart-ring); transition: transform 1.2s var(--ease); }
.tart__rings .iris__rings { transform: rotate(var(--turn, 0deg)); transition: transform 1.2s var(--ease); }
.tart__icon { position: relative; width: 30%; max-width: 72px; height: auto; aspect-ratio: 1; color: var(--tart-icon); stroke-width: 1.3; }
.tcard:hover .tart__rings { transform: scale(1.05); }
.tcard:hover .tart__rings .iris__rings { transform: rotate(calc(var(--turn, 0deg) + 40deg)); }
.t-strip__tile.is-art, .tcomp__photo.is-art { background: none; }

/* 1. Is this you? */
.isyou__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.isyou__panel { order: 1; }
.isyou__score { order: 2; display: grid; justify-items: start; }
.isyou__score .isyou__meter { margin-top: 0; }
.isyou__head h2 { font-size: clamp(1.9rem, 5.8vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.isyou__lead { margin: 12px 0 0; color: var(--c-muted); font-size: 1.04rem; }
.isyou__meter { position: relative; display: none; width: 110px; height: 110px; margin: 24px 0 14px; }
.js .isyou__meter { display: block; }
.isyou__meter svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.isyou__track { fill: none; stroke: var(--c-tint-strong); stroke-width: 7; }
.isyou__fill { fill: none; stroke: var(--c-accent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .5s var(--ease); }
.isyou__meter > span { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.isyou__meter b { font: 800 2.1rem/1 var(--f-display); color: var(--c-primary); }
.isyou__meter small { font-size: .78rem; color: var(--c-muted); }
.isyou__result { min-height: 3em; margin: 0 0 16px; font-weight: 650; color: var(--c-text); }
html:not(.js) .isyou__result { display: none; }
.isyou__panel { display: grid; gap: 16px; align-content: start; }
.isyou__label { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.isyou__list { list-style: none; display: grid; gap: 8px; }
.isyou__item {
  position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 58px; padding: 12px 16px;
  border-radius: 16px; border: 1.5px solid var(--c-line); background: var(--c-card); cursor: pointer; font-size: 1rem; line-height: 1.4;
  transition: border-color .2s, background .25s, box-shadow .25s;
}
.isyou__item:hover { border-color: var(--c-light); }
.isyou__item input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.isyou__box { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--c-tint-strong); color: transparent; transition: background .2s, border-color .2s, color .2s, box-shadow .3s; }
.isyou__box .i { width: 16px; height: 16px; stroke-width: 2.8; }
.isyou__item:has(input:checked) { border-color: var(--c-primary); background: var(--c-tint); box-shadow: var(--shadow-sm); }
.isyou__item input:checked + .isyou__box { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-dark-accent); box-shadow: 0 0 0 4px rgb(var(--c-accent-rgb) / .3); }
.isyou__item input:focus-visible + .isyou__box { outline: 3px solid var(--c-focus); outline-offset: 3px; }

/* 2. What it is */
.twhat__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.twhat__text h2 { margin-bottom: 18px; font-size: clamp(1.8rem, 5.4vw, 2.6rem); font-weight: 700; letter-spacing: -.018em; line-height: 1.1; }
.twhat__text > p:not(.eyebrow) { color: var(--c-text-soft); font-size: 1.06rem; }
.twhat__hi { padding: 14px 18px; border-left: 4px solid var(--c-accent); border-radius: 0 14px 14px 0; background: var(--c-card); color: var(--c-primary); font-size: 1.1rem; }
.twhat__text .callout { margin-top: 18px; }
.twhat__art .dg-figure { margin: 0; background: var(--c-card); box-shadow: var(--shadow-sm); }
.twhat__fallback { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }

/* 3. Steps in a row (steps_timeline()) */
.tline__head { display: grid; gap: 14px; margin-bottom: clamp(26px, 4vw, 44px); }
.tline__head h2 { font-size: clamp(1.8rem, 5.4vw, 2.8rem); font-weight: 700; letter-spacing: -.018em; line-height: 1.08; text-wrap: balance; }
.tline__hi { margin: 10px 0 0; font-size: 1.12rem; color: var(--c-text-soft); }
.tline__lead { max-width: 52ch; margin: 0; color: var(--c-muted); }
.tline { --p: 0; position: relative; list-style: none; display: grid; gap: 14px; }
.tline::before, .tline::after { content: ""; position: absolute; left: 25px; top: 26px; width: 2px; }
.tline::before { bottom: 26px; background: repeating-linear-gradient(to bottom, var(--c-tint-strong) 0 6px, transparent 6px 12px); }
.tline::after { height: calc((100% - 52px) * var(--p)); background: var(--c-accent); transition: height 1.2s var(--ease); }
.tline__step { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; }
.tline__node {
  position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-card); color: var(--c-link); border: 2px solid var(--c-tint-strong); box-shadow: 0 0 0 6px var(--c-bg);
  transition: background .4s, color .4s, border-color .4s; transition-delay: calc(var(--i) * .15s);
}
.tline__node .i { width: 22px; height: 22px; }
.tline.is-in .tline__node { background: var(--c-primary); color: var(--c-on-dark-accent); border-color: var(--c-primary); }
.tline__card { padding: 16px 18px; border-radius: var(--radius); background: var(--c-surface); }
.tline__when { margin: 0 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-text); }
.tline__card h3 { margin-bottom: 6px; font-size: 1.14rem; letter-spacing: -.015em; }
.tline__card h3 .hi { margin-left: 4px; font-size: .92rem; font-weight: 500; letter-spacing: 0; color: var(--c-link); }
.tline__card p:last-child { margin: 0; font-size: .95rem; color: var(--c-muted); }
.section--ice .tline__node { box-shadow: 0 0 0 6px var(--c-surface); }
.section--ice .tline__card { background: var(--c-card); }

/* 4. Options compared */
.tcomp__head { display: grid; gap: 20px; margin-bottom: clamp(24px, 4vw, 40px); }
.tcomp__head .shead { margin-bottom: 0; }
.tcomp__photo { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--c-tint-strong); }
.tcomp__photo picture, .tcomp__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tcomp__wrap { border-radius: var(--radius-lg); }
.tcomp__wrap:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 4px; }
.tcomp__table { width: 100%; border-collapse: separate; border-spacing: 0; }
.tcomp__table thead { display: none; }
.tcomp__table tr { display: grid; gap: 10px; margin-bottom: 12px; padding: 20px; border-radius: var(--radius); background: var(--c-card); box-shadow: var(--shadow-sm); }
/* The flex sits on an inner span: on a table cell itself it would break the cell out of its column. */
.tcomp__table th[scope="row"] { text-align: left; font: 700 1.2rem/1.25 var(--f-display); letter-spacing: -.02em; color: var(--c-primary); }
.tcomp__opt { display: flex; align-items: center; gap: 12px; }
.tcomp__n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c-tint); color: var(--c-link); font: 800 .78rem/1 var(--f-display); }
.tcomp__table td { display: grid; gap: 2px; font-size: .96rem; color: var(--c-text-soft); }
.tcomp__table td::before { content: attr(data-label); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }

/* 5. Do's and don'ts */
.tcare__grid { display: grid; gap: 14px; }
.tcare__col { padding: 22px; border-radius: var(--radius-lg); border: 1.5px solid var(--c-line); }
.tcare__col--do { background: var(--c-urg-green-bg); border-color: rgb(var(--c-urg-green-rgb) / .22); }
.tcare__col--dont { background: var(--c-urg-red-bg); border-color: rgb(var(--c-urg-red-rgb) / .2); }
.tcare__col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 1.35rem; letter-spacing: -.02em; }
.tcare__col h3 .hi { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--c-muted); }
.tcare__mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; }
.tcare__mark .i { width: 20px; height: 20px; stroke-width: 2.6; }
.tcare__col--do .tcare__mark { background: var(--c-urg-green); }
.tcare__col--dont .tcare__mark { background: var(--c-urg-red); }
.tcare__col ul { list-style: none; display: grid; gap: 10px; }
.tcare__col li { position: relative; padding-left: 22px; color: var(--c-text-soft); }
.tcare__col li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; }
.tcare__col--do li::before { color: var(--c-urg-green); }
.tcare__col--dont li::before { color: var(--c-urg-red); }

/* 6. Cost and insurance: a navy band */
.tcost { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(56px, 8vw, 96px); background: var(--c-panel); color: rgb(var(--c-on-dark-rgb) / .82); }
.tcost__rings { position: absolute; z-index: -1; left: -260px; bottom: -320px; width: 720px; height: 720px; max-width: none; color: rgb(var(--c-on-dark-rgb) / .07); }
.tcost__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.tcost h2 { color: var(--c-on-dark); font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -.024em; }
.tcost__text > p:not(.eyebrow) { max-width: 52ch; margin: 14px 0 0; }
.tcost__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 20px !important; }
.tcost__price span:first-child { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--c-on-dark-rgb) / .6); }
.tcost__price strong { font: 800 1.5rem var(--f-display); color: var(--c-on-dark-accent); }
.tcost__price small { flex-basis: 100%; font-size: .9rem; color: rgb(var(--c-on-dark-rgb) / .75); }
.tcost :focus-visible { outline-color: var(--c-focus-on-dark); }
.pay--dark { margin-top: 0; background: rgb(var(--c-on-dark-rgb) / .06); border: 1px solid rgb(var(--c-on-dark-rgb) / .12); }
.pay--dark .pay__title { color: var(--c-on-dark); }
.pay--dark .pay__title .i, .pay--dark .pay__title .hi { color: var(--c-on-dark-accent); }
.pay--dark .pay__text p:last-child { color: rgb(var(--c-on-dark-rgb) / .74); }
.pay--dark .pay__none { color: var(--c-on-dark); }
.pay--dark .pay__none .i { color: var(--c-on-dark-accent); }
.pay--dark .pay__chips li { background: rgb(var(--c-on-dark-rgb) / .08); border-color: rgb(var(--c-on-dark-rgb) / .25); color: var(--c-on-dark); }

/* 7. Doctors who treat it */
.tdoc__head { display: grid; gap: 10px; margin-bottom: clamp(22px, 4vw, 36px); }
.tdoc__head .shead { margin-bottom: 0; }
.tdoc__where { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; justify-self: start; border-radius: 999px; background: var(--c-tint); color: var(--c-primary); font-size: .92rem; font-weight: 650; }
.tdoc__where .i { width: 18px; height: 18px; color: var(--c-link); }
.tdoc__grid { display: grid; gap: 14px; }
.dbook { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px; border-radius: var(--radius-lg); background: var(--c-surface); }
.dbook__photo { position: relative; display: block; width: 112px; aspect-ratio: 1; }
.dbook__ring { position: relative; width: 100%; height: 100%; }
.dbook__ring { --pf-r: 18px; --pf-o: 7px; }
.dbook__role { margin: 0 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-text); }
.dbook h3 { font-size: clamp(1.3rem, 4vw, 1.6rem); letter-spacing: -.025em; }
.dbook h3 a { color: inherit; text-decoration: none; }
.dbook h3 a:hover { color: var(--c-link); }
.dbook h3 .hi { display: block; margin-top: 2px; font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--c-link); }
.dbook__facts { list-style: none; display: grid; gap: 4px; margin: 10px 0 14px; font-size: .92rem; color: var(--c-text-soft); }
.dbook__facts li { display: flex; align-items: flex-start; gap: 8px; }
.dbook__facts .i { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--c-link); }
.dbook__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.dbook__actions .link-arrow { min-height: 44px; font-size: .94rem; }
@media (max-width: 479px) {
  .dbook { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px; align-items: start; }
  .dbook__photo { width: 84px; }
  .dbook__ring { --pf-r: 14px; --pf-o: 6px; }
}

/* 8. FAQ on a pale band */
.hfaq.section--ice .hfaq__item summary .i { background: var(--c-card); }
.hfaq.section--ice .langsw { background: var(--c-card); }
.hfaq.section--ice .langsw button[aria-pressed="true"] { background: var(--c-tint); box-shadow: none; }

@media (min-width: 720px) {
  .tcomp__table thead { display: table-header-group; }
  .tcomp__table tr { display: table-row; margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .tcomp__table th, .tcomp__table td { display: table-cell; padding: 18px 20px; vertical-align: top; border-bottom: 1px solid var(--c-line); background: var(--c-card); }
  .tcomp__table td::before { content: none; }
  .tcomp__table thead th { padding: 16px 20px; background: var(--c-primary); color: var(--c-on-dark); font: 700 .78rem/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; text-align: left; }
  .tcomp__table thead th:first-child { border-radius: var(--radius) 0 0 0; }
  .tcomp__table thead th:last-child { border-radius: 0 var(--radius) 0 0; }
  .tcomp__table tbody tr:last-child > * { border-bottom: 0; }
  .tcomp__table tbody tr:last-child th { border-radius: 0 0 0 var(--radius); }
  .tcomp__table tbody tr:last-child td:last-child { border-radius: 0 0 var(--radius) 0; }
  .tcomp__table th[scope="row"] { width: 22%; font-size: 1.08rem; }
  .tcomp__table td:nth-child(2) { width: 36%; }
  .tcomp__table tbody tr:hover > * { background: var(--c-tint); }
  .tcomp__wrap { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
  .tcare__grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .tdoc__grid { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
  .tdoc__grid:has(> :only-child) { max-width: 680px; } /* one doctor: a card, not a full-width band */
  .tline__head { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 32px; }
}

@media (min-width: 960px) {
  .isyou__grid { grid-template-columns: .85fr 1.15fr; grid-template-rows: auto 1fr; gap: 0 64px; align-items: start; }
  .isyou__head { grid-column: 1; grid-row: 1; }
  .isyou__score { grid-column: 1; grid-row: 2; position: sticky; top: calc(var(--header-h) + 28px); padding-top: 24px; }
  .isyou__panel { grid-column: 2; grid-row: 1 / span 2; }
  .twhat__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .twhat__art { position: sticky; top: calc(var(--header-h) + 28px); }
  .tcomp__head { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 40px; }
  .tcomp__photo { max-height: 240px; }
  .tcost__grid { grid-template-columns: .85fr 1.15fr; gap: 56px; }
  .tcost .pay { grid-template-columns: 1fr; gap: 16px; }
  .tcost .pay__calls { flex-direction: row; }

  /* The steps sit in a row, joined by a line that fills from left to right. */
  .tline { grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 18px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--c-tint-strong) transparent; }
  .tline::before, .tline::after { left: 26px; top: 25px; height: 2px; }
  .tline::before { right: 26px; bottom: auto; width: auto; background: repeating-linear-gradient(to right, var(--c-tint-strong) 0 6px, transparent 6px 12px); }
  .tline::after { width: calc((100% - 52px) * var(--p)); transition: width 1.4s var(--ease); }
  .tline__step { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 16px; }
  .tline__card { height: 100%; padding: 20px; }
}
@media (min-width: 1200px) {
  /* room for every step in one row (up to seven), so nothing hides off the right edge */
  .tline { grid-auto-columns: minmax(0, 1fr); gap: 14px; overflow: visible; padding-bottom: 0; }
  .tline__card { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .tline__node { transition: none; }
}

/* ==========================================================================
   Doctors, doctor profile, About, Contact, Career
   ========================================================================== */

/* Doctors: who to see */
.whosee__grid { display: grid; gap: 12px; }
.whosee__card {
  display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: var(--radius-lg); background: var(--bg-glow);
  color: rgb(var(--c-on-dark-rgb) / .8); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s;
}
.whosee__card:hover { color: rgb(var(--c-on-dark-rgb) / .8); transform: translateY(-3px); box-shadow: var(--shadow); }
.whosee__card:focus-visible { outline-color: var(--c-focus); }
.whosee__card strong { font: 700 1.15rem/1.3 var(--f-display); letter-spacing: -.015em; color: var(--c-on-dark); }
.whosee__card .hi { color: var(--c-on-dark-accent); }
.whosee__icon { width: 48px; height: 48px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--c-on-dark-rgb) / .1); color: var(--c-on-dark-accent); box-shadow: 0 0 0 4px rgb(var(--c-on-dark-rgb) / .05), 0 0 0 5px rgb(var(--c-on-dark-rgb) / .16); }
.whosee__card--urgent .whosee__icon { background: var(--c-accent); color: var(--c-btn-text); }
.whosee__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 650; font-size: .94rem; color: var(--c-on-dark-accent); }
.whosee__go .i { transition: transform .2s var(--ease); }
.whosee__card:hover .whosee__go .i { transform: translateX(4px); }

/* Doctor profile: about and facts */
.dabout__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.dabout__text h2 { margin-bottom: 18px; font-size: clamp(1.8rem, 5.4vw, 2.6rem); font-weight: 700; letter-spacing: -.018em; line-height: 1.1; }
.dabout__text > p:not(.eyebrow) { color: var(--c-text-soft); font-size: 1.06rem; }
.dabout__facts { padding: 24px; border-radius: var(--radius-lg); background: var(--c-surface); }
.dabout__facts .dprof__facts { margin: 12px 0 20px; }
.dabout__facts .dprof__facts a { font-weight: 700; text-decoration: none; }
.dabout__label { margin: 0; font: 700 1.2rem/1.2 var(--f-display); color: var(--c-primary); }

/* Doctor profile: training and career, a vertical line of iris nodes */
.dpath__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.dpath { position: relative; list-style: none; display: grid; gap: 12px; }
.dpath::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: repeating-linear-gradient(to bottom, var(--c-tint-strong) 0 6px, transparent 6px 12px); }
.dpath__step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px 18px 14px 0; }
.dpath__node { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--c-card); color: var(--c-link); border: 2px solid var(--c-light); box-shadow: 0 0 0 6px var(--c-surface); }
.dpath__node .i { width: 20px; height: 20px; }
.dpath__step:last-child .dpath__node { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-dark-accent); }
.dpath__when { margin: 0 0 2px; font: 800 .9rem/1.2 var(--f-display); color: var(--c-accent-text); }
.dpath h3 { font-size: 1.12rem; letter-spacing: -.015em; }
.dpath__step p:last-child:not(.dpath__when) { margin: 4px 0 0; color: var(--c-muted); font-size: .95rem; }
/* Doctor profile: where */
.dwhere__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.dwhere__bring { margin: 0; }
.dwhere .ccard { box-shadow: var(--shadow); }

/* Contact and Career: ways to reach us, notes beside the form */
.cmsg__side .shead { margin-bottom: 18px; }
.cmsg__side .shead h2 { font-size: clamp(1.5rem, 4.4vw, 2rem); }
.cmsg__ways { list-style: none; display: grid; gap: 10px; }
.cmsg__ways li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; border-radius: var(--radius); background: var(--c-surface); }
.cmsg__ways strong { display: block; font: 700 1.05rem/1.3 var(--f-display); color: var(--c-primary); }
.cmsg__ways strong .hi { font: 500 .92rem var(--f-hi); color: var(--c-link); margin-left: 4px; }
.cmsg__ways span { color: var(--c-text-soft); font-size: .95rem; }
.cmsg__ways a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; font-weight: 700; color: var(--c-primary); }
.cmsg__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--c-card); color: var(--c-link); box-shadow: 0 0 0 4px var(--c-surface), 0 0 0 5px var(--c-line); }
.cmsg__icon--wa { color: #128C7E; }

@media (min-width: 720px) {
  .whosee__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 960px) {
  .dabout__grid { grid-template-columns: 1.3fr .9fr; gap: 64px; }
  .dabout__facts { position: sticky; top: calc(var(--header-h) + 28px); }
  .dpath__grid { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .dpath__grid .shead { position: sticky; top: calc(var(--header-h) + 28px); }  .dwhere__grid { grid-template-columns: .9fr 1.1fr; gap: 56px; }
}
