html:root[lang] .nav .brand.balanced-header-brand{width:min(445px,35vw);max-width:445px;align-items:stretch;flex-shrink:1;min-width:0}
html:root[lang] .nav .brand.balanced-header-brand:has(.localized-brand-logo) .header-logo-parts{display:flex;align-items:center;gap:0;width:100%;max-width:none;overflow:visible}
html:root[lang] .nav .brand .header-logo-symbol{width:30%;height:auto;flex:none;display:block}
html:root[lang] .nav .brand .header-logo-wordmark.localized-brand-logo{width:70%;height:auto;aspect-ratio:580.777/126;max-width:none;flex:none;display:block;object-fit:fill;padding:0}

@media(min-width:641px) and (max-width:1199px){
  html:root[lang] .nav .brand.balanced-header-brand{
    width:min(560px,calc(100% - 250px))!important;
    max-width:560px!important;
    flex:0 1 auto!important;
  }
  html:root[lang] .nav .brand.balanced-header-brand .header-logo-symbol{width:30%!important;max-width:30%!important}
  html:root[lang] .nav .brand.balanced-header-brand .header-logo-wordmark{width:70%!important;max-width:70%!important}
}

/* Keep the actions at their natural size and let only the brand share the remaining space. */
@media(max-width:640px){
  html:root[lang] .nav>.wrap:has(.balanced-header-brand){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:4px!important;
    padding-inline:6px!important;
  }
  html:root[lang] .nav .brand.balanced-header-brand{
    width:100%!important;
    max-width:330px!important;
    margin:0!important;
    align-items:stretch!important;
  }
  html:root[lang] .nav .brand.balanced-header-brand .header-logo-symbol{
    width:30%!important;
    max-width:30%!important;
  }
  html:root[lang] .nav .brand.balanced-header-brand .header-logo-wordmark{
    width:70%!important;
    max-width:70%!important;
  }
  html:root[lang] .nav>.wrap:has(.balanced-header-brand) .nav-right{
    width:auto!important;
    justify-content:flex-end;
    margin:0;
  }
}

@media(min-width:1200px){
  .nav>.wrap:has(.balanced-header-brand) .nav-links{
    flex-wrap:nowrap;
    white-space:nowrap;
  }
  .nav>.wrap:has(.balanced-header-brand) .nav-links a[href="/contact/#book"]{
    display:none;
  }
}

/* The language chooser travels with the page; the title bar remains sticky. */
.homepage-language-bar .wrap{
  min-height:59px;
}
@media(max-width:640px){
  .homepage-language-bar .top-language-links{
    display:flex!important;
    justify-content:space-between;
    width:100%;
    gap:2px;
  }
  .homepage-language-bar>.wrap{grid-template-columns:minmax(0,1fr)}
}

.hero .hero-recognition{margin:0 0 .75rem}

.office-advantage{background:#f7f5ee;padding:clamp(36px,6vw,74px) 0;color:#153838}
.office-advantage h2{font-size:clamp(1.9rem,4vw,2.8rem);margin:0 0 .4rem}
.office-advantage-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;margin-top:22px}
.office-advantage-grid>a{display:flex;flex-direction:column;gap:.65rem;min-width:0;padding:20px;border:1px solid #cadbd4;border-radius:12px;background:#fff;color:#153838;text-decoration:none;box-shadow:0 3px 12px #1538380a}
.office-advantage-grid>a:hover,.office-advantage-grid>a:focus-visible{border-color:#347e71;background:#eff8f4}
.office-advantage-grid h3,.office-advantage-grid p{margin:0}
.office-advantage-grid>a>span{margin-top:auto;color:#24695d;font-weight:700;text-decoration:underline;text-underline-offset:3px}

/* Leave headings free to wrap when text is enlarged for accessibility. */
h2.homepage-compact-heading.homepage-compact-heading{font-size:clamp(1.125rem,5.5vw,2.8rem)}

.spanish-visit-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:1rem}
.spanish-visit-actions .btn{width:auto;min-height:44px;padding:8px 14px}
.spanish-visit-actions a[href^="tel:"]{color:#fff;border:1px solid #eaf5f2;background:transparent}

/* Related treatment choices pair a short explanation with the applicable guides. */
.treatment-choice{background:#eaf3ef;scroll-margin-top:105px}
.treatment-choice .homepage-compact-heading.homepage-compact-heading{font-size:clamp(1.05rem,5.1vw,2.8rem)}
.treatment-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:14px;margin-top:18px}
.treatment-choice-grid article{background:#fff;border:1px solid #cadbd4;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:8px}
.treatment-choice-grid h3,.treatment-choice-grid p{margin:0}
.treatment-choice-grid ul{padding-inline-start:1.2rem;margin:auto 0 0}
.treatment-choice-grid a{display:inline-flex;align-items:center;min-height:32px;color:#24695d;font-weight:700;text-decoration:underline;text-underline-offset:.2em}
