/* Final hybrid layer: the supplied multipage prototype owns the shell and home page;
   the existing source-backed templates own long-form and multilingual content. */
:root{
  --font-head:'Montserrat','Segoe UI',system-ui,sans-serif;
  --font-body:'Montserrat','Segoe UI',system-ui,sans-serif;
}

body{font-family:var(--font-body);padding-top:0}
h1,h2,h3,h4,.btn,.nav-link{font-family:var(--font-head)}
.site-header{top:env(safe-area-inset-top,0);transform:none!important}
.mobile-shell{overflow:hidden}
.mobile-shell:not(.is-open){display:none}
.site-header.is-scrolled .main-header{box-shadow:0 12px 30px -22px rgba(3,31,66,.38)}
.main-header,.utility-bar{transform:none!important}
.utility-bar{display:block;height:59px;min-height:59px}
.main-header{height:111px;min-height:111px}
body.header-compact .utility-bar{height:59px;min-height:59px;opacity:1;visibility:visible;pointer-events:auto}
body.header-compact .main-header{height:111px;min-height:111px}
.utility-bar .container{max-width:1475px;min-height:59px;padding-inline:0;flex-wrap:nowrap}
.utility-bar .util-left,.utility-bar .util-right{flex-wrap:nowrap}
.utility-bar .lang-toggle{width:111px;min-height:44px;justify-content:center;padding:8px 13px;font-size:14px}
.utility-bar .util-cta,.utility-bar .util-item{font-size:16px;line-height:1.35}
.utility-bar .util-phone{font-size:17px}
.utility-bar .util-right{gap:18px}
.utility-bar .util-right .util-item+.util-item{padding-left:20px}
.main-header{background:#fff;border-bottom-color:#d8e3f4}
.main-header .container{max-width:1580px;min-height:111px;padding-inline:0;gap:0}
.main-header .brand{margin-right:0}
.main-header .brand-logo{width:auto;height:40px}
.main-header .primary-nav{margin-left:32px}
.main-header .primary-nav>ul{gap:0}
.main-header .nav-link{padding:12px 13px;font-size:17px;font-weight:600}
.main-header .header-actions{gap:14px}
.main-header .header-actions .btn--primary{width:244px;height:62px;min-height:62px;padding-inline:26px;border-radius:17px;font-size:18px;line-height:1}
.main-header .header-call{width:61px;height:61px;min-width:61px;max-width:61px;padding:0}
.main-header .header-call .icon{width:24px;height:24px}
.nav-link[aria-current="page"]{color:var(--blue);background:var(--bg-cool)}
.mega::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
.frame>.media-picture,.frame>.media-picture img{width:100%;height:100%}
.frame>.media-picture img{object-fit:cover}
.hero-media .prototype-hero-picture img{object-position:center 28%}
.profile-media .prototype-profile-picture img{object-position:center 20%}
.media-card .prototype-media-picture{display:block;width:100%;height:100%}
.site-footer{padding:0}
.site-footer .container{max-width:1500px;padding-inline:0}
.site-footer .footer-top{min-height:435px;grid-template-columns:380px 260px 260px minmax(0,1fr);column-gap:81px;padding:90px 0}
.site-footer .footer-brand .brand{gap:15px;margin:0}
.site-footer .footer-brand-logo{display:block;width:auto;max-width:100%;height:40px;object-fit:contain;object-position:left center}
.site-footer .footer-brand .brand-mark{width:53px;height:53px;border-radius:15px}
.site-footer .footer-brand .brand-mark .icon{width:29px;height:29px}
.site-footer .footer-brand .brand-name{font-size:20px;line-height:1.2;letter-spacing:-.02em}
.site-footer .footer-brand .brand-sub{margin-top:6px;font-size:11px;letter-spacing:.18em}
.site-footer .footer-brand p{max-width:380px;margin-top:25px;font-size:18px;line-height:1.7}
.site-footer .footer-brand .f-phone{margin-top:25px;gap:12px;font-size:20px;font-weight:700}
.site-footer .footer-brand .f-phone .icon{width:20px;height:20px}
.site-footer .footer-col h4{margin-bottom:20px;font-size:17px;line-height:1.3;letter-spacing:.14em;font-weight:700}
.site-footer .footer-col ul{gap:13px;font-size:18px;line-height:1.75}
.site-footer .footer-col.contact p{max-width:360px;margin-bottom:18px;font-size:18px;line-height:1.7}
.site-footer .footer-col.contact{display:flex;flex-direction:column;align-items:flex-start}
.site-footer .footer-lang{margin-bottom:19px;font-size:17px}
.site-footer .footer-lang .icon{width:18px;height:18px}
.site-footer .footer-col.contact .btn{min-width:214px;height:57px;min-height:57px;padding:15px 30px;border-radius:17px;font-size:18px;line-height:1}
.site-footer .footer-bottom{min-height:76px;margin-top:0;padding:20px 0;gap:14px 26px}
.footer-bottom .legal{display:flex;flex-wrap:wrap;gap:8px 28px;font-size:16px}
.site-footer .footer-bottom .copy{font-size:16px}

/* The supplied home page has no decorative bottom oval. */
.care-approach::after,.care-approach .curve-bottom{display:none!important}

/* Treatment reader: content first, compact right rail, TOC first and sticky. */
.treatment-reading-grid{
  display:grid;
  grid-template-columns:minmax(0,760px) 292px;
  gap:56px;
  justify-content:center;
  align-items:start;
}
.treatment-rail{display:block;min-width:0;align-self:stretch}
.treatment-rail-stack{
  position:sticky;
  top:144px;
  display:grid;
  gap:14px;
  max-height:calc(100vh - 164px);
  overflow:auto;
  scrollbar-gutter:stable;
  padding:2px 2px 18px;
}
.treatment-rail .toc-card{position:static;max-height:none;overflow:visible}
.toc-primary{border-top:3px solid var(--teal);box-shadow:0 18px 44px rgba(3,31,66,.10)}
.rail-collapsible{display:block;padding:0;overflow:hidden}
.rail-collapsible>summary{
  min-height:54px;
  padding:13px 17px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--navy);
  font-size:15px;
  font-weight:750;
  cursor:pointer;
  list-style:none;
}
.rail-collapsible>summary::-webkit-details-marker{display:none}
.rail-collapsible>summary .chev{width:17px;height:17px;transition:transform var(--t)}
.rail-collapsible[open]>summary .chev{transform:rotate(180deg)}
.toc-primary nav{max-height:clamp(210px,34vh,340px);overflow:auto;padding:0 12px 14px;scrollbar-gutter:stable}
.toc-primary nav a{min-height:46px}
.treatment-switcher>nav{display:grid;padding:0 12px 14px}
.treatment-switcher>nav>a{min-height:48px;padding:10px 8px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;color:var(--ink-2);font-size:14px;font-weight:650;line-height:1.35}
.treatment-switcher>nav>a:hover{color:var(--blue);background:var(--bg-soft)}
.treatment-switcher>nav .rail-all{margin-top:8px;color:var(--blue);font-weight:750}
.rail-contact{margin-top:0}
.rail-contact .button{width:100%}
.article>section{scroll-margin-top:148px}

