/* GENESIS true16.20 — Interface Stability & Noise Reduction */
:root{--p11-header-h:80px;--p11-safe-bottom:22px}
html{scrollbar-gutter:stable;overflow-x:clip}
body.s16-site{overflow-x:clip}

/* One stable topbar: no scroll transforms, no height shifts, no compressed links. */
body.s16-site header#header{
  position:fixed!important;inset:0 0 auto 0!important;
  min-height:var(--p11-header-h)!important;height:var(--p11-header-h)!important;
  transform:none!important;translate:none!important;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease!important;
  z-index:100!important;contain:layout paint style;
}
body.s16-site header#header nav{height:100%;padding-block:0!important;width:min(1480px,calc(100% - 32px))!important}
body.s16-site header#header nav>div:first-child{height:100%;min-height:0!important;gap:20px!important;flex-wrap:nowrap!important}
body.s16-site header#header .logo-container{flex:0 0 auto;display:flex;align-items:center}
body.s16-site header#header .logo-container img{height:50px!important;max-height:50px!important;width:auto!important}
body.s16-site header#header nav .hidden.lg\:flex{min-width:0;flex:1 1 auto;justify-content:center;gap:clamp(14px,1.35vw,28px)!important;white-space:nowrap}
body.s16-site header#header .nav-link{font-size:clamp(.69rem,.68vw,.82rem)!important;line-height:1!important;flex:0 0 auto}
body.s16-site header#header .s16-header-actions{flex:0 0 auto;white-space:nowrap}
body.s16-site main{isolation:isolate}

/* Dedicated pages remain the authority. Remove the permanent floating stack. */
.p6-journey-launch,
.p7-trust-switch,
.p8-launch-button,
.p8-status-panel,
.p9-evidence-link,
.p10-dock{display:none!important}

/* Keep only one calm conversion action. */
.s16-demo-dock{
  right:22px!important;bottom:22px!important;z-index:60!important;
  max-width:min(330px,calc(100vw - 44px));
  box-shadow:0 14px 38px rgba(0,0,0,.22)!important;
  transform:none!important;transition:border-color .18s ease,background-color .18s ease!important;
}
html[dir="rtl"] .s16-demo-dock{right:auto!important;left:22px!important}

/* Consent is a one-time centered decision, never part of the floating stack. */
.p8-consent{z-index:130!important;bottom:18px!important;max-width:680px!important}

/* The desktop rail switches to the mobile menu before navigation can collide. */
@media(max-width:1399px){
  body.s16-site header#header nav .hidden.lg\:flex{display:none!important}
  body.s16-site header#header button.lg\:hidden{display:grid!important}
  body.s16-site header#header .s16-login{display:inline-flex!important}
}
@media(min-width:1400px){
  body.s16-site header#header nav .hidden.lg\:flex{display:flex!important}
  body.s16-site header#header button.lg\:hidden{display:none!important}
}
@media(max-width:760px){
  :root{--p11-header-h:70px}
  body.s16-site header#header nav{width:calc(100% - 20px)!important}
  body.s16-site header#header .logo-container img{height:43px!important;max-height:43px!important}
  body.s16-site header#header .s16-login{display:none!important}
  .s16-demo-dock{right:12px!important;left:12px!important;bottom:12px!important;max-width:none!important;justify-content:space-between}
  html[dir="rtl"] .s16-demo-dock{right:12px!important;left:12px!important}
}
@media(max-width:480px){
  .s16-demo-dock>div{display:none!important}
  .s16-demo-dock{width:auto!important;left:auto!important;padding:7px!important}
  html[dir="rtl"] .s16-demo-dock{left:12px!important;right:auto!important}
}
@media(prefers-reduced-motion:reduce){
  body.s16-site header#header,.s16-demo-dock{transition:none!important}
}
