/* Shared readability and service presentation within the approved clinic theme. */
body.site-page { font-size: 17px; line-height: 1.65; }
body.site-page *, body.site-page *::before, body.site-page *::after { letter-spacing: 0; }
body.site-page main p, body.site-page main li { font-size: 16px; line-height: 1.65; }
body.site-page main h1 { font-size: 40px; line-height: 1.18; overflow-wrap: break-word; }
body.site-page main h2 { font-size: 30px; line-height: 1.25; }
body.site-page main h3 { font-size: 21px; line-height: 1.35; }
body.site-page .section { padding-top: 56px; padding-bottom: 56px; }
body.site-page .section.compact { padding-top: 28px; padding-bottom: 28px; }
body.site-page .button, body.site-page input, body.site-page select, body.site-page textarea { font-size: 16px; }
body.site-page .button { min-height: 46px; white-space: normal; text-align: center; }
body.site-page .breadcrumbs, body.site-page .eyebrow, body.site-page .badge,
body.site-page main label, body.site-page .text-link, body.site-page .reference-service-link { font-size: 14px; }
body.site-page .navlinks { font-size: 12px; }
body.site-page .navlinks .button {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 12px;
    white-space: nowrap;
}
body.site-page .nav-dropdown-menu a { font-size: 16px; line-height: 1.4; }
body.site-page .nav-dropdown-menu a span { font-size: 14px; }
body.site-page .footer p, body.site-page .footer-link-list a, body.site-page .footer-contact-list li { font-size: 16px; }
body.site-page .footer-bottom, body.site-page .hint, body.site-page .muted { font-size: 14px; }
body.site-page :focus-visible { outline: 3px solid #303c96; outline-offset: 4px; }

body.site-page .services-visual-hero, body.site-page .service-story-hero,
body.site-page .page-hero, body.site-page .story-detail-hero, body.site-page .media-tour-hero {
    min-height: 350px; padding: 52px 0; border-bottom: 4px solid #55af45;
}
body.site-page .services-visual-copy, body.site-page .service-story-copy { max-width: 760px; }
body.site-page .services-visual-copy .lead, body.site-page .service-story-copy .lead { font-size: 18px; }
body.site-page .services-visual-points { display: none; }
body.site-page .services-visual-hero::after, body.site-page .service-story-hero::after { display: none; }
body.site-page .service-story-copy .breadcrumbs { margin-bottom: 16px; }
body.site-page .service-story-copy .hero-actions { margin-top: 22px; }
body.site-page .service-quick-guide { margin-top: 0; padding: 24px 0 0; }
body.site-page .service-quick-grid { border: 0; box-shadow: none; background: #f2f7f6; }
body.site-page .service-quick-item strong { font-size: 16px; }
body.site-page .service-quick-item span { font-size: 14px; }

body.site-page .service-category-grid { gap: 16px; }
body.site-page .service-category-body { padding: 16px; min-height: 125px; align-items: start; }
body.site-page .service-category-body strong { font-size: 17px; line-height: 1.35; overflow-wrap: normal; }
body.site-page .service-category-body small { font-size: 14px; }
body.site-page .service-category-body em { display: none; }
body.site-page .service-category-card { box-shadow: none; border-color: #e2e6ed; }
body.site-page .service-category-card.is-active { border-color: #3e9345; background: #f4faf3; }
body.site-page .services-directory-sidebar { padding: 0 0 24px; border: 0; border-bottom: 1px solid #dee5e9; box-shadow: none; border-radius: 0; }
body.site-page .services-directory-search label, body.site-page .services-count { font-size: 16px; }
body.site-page .service-department-visual { min-height: 150px; border: 0; border-bottom: 1px solid #e0e8e4; border-radius: 0; background: #f5f9f6; }
body.site-page .service-department-heading h2 { font-size: 28px; }
body.site-page .services-card-grid { gap: 24px; align-items: stretch; }
body.site-page .service-visual-card { padding: 0; gap: 14px; border-radius: 8px; overflow: hidden; box-shadow: none; grid-template-rows: auto auto 1fr auto; scroll-margin-top: 120px; }
body.site-page .service-visual-card > :not(.service-card-media) { margin-left: 20px; margin-right: 20px; }
body.site-page .service-visual-card .service-details-link { margin-bottom: 20px; }
body.site-page .service-card-media { aspect-ratio: 16 / 10; border-radius: 0; }
body.site-page .service-card-head { align-items: start; }
body.site-page .service-card-head h3 { font-size: 22px; }
body.site-page .service-details-link { font-size: 16px; min-height: 40px; }
body.site-page .service-photo-caption { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 4px 9px; background: rgba(255,255,255,.94); color: #394656; font-size: 12px; border-radius: 4px; }
body.site-page .service-overview-image { min-height: 0; aspect-ratio: 4 / 3; box-shadow: none; }
body.site-page .service-overview-image::after { display: none; }
body.site-page .service-care-card { padding: 24px; box-shadow: none; }
body.site-page .reference-service-card { min-height: 270px; box-shadow: 0 5px 18px rgba(48,60,150,.08); }
body.site-page .reference-service-card::before { display: none; }
body.site-page .reference-service-card .badge { font-size: 18px; }
body.site-page .doctor-card-body h2 { font-size: 23px; }
body.site-page .doctor-directory-filters { display: grid; grid-template-columns: 2fr 1fr auto; gap: 16px; align-items: end; padding-bottom: 28px; }
body.site-page .doctor-directory-filters label { display: grid; gap: 6px; }

/* The native dialog traps focus and keeps the underlying page inactive. */
body.site-page dialog.clinic-popup-layer { width: min(940px, calc(100% - 32px)); max-width: 940px; max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 0; border-radius: 8px; color: #263349; background: #fff; box-shadow: 0 24px 90px #0006; overflow: auto; }
body.site-page dialog.clinic-popup-layer:not([open]) { display: none; }
body.site-page dialog.clinic-popup-layer[open] { display: block; }
body.site-page dialog.clinic-popup-layer::backdrop { background: rgba(16,24,48,.66); }
body.site-page .clinic-popup-dialog { position: relative; }
body.site-page .clinic-popup-close { position: sticky; top: 12px; float: right; z-index: 3; width: 44px; height: 44px; margin: 12px 12px -56px 0; border: 1px solid #dce3e8; border-radius: 50%; display: grid; place-items: center; background: white; color: #25304a; cursor: pointer; box-shadow: 0 2px 8px #0002; }
body.site-page .clinic-popup-close svg { width: 23px; height: 23px; }
body.site-page .clinic-popup-card { display: none; }
body.site-page .clinic-popup-card.is-active { display: grid; grid-template-columns: 1.05fr 1fr; }
body.site-page .clinic-popup-card[hidden], body.site-page .clinic-popup-next[hidden] { display: none; }
body.site-page .clinic-popup-media { background: #edf4ef; display: grid; align-items: center; min-width: 0; }
body.site-page .clinic-popup-media img { width: 100%; max-height: 76dvh; object-fit: contain; display: block; }
body.site-page .clinic-popup-media iframe, body.site-page .clinic-popup-media video { width: 100%; aspect-ratio: 16 / 9; border: 0; }
body.site-page .clinic-popup-copy { padding: 64px 32px 32px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
body.site-page .clinic-popup-copy h2 { margin: 18px 0 14px; font-size: 30px; line-height: 1.2; }
body.site-page .clinic-popup-copy p { font-size: 17px; line-height: 1.65; margin: 0 0 24px; }
body.site-page .clinic-popup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; }
body.site-page .clinic-popup-next { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 0; border: 0; background: none; color: #303c96; font: inherit; cursor: pointer; }
body.site-page .clinic-popup-next svg { width: 18px; height: 18px; }
body.site-page .clinic-popup-count { flex-basis: 100%; font-size: 14px; color: #606b7d; }
body.site-page .clinic-popup-alert-visual { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 35px; text-align: center; color: #267232; }
body.site-page .clinic-popup-alert-visual svg { width: 76px; height: 76px; }
@media (max-width: 760px) {
    body.site-page main h1 { font-size: 32px; }
    body.site-page main h2 { font-size: 27px; }
    body.site-page .section { padding-top: 36px; padding-bottom: 36px; }
    body.site-page .services-visual-hero, body.site-page .service-story-hero, body.site-page .page-hero, body.site-page .story-detail-hero, body.site-page .media-tour-hero { min-height: 310px; padding: 36px 0; }
    body.site-page .service-category-grid { gap: 10px; }
    body.site-page .service-category-body { padding: 12px; grid-template-columns: 1fr; gap: 8px; }
    body.site-page .service-category-body strong { font-size: 16px; }
    body.site-page .service-category-icon { display: none; }
    body.site-page .service-department-heading h2 { font-size: 25px; }
    body.site-page .services-card-grid { grid-template-columns: 1fr; }
    body.site-page .doctor-directory-filters { grid-template-columns: 1fr; }
    body.site-page .clinic-popup-card.is-active { grid-template-columns: 1fr; }
    body.site-page .clinic-popup-media img { max-height: 42dvh; }
    body.site-page .clinic-popup-copy { padding: 24px; }
    body.site-page .clinic-popup-copy h2 { font-size: 26px; }
    body.site-page .clinic-popup-alert-visual { min-height: 160px; padding: 24px; }
    body.site-page .clinic-popup-alert-visual svg { width: 44px; height: 44px; }
    body.site-page .clinic-popup-actions .button { width: 100%; }
}
