/* =========================================================================
   SMSIMSR — smsimsr.org rebuild (/main/). Same tokens and fonts as the
   international patients site in /international-patients/.
   ========================================================================= */
:root {
    --brand: #7E2320;
    --brand-dark: #651C1A;
    --brand-soft: #FCFBF2;
    --ink: #2D2D2D;
    --body: #565656;
    --muted: #565656;
    --cream: #FCFBF2;
    --sand: #F6F4EC;
    --line: #EAE6DF;
    --white: #fff;
    --serif: 'Gentium Plus', Georgia, 'Times New Roman', serif;
    --sans: 'Gantari', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --wrap: 1400px;
    --gut: clamp(16px, 4vw, 40px);
    --hdr: 84px;
    --radius: 10px;
    /* Design system v7 (4 Nov 2026): one value per role. Home page uses these throughout. */
    --rose: #FCFBF2;
    --rose-2: #FCFBF2;
    --pline: rgba(86, 86, 86, .18);
    --fs-h2: clamp(1.75rem, 3.2vw, 2.75rem);
    --lh-h2: 1.15;
    --fs-kicker: .875rem;
    --section: clamp(48px, 7vw, 96px);
    --r-card: 16px;
    --r-inner: 12px;
    --r-tile: 12px;
    --shadow-1: 0 6px 20px rgba(90,23,21,.06);
    --shadow-2: 0 18px 44px rgba(90,23,21,.08);
    --shadow-hover: 0 22px 46px rgba(90,23,21,.12);
    --btn-h-sm: 44px;
    --btn-h: 48px;
    --btn-h-lg: 56px;
}
button { font: inherit; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--body); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.em :focus-visible, .intl :focus-visible, .cta-final :focus-visible, .util :focus-visible, .qa__card--em :focus-visible { outline-color: #FCFBF2; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.i { width: 1.1em; height: 1.1em; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

h1, h2, h3, h4, h5, h6 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
p, ul, ol, table, figure, blockquote, dl, form, details { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .3em; }
li::marker { color: var(--brand); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink); }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); font-weight: 600; margin-bottom: .6em; }
.center { text-align: center; }
.empty { color: var(--muted); font-style: italic; padding: 3rem 0; }


