/* Shared UI surfaces. Load last; stronger selectors also cover asynchronously loaded pages. */
:root{--header-height:100px;--ui-page:#f4f8fc;--ui-panel:#fff;--ui-soft:#e8f2fa;--ui-ink:#08284a;--ui-muted:#476681;--ui-line:#bfd4e5;--ui-link:#1266a4;--ui-header:#eff7f9ed;--ui-footer:#e4eff8;--ui-focus:#1266a4}
html[data-theme=dark]{--ui-page:#071c31;--ui-panel:#0c2842;--ui-soft:#10334f;--ui-ink:#edf7ff;--ui-muted:#bad0e1;--ui-line:#345570;--ui-link:#8ccfff;--ui-header:#061d33ed;--ui-footer:#06172b;--ui-focus:#9ad7ff;--ink:#edf7ff;--cream:#071c31;--muted:#bad0e1}
html{scroll-padding-top:calc(var(--header-height) + 22px)}
body{background:var(--ui-page);color:var(--ui-ink)}
html :is(a,button,input,select):focus-visible{outline:2px solid var(--ui-focus);outline-offset:4px}
html [id]{scroll-margin-top:calc(var(--header-height) + 22px)}
.ui-icon{display:inline-block;width:20px;height:20px;min-width:20px;vertical-align:middle;flex:none;pointer-events:none}
html .official-logo{background:transparent;padding:0;border:0;border-radius:0;box-shadow:none;object-fit:contain;width:56px;height:56px;aspect-ratio:1}
.site-header-spacer{height:var(--header-height);width:100%;pointer-events:none}
.site-header{position:fixed;inset:0 0 auto;z-index:200;background:var(--ui-header);color:var(--ui-ink);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-bottom:1px solid color-mix(in srgb,var(--ui-line) 55%,transparent);transition:transform .32s cubic-bezier(.22,.7,.25,1),box-shadow .3s;isolation:isolate}
.site-header.is-hidden{transform:translateY(-105%)}
.site-header.is-scrolled{box-shadow:0 8px 32px #03162b17}
.site-header .nav.wrap{position:relative;display:flex;align-items:center;justify-content:space-between;height:100px;min-height:100px;gap:22px;flex-wrap:nowrap;max-width:1320px;width:calc(100% - 64px);margin-inline:auto;color:inherit;z-index:auto}
.site-header .brand{color:inherit;flex:none;gap:12px;font-size:14px;text-decoration:none;letter-spacing:.1em}
.site-header .brand small{font-size:8px;line-height:1.5}
.site-header .nav-panel{display:contents}
.site-header .nav-links{position:static;display:flex!important;flex-direction:row;align-items:center;gap:19px;background:none;border:0;box-shadow:none;padding:0;color:inherit;white-space:nowrap;font-size:12px;order:initial}
.site-header .nav-links a{font-size:12px;text-decoration:none;color:inherit;padding:14px 0;line-height:1.6;position:relative}
.site-header .nav-links a[aria-current=page]:after{content:'';position:absolute;inset-inline:0;bottom:7px;height:2px;background:#fe0002;border-radius:2px}
.site-header .nav-links a:hover{color:var(--ui-link)}
.site-header .nav-utilities{display:flex;align-items:center;gap:10px;flex:none}
.site-header .language-control{width:135px;min-height:44px;padding:0;margin:0;background:none;border:0;order:initial;color:inherit}
.site-header .language-trigger{font-size:11px;padding:10px 12px;color:var(--ui-ink);background:color-mix(in srgb,var(--ui-panel) 35%,transparent);border-color:var(--ui-line);min-height:44px}
.site-header .language-globe{width:16px;height:16px}
.site-header .language-current{flex:1}
.site-header .theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:44px;height:44px;padding:10px;border:1px solid var(--ui-line);background:transparent;color:inherit;border-radius:50%;flex:none;cursor:pointer}
.site-header .theme-label{display:none}
.site-header .nav-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 13px;border:1px solid var(--ui-line)!important;border-radius:999px;color:inherit;font-size:11px;white-space:nowrap;text-decoration:none;line-height:1.6}
.site-header .nav-cta .ui-icon{width:16px;height:16px;min-width:16px}
.site-header .menu-toggle{display:none}
.language-menu{z-index:1000}
html[data-theme=light] .language-menu{background:linear-gradient(135deg,#f4fafff7,#e5f1fcfa);color:#08284a;border-color:#b8d2e7;box-shadow:0 20px 55px #03132626}
html[data-theme=light] .language-option[aria-selected=true]{color:#0b5a95;background:#177cc414}
html[data-theme=light] .language-option.is-active{color:#08284a;background:#177cc426;border-color:#177cc43d}
html[data-theme=light] .language-check{stroke:#177cc4}
/* Four-column footer: original logo, real destinations, no fabricated social profiles. */
footer.site-footer{position:relative;padding:70px 0 0;background:radial-gradient(ellipse at 0% 0%,#177cc413,transparent 60%),var(--ui-footer);color:var(--ui-ink);border-top:1px solid var(--ui-line)}
.site-footer .footer-inner{display:grid;grid-template-columns:1.4fr .85fr 1fr 1.05fr;gap:55px;align-items:start;min-height:0;padding-bottom:55px;color:inherit;font-size:13px}
.site-footer .brand{display:flex;align-items:center;gap:15px;text-decoration:none;color:inherit;letter-spacing:-.025em;line-height:1.5;font-size:20px;font-weight:700;max-width:280px;min-height:0}
.site-footer .brand .official-logo{width:60px;height:60px;box-shadow:none}
.site-footer .footer-identity>p{font-size:13px;color:var(--ui-muted);line-height:1.9;max-width:265px;margin:22px 0}
.site-footer .footer-inner p{display:block}
.site-footer .social-links{display:flex;gap:9px;align-items:center}
.site-footer .social-links :is(a,.social-pending){display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--ui-line);border-radius:50%;color:var(--ui-link);transition:transform .2s,background .2s}
.site-footer .social-pending{opacity:.65;cursor:default}
.site-footer .social-links a:hover{transform:translateY(-3px);background:#177cc420}
.site-footer .footer-identity .social-note{font-size:10px;margin:13px 0 0;line-height:1.8}
.site-footer h2{font-size:13px;line-height:1.8;font-weight:700;margin:8px 0 23px;letter-spacing:0}
.site-footer ul{list-style:none;padding:0;margin:0;display:grid;gap:9px}
.site-footer .footer-column a{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--ui-muted);font-size:12px;line-height:1.9;min-height:30px;padding:3px 0}
.site-footer .footer-column a:hover{color:var(--ui-link);text-decoration:underline;text-underline-offset:4px}
.site-footer .footer-contact .footer-phone{font-size:14px;font-weight:600;color:var(--ui-ink);white-space:nowrap}
.site-footer .footer-contact p{display:flex;align-items:start;gap:10px;color:var(--ui-muted);font-size:12px;line-height:1.9;margin:19px 0}
.site-footer .footer-contact .ui-icon{width:17px;height:20px;min-width:17px}
.site-footer .footer-contact .footer-directions{color:var(--ui-link);border-bottom:1px solid var(--ui-line);gap:20px}
.site-footer .footer-demo-note{font-size:10px;color:var(--ui-muted);line-height:1.9;max-width:215px;margin-top:25px;border-inline-start:2px solid #fe0002;padding-inline-start:12px}
.site-footer .footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:30px;padding-block:23px;border-top:1px solid var(--ui-line);font-size:10px;line-height:1.9;color:var(--ui-muted)}
.site-footer .footer-bottom p{margin:0}
.site-footer .footer-dev{display:block;font-size:9px;opacity:.85}
.site-footer .back-to-top{display:inline-flex;align-items:center;gap:15px;text-decoration:none;color:var(--ui-ink);min-height:44px;white-space:nowrap}
/* The map is visible immediately, with a real link covering the embed. */
html .hospital-location{color:var(--ui-ink);gap:60px;padding-top:55px}
html[data-theme=light] .contact-page .hospital-location{color:var(--ui-ink)}
html .location-copy>p:not(.section-kicker),html .contact-page .location-copy>p:not(.section-kicker){color:var(--ui-muted)}
html .location-copy .section-kicker,html .contact-page .location-copy .section-kicker{color:var(--ui-link)}
html .map-surface{height:350px;border:1px solid var(--ui-line);border-radius:18px;background:var(--ui-soft);position:relative;overflow:hidden;isolation:isolate}
html .hospital-map-frame{width:100%;height:100%;display:block;border:0;pointer-events:none}
.map-open-link{position:absolute;inset:0;z-index:1;color:inherit;display:block;border-radius:inherit}
.map-open-link:focus-visible{outline:3px solid var(--ui-focus);outline-offset:-5px}
.map-open-label{position:absolute;inset-inline-end:15px;bottom:15px;display:flex;align-items:center;gap:12px;background:var(--ui-header);backdrop-filter:blur(12px);color:var(--ui-ink);padding:11px 15px;border:1px solid var(--ui-line);border-radius:999px;font-size:11px;box-shadow:0 6px 20px #03132626}
html .map-fallback{font-size:11px;line-height:1.9;color:var(--ui-muted)}
.map-fallback a{color:var(--ui-link);text-underline-offset:4px}
/* Theme adaptations preserve the existing layouts, photographs and animation. */
html[data-theme=light] :is(.care,.service-note,.contact-panel){background:#e8f2fa!important;color:#08284a}
html[data-theme=light] .statement{background:#e5f0f9;color:#08284a}
html[data-theme=light] .statement-copy :is(.section-kicker,p){color:#476681}
html[data-theme=light] :is(.hospital-facts,.purpose-values,.about-close){background:radial-gradient(ellipse at 85% 0%,#177cc421,transparent 70%),#e4eff8;color:#08284a}
html[data-theme=light] :is(.facts-approval,.fact-label,.facts-scope,.purpose-values-copy p,.about-close a){color:#456580}
html[data-theme=light] .purpose-values h2{color:#08284a}
html[data-theme=light] :is(.facts-panels,.fact-panel,.purpose-values-list,.purpose-values-list li){border-color:#a9c8df!important}
html[data-theme=light] .fact-confirmation{color:#a01b26}
html[data-theme=light] .purpose-values-list span{color:#1266a4}
html[data-theme=light] .contact-page .contact-photography{color:#08284a}
html[data-theme=light] .contact-page .contact-photography :is(p,figcaption){color:#476681}
html[data-theme=dark] :is(.care,.service-note,.contact-panel,.demo-banner){background:#0c2a45!important;color:var(--ui-ink)}
html[data-theme=dark] :is(.care-card,.value,.purpose-panel,.doctor-card,.booking-panel,.request-table-wrap,.timeline-record,.record-dialog){background:linear-gradient(130deg,#0c2842,#0d2d49);color:var(--ui-ink);border-color:var(--ui-line)}
html[data-theme=dark] .care-card.featured{background:linear-gradient(130deg,#124a72,#103550)}
html[data-theme=dark] :is(.photo-pair figcaption,.photo-pair figcaption>span,.gallery-card h2,.doctor-card h2,.service-doctor-details li,.active button,.rail-note a,.dashboard-tabs button[aria-selected=true],.specialist-identity h3){color:var(--ui-ink)}
html[data-theme=dark] :is(.section-kicker,.care-card p,.intro-grid p,.photo-story-heading p:not(.section-kicker),.visit-copy,.panel-label,.service-row p,.service-note p,.retained-description,.gallery-card figcaption p,.gallery-intro p,.gallery-count,.gallery-cta p,.directory-disclaimer,.directory-result-count,.portrait-note,.purpose-panel p,.directory-toolbar label,.service-directory-heading p:not(.section-kicker),.demo-banner p,.booking-panel header>p:last-child,.booking-footnote,.choice-main small,.rail-note p,.step-caption,.field-help,.dashboard-topline p,.dashboard-statistics span,.dashboard-tabs button,.dashboard-notice,.schedule-intro p,.schedule-doctor p,.schedule-row>div>span:not(.small-initials),.reception-table small,.record-disclaimer,.timeline-record small,.day-timeline time small,.request-summary dt,.ack-screen>p,.selection-note,.demo-scope p){color:var(--ui-muted)!important}
html[data-theme=dark] :is(.arrow-link,.care-card>a,.service-row a,.doctor-request,.directory-source,.directory-reset,.service-directory-heading>a,.complete button,.back-button,.row-review,.record-id,.schedule-row bdi,.day-timeline time,.demo-scope a,.doctor-specialty){color:var(--ui-link)!important}
html[data-theme=dark] :is(.care-card,.service-row,.directory-toolbar,.doctor-request,.dashboard-tabs,.schedule-row,.reception-table td,.dashboard-topline,.dashboard-statistics>div,.booking-actions,.rail-note,.request-summary>div,.request-summary,.service-photography,.photo-story+.visit){border-color:var(--ui-line)!important}
html[data-theme=dark] :is(.choice,.time-choice,.date-chip,.gallery-filters button,.small-initials,.reset-button,.empty-state){border-color:var(--ui-line);color:var(--ui-ink);background:var(--ui-panel)}
html[data-theme=dark] :is(.choice.selected,.choice:hover,.time-choice.selected,.date-chip.chosen,.date-chip:hover,.complete .step-number,.secondary-button,.dialog-x,.request-toolbar h2 span){background:var(--ui-soft);color:var(--ui-link)}
html[data-theme=dark] :is(.field-group input,.field-group select,.dashboard-filters select,.directory-toolbar input,.directory-toolbar select){background:#082037;color:var(--ui-ink);border-color:#4b6e8b}
html[data-theme=dark] .field-group input[readonly]{background:#102c44;color:#c5dbea}
html[data-theme=dark] .directory-toolbar input::placeholder{color:#a3bfd4}
html[data-theme=dark] .reception-table th{background:#10334f;color:var(--ui-muted)}
html[data-theme=dark] .status-badge{background:#193b58;color:#d1e5f4}
html[data-theme=dark] .status-confirmed{background:#123f62;color:#a5dbff}
html[data-theme=dark] .status-rescheduled{background:#2a3651;color:#d1d8ed}
html[data-theme=dark] .status-cancelled{background:#482630;color:#ffc2ca}
html[data-theme=dark] :is(.form-error,.cancel-confirm){background:#48232e;color:#ffd1d6}
html[data-theme=dark] :is(.doctor-head,.text-danger){color:#ffb4be}
html[data-theme=dark] .doctor-monogram{color:#8ccfff16}
html[data-theme=dark] .active .step-number{background:#8ccfff;color:#08284a;border-color:#8ccfff;box-shadow:0 0 0 5px #177cc421}
html[data-theme=dark] .request-summary{background:#0c2842;color:var(--ui-ink)}
html[data-theme=dark] .button-dark{background:#177cc4;color:#fff}
html[data-theme=dark] :is(.demo-scope strong,.review-language strong){color:var(--ui-ink)}
html[data-theme=dark] :is(.eyebrow-small,.review-language,.time-choice small,.step-number){color:var(--ui-muted)}
html[data-theme=dark] :is(.specialist-identity a,.daily-count strong,.choice-check,.step-caption bdi){color:var(--ui-link)}
html[data-theme=dark] .acknowledge{background:var(--ui-soft);color:var(--ui-ink)}
html[data-theme=dark] .ack-screen .hospital-directions{background:#10334f;color:#a5dbff;border-color:var(--ui-line)}
html[data-theme=dark] .contact-photography :is(p,figcaption){color:#c3d8ed}
/* Slightly deeper blue keeps small white action labels above AA contrast. */
html .button-dark{background:#1266a4;color:#fff}
html .urgent a{background:#1266a4!important;color:#fff}
html .hospital-directions:not(.ack-directions),html .directory-empty button{background:#1266a4;border-color:#1266a4;color:#fff}
html[data-theme=dark] .button-dark{background:#1266a4}
html[data-theme=light] :is(.photo-number,.portrait-note,.dashboard-tabs button,.booking-steps button:disabled){color:#456580}
html[data-theme=light] .complete-services .department-section>a,html[data-theme=light] .row-review{color:#1266a4!important}
html[data-theme=dark] .photo-number{color:var(--ui-link)}
html[data-theme=dark] .service-doctor-details small{color:#ffb4be}
/* Icons mirror only when they convey inline direction. */
html[dir=rtl] .ui-icon:is(.icon-right,.icon-left,.icon-external){transform:scaleX(-1)}
html[dir=rtl] :is(.button span,.arrow-link span,.text-link span,.hero-photograph figcaption a,.service-row a,.enlarge-mark,.doctor-request span,.department-section>a b,.workspace-link span,.hospital-directions span){transform:none}
html :is(.button,.arrow-link,.text-link,.workspace-link,.back-to-top){gap:12px}
html :is(.button,.arrow-link,.text-link) .ui-icon{width:18px;height:18px;min-width:18px;margin:0}
@media(min-width:1280px){html:not([lang=en]) .site-header .nav-links{gap:12px}html:not([lang=en]) .site-header .nav-links a{font-size:11px}html:not([lang=en]) .site-header .brand{font-size:12px}.site-header .nav-links{flex:1;justify-content:center}}
@media(max-width:1279px){
  :root{--header-height:88px}
  .site-header .nav.wrap{height:88px;min-height:88px;display:flex;gap:18px;width:calc(100% - 48px);justify-content:space-between}
  .site-header .menu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;border:1px solid var(--ui-line);background:transparent;color:inherit;padding:10px 14px;border-radius:999px;margin:0;order:initial;font-size:12px}
  .site-header .nav-panel{position:absolute;top:calc(100% + 1px);inset-inline:-24px;display:none;background:var(--ui-panel);border-bottom:1px solid var(--ui-line);box-shadow:0 24px 40px #03162b33;padding:16px 24px 24px;max-height:calc(100dvh - var(--header-height) - 12px);overflow:auto;overscroll-behavior:contain}
  .site-header .nav-panel.is-open{display:block;animation:nav-open .2s ease both}
  .site-header .nav-links{display:grid!important;grid-template-columns:1fr 1fr;gap:4px 24px;align-items:stretch;white-space:normal}
  .site-header .nav-links a{padding:12px 8px;font-size:15px;border-radius:6px;min-height:44px;display:flex;align-items:center}
  .site-header .nav-links a[aria-current=page]{background:#177cc414;color:var(--ui-link)}
  .site-header .nav-links a[aria-current=page]:after{inset-inline-start:0;inset-inline-end:auto;top:14px;bottom:14px;height:auto;width:2px}
  .site-header .nav-utilities{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;border-top:1px solid var(--ui-line);padding-top:20px;margin-top:16px}
  .site-header .nav .language-control{width:100%;grid-column:1;grid-row:auto;padding:0;min-height:44px;justify-self:stretch;border:0}
  .site-header .language-trigger{font-size:13px;width:100%;min-height:46px}
  .site-header .theme-toggle{grid-column:2;min-width:46px;height:46px}
  .site-header .nav-cta{grid-column:1/-1;width:100%;font-size:13px;padding:12px;background:#1266a4;color:#fff;border-color:#1266a4!important}
  .site-footer .footer-inner{grid-template-columns:1.3fr 1fr;gap:45px 60px}
}
@media(max-width:760px){
  .site-header .nav.wrap{width:calc(100% - 40px);height:82px;min-height:82px}
  .site-header .brand{font-size:12px!important;gap:10px}
  .site-header .brand small{font-size:7px!important}
  .site-header .official-logo{width:45px;height:45px}
  .site-header .nav-panel{inset-inline:-20px;padding:12px 20px 20px}
  .site-header .nav-links{gap:2px 14px}
  .site-header .nav-links a{font-size:14px}
  .site-header .theme-toggle{border-radius:12px}
  .site-footer .footer-inner{grid-template-columns:1fr 1fr;gap:34px 20px;padding-bottom:35px}
  footer.site-footer{padding-top:42px}
  .site-footer .footer-identity,.site-footer .footer-contact{grid-column:1/-1}
  .site-footer .footer-identity>p{max-width:100%}
  .site-footer .footer-identity .social-note{max-width:100%;margin-bottom:0}
  .site-footer h2{font-size:12px;margin:0 0 18px}
  .site-footer .footer-column a{font-size:12px;min-height:36px}
  .site-footer .footer-demo-note{font-size:10px}
  .site-footer .footer-contact{border-top:1px solid var(--ui-line);padding-top:30px}
  .site-footer .footer-bottom{align-items:start;gap:18px;font-size:9px;padding-block:20px}
  .site-footer .back-to-top{gap:8px;font-size:10px;white-space:normal;max-width:115px}
  html .hospital-location{gap:27px;padding-top:30px}
  html .map-surface{height:300px;border-radius:14px}
  .map-open-label{font-size:10px;inset-inline-end:12px;bottom:12px;padding:10px 12px}
  html .motion-toggle .ui-icon{width:14px;height:14px;min-width:14px}
}
@keyframes nav-open{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.site-header,.site-header .nav-panel.is-open,.site-footer .social-links :is(a,.social-pending){transition:none;animation:none}html{scroll-behavior:auto!important}}
