/* ==========================================================
   Dr. Sovran Rai — static site styles
   Three-column layout: who (left) · what (centre) · how to reach (right)
   ========================================================== */

:root {
  --blue-900: #0a2148;
  --blue-800: #0c2c63;
  --blue-700: #0b3b8c;   /* signboard blue */
  --blue-600: #1450b8;
  --blue-100: #e7eefb;
  --blue-50:  #f3f7fd;
  --teal-600: #0b8279;
  --teal-50:  #e6f5f3;
  --gold-600: #a87a12;
  --gold-100: #fbf1d6;
  --wa:       #167a43;   /* WhatsApp-style green, dark enough for white text (5.4:1) */
  --wa-hover: #11703c;
  --ink:      #14213a;
  --ink-2:    #45526b;
  --ink-3:    #6b778d;
  --line:     #dfe5ef;
  --bg:       #ffffff;
  --bg-2:     #f5f8fc;
  --page:     #eef2f8;

  --radius:   14px;
  --radius-s: 10px;
  --radius-l: 20px;
  --shadow-s: 0 1px 2px rgba(10, 33, 72, .05), 0 2px 6px rgba(10, 33, 72, .04);
  --shadow-m: 0 4px 12px rgba(10, 33, 72, .08), 0 18px 40px rgba(10, 33, 72, .08);

  --font-sans: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", "Noto Serif Devanagari", Georgia, serif;
  --font-hi: "Noto Sans Devanagari", "Inter", system-ui, sans-serif;
  --font-hi-serif: "Noto Serif Devanagari", "Noto Sans Devanagari", Georgia, serif;

  /* Layout */
  --max-w: 2560px;      /* widest the page gets; only ultrawide monitors see side margins */
  --gutter: 24px;       /* space between the page edge and the columns */
  --left-w: 264px;
  --right-w: 312px;
  --gap: 24px;
  --side-top: 20px;      /* how far below the top of the window the side columns stick */
  --toc-h: 52px;         /* height of the horizontal section bar on tablets and phones */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--side-top); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
html[data-lang="hi"] body { font-family: var(--font-hi); line-height: 1.75; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); }
h1, h2, h3, h4 { margin: 0; color: var(--blue-900); line-height: 1.2; text-wrap: balance; }
h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 2cqi, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.08rem; font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }
html[data-lang="hi"] h2 { font-family: var(--font-hi-serif); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 480px) { :root { --gutter: 16px; } }

/* Big screens: slightly larger text and wider side columns, so the page fills the
   screen without looking stretched. 1600px+ is a 1080p laptop or 24" monitor;
   2000px+ is a 27" 1440p monitor or a 4K screen at 150% scaling. */
