/*
 * MOO «ЕДИНСТВО» — document scrolling guard for the unified portal shell.
 * Author and copyright: Ланцет Семён Борисович
 * License: proprietary / all rights reserved
 *
 * Legacy KOVCHEG social styles contain a fixed-app rule with
 * `html,body.auth-shell{...overflow:hidden}`. Because of the comma the `html`
 * selector is global and can lock document scrolling after entering social
 * pages. The EDINSTVO portal owns document scrolling, while messenger panes
 * keep their own internal scrollers.
 */
html{
  height:auto!important;
  min-height:100%;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:auto;
}
body.edinstvo-portal{
  height:auto!important;
  min-height:100%;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:visible!important;
}
body.edinstvo-portal .ep-main{
  min-height:56vh;
  overflow:visible;
}

/* Only an actually opened mobile drawer may lock the page behind it. */
@media(max-width:760px){
  body.edinstvo-portal.edinstvo-menu-open{
    overflow:hidden!important;
    touch-action:none;
  }
}
