/* Equal-height homepage actions use the tallest translated label, without clipping text. */
body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__actions{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;justify-items:start;align-items:stretch;gap:12px;margin-top:28px}
body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__actions>a{display:flex;align-items:center;justify-content:space-between;gap:16px;box-sizing:border-box;width:fit-content;max-width:100%;min-height:52px;margin:0;padding:12px 20px;border:1px solid var(--bright-ink,#24343d);border-radius:8px;background:var(--bright-ink,#24343d);color:#fff;font:650 16px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;text-align:start;text-decoration:none;white-space:normal;overflow-wrap:break-word}
body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__actions>a:hover{background:#111d24;border-color:#111d24;color:#fff}
body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__actions>a:focus-visible{outline:3px solid #356f9e;outline-offset:4px}
body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__actions>a>span{flex:0 0 auto}
/* The new source is upright. Its framing keeps the clinician and microscope in view. */
body .clinic-home-refresh .clinic-home-hero .clinic-microscope-photo>img{position:absolute;inset:0;display:block;width:100%;max-width:100%;height:100%;transform:none;object-fit:cover;object-position:50% 75%}
@media(max-width:767px){body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__actions{margin-top:24px}body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__actions>a{width:100%;padding:12px 16px}}
/* Increase the reception photo from340px to510px and use the space at the left. */
@media(min-width:1200px){body .clinic-home-refresh section.clinic-about-section>.container>.row{grid-template-columns:minmax(0,510px) minmax(0,1fr)}body .clinic-home-refresh section.clinic-about-section .about-one__left{width:510px;max-width:100%;margin-inline-start:0!important;margin-inline-end:0!important}}

/* Keep the fixed social controls clear of action labels on narrow desktop screens. */
@media(min-width:1200px) and (max-width:1399px){:root:not([dir=rtl]) body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__actions{margin-inline-start:64px}}

/* Home service paragraph only: slightly larger, justified; identity/location labels retain their existing styles. */
body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__service{font-size:18px;line-height:1.65;text-align:justify;text-justify:inter-word;text-align-last:start}
/* Homepage institution heading spans both desktop columns. DOM order remains heading, photo, copy. */
body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__grid>h1{width:100%;max-width:none;margin:0;min-width:0}
@media(min-width:992px){
 body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__grid{grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);row-gap:24px}
 body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__grid>h1{grid-column:1/-1;grid-row:1;font-size:clamp(28px,2.8vw,48px);white-space:nowrap}
 body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__grid>.clinic-home-hero__copy{grid-column:1;grid-row:2}
 body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__grid>.clinic-home-hero__visual{grid-column:2;grid-row:2}
 html:is([lang|=de],[lang|=ru],[lang|=fr]) body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__grid>h1{font-size:clamp(28px,2.8vw,42px)}
}
@media(max-width:991px){
 body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__grid>h1{grid-column:1;grid-row:1;order:0;white-space:normal}
 body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__grid>.clinic-home-hero__visual{grid-column:1;grid-row:2;order:1}
 body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__grid>.clinic-home-hero__copy{grid-column:1;grid-row:3;order:2}
}

/* Reversible desktop homepage symmetry trial. Image pixels, framing transforms and carousel behavior are unchanged. */
@media(min-width:992px){
 body .clinic-home-refresh{--home-symmetry-gap:clamp(32px,4vw,64px)}
 body .clinic-home-refresh section.clinic-home-hero>.container,
 body .clinic-home-refresh section.clinic-about-section>.container,
 body .clinic-home-refresh section.clinic-home-bio>.container,
 body .clinic-home-refresh section.clinic-home-microscopy>.container,
 body .clinic-home-refresh #patient-home-faq>.container{box-sizing:border-box;width:min(1280px,calc(100% - 160px));max-width:1280px;padding-inline:0;margin-inline:auto}
 body .clinic-home-refresh section.clinic-home-hero>.clinic-home-hero__grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--home-symmetry-gap);row-gap:24px}
 body .clinic-home-refresh section.clinic-about-section>.container>.row,
 body .clinic-home-refresh section.clinic-home-bio>.container>.row,
 body .clinic-home-refresh section.clinic-home-microscopy>.container>.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--home-symmetry-gap);align-items:center;margin-inline:0}
 body .clinic-home-refresh section.clinic-about-section>.container>.row>[class*="col-"],
 body .clinic-home-refresh section.clinic-home-bio>.container>.row>[class*="col-"],
 body .clinic-home-refresh section.clinic-home-microscopy>.container>.row>[class*="col-"]{width:auto;max-width:none;min-width:0;padding-inline:0;flex:none}
 body .clinic-home-refresh section.clinic-about-section .about-one__left{width:100%;max-width:none;margin:0!important}
 body .clinic-home-refresh section.clinic-about-section .about-one__img{display:flex;justify-content:center;align-items:center;width:100%;margin:0}
 body .clinic-home-refresh section.clinic-about-section .clinic-reception-photo{width:100%;height:auto;max-width:100%;object-fit:contain}
 body .clinic-home-refresh section:is(.clinic-home-bio,.clinic-home-microscopy) .benefits-one__left,
 body .clinic-home-refresh section:is(.clinic-home-bio,.clinic-home-microscopy) .benefits-one__right{width:100%;min-width:0;margin:0}
 body .clinic-home-refresh section:is(.clinic-home-bio,.clinic-home-microscopy) .benefits-one__img{display:flex;justify-content:center;align-items:center;width:100%;max-width:none;margin:0}
 body .clinic-home-refresh section.clinic-home-bio .benefits-one__img>img{width:auto;height:auto;max-width:100%;max-height:380px;object-fit:contain;margin-inline:auto}
 body .clinic-home-refresh section.clinic-home-microscopy .benefits-one__img>.clinic-microscope-photo{width:100%;max-width:100%;margin-inline:auto}
}