@media (min-width: 1600px) {
  html { font-size: 106.25%; }   /* 17px */
  :root { --gutter: 32px; --left-w: 288px; --right-w: 344px; --gap: 28px; }
}
@media (min-width: 2000px) {
  html { font-size: 112.5%; }    /* 18px */
  :root { --gutter: 48px; --left-w: 316px; --right-w: 380px; --gap: 32px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--lg { width: 28px; height: 28px; stroke-width: 1.6; }
.i .i__fine { stroke-width: 1.3; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--blue-700); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid #f5b800; outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font: 600 .95rem/1.2 var(--font-sans); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
html[data-lang="hi"] .btn { font-family: var(--font-hi); }
.btn:hover { transform: translateY(-1px); }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 8px 13px; font-size: .85rem; gap: 6px; }
.btn--sm .i { width: 15px; height: 15px; }
.btn--primary { background: var(--blue-700); color: #fff; box-shadow: 0 6px 18px rgba(11, 59, 140, .22); }
.btn--primary:hover { background: var(--blue-800); }
.btn--ghost { background: #fff; color: var(--blue-700); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue-700); }
.btn--light { background: #fff; color: var(--blue-800); }
.btn--light:hover { background: var(--blue-50); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }

/* ---------- Top bar ---------- */
.topbar { background: var(--blue-900); color: #cfdaf0; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; gap: 22px; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.topbar__item > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__item .i { width: 15px; height: 15px; opacity: .8; }
.lang-toggle {
  margin-left: auto; display: inline-flex; padding: 3px; gap: 2px; flex: none;
  background: rgba(255, 255, 255, .1); border: 0; border-radius: 999px; cursor: pointer;
}
.lang-toggle__opt { padding: 3px 11px; border-radius: 999px; color: #cfdaf0; font: 600 .8rem/1.4 var(--font-sans); }
.lang-toggle__opt[data-opt="hi"] { font-family: var(--font-hi); }
html[data-lang="en"] .lang-toggle__opt[data-opt="en"],
html[data-lang="hi"] .lang-toggle__opt[data-opt="hi"] { background: #fff; color: var(--blue-900); }
@media (max-width: 760px) { .topbar__loc { display: none; } }
@media (max-width: 420px) { .topbar { font-size: .78rem; } .topbar__inner { gap: 10px; } }

/* ==========================================================
   Layout: three columns
   ========================================================== */
.layout {
  display: grid;
  grid-template-columns: var(--left-w) minmax(0, 1fr) var(--right-w);
  grid-template-areas: "left content right";
  gap: var(--gap);
  align-items: start;
  padding-top: 24px;
  padding-bottom: 56px;
}

.side--left  { grid-area: left; }
.content     { grid-area: content; container: content / inline-size; display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.side--right { grid-area: right; }

/* Side columns stay in view. If one is taller than the window it scrolls on its own. */
.side {
  position: sticky; top: var(--side-top);
  max-height: calc(100vh - var(--side-top) - 20px);
  max-height: calc(100dvh - var(--side-top) - 20px);
  overflow-y: auto; overscroll-behavior: auto;
  display: flex; flex-direction: column; gap: 16px;
  padding: 3px; margin: -3px;                 /* room for card shadows and focus rings */
  scrollbar-width: thin; scrollbar-color: #c3cfe3 transparent;
}
.side::-webkit-scrollbar { width: 6px; }
.side::-webkit-scrollbar-thumb { background: #c3cfe3; border-radius: 6px; }

/* Left column on desktop. By default the profile scrolls away and the "On this page"
   links stay in view. main.js adds .is-pinned when the window is tall enough for the
   whole column (profile + links), and then all of it stays in view. */
@media (min-width: 1200px) {
  .side--left { position: static; max-height: none; overflow: visible; align-self: stretch; padding: 0; margin: 0; }
  .side--left .toc { position: sticky; top: var(--side-top); }
  .side--left.is-pinned { position: sticky; align-self: start; }
  .side--left.is-pinned .toc { position: static; }
}

/* ---------- Left: profile card ---------- */
.profile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-s); overflow: hidden; flex: none; }
.profile__banner { height: 70px; background: radial-gradient(240px 110px at 20% 0%, rgba(255, 255, 255, .2), transparent 60%), linear-gradient(135deg, var(--blue-600), var(--blue-900)); }
.profile__photo { position: relative; width: 108px; height: 108px; margin: -56px auto 0; border-radius: 50%; object-fit: cover; border: 4px solid #fff; background: #fff; box-shadow: var(--shadow-m); }
.profile__body { padding: 10px 18px 16px; text-align: center; }
.profile__name { font: 600 1.6rem/1.1 var(--font-serif); letter-spacing: -.015em; display: flex; flex-direction: column; gap: 4px; }
.profile__name-hi { font: 600 1.02rem/1.3 var(--font-hi-serif); color: var(--blue-600); letter-spacing: 0; }
html[data-lang="hi"] .profile__name { font-family: var(--font-hi-serif); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
html[data-lang="hi"] .profile__name-hi { display: none; }
.profile__role { font-size: .86rem; color: var(--ink-2); margin: 8px 0 12px; line-height: 1.45; }
.creds { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; }
.creds span { padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .8rem; color: var(--blue-800); }
.creds .gold { background: var(--gold-100); border-color: #efd99a; color: #7a5806; }
.profile .profile__status { display: none; margin-top: 14px; }   /* phones only; elsewhere the right column shows it */

.facts { list-style: none; margin: 0; padding: 14px 18px 16px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.facts li { display: grid; gap: 1px; }
.facts__k { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
html[data-lang="hi"] .facts__k { letter-spacing: 0; font-size: .8rem; }
.facts__v { font-weight: 600; font-size: .9rem; line-height: 1.4; color: var(--blue-900); }

/* ---------- Left: "On this page" links ---------- */
.toc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: var(--shadow-s); flex: none; }
.toc__title { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin: 0; padding: 4px 10px 6px; }
html[data-lang="hi"] .toc__title { letter-spacing: 0; font-size: .82rem; }
.toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; position: relative; }
.toc a { display: block; padding: 6px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .92rem; line-height: 1.35; }
.toc a:hover { background: var(--blue-50); color: var(--blue-700); }
.toc a.is-active { background: var(--blue-100); color: var(--blue-800); font-weight: 600; box-shadow: inset 3px 0 0 var(--blue-700); }
.toc__visit { display: none; }

/* ---------- Status line (open / closed) ---------- */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); margin: 0; line-height: 1.4; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: none; }
.status.is-open::before { background: #18a957; box-shadow: 0 0 0 4px rgba(24, 169, 87, .18); }
.status.is-closed::before { background: #d9822b; }
.status:empty { display: none !important; }
.status--dark { color: #d8e2f5; }
.status--dark.is-open::before { box-shadow: 0 0 0 4px rgba(24, 169, 87, .3); }

/* ==========================================================
   Centre: content panels
   ========================================================== */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 4cqi, 48px); box-shadow: var(--shadow-s); }
.panel__head { max-width: 40em; margin-bottom: 24px; }
.panel__lead { color: var(--ink-2); font-size: 1.02rem; margin: 10px 0 0; }

.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 10px; }
html[data-lang="hi"] .eyebrow { letter-spacing: .02em; font-size: .88rem; }
.eyebrow--light { color: #8fe0d6; }

/* ---------- About ---------- */
#about h2 { margin-bottom: 14px; }
.lead { font-size: clamp(1.02rem, .96rem + .5cqi, 1.15rem); color: var(--ink-2); max-width: 38em; }
.highlights { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 22px 0 26px; }
@container content (min-width: 480px) { .highlights { grid-template-columns: 1fr 1fr; } }
@container content (min-width: 1000px) { .highlights { grid-template-columns: repeat(4, 1fr); } }
.highlight { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: #fff; color: var(--blue-700); }
.highlight div { display: flex; flex-direction: column; line-height: 1.35; }
.highlight strong { color: var(--blue-900); font-size: .96rem; }
.highlight span { color: var(--ink-3); font-size: .84rem; }

.photo { margin: 0 0 22px; }
.photo img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 30%; width: 100%; }
.photo figcaption { font-size: .84rem; color: var(--ink-3); margin-top: 8px; }
.prose p { color: var(--ink-2); }
@container content (min-width: 1000px) {
  .about__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
  .about__body .photo { margin: 0; }
  .about__body .photo img { aspect-ratio: 4 / 3; }
}
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Treatments ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
@container content (min-width: 460px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@container content (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@container content (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); border-color: #c8d5ea; }
.card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue-100); color: var(--blue-700); margin-bottom: 12px; }
.card__icon .i { width: 22px; height: 22px; }
.card:nth-child(3n+2) .card__icon { background: var(--teal-50); color: var(--teal-600); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-2); font-size: .92rem; margin: 0; }
.card__link { display: inline-block; margin-top: 10px; font-weight: 600; font-size: .9rem; text-decoration: none; }
.card__link:hover { text-decoration: underline; }

/* ---------- Diabetes clinic ---------- */
.panel--diabetes { background: linear-gradient(180deg, #fff 0%, var(--teal-50) 100%); }
.diabetes { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; }
@container content (min-width: 760px) { .diabetes { grid-template-columns: 1.2fr 1fr; } }
.diabetes__copy h2 { margin-bottom: 4px; }
.checks { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
html[data-lang="hi"] .checks li::before { top: 4px; }
.diabetes__stat { background: linear-gradient(160deg, var(--blue-800), var(--blue-900)); color: #d8e2f5; border-radius: var(--radius-l); padding: 26px; box-shadow: var(--shadow-m); }
.diabetes__stat p { margin: 0; }
.diabetes__q { color: #8fe0d6; font-weight: 600; margin-bottom: 16px !important; }
.diabetes__big { font: 700 clamp(3rem, 2rem + 4cqi, 4.2rem)/1.05 var(--font-serif); color: #fff; margin: 2px 0 8px !important; }
html[data-lang="hi"] .diabetes__big { font-family: var(--font-hi-serif); }
.diabetes__text { font-size: 1.1rem; color: #fff; }
.diabetes__small { font-size: .9rem; color: #b7c5e0; margin-top: 18px !important; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }
.risk { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-s); }
.risk__qr { flex: none; display: block; background: #fff; padding: 6px; border-radius: 10px; line-height: 0; }
.risk__qr img { width: 96px; height: 96px; image-rendering: pixelated; }
.diabetes__stat .risk__title { color: #fff; font-weight: 600; margin-bottom: 4px; }
.risk__text p:not(.risk__title) { font-size: .86rem; color: #b7c5e0; }
.risk__link { display: inline-block; margin-top: 8px; color: #8fe0d6; font-weight: 600; font-size: .88rem; text-decoration: none; }
.risk__link:hover { text-decoration: underline; }
@container content (max-width: 380px) { .risk { flex-direction: column; align-items: flex-start; } }

/* ---------- Education timeline ---------- */
.cols { display: grid; grid-template-columns: 1fr; gap: 32px; }
@container content (min-width: 600px) { .cols { grid-template-columns: 1fr 1fr; } }
.col__title { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px; font-weight: 700; }
html[data-lang="hi"] .col__title { letter-spacing: .02em; font-size: .92rem; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 24px 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-700); }
.timeline h4 { margin-bottom: 4px; font-size: 1.04rem; }
.timeline p { color: var(--ink-2); margin: 0; font-size: .94rem; }
.timeline__tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; background: var(--teal-50); color: var(--teal-600); margin-bottom: 6px; }
.timeline__tag.gold { background: var(--gold-100); color: #7a5806; }
html[data-lang="hi"] .timeline__tag { letter-spacing: 0; font-size: .8rem; }

/* ---------- Certificates & honours ---------- */
.certs { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 40px; }
@container content (min-width: 600px) { .certs { grid-template-columns: 1fr 1fr; } }
.cert { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cert h4 { margin-bottom: 4px; }
.cert p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.cert .cert__org { color: var(--blue-700); font-weight: 600; font-size: .86rem; margin-bottom: 8px; }
.cert__seal { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue-700); font: 700 .95rem/1 var(--font-serif); border: 2px solid #c8d5ea; }
.cert--photo { grid-column: 1 / -1; flex-direction: column; align-items: stretch; }
.cert--photo img { width: 100%; border-radius: var(--radius-s); box-shadow: var(--shadow-s); }
@container content (min-width: 600px) {
  .cert--photo { flex-direction: row; align-items: center; }
  .cert--photo img { width: 40%; flex: none; }
}
@container content (min-width: 1100px) {
  .certs { grid-template-columns: repeat(6, 1fr); }
  .cert { grid-column: span 3; }
  .cert--photo { grid-column: span 2; flex-direction: column; align-items: stretch; }
  .cert--photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #fff; }
}

.awards { display: grid; grid-template-columns: 1fr; gap: 14px; }
@container content (min-width: 480px) { .awards { grid-template-columns: repeat(2, 1fr); } }
@container content (min-width: 700px) { .awards { grid-template-columns: repeat(3, 1fr); } }
.award { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.award img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #2a1d17; }
.award figcaption { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.award strong { color: var(--blue-900); }
.award span { font-size: .88rem; color: var(--ink-2); }
.award--feature { grid-column: 1 / -1; }
.award--feature img { aspect-ratio: auto; max-height: 420px; object-fit: contain; background: var(--bg-2); padding: 12px; }
.award--feature figcaption { padding: 18px 20px; gap: 8px; }
.award--feature strong { font: 600 1.35rem/1.2 var(--font-serif); }
html[data-lang="hi"] .award--feature strong { font-family: var(--font-hi-serif); font-weight: 700; }
.award--feature span { font-size: .96rem; }
@container content (min-width: 560px) {
  .award--feature { flex-direction: row; align-items: center; }
  .award--feature img { width: 210px; flex: none; max-height: none; }
  .award--feature figcaption { padding: 22px 26px; }
}
.award .award__tag { align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; background: var(--gold-100); color: #7a5806; }
html[data-lang="hi"] .award .award__tag { letter-spacing: 0; font-size: .82rem; }
.award .award__org { color: var(--blue-700); font-weight: 600; font-size: .88rem; }

/* ---------- Reviews ---------- */
.rating { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -6px 0 22px; padding: 9px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-s); }
.rating[hidden] { display: none; }
.rating__score { font: 700 1.45rem/1 var(--font-serif); color: var(--blue-900); }
.rating__stars { color: #e3a008; letter-spacing: 2px; font-size: 1.1rem; }
.rating__count { color: var(--ink-2); font-size: .9rem; }
.reviews { display: grid; grid-template-columns: 1fr; gap: 14px; }
@container content (min-width: 520px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@container content (min-width: 820px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.reviews:empty { display: none; }
.review { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.review__stars { color: #e3a008; letter-spacing: 2px; font-size: 1.02rem; }
.review__text { color: var(--ink); margin: 0; flex: 1; }
.review__meta { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--ink-3); }
.review__avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-700); font-weight: 700; flex: none; }
.review__name { color: var(--ink); font-weight: 600; }
.reviews__asof { font-size: .82rem; color: var(--ink-3); margin: 14px 0 0; }
.reviews__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@container content (max-width: 400px) { .reviews__cta .btn { width: 100%; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@container content (min-width: 600px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.gallery__item { border-radius: var(--radius-s); overflow: hidden; display: block; background: var(--bg-2); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.03); }
@container content (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 15cqi; gap: 14px; }
  .gallery__item img { height: 100%; aspect-ratio: auto; }
  .gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
@container content (min-width: 1000px) { .faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 2px; font-weight: 600; color: var(--blue-900); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3b8c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--blue-700); }
.faq__item p { color: var(--ink-2); margin: 0; padding: 0 40px 18px 2px; }

/* ==========================================================
   Right: how to reach
   ========================================================== */
.book { background: linear-gradient(160deg, var(--blue-700), var(--blue-900)); color: #d8e2f5; border-radius: var(--radius-l); padding: 20px; box-shadow: var(--shadow-m); flex: none; }
.book .eyebrow { margin-bottom: 4px; }
.book__title { font: 600 1.45rem/1.2 var(--font-serif); color: #fff; margin-bottom: 10px; }
html[data-lang="hi"] .book__title { font-family: var(--font-hi-serif); font-weight: 700; }
.book__actions { display: grid; gap: 10px; margin-top: 14px; }
.book__actions .btn { padding: 12px 16px; }
.book__notes { display: grid; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); }
.book__note { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .86rem; line-height: 1.5; }
.book__note .i { width: 16px; height: 16px; margin-top: 2px; color: #8fe0d6; }
.book__note a { color: #fff; font-weight: 600; }

.side-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-s); flex: none; }
.side-card__title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; color: var(--blue-900); margin-bottom: 10px; }
.side-card__sub { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin: 18px 0 8px; }
html[data-lang="hi"] .side-card__sub { letter-spacing: 0; font-size: .85rem; }

.hours { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; padding-bottom: 0; }
.hours th { font-weight: 600; color: var(--blue-900); display: block; padding-bottom: 2px; border-bottom: 0; }
.hours td { display: block; padding-top: 0; color: var(--ink-2); }
.hours td span { white-space: nowrap; }
.hours tr.is-today th::after { content: attr(data-today); margin-left: 8px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--teal-50); color: var(--teal-600); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
html[data-lang="hi"] .hours tr.is-today th::after { letter-spacing: 0; font-size: .75rem; }

.addr { font-style: normal; font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
.map { margin-top: 12px; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 170px; border: 0; }
.map__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.map__actions .btn { flex: 1 1 auto; }

.phones { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .88rem; }
.phones li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.phones a { display: inline-flex; align-items: center; gap: 7px; color: var(--blue-800); font-weight: 600; text-decoration: none; white-space: nowrap; }
.phones a:hover { text-decoration: underline; }
.phones a .i { color: var(--teal-600); width: 15px; height: 15px; }
.phones__note { font-size: .8rem; color: var(--ink-3); }

.side-card--alert { background: #fff7ed; border-color: #fde2c4; }
.side-card--alert .side-card__title { color: #9a3412; margin-bottom: 6px; }
.side-card--alert p { margin: 0; font-size: .86rem; color: #7c2d12; line-height: 1.5; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-900); color: #b7c5e0; padding: 48px 0 0; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; } }
.footer p { margin: 0 0 6px; }
.footer a { color: #fff; text-decoration: none; font-weight: 600; }
.footer__name { font: 600 1.3rem/1.3 var(--font-serif); color: #fff; margin-bottom: 10px !important; }
html[data-lang="hi"] .footer__name { font-family: var(--font-hi-serif); }
.footer__h { color: #fff; font-weight: 600; margin-bottom: 10px !important; }
.footer__muted { color: #8a9bbd; font-size: .85rem; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 18px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); font-size: .82rem; color: #8a9bbd; }

/* ---------- Phone action bar ---------- */
.actionbar { display: none; }

/* ==========================================================
   Under 1200px: profile goes across the top, section links become a
   horizontal bar that sticks to the top of the window.
   ========================================================== */
@media (max-width: 1199px) {
  :root { --side-top: calc(var(--toc-h) + 20px); }

  .layout {
    grid-template-columns: minmax(0, 1fr) var(--right-w);
    grid-template-areas: "profile profile" "toc toc" "content right";
    row-gap: 16px;
  }
  .side--left { display: contents; }
  .profile { grid-area: profile; }

  .toc {
    grid-area: toc; position: sticky; top: 8px; z-index: 40;
    padding: 6px; border-radius: 999px; box-shadow: var(--shadow-m);
    background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px);
  }
  .toc__title { display: none; }
  .toc__list { flex-direction: row; gap: 2px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
  .toc__list::-webkit-scrollbar { display: none; }
  .toc a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: .9rem; }
  .toc a.is-active { background: var(--blue-700); color: #fff; box-shadow: none; }
}

/* Tablet: profile as one wide row (photo · name · facts) */
@media (min-width: 900px) and (max-width: 1199px) {
  .profile { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }
  .profile__banner { display: none; }
  .profile__photo { width: 112px; height: 112px; margin: 20px 0 20px 22px; border-width: 3px; box-shadow: var(--shadow-s); }
  .profile__body { text-align: left; padding: 20px 22px; }
  .creds { justify-content: flex-start; }
  .facts { border-top: 0; border-left: 1px solid var(--line); align-self: stretch; align-content: center; padding: 18px 22px; }
}

/* Phone (and tablet portrait): one column */
@media (max-width: 899px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "profile" "toc" "content" "right"; gap: 16px; padding-top: 16px; }
  .side--right { position: static; max-height: none; overflow: visible; margin: 0; padding: 0; }
  .profile .profile__status { display: inline-flex; }
  .toc__visit { display: block; }
  .footer__emergency { display: none; }

  /* Call / WhatsApp bar fixed to the bottom of the screen */
  .actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(10, 33, 72, .08);
  }
  .actionbar .btn { flex: 1; padding: 13px 12px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* Wider phones / small tablets: facts in a row, right-column cards side by side */
@media (min-width: 600px) and (max-width: 899px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .side--right { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; align-items: start; }
  .side--right .book { grid-row: span 2; }
  .side-card--clinic { grid-column: 1 / -1; }
  .map iframe { height: 240px; }
}

/* Big screens (2000px+): larger profile photo and map in the wider side columns */
@media (min-width: 2000px) {
  .profile__photo { width: 124px; height: 124px; margin-top: -64px; }
  .map iframe { height: 220px; }
}
