/* 8899 Academy: prevent mobile home-page horizontal overflow at its source. */
@media(max-width:767px){
  html,body{max-width:100%;}
  body.home .elementor,body.home .elementor-section-wrap,
  body.home .elementor-section,body.home .elementor-container,
  body.home .e-con,body.home .e-con-inner,
  body.home .elementor-widget,body.home .elementor-widget-container{
    min-width:0;max-width:100%;box-sizing:border-box;
  }
  body.home .a89hero,body.home .a89hero-layout,
  body.home .a89-shell-header,body.home .a89mt,
  body.home .a89sb,body.home .a89team,body.home .a89tb,
  body.home .a89lb,body.home .a89bb,
  body.home .a89ft{max-width:100%;min-width:0;box-sizing:border-box;}
  body.home .a89hero{width:100%!important;transform:none!important;left:auto!important;right:auto!important;}
  body.home .a89hero-copy,body.home .a89hero-photo,
  body.home .a89-shell-inner{min-width:0;max-width:100%;box-sizing:border-box;}
  body.home .a89hero-actions{max-width:100%;min-width:0;flex-wrap:wrap;}
  body.home .a89hero-actions a{max-width:100%;white-space:normal;text-align:center;}
  body.home .a89mt{overflow:hidden;}
  body.home img,body.home video,body.home iframe{max-width:100%;}
}

/* 1.0.91: keep the phone viewport stable even with full-bleed Elementor rows. */
@media (max-width:782px){
  html:has(body.home),body.home{width:100%;max-width:100%;overflow-x:clip!important;}
  body.home #page,body.home .site-main,body.home main,body.home .elementor-location-single,
  body.home .elementor-location-header,body.home .elementor-location-footer{
    max-width:100%;min-width:0;box-sizing:border-box;
  }
  body.home .elementor-section-wrap,body.home .elementor-section,body.home .elementor-container,
  body.home .e-con,body.home .e-con-inner,body.home .elementor-widget-wrap,
  body.home .elementor-widget-container{min-width:0;box-sizing:border-box;}
  body.home .elementor-section.elementor-section-stretched,
  body.home .e-con.a89hero-unclip,body.home .a89hero-unclip{
    max-width:100%!important;
  }
  body.home .a89hero{position:relative!important;left:auto!important;right:auto!important;
    margin-inline:0!important;transform:none!important;width:100%!important;max-width:100%!important;}
  body.home .a89hero-layout,body.home .a89hero-photo,
  body.home .a89hero-copy,body.home .a89mt,body.home .a89mt-viewport{
    max-width:100%!important;min-width:0;box-sizing:border-box;
  }
  body.home .a89mt-viewport{overflow:hidden!important;}
  /* fixed controls must be positioned by the viewport, not oversized home sections */
  body.home>.a89-mobile-bottom-nav{position:fixed!important;inset-inline:10px!important;
    left:10px!important;right:10px!important;width:auto!important;max-width:calc(100% - 20px)!important;
    transform:none!important;margin:0!important;}
  body.home>.a89-mobile-nav-search-panel:not([hidden]){position:fixed!important;
    left:10px!important;right:10px!important;width:auto!important;max-width:calc(100% - 20px)!important;}
}
