/* Shared header addition; existing header geometry and chrome remain canonical. */
/* Hide the legacy Elementor search widget before its runtime rebuilds the header. */
:is(.aj-chrome,.sl-site) .nav-right .icon-btn[data-toast],
.sl-site .nav-right .elementor-widget-html:has(.icon-btn[data-toast]) {display:none!important}
/* The shared header owns language navigation; suppress the duplicate fixed overlay. */
body.arcline-header-language :is(.trp-floating-switcher,#trp-floater-ls),
body:has(:is(.sl-site,.aj-chrome) .nav-right .lang) :is(.trp-floating-switcher,#trp-floater-ls) {
  display: none !important;
}
:is(.aj-chrome,.sl-site) .nav-right {
  flex-direction: row !important; flex-wrap: nowrap !important;
  align-items: center !important;
}
:is(.aj-chrome,.sl-site) .nav-right .lang.elementor-widget {
  width: auto; flex: 0 0 auto;
}
:is(.aj-chrome,.sl-site) .nav-right :is(.lang.elementor-widget-button .elementor-button,button.lang) {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 32px; min-width: 28px; padding: 0 !important;
  font-size: 11px !important; line-height: 1 !important;
  background: transparent !important; color: inherit !important;
}
:is(.aj-chrome,.sl-site) .nav-right .arcline-header-whatsapp {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; min-height: 32px;
  color: inherit; font-size: 11px; font-family: inherit; font-weight: 500;
  letter-spacing: .025em; text-decoration: none; white-space: nowrap;
  transition: color .2s ease;
}
:is(.aj-chrome,.sl-site) .arcline-header-whatsapp svg { width: 17px; height: 17px; stroke-width: 1.5; flex: 0 0 auto; }
:is(.aj-chrome,.sl-site) .nav-right .arcline-header-whatsapp:hover { color: #c3a974; }
:is(.aj-chrome,.sl-site) .nav-right .arcline-header-whatsapp:focus-visible { outline: 2px solid #c3a974; outline-offset: 5px; }
@media(max-width:700px) {
  :is(.aj-chrome,.sl-site) .nav-right .arcline-header-whatsapp { font-size: 10px; gap: 4px; letter-spacing: 0; }
  :is(.aj-chrome,.sl-site) .arcline-header-whatsapp svg { width: 15px; height: 15px; }
}
@media(max-width:360px) {
  :is(.aj-chrome,.sl-site) .site-header .nav-shell {
    grid-template-columns: 40px 36px minmax(0,1fr); column-gap: 12px;
  }
}
/* Latin translations need room for longer words; Chinese geometry stays canonical. */
body:is([data-arcline-locale="en"],[data-arcline-locale="fr"]) .sl-site :is(.manifesto h2,.global-title) {
  font-size:clamp(34px,3.8vw,64px)!important;
  line-height:1.15!important;letter-spacing:-.025em!important;
  max-width:100%!important;white-space:normal!important;overflow-wrap:break-word;hyphens:auto;text-wrap:balance;
}
body:is([data-arcline-locale="en"],[data-arcline-locale="fr"]) .sl-site .global-title span {
  white-space:normal!important;
}
body:is([data-arcline-locale="en"],[data-arcline-locale="fr"]) .sl-site :is(.manifesto-grid,.global-grid)>* {min-width:0}
body:is([data-arcline-locale="en"],[data-arcline-locale="fr"]) .sl-site .manifesto-grid {gap:clamp(24px,5vw,80px)}
body:is([data-arcline-locale="en"],[data-arcline-locale="fr"]) .sl-site .global-grid {grid-template-columns:minmax(0,.82fr) minmax(0,1.28fr)}
body:is([data-arcline-locale="en"],[data-arcline-locale="fr"]) :is(.aj-cta,.sl-site .contact-band).arcline-c-banner {
  height:auto!important;min-height:280px!important;
}
body:is([data-arcline-locale="en"],[data-arcline-locale="fr"]) .arcline-c-banner .c-inner {min-height:280px;padding-top:40px;padding-bottom:40px}
body:is([data-arcline-locale="en"],[data-arcline-locale="fr"]) .arcline-c-banner .c-copy {flex:1;min-width:0}
body:is([data-arcline-locale="en"],[data-arcline-locale="fr"]) .arcline-c-banner .c-title {
  font-size:clamp(28px,2.8vw,43px)!important;line-height:1.2!important;overflow-wrap:break-word;hyphens:auto;text-wrap:balance;
}
body:is([data-arcline-locale="en"],[data-arcline-locale="fr"]) .arcline-c-banner .c-button {max-width:100%!important;white-space:normal!important;gap:24px!important;padding-top:12px!important;padding-bottom:12px!important}
body:is([data-arcline-locale="en"],[data-arcline-locale="fr"]) .arcline-c-banner .c-button::after {flex-shrink:0}
:is(.sl-site,.aj-chrome,.aj) a[data-arcline-contact="email"] {overflow-wrap:anywhere}
@media(max-width:1000px){
  body:is([data-arcline-locale="en"],[data-arcline-locale="fr"]) .sl-site .global-grid {grid-template-columns:minmax(0,1fr)}
  body:is([data-arcline-locale="en"],[data-arcline-locale="fr"]) .sl-site :is(.manifesto h2,.global-title) {font-size:clamp(30px,5vw,48px)!important}
}
@media(max-width:900px){
  body:is([data-arcline-locale="en"],[data-arcline-locale="fr"]) .arcline-c-banner .c-inner {min-height:380px}
  body:is([data-arcline-locale="en"],[data-arcline-locale="fr"]) .arcline-c-banner .c-copy {flex:0 1 auto;width:100%;box-sizing:border-box}
}

/* Keep the mobile brand centered; contact and language each own a tap target. */
@media(max-width:700px){
 html body :is(.aj-chrome,.sl-site) .site-header .nav-shell{display:grid!important;grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr)!important;column-gap:12px!important;padding-inline:12px!important}
 html body :is(.aj-chrome,.sl-site) .site-header :is(.nav-left,.nav-right){min-width:0}
 html body :is(.aj-chrome,.sl-site) .site-header .brand{justify-self:center;justify-content:center;width:36px;min-width:36px;gap:0}
 html body :is(.aj-chrome,.sl-site) .site-header .brand-name{display:none!important}
 html body :is(.aj-chrome,.sl-site) .site-header .brand-mark{width:36px;height:36px;flex:none}
 html body :is(.aj-chrome,.sl-site) .site-header .nav-right{justify-content:flex-end;gap:4px!important}
 html body :is(.aj-chrome,.sl-site) .site-header .nav-right :is(.quote-short,.icon-btn){display:none!important}
 html body :is(.aj-chrome,.sl-site) .site-header .nav-right .arcline-header-whatsapp{display:inline-flex!important;justify-content:center;width:44px;height:44px;min-height:44px;flex:0 0 44px;gap:0}
 html body :is(.aj-chrome,.sl-site) .site-header .arcline-header-whatsapp>span{display:none!important}
 html body :is(.aj-chrome,.sl-site) .site-header .arcline-header-whatsapp svg{width:18px;height:18px;flex:none}
 html body :is(.aj-chrome,.sl-site) .site-header .nav-right .lang{display:inline-flex!important;justify-content:center;align-items:center;min-width:44px;min-height:44px;flex:0 0 44px}
 html body :is(.aj-chrome,.sl-site) .site-header .nav-right .lang.elementor-widget .elementor-button{min-height:44px;min-width:44px}
}