/* Desktop homepage FAQ follows the shared two-column centerline. Native details behavior is retained. */
@media(min-width:992px){
 body .clinic-home-refresh #patient-home-faq>.container{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--home-symmetry-gap,48px);row-gap:16px;align-items:start}
 body .clinic-home-refresh #patient-home-faq>.container>h2,
 body .clinic-home-refresh #patient-home-faq>.container>.patient-home-faq__all-link,
 body .clinic-home-refresh #patient-home-faq>.container>.patient-faq-topics,
 body .clinic-home-refresh #patient-home-faq>.container>.patient-home-faq__more{grid-column:1/-1;min-width:0}
 body .clinic-home-refresh #patient-home-faq>.container>.patient-home-faq__all-link{justify-self:start}
 body .clinic-home-refresh #patient-home-faq .patient-home-faq__item{min-width:0;margin:0}
 body .clinic-home-refresh #patient-home-faq .patient-home-faq__item>summary{min-height:94px;box-sizing:border-box}
 body .clinic-home-refresh #patient-home-faq .patient-home-faq__more[open]>.patient-home-faq__remaining{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--home-symmetry-gap,48px);row-gap:16px;align-items:start}
}

/* The shared desktop gutter clears the fixed social rail, so the old action offset is no longer needed. */
@media(min-width:1200px) and (max-width:1399px){:root:not([dir=rtl]) body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__actions{margin-inline-start:0}}
/* Center the institution and identity headings; service prose and location keep their existing alignment. */
body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__grid>h1,
body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__doctor,
body .clinic-home-refresh section.clinic-about-section .section-title__title,
body .clinic-home-refresh section.clinic-home-bio .section-title__title,
body .clinic-home-refresh section.clinic-home-microscopy .section-title__title,
body .clinic-home-refresh #patient-home-faq>.container>h2{width:100%;text-align:center}
/* Cards keep their original carousel geometry. Approved clinical crops fit inside a common photo viewport at every width. */
@media(min-width:992px){
 body .clinic-home-refresh section.home-cases>.container{box-sizing:border-box;width:min(1440px,calc(100% - 160px));max-width:1440px;padding-inline:0;margin-inline:auto}
}
 body .clinic-home-refresh .home-cases--carousel.has-home-case-photos .home-cases__media:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto}
 body .clinic-home-refresh .home-cases--carousel .home-cases__media::before{content:"";display:block;grid-area:1/1;width:100%;aspect-ratio:3/2}
 body .clinic-home-refresh .home-cases--carousel .home-cases__media>.clinical-source-frame{grid-area:1/1;align-self:center;justify-self:center;width:min(100%,calc(100% * var(--cs-aspect) / 1.5));height:auto;aspect-ratio:var(--cs-aspect)}
 body .clinic-home-refresh .home-cases--carousel .home-cases__media>img{grid-area:1/1;width:100%;height:100%;min-height:0;max-height:100%;aspect-ratio:auto!important;object-fit:contain}
 body .clinic-home-refresh .home-cases--carousel .home-cases__media>figcaption{grid-area:2/1;box-sizing:border-box;min-height:66px;align-content:center;align-items:center}