/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: var(--btn-h); padding: .6em 1.3em; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; border: 2px solid var(--brand); transition: background .2s, color .2s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2em; }
.sec--dark .btn { background: #fff; color: var(--brand); border-color: #fff; }
.sec--dark .btn:hover { background: var(--cream); }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.hdr.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.07); }
.hdr__bar { display: flex; align-items: center; gap: 24px; height: var(--hdr); max-width: 1400px; }
.hdr__logo { flex: none; }
.hdr__logo img { width: clamp(170px, 18vw, 240px); }
.menu { flex: 1; display: flex; align-items: center; justify-content: center; }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav li + li { margin-top: 0; }
.nav__item { position: relative; }
.nav__row { display: flex; align-items: center; }
.nav__link { display: block; padding: 10px 10px; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 2px solid transparent; }
.nav__link:hover, .nav__link[aria-current] { color: var(--brand); border-bottom-color: var(--brand); }
.nav__toggle { display: grid; place-items: center; width: 26px; height: 32px; margin-left: -6px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.nav__toggle .i { width: 16px; height: 16px; transition: transform .2s; }
.nav__toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
.drop { position: absolute; top: 100%; left: 0; min-width: 270px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.drop ul { list-style: none; margin: 0; padding: 0; }
.drop li + li { margin-top: 0; }
.drop a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .93rem; line-height: 1.35; }
.drop a:hover { background: var(--cream); color: var(--brand); }
.drop__sub { padding-left: 12px !important; border-left: 2px solid var(--line); margin: 2px 0 4px 10px !important; }
.drop__sub a { font-size: .88rem; color: var(--body); }
.drop--mega { display: grid; grid-template-columns: 1fr 2fr 1fr 1fr; gap: 6px 22px; width: min(1000px, 92vw); left: 50%; transform: translate(-50%, 6px); }
.drop--mega .drop__group:nth-child(2) ul { columns: 2; column-gap: 12px; }
.drop__title { margin: 4px 10px 6px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.has-sub:hover > .drop, .has-sub.is-open > .drop, .has-sub:focus-within > .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.is-mega:hover > .drop, .is-mega.is-open > .drop, .is-mega:focus-within > .drop { transform: translate(-50%, 0); }
.hdr__cta { flex: none; }
.hdr__cta .i { width: 18px; height: 18px; }
.hdr__cta--menu { display: none; }
.hdr__toggle { display: none; }

@media (max-width: 1180px) {
    .hdr__bar { justify-content: space-between; }
    .hdr { backdrop-filter: none; background: #fff; }   /* a backdrop-filter would trap the fixed menu panel inside the header */
    .hdr__toggle { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
    .burger { display: grid; gap: 5px; width: 22px; }
    .burger span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
    .hdr__toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hdr__toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
    .hdr__toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .hdr__bar > .hdr__cta { margin-left: auto; }
    .menu { position: fixed; inset: var(--menu-top, 120px) 0 0; display: block; padding: 12px var(--gut) 40px; background: #fff; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; border-top: 1px solid var(--line); }
    .menu.is-open { visibility: visible; opacity: 1; }
    .nav { flex-direction: column; gap: 0; }
    .nav__item { border-bottom: 1px solid var(--line); }
    .nav__row { justify-content: space-between; }
    .nav__link { padding: 14px 0; font-size: 1.05rem; border: 0; }
    .nav__toggle { width: 44px; height: 44px; }
    .drop, .drop--mega { position: static; display: none; width: auto; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; }
    .is-mega:hover > .drop, .has-sub:hover > .drop { transform: none; }
    .has-sub:hover > .drop, .has-sub:focus-within > .drop { display: none; }
    .has-sub.is-open > .drop { display: block; }
    .drop--mega .drop__group:nth-child(2) ul { columns: 1; }
    .hdr__cta--menu { display: inline-flex; margin-top: 20px; width: 100%; }
    body.menu-open { overflow: hidden; }
}
@media (max-width: 560px) {
    .hdr__bar > .hdr__cta span { display: none; }
    .hdr__bar > .hdr__cta { width: 46px; padding: 0; }
}

/* ---------- Breadcrumb ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; padding: 16px 0 0; margin: 0 auto; font-size: .85rem; color: var(--muted); }
.crumbs li + li { margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: #bbb; }
.crumbs a { color: var(--muted); }

/* ---------- Sections and grid ---------- */
.sec { padding: clamp(40px, 6vw, 84px) 0; position: relative; }
.sec + .sec--light:not(.sec--image) { padding-top: clamp(16px, 3vw, 40px); }
.sec--tint { background: var(--cream); }
.sec--tint + .sec--tint { padding-top: 0; }
.sec--dark { background: var(--brand); color: rgba(255,255,255,.92); }
.sec--dark h1, .sec--dark h2, .sec--dark h3, .sec--dark h4, .sec--dark h5, .sec--dark h6, .sec--dark .lead { color: #fff; }
.sec--dark .tile h3, .sec--dark .tile h4, .sec--image .tile h3, .sec--image .tile h4 { color: var(--ink); }
.sec--dark a:not(.btn) { color: #fff; }
.sec--image { background: var(--ink) var(--bg) center / cover no-repeat; color: #fff; }
.sec--image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,10,10,.82), rgba(30,10,10,.45)); }
.sec--image > .wrap { position: relative; }
.sec--image h1, .sec--image h2, .sec--image h3, .sec--image h4, .sec--image h5, .sec--image h6, .sec--image .lead, .sec--image a:not(.btn) { color: #fff; }
.sec--image.sec--tint, .sec--image.sec--light { padding-top: clamp(40px, 6vw, 84px); }
.sec--hero { padding: clamp(36px, 5vw, 72px) 0; }
.sec--hero h1 { margin-bottom: .3em; }
.sec--hero h1 + h2 { font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.sec--hero.sec--light, .sec--hero.sec--tint { background: linear-gradient(180deg, var(--cream), #fff); }

.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); align-items: start; }
.g--sub { margin-top: 1.2em; gap: clamp(16px, 2.4vw, 32px); }
.c { grid-column: span 12; min-width: 0; }
.c > :last-child { margin-bottom: 0; }
@media (min-width: 760px) {
    .c-1 { grid-column: span 2; } .c-2 { grid-column: span 3; } .c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; }
    .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; }
    .c-9 { grid-column: span 9; } .c-10 { grid-column: span 10; } .c-11 { grid-column: span 11; }
    .c-solo { grid-column: 1 / -1; max-width: 860px; }
}
@media (min-width: 760px) and (max-width: 1023px) {
    .c-1, .c-2, .c-3 { grid-column: span 6; }
    .c-4 { grid-column: span 6; }
}

/* ---------- Media, galleries, tiles ---------- */
.media { margin: 0 0 1.1em; }
.media img { width: 100%; border-radius: var(--radius); }
.media figcaption, figcaption { font-size: .85rem; color: var(--muted); margin-top: .5em; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.1em; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
iframe { border: 0; border-radius: var(--radius); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(14px, 2vw, 24px); margin: 0 0 1.4em; }
.tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; transition: box-shadow .2s, transform .2s; }
.sec--dark .tile, .sec--image .tile { color: var(--body); }
.sec--dark .tile a:not(.btn), .sec--image .tile a:not(.btn) { color: var(--ink); }
.tile--link:hover { box-shadow: 0 14px 32px rgba(0,0,0,.1); transform: translateY(-2px); }
.tile__media { margin: 0; aspect-ratio: 4 / 3; background: var(--sand); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__body { padding: 16px 18px 18px; }
.tile__body p { font-size: .92rem; margin-bottom: .5em; }
.tile__meta { font-size: .76rem !important; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.tile__title { font-size: 1.12rem; margin: 0 0 .3em; }
.tile__title a { color: var(--ink); text-decoration: none; }
.tile--link .tile__title a::after { content: ''; position: absolute; inset: 0; }
.tile:not(:has(.tile__body)) .tile__media { aspect-ratio: auto; }
.tile:not(:has(.tile__body)) { border: 0; }
.kind-profile .gallery, .kind-staff-category .gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.kind-staff-category .tile__media, .kind-profile .tile__media, .tile__media:has(img[src*="Dr"]) { aspect-ratio: 4 / 5; }
.kind-staff-category .tile__media img { object-position: 50% 20%; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: .93rem; margin: 0; background: #fff; color: var(--body); }
th, td { max-width: 420px; min-width: 64px; }   /* wide tables scroll sideways instead of squeezing words into letters */
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--cream); color: var(--ink); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #FDFCF8; }

/* ---------- Accordions ---------- */
.accordion { margin: 0 0 1.4em; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); margin: 0; }
summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 700; color: var(--ink); position: relative; font-family: var(--serif); font-size: 1.12rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--sans); color: var(--brand); }
details[open] > summary::after { content: '–'; }
details > div { padding: 0 0 16px; }
.sec--dark summary, .sec--image summary { color: #fff; }
.sec--dark summary::after { color: #fff; }

/* ---------- Quotes, counters ---------- */
.quote { margin: 0 0 1.2em; padding: 18px 22px; border-left: 4px solid var(--brand); background: var(--cream); font-family: var(--serif); font-size: 1.15rem; color: var(--ink); border-radius: 0 12px 12px 0; }
.counter { display: grid; gap: 2px; }
.counter__value { font: 700 clamp(2rem, 4vw, 3rem)/1 var(--serif); color: var(--brand); }
.sec--dark .counter__value { color: #fff; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; padding: clamp(18px, 3vw, 30px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--body); }
.form > * { grid-column: 1 / -1; margin: 0; }
.form-field { display: grid; gap: 6px; }
.form label, .form legend { font-weight: 600; color: var(--ink); font-size: .92rem; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #D8D2C8; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.form textarea { min-height: 120px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.form fieldset legend { grid-column: 1 / -1; margin-bottom: 4px; }
.form .btn { justify-self: start; }
@media (max-width: 640px) { .form, .form fieldset { grid-template-columns: 1fr; } }

/* ---------- Footer: copied from the international site (assets/css/styles.css, .site-footer) ----------
   Same values; differences: five columns here (three link lists instead of two), the social row,
   and no floating WhatsApp button, so the bottom bar has no extra right/bottom padding. */
.site-footer {
    --ft-accent: #FFFFFF;
    --ft-soft: #FCFBF2;
    --ft-gold: #FCFBF2;
    --ft-rule: rgba(255, 255, 255, .16);
    background-color: #7E2320;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M0 70C240 30 480 30 720 65S1200 100 1440 45'/%3E%3Cpath d='M0 82C240 42 480 42 720 77S1200 112 1440 57'/%3E%3Cpath d='M0 94C240 54 480 54 720 89S1200 124 1440 69'/%3E%3Cpath d='M0 106C240 66 480 66 720 101S1200 136 1440 81'/%3E%3Cpath d='M0 118C240 78 480 78 720 113S1200 148 1440 93'/%3E%3Cpath d='M0 130C240 90 480 90 720 125S1200 160 1440 105'/%3E%3Cpath d='M0 142C240 102 480 102 720 137S1200 172 1440 117'/%3E%3Cpath d='M0 154C240 114 480 114 720 149S1200 184 1440 129'/%3E%3Cpath d='M0 166C240 126 480 126 720 161S1200 196 1440 141'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 200px;
    color: #FFFFFF;
    font-family: var(--sans);
    line-height: 1.5;
}
.site-footer p, .site-footer ul, .site-footer address { margin: 0; }
.site-footer li + li { margin-top: 0; }
.site-footer__inner { max-width: 1320px; margin-inline: auto; padding: 44px 24px 32px; }
.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(352px, 1.3fr) .9fr .9fr .9fr 1.5fr;
    grid-template-areas: "identity nav1 nav2 nav3 contact";
    gap: 0;
}
.site-footer__identity { grid-area: identity; min-width: 0; padding-right: 24px; }
.site-footer__contact { grid-area: contact; min-width: 0; }
.site-footer__nav:nth-of-type(1) { grid-area: nav1; }
.site-footer__nav:nth-of-type(2) { grid-area: nav2; }
.site-footer__nav:nth-of-type(3) { grid-area: nav3; }
.site-footer__nav, .site-footer__contact { min-width: 0; padding-left: 40px; padding-right: 16px; border-left: 1px solid var(--ft-rule); }
.site-footer__contact { padding-right: 0; }

.site-footer__brand { display: flex; align-items: center; gap: 16px; }
.site-footer__logo { display: inline-block; flex: none; }
.site-footer__logo img { display: block; width: 92px; height: auto; }
.site-footer__name { color: #FFFFFF; font-size: 17px; font-weight: 400; line-height: 1.4; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.site-footer__tagline { margin-top: 22px !important; color: #FFFFFF; font-size: 17px; line-height: 1.6; }

.site-footer__heading { margin: 0 0 18px; color: var(--ft-accent); font-family: var(--sans); font-size: 19px; font-weight: 600; line-height: 1.3; overflow-wrap: normal; }
.site-footer__nav ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ft-soft); font-size: 17px; line-height: 1.45; text-decoration: none; }

.site-footer__details { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.site-footer__details li { display: flex; align-items: flex-start; gap: 14px; color: var(--ft-soft); font-size: 17px; line-height: 1.55; }
.site-footer__details li > a { display: inline-flex; align-items: center; min-height: 32px; margin-top: -4px; }
.site-footer__details .i { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--ft-accent); }
.site-footer__details a { color: #FFFFFF; text-decoration: none; overflow-wrap: anywhere; }
.site-footer__details address { font-style: normal; overflow-wrap: anywhere; }
.site-footer__directions {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 6px;
    font-weight: 700; text-decoration: underline !important;
    text-decoration-color: var(--ft-gold) !important; text-decoration-thickness: 2px !important; text-underline-offset: 7px;
}
.site-footer__note { margin-top: 6px !important; color: var(--ft-soft); font-size: 16px; line-height: 1.55; }
.site-footer__social { display: flex; gap: 10px; margin: 20px 0 0 34px !important; padding: 0; list-style: none; }
.site-footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); color: #fff; }
.site-footer__social a:hover { background: #fff; color: var(--brand); }
.site-footer__social .i { width: 18px; height: 18px; }

.site-footer__nav a:hover, .site-footer__details a:hover, .site-footer__top:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:focus-visible { outline: 2px solid var(--ft-accent); outline-offset: 3px; border-radius: 3px; text-decoration: underline; }

.site-footer__cert { margin-top: 22px; }
.site-footer__cert-label { display: flex; align-items: center; gap: 20px; color: #FFFFFF; font-size: 17px; font-weight: 600; line-height: 1.3; }
.site-footer__cert-label::before { content: ""; flex: none; width: 42px; height: 2px; background: var(--ft-gold); }
.site-footer__cert-mark {
    display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
    margin: 14px 0 0; padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FBF7EC 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 24px rgba(0, 0, 0, .22);
    text-decoration: none;
}
.site-footer a.site-footer__cert-mark:focus-visible { border-radius: 14px; }
.site-footer__cert-badge { display: block; }
.site-footer__cert-mark img { display: block; width: 124px; height: auto; }
.site-footer__cert-code {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 14px 7px 9px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid rgba(126, 35, 32, .14);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.site-footer__cert-tick { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ft-gold); color: var(--brand); }
.site-footer__cert-tick .i { width: 13px; height: 13px; }
.site-footer__cert-code-text { display: flex; flex-direction: column; line-height: 1.15; color: var(--brand); font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.site-footer__cert-code-text small { font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #565656; }

.site-footer__bar { background: transparent; }
.site-footer__bar-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px;
    margin-inline: max(24px, calc((100% - 1272px) / 2));
    padding: 14px 0 calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--ft-rule);
    color: var(--ft-soft); font-size: 14px;
}
.site-footer__credit a { display: inline-flex; align-items: center; min-height: 44px; color: #FFFFFF; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(252, 251, 242, .7); text-underline-offset: 4px; }
.site-footer__credit a:hover { color: #fff; text-decoration-color: #FFFFFF; }
.site-footer__top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #FFFFFF; font-weight: 600; text-decoration: none; }

@media (max-width: 1359px) {
    .site-footer__brand { flex-direction: column; align-items: flex-start; gap: 14px; }
    .site-footer__name { font-size: 16px; }
    .site-footer__nav, .site-footer__contact { padding-left: 28px; }
}
@media (max-width: 1099px) {
    .site-footer__brand { flex-direction: row; align-items: center; gap: 16px; }
    .site-footer__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-areas: "identity identity identity contact contact contact" "nav1 nav1 nav2 nav2 nav3 nav3"; gap: 36px 36px; }
    .site-footer__identity { padding-right: 0; }
    .site-footer__nav, .site-footer__contact { padding-left: 0; padding-right: 0; border-left: 0; }
}
@media (max-width: 767px) {
    .site-footer__inner { padding: 28px 16px 24px; }
    .site-footer__grid { grid-template-columns: 1fr; grid-template-areas: "identity" "contact" "nav1" "nav2" "nav3"; gap: 24px; }
    .site-footer__nav a { min-height: 44px; font-size: 16px; }
    .site-footer__details li, .site-footer__tagline { font-size: 16px; }
    .site-footer__heading { font-size: 18px; }
    .site-footer__bar-inner { margin-inline: 16px; padding: 8px 0 calc(18px + env(safe-area-inset-bottom)); }
}
@media (max-width: 599px) {
    /* Link lists side by side instead of stacked (as on the international site) */
    .site-footer__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "identity identity" "contact contact" "nav1 nav2" "nav3 nav3"; column-gap: 20px; }
    .site-footer__name { white-space: normal; }
    .site-footer__nav:nth-of-type(3) ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media print { .hdr, .site-footer, .crumbs, .util, .toast { display: none; } }

/* =========================== Home =========================== */
.btn--light { background: #fff; color: var(--brand); border-color: #fff; }
.btn--light:hover { background: var(--cream); color: var(--brand-dark); border-color: var(--cream); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn--outline-light:hover { background: #fff; color: var(--brand); border-color: #fff; }
.btn--lg { min-height: var(--btn-h-lg); padding-inline: 1.6em; font-size: 1rem; }
.btn .i { width: 18px; height: 18px; }


/* Utility bar above the header */
.util { background: var(--brand-dark); color: rgba(255,255,255,.88); font-size: .82rem; }
.util__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; max-width: 1400px; }
.util__name { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.util__links { display: flex; align-items: center; gap: 4px 18px; list-style: none; margin: 0; padding: 0; flex: none; }
.util__links li + li { margin: 0; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.25); }
.util a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.util a:hover { text-decoration: underline; color: #fff; }
.util__em { color: #FCFBF2 !important; font-weight: 700; }
.util__em .i { width: 15px; height: 15px; }
@media (max-width: 860px) { .util__name, .util__hide-sm { display: none; } .util__bar { justify-content: center; } .util__links li + li { border: 0; } }

/* Healthcare mega menu (two groups) */
.drop--g2 { grid-template-columns: 1.3fr 1fr; width: min(600px, 92vw); }
.drop--g2 .drop__group:nth-child(2) ul { columns: 1; }

/* Toast (home-page review: inner pages are not open yet) */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%); max-width: min(520px, calc(100vw - 32px)); padding: 14px 20px; border-radius: 12px; background: var(--ink); color: #fff; font-size: .93rem; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.form-note { font-size: .85rem; color: var(--muted); }
.form button.btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }

/* Nested builder rows: wrap instead of a strict 12-column grid (their gaps alone can exceed a narrow column). */
.g.g--sub { display: flex; flex-wrap: wrap; gap: clamp(16px, 2.4vw, 32px); }
.g--sub > .c { flex: 1 1 220px; min-width: 0; max-width: 100%; }
.g--sub > .c-12, .g--sub > .c-11, .g--sub > .c-10 { flex-basis: 100%; }
.g--sub > .c-solo { max-width: 100%; }

/* Logo walls (insurers, partners) */
.gallery--logos { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.gallery--logos .tile { border: 1px solid var(--line); background: #fff; padding: 14px; justify-content: center; }
.gallery--logos .tile__media { aspect-ratio: 3 / 2; background: none; }
.gallery--logos .tile__media img { object-fit: contain; }
@media (max-width: 560px) { .gallery--logos { grid-template-columns: repeat(3, 1fr); gap: 8px; } .gallery--logos .tile { padding: 8px; } }
.gallery--logos .tile:not(:has(.tile__body)) .tile__media { aspect-ratio: 3 / 2; }

/* ---------- Mobile v9 (4 Nov 2026): app-style bottom actions, touch targets, safe areas ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
    .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 8px;
        padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
        background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
        border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(90, 23, 21, .08); }
    .mbar__item { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 10px; border-radius: 14px; font: 700 .9375rem/1.1 var(--sans); text-decoration: none; color: var(--brand); background: #FCFBF2; }
    .mbar__item .i { width: 20px; height: 20px; flex: none; }
    .mbar__item--book { background: var(--brand); color: #fff; }
    .mbar__item--wa { color: #0E7A3C; background: #EAF7EF; }
    .mbar__item:active { transform: scale(.98); }
    body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    body.menu-open .mbar { display: none; }
    .toast { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
    .util__em { display: inline-flex; align-items: center; min-height: 44px; }
    .hdr__toggle { min-width: 44px; min-height: 44px; }
    .site-footer__bar { padding-bottom: 8px; }
}
.site-footer__cert-code-text small { font-size: 11px; }
@media print { .mbar { display: none; } }
@media (max-width: 1180px) { .util a { display: inline-flex; align-items: center; min-height: 40px; } }
@media (max-width: 400px) { .hdr__bar { gap: 10px; } }
/* Text scaling to 200%: let bar labels wrap instead of overflowing */
@media (max-width: 760px) {
    .mbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); }
    .mbar__item span { min-width: 0; overflow-wrap: anywhere; text-align: center; }
    .util__links, .util__links li { min-width: 0; max-width: 100%; }
    .util__em, .util__em span { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 760px) { .btn, .hh__btn, .stories__yt, .qa__btn, .pill-btn { white-space: normal; text-align: center; padding-block: 8px; max-width: 100%; } .btn-row, .hh__em { min-width: 0; flex-wrap: wrap; } .hh__em strong { overflow-wrap: anywhere; } }
/* Bottom bar sizing: equal columns, labels never split mid-word; icon stacks above label on very narrow phones */
@media (max-width: 760px) {
    .mbar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .mbar__item { gap: 6px; padding: 0 6px; font-size: .875rem; }
    .mbar__item .i { width: 18px; height: 18px; }
    .mbar__item span { overflow-wrap: normal; white-space: nowrap; }
}
@media (max-width: 370px) {
    .mbar__item { flex-direction: column; gap: 3px; min-height: 52px; font-size: .8125rem; }
}

/* Client corrections, 5 Nov 2026: the top ribbon carries the NABH mark with its licence number (left)
   and the 24x7 emergency number (right); the institute name and the two text links are gone. */
.util__nabh { display: flex; align-items: center; gap: 10px; margin: 0; white-space: nowrap; color: #fff; }
.util__nabh-logo { display: grid; place-items: center; height: 28px; padding: 2px 6px; border-radius: 6px; background: #fff; }
.util__nabh-logo img { width: auto; height: 22px; }
.util__nabh strong { letter-spacing: .02em; }
.util__sep { margin: 0 4px; opacity: .6; }
.nav__link { white-space: nowrap; }
@media (min-width: 1181px) and (max-width: 1439px) {
    .hdr__bar { gap: 16px; }
    .hdr__logo img { width: clamp(160px, 14vw, 210px); }
    .nav { gap: 0; }
    .nav__link { padding-inline: 7px; font-size: .9rem; }
    .hdr__cta { padding-inline: 16px; font-size: .9rem; }
}
@media (max-width: 860px) {
    .util__bar { justify-content: space-between; gap: 10px; }
    .util__nabh { font-size: .75rem; gap: 6px; }
    .util__nabh .util__sep, .util__nabh > span:last-child { white-space: nowrap; }
}
@media (max-width: 480px) { .util__nabh > span:last-child > :not(strong) { display: none; } .util__nabh > span:last-child { font-size: 0; } .util__nabh strong { font-size: .72rem; } .util__em span { font-size: .75rem; } }

/* Client corrections 7 Nov 2026: NABH line removed from the ribbon; the 24x7 emergency number is in the brand colour on a light ribbon. */
.util { background: var(--brand-soft); color: var(--brand); border-bottom: 1px solid rgba(126,35,32,.12); }
.util__bar { justify-content: flex-end; }
.util a.util__em, .util a.util__em:hover { color: var(--brand) !important; }
.util :focus-visible { outline-color: var(--brand); }
@media (max-width: 860px) { .util__bar { justify-content: center; } }

/* Home page suggestions (7 Nov 2026): language picker beside the emergency number; Medical College highlighted in the menu. */
.util__bar { gap: 18px; }
.util__lang { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; }
.util__lang .i { width: 16px; height: 16px; flex: none; }
.util__lang select { appearance: none; -webkit-appearance: none; min-height: 30px; padding: 2px 26px 2px 10px; border: 1px solid rgba(126,35,32,.28); border-radius: 6px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%237E2320' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 7px center / 12px; color: var(--brand); font: inherit; font-size: .82rem; cursor: pointer; }
.util__lang select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.nav__item--hl > .nav__row > .nav__link, .nav__item--hl > .nav__link { color: #D23B39; font-weight: 700; }
/* Medical College as a coral pill button on desktop (user request, 11 Nov 2026). */
@media (min-width: 1181px) {
    .nav__item--hl > .nav__row { margin-inline: 4px; padding-right: 6px; transform: translateY(2px); border-radius: 999px; background: #D23B39; transition: background .2s; }
    .nav__item--hl > .nav__row:hover, .nav__item--hl:focus-within > .nav__row { background: #B83230; }
    .nav__item--hl > .nav__row > .nav__link { padding: 8px 6px 8px 16px; color: #fff; border-bottom: 0; }
    .nav__item--hl > .nav__row > .nav__link:hover, .nav__item--hl > .nav__row > .nav__link[aria-current] { color: #fff; border-bottom: 0; }
    .nav__item--hl > .nav__row > .nav__toggle { margin-left: -4px; color: #fff; }
}
/* Google Translate: hide its banner bar and tooltips; the page keeps its own layout. */
.goog-te-banner-frame, .skiptranslate, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.site-footer__cert-tick { background: var(--brand); color: #fff; }   /* brand guidelines: the tick sits on a white card */
/* Phone bottom bar: Call and Book only (WhatsApp removed, 9 Nov 2026) */
.mbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) !important; }
/* Booking buttons removed (11 Nov 2026): the phone bar holds Call 24x7 only, full width and filled. */
.mbar { grid-template-columns: minmax(0, 1fr) !important; }
.mbar__item--call { background: var(--brand); color: #fff; }
/* News & Events grid rebuilt from the article files (11 Nov 2026): three columns, equal 3:2 photos. */
.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-grid .tile__media { aspect-ratio: 3 / 2; }
.news-grid .tile__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }
/* Accessibility fixes (11 Nov 2026): extra page-level headings keep the h1 look as h2; one-link list items get a 24px tap target; focusable table scroll regions show focus. */
.h1-demoted { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.sec--hero .h1-demoted { margin-bottom: .3em; }
.c li > a:only-child { padding-block: 4px; }
.table-wrap:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Mega menus are centred on the header bar, not on their menu item, so they never push the page wider than the screen (audit H4, 11 Nov 2026). */
@media (min-width: 1181px) {
    .hdr__bar { position: relative; }
    .nav__item.is-mega { position: static; }
    .nav__item.is-mega > .drop--mega { top: calc(100% - 14px); }
}
/* Medical College mega menu (5 groups), UX pass 11 Nov 2026:
   Study + Research stacked | Clinical departments (two columns) | Pre-clinical + Para-clinical stacked.
   Three columns instead of four removes the near-empty Research column; the panel is capped to the
   screen height and scrolls inside itself, so short or zoomed laptop screens never cut off links. */
@media (min-width: 1181px) {
    .drop--g5 { grid-template-columns: 1fr 2fr 1fr; align-items: start; gap: 0; width: min(980px, 94vw); padding: 18px 18px 14px; max-height: calc(100vh - 160px); overflow-y: auto; overscroll-behavior: contain; }
    .drop--g5 .drop__col { padding: 0 14px; }
    .drop--g5 .drop__col:nth-child(2) { align-self: stretch; padding: 0 22px; border-inline: 1px solid var(--line); }
    .drop--g5 .drop__group + .drop__group { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
    .drop--mega.drop--g5 .drop__group ul { columns: 1; }
    .drop--mega.drop--g5 .drop__col:nth-child(2) ul { columns: 2; column-gap: 16px; }
    .drop--g5 li { break-inside: avoid; }
    .drop--g5 a { padding-block: 6px; }
}
/* Inner page heroes: section label shown like the home page hero kicker (maroon rule + small capitals). */
.page-kicker { position: relative; padding-left: 70px; margin: 0 0 14px; font: 700 .9375rem/1.45 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.page-kicker::before { content: ''; position: absolute; left: 0; top: .7em; width: 48px; height: 2px; background: var(--brand); }
@media (max-width: 760px) { .page-kicker { padding-left: 0; font-size: .8125rem; } .page-kicker::before { display: none; } }