/* Source pages keep their original components, but inherit the cleaner shell. */
.page-hero-inner{display:block}
.page-hero .breadcrumb{margin-top:20px;margin-bottom:0}
.treatment-hero .breadcrumb{margin-bottom:0}
.medical-note{font-family:var(--font-body)}
.article,.source-body{overflow-wrap:anywhere}

@media (max-width:1600px){
  /* Compact desktop: keep the desktop navigation visible at laptop widths and
     browser zoom levels instead of switching the whole header to tablet mode. */
  .utility-bar,.utility-bar .container,body.header-compact .utility-bar{height:48px;min-height:48px}
  .utility-bar .container{width:100%;max-width:1200px;padding-inline:0}
  .utility-bar .lang-toggle{width:92px;min-height:36px;padding:6px 10px;font-size:13px}
  .utility-bar .util-cta,.utility-bar .util-item{font-size:13px}
  .utility-bar .util-phone{font-size:14px}

  .main-header,body.header-compact .main-header{height:91px;min-height:91px}
  .main-header .container{width:100%;max-width:1300px;min-height:91px;padding-inline:0}
  .main-header .brand-logo{height:31px}
  .main-header .primary-nav{margin-left:36px}
  .main-header .nav-link{padding:9px 11px;font-size:15px}
  .main-header .header-actions{gap:12px}
  .main-header .header-actions .btn--primary{width:200px;height:50px;min-height:50px;padding-inline:20px;border-radius:14px;font-size:15px}
  .main-header .header-call{width:48px;height:48px;min-width:48px;max-width:48px}
  .main-header .header-call .icon{width:22px;height:22px}

  .site-footer .container{width:100%;max-width:1220px;padding-inline:0}
  .site-footer .footer-top{min-height:355px;grid-template-columns:310px 210px 210px minmax(0,1fr);column-gap:68px;padding:72px 0}
  .site-footer .footer-brand .brand{gap:12px}
  .site-footer .footer-brand-logo{height:32px}
  .site-footer .footer-brand .brand-mark{width:42px;height:42px;border-radius:12px}
  .site-footer .footer-brand .brand-mark .icon{width:24px;height:24px}
  .site-footer .footer-brand .brand-name{font-size:16px}
  .site-footer .footer-brand .brand-sub{margin-top:4px;font-size:10px}
  .site-footer .footer-brand p{max-width:310px;margin-top:19px;font-size:15px;line-height:1.7}
  .site-footer .footer-brand .f-phone{margin-top:19px;gap:10px;font-size:16px}
  .site-footer .footer-brand .f-phone .icon{width:17px;height:17px}
  .site-footer .footer-col h4{margin-bottom:16px;font-size:14px}
  .site-footer .footer-col ul{gap:10px;font-size:15px;line-height:1.7}
  .site-footer .footer-col.contact p{max-width:290px;margin-bottom:14px;font-size:15px;line-height:1.7}
  .site-footer .footer-lang{margin-bottom:15px;font-size:14px}
  .site-footer .footer-lang .icon{width:16px;height:16px}
  .site-footer .footer-col.contact .btn{min-width:174px;height:46px;min-height:46px;padding:12px 24px;border-radius:14px;font-size:15px}
  .site-footer .footer-bottom{min-height:62px;padding:16px 0}
  .footer-bottom .legal,.site-footer .footer-bottom .copy{font-size:13px}
}