/* Home-only stylesheet: reuse the existing localized tablet header where long desktop labels collide. */
@media(min-width:1200px) and (max-width:1439px){
 body.localized-clinic .page-wrapper>.localized-desktop-header{display:none!important}
 body.localized-clinic .page-wrapper>.localized-mobile-header{display:block!important;position:relative;inset:auto;z-index:40;width:100%;border-bottom:1px solid #426075}
 body.localized-clinic .page-wrapper>.localized-mobile-header>.container{box-sizing:border-box;width:min(1170px,calc(100% - 40px));max-width:1170px;margin-inline:auto}
 body.localized-clinic .page-wrapper>.localized-mobile-header .localized-mobile-header__row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:58px auto;align-items:center;column-gap:20px;row-gap:0;min-height:78px;padding-block:10px;box-sizing:border-box}
 body.localized-clinic .page-wrapper>.localized-mobile-header .localized-mobile-header__row>.localized-mobile-header__logo{grid-column:1;grid-row:1;justify-self:start;display:inline-flex;align-items:center;flex-shrink:0}
 body.localized-clinic .page-wrapper>.localized-mobile-header .localized-mobile-header__logo img{display:block;width:144px;height:auto;max-width:100%}
 body.localized-clinic .page-wrapper>.localized-mobile-header .localized-mobile-header__row>.localized-language{grid-column:2;grid-row:1;min-width:0}
 body.localized-clinic .page-wrapper>.localized-mobile-header .localized-language>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 16px;box-sizing:border-box;white-space:nowrap}
 body.localized-clinic .page-wrapper>.localized-mobile-header .localized-mobile-header__row>.clinic-header-panel-link{display:none}
 body.localized-clinic .page-wrapper>.localized-mobile-header .localized-mobile-header__row>.localized-mobile-nav{grid-column:1/-1;grid-row:2;width:100%;min-width:0;padding-bottom:10px}
 body.localized-clinic .page-wrapper>.localized-mobile-header .localized-mobile-nav>summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:12px 16px;box-sizing:border-box;border:1px solid #638095;border-radius:4px;background:#24485f;color:#fff;cursor:pointer;list-style:none;font-size:17px;line-height:1.4}
 body.localized-clinic .page-wrapper>.localized-mobile-header .localized-mobile-nav>summary::-webkit-details-marker{display:none}
 body.localized-clinic .page-wrapper>.localized-mobile-header .localized-mobile-nav>summary::marker{content:""}
 body.localized-clinic .page-wrapper>.localized-mobile-header .localized-mobile-nav__chevron{margin-inline-start:auto}
 body.localized-clinic .page-wrapper>.localized-mobile-header .localized-mobile-nav>nav{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding-block:10px 0;max-height:none;overflow:visible}
 body.localized-clinic .page-wrapper>.localized-mobile-header .localized-mobile-nav>nav>a{display:flex;align-items:center;min-height:48px;padding:12px;box-sizing:border-box;border-radius:4px;color:#253139;background:#f1f4f6;font-size:16px;line-height:1.45;text-decoration:none;overflow-wrap:anywhere}
}

