/* Local home continuation only. The original header/footer markup is retained.
   Sticky is the no-JS baseline. The measured fixed mode keeps the header visible
   even while the theme locks body overflow for a mobile menu or a dialog. */
body:has(#amos-home-proof)>header[data-elementor-id="26282"]{
  --hph-css-ready:1;
  position:sticky!important;
  top:var(--hph-header-top,0px)!important;
  z-index:1000!important;
  overflow:visible!important;
  transform:none!important;
  isolation:isolate;
  background:#f2f4f8;
}
body:has(#amos-home-proof)>#hph-home-header-space{display:none;pointer-events:none;visibility:hidden;height:var(--hph-header-height,10vh);margin:0;padding:0;border:0}
body:has(#amos-home-proof)[data-hph-header-mode="fixed"]>header[data-elementor-id="26282"]{
  position:fixed!important;
  top:var(--hph-header-top,0px)!important;
  left:0!important;
  right:0!important;
  width:auto!important;
  max-width:none!important;
}
body:has(#amos-home-proof)[data-hph-header-mode="fixed"]>#hph-home-header-space{display:block}
/* Offset browser anchors/focus once, without adding a second scroll-padding
   offset to the existing project anchors. No custom scrolling is performed. */
body:has(#amos-home-proof) :is(main,[role="main"]) [id],
body:has(#amos-home-proof) :is(main,[role="main"]) :is(a,button,input,select,textarea,[tabindex]){
  scroll-margin-top:calc(var(--hph-header-height,10vh) + var(--hph-header-top,0px) + 18px);
}
body:has(#amos-home-proof)>header[data-elementor-id="26282"] :is(a,button,[role="button"]):focus-visible{outline:2px solid #3045ff;outline-offset:4px}
@media(min-width:768px){
  body:has(#amos-home-proof) #amos-home-proof .hpf-sidebar{top:max(110px,calc(var(--hph-header-height,10vh) + var(--hph-header-top,0px) + 20px))}
}
@media(max-width:1024px){
  body:has(#amos-home-proof)>header[data-elementor-id="26282"] .elementor-nav-menu--dropdown.elementor-nav-menu__container{
    max-height:calc(100vh - var(--hph-header-height,10vh) - var(--hph-header-top,0px) - var(--hph-menu-gap,30px) - 12px)!important;
    max-height:calc(100dvh - var(--hph-header-height,10vh) - var(--hph-header-top,0px) - var(--hph-menu-gap,30px) - 12px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
  }
}