@media (max-width:1199px){
  .primary-nav{display:none}
  .nav-toggle{display:inline-flex}
}

@media (max-width:1279px){
  .utility-bar .util-item,.utility-bar .util-cta{font-size:13px}
  .treatment-reading-grid{grid-template-columns:minmax(0,720px) 260px;gap:38px}
  .treatment-rail-stack{top:138px}
}

@media (max-width:1100px){
  .site-footer .footer-top{grid-template-columns:1fr 1fr;gap:44px 56px;min-height:0;padding:64px 0}
  .site-footer .footer-brand{grid-column:1/-1}
}

@media (max-width:1023px){
  body{padding-top:0;padding-bottom:100px}
  .treatment-reading-grid{display:block;max-width:800px}
  .treatment-rail{display:none}
  .mobile-actions{
    position:fixed;
    left:14px;
    right:14px;
    bottom:max(12px,env(safe-area-inset-bottom));
    z-index:1200;
    min-height:68px;
    padding:8px;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    background:rgba(255,255,255,.96);
    border:1px solid var(--line-2);
    border-radius:16px;
    box-shadow:0 16px 44px rgba(3,31,66,.22);
    backdrop-filter:blur(14px);
    transform:translateY(calc(100% + 32px));
    transition:transform .22s var(--ease);
  }
  .mobile-actions.visible{transform:translateY(0)}
  .mobile-reader-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mobile-actions>a,.mobile-actions>button{
    min-width:0;
    min-height:54px;
    padding:6px 8px;
    border:1.5px solid var(--navy);
    border-radius:11px;
    background:#fff;
    color:var(--navy);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    font-size:13px;
    font-weight:750;
    text-align:center;
  }
  .mobile-actions>a:nth-child(2){background:var(--navy);color:#fff}
  .mobile-reader-actions>button{background:var(--teal);border-color:var(--teal);color:var(--navy-900)}
  .mobile-actions .icon{width:19px;height:19px}
  .article>section{scroll-margin-top:86px}
}

@media (max-width:767px){
  .container{padding-inline:0;width:calc(100% - 40px)}
  .hero .container,.contact-band .container,.profile .container,.care-approach .container,.treatments .container,.media .container,.contact .container,.site-footer .container{width:calc(100% - 40px);padding-inline:0}
  .utility-bar .container,.main-header .container{width:100%;padding-inline:20px}
  .utility-bar .container{min-height:52px}
  .utility-bar .lang-toggle{width:auto;min-width:86px;min-height:38px}
  .main-header .container{min-height:72px}
  .utility-bar,body.header-compact .utility-bar{height:52px;min-height:52px}
  .main-header,body.header-compact .main-header{height:72px;min-height:72px}
  .main-header .brand-logo{height:28px}
  .util-left .util-cta,.util-right>.util-item:not(.util-phone){display:none}
  .util-right .util-phone{padding-left:0;border-left:0}
  .mobile-reader-actions>a,.mobile-reader-actions>button{padding-inline:4px;font-size:12px}
  .mobile-reader-actions span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .contents-dialog{width:calc(100% - 24px);margin:auto 12px max(12px,env(safe-area-inset-bottom));border-radius:22px}
  .site-footer .footer-top{grid-template-columns:1fr;gap:38px;padding:52px 0}
  .site-footer .footer-brand{grid-column:auto}
  .site-footer .footer-bottom{align-items:flex-start}
}

@media (max-width:359px){
  .container,.hero .container,.contact-band .container,.profile .container,.care-approach .container,.treatments .container,.media .container,.contact .container,.site-footer .container{width:calc(100% - 32px)}
  .utility-bar .container,.main-header .container{width:100%;padding-inline:16px}
  .mobile-actions{left:10px;right:10px;gap:5px}
  .mobile-reader-actions>a,.mobile-reader-actions>button{font-size:11px}
}