/* About contact and photo-gallery actions only; labels wrap naturally on narrow screens. */
body .clinic-home-refresh section.clinic-about-section .clinic-about-actions{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px;width:100%}
body .clinic-home-refresh section.clinic-about-section .clinic-about-actions>a.about-one__btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;box-sizing:border-box;min-height:52px;height:auto;max-width:100%;margin:0;padding:12px 20px;line-height:1.5;white-space:normal;text-align:center}
body .clinic-home-refresh section.clinic-about-section .clinic-about-actions>a.about-one__btn>span{flex:none;margin:0}
@media(max-width:767px){body .clinic-home-refresh section.clinic-about-section .clinic-about-actions>a.about-one__btn{padding:12px 14px}}

/* Homepage rhythm only: retain each module's internal heading/prose/card spacing. */
body .clinic-home-refresh{--home-section-space:48px}
body .clinic-home-refresh>section.clinic-about-section,
body .clinic-home-refresh>section.clinic-home-module,
body .clinic-home-refresh>section.clinic-home-people,
body .clinic-home-refresh>section.clinic-home-people+section.clinic-home-people,
body .clinic-home-refresh>section.clinic-home-treatments,
body .clinic-home-refresh>section.home-cases,
body .clinic-home-refresh>section.clinic-home-blog,
body .clinic-home-refresh>section.home-panel,
body .clinic-home-refresh>section#patient-home-faq{padding-top:var(--home-section-space)!important;padding-bottom:var(--home-section-space)!important}
body .clinic-home-refresh>section.clinic-home-hero{padding-bottom:var(--home-section-space)!important}
body .clinic-home-refresh>section#patient-home-faq>.container{padding-bottom:0!important}
@media(min-width:992px){
 body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__copy>.clinic-home-hero__doctor{margin-top:24px;text-align:start}
 body .clinic-home-refresh .clinic-home-hero .clinic-home-hero__grid>.clinic-home-hero__visual{align-self:center;margin-block-start:24px;margin-block-end:0}
}
@media(min-width:768px) and (max-width:991px){body .clinic-home-refresh{--home-section-space:40px}}
@media(max-width:767px){body .clinic-home-refresh{--home-section-space:32px}}

/* Homepage previews alone fill equal 3:2 windows; clinical originals and full case views stay unchanged. */
body .clinic-home-refresh .home-cases--carousel.has-home-case-photos .home-cases__media:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto}
body .clinic-home-refresh .home-cases--carousel .home-cases__media::before{display:none}
body .clinic-home-refresh .home-cases--carousel .home-cases__photo-link{grid-area:1/1;display:block;align-self:stretch;color:inherit}
body .clinic-home-refresh .home-cases--carousel .home-cases__preview-viewport{position:relative;display:block;width:100%;aspect-ratio:3/2;overflow:hidden;background:#f3f5f7}
body .clinic-home-refresh .home-cases--carousel .home-cases__preview-viewport>.clinical-source-frame{position:absolute;left:50%;top:50%;width:max(100%,calc(100% * var(--cs-aspect) / 1.5));height:auto;max-width:none;aspect-ratio:var(--cs-aspect);margin:0;transform:translate(-50%,-50%)}
body .clinic-home-refresh .home-cases--carousel .home-cases__preview-viewport>img{display:block;width:100%;height:100%;aspect-ratio:3/2;object-fit:cover;object-position:center}
body .clinic-home-refresh .home-cases--carousel .home-cases__card h3 a{color:inherit;text-decoration:none}
body .clinic-home-refresh .home-cases--carousel .home-cases__card h3 a:hover{text-decoration:underline;text-underline-offset:4px}
body .clinic-home-refresh .home-cases--carousel .home-cases__photo-link:focus-visible,body .clinic-home-refresh .home-cases--carousel .home-cases__card h3 a:focus-visible{outline:3px solid #356f9e;outline-offset:-4px}
