/* Qnna News OS v1.143.22: responsive browser-only mobile interaction stability.
 * Scope: public reader shell; no PWA, native apps, payment, membership or DB logic.
 * Applied after legacy mobile and header styles for predictable cascade.
 */
@media screen and (max-width:980px){
  /* The original body touch-action:none blocks panning inside the open drawer
     on touch devices. Keep body scroll locked, but let the drawer pan. */
  body.qnna-menu-open,
  body.qnna-search-open{
    overflow:hidden!important;
    touch-action:auto!important;
  }
  /* The fixed dock is outside the sticky header stacking context. Raise the
     open drawer/search ABOVE it so no dock button covers an input or close. */
  body.qnna-menu-open .qnna-site-header,
  body.qnna-search-open .qnna-site-header{
    z-index:2000!important;
  }
  body.qnna-menu-open .qnna-mobile-bottom-nav,
  body.qnna-search-open .qnna-mobile-bottom-nav{
    pointer-events:none!important;
  }
  /* A high-z-index header toggle was physically covering the drawer CLOSE
     button. Keep the drawer higher in the same header stacking context. */
  body.qnna-menu-open .qnna-mobile-left-actions{
    z-index:1!important;
  }
  /* The sticky blurred header establishes a containing block for fixed
     descendants in Chromium/WebKit. 100% then means only header height. */
  .qnna-mobile-menu-backdrop,
  body.qnna-mobile-app-pro .qnna-mobile-menu-backdrop{
    height:100vh!important;
    height:100dvh!important;
    min-height:100dvh!important;
    width:100vw!important;
  }
  .qnna-main-nav,
  body.qnna-mobile-app-pro .qnna-main-nav{
    max-height:100vh!important;
    max-height:100dvh!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y!important;
  }
  .qnna-mobile-drawer-search input,
  .qnna-mobile-search-card input{
    font-size:16px!important;
    line-height:1.35!important;
  }
  .qnna-mobile-menu-close,
  .qnna-mobile-search-close{
    min-width:44px!important;
    min-height:44px!important;
  }
  .qnna-mobile-search-panel,
  body.qnna-mobile-app-pro .qnna-mobile-search-panel{
    box-sizing:border-box!important;
    height:100vh!important;
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    width:100vw!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y!important;
  }
  .qnna-mobile-search-card{
    box-sizing:border-box!important;
    max-height:calc(100dvh - 20px)!important;
    overflow-y:auto!important;
    touch-action:pan-y!important;
  }
  .qnna-mobile-bottom-nav>a,
  .qnna-mobile-bottom-nav>button{
    min-height:44px!important;
  }
}
@media screen and (max-width:980px) and (orientation:landscape) and (max-height:520px){
  body.qnna-mobile-app-pro .qnna-main-nav{
    border-radius:0!important;
    padding-top:max(8px,env(safe-area-inset-top,0px))!important;
    padding-bottom:max(16px,env(safe-area-inset-bottom,0px))!important;
  }
  .qnna-mobile-search-panel,
  body.qnna-mobile-app-pro .qnna-mobile-search-panel{
    padding: max(8px,env(safe-area-inset-top,0px)) 12px max(8px,env(safe-area-inset-bottom,0px))!important;
    align-items:flex-start!important;
  }
  body.qnna-mobile-app-pro .qnna-mobile-bottom-nav{
    height:56px!important;
    min-height:56px!important;
    padding:3px 5px!important;
    bottom:calc(4px + env(safe-area-inset-bottom,0px))!important;
  }
  body.qnna-mobile-app-pro .qnna-mobile-bottom-nav>a,
  body.qnna-mobile-app-pro .qnna-mobile-bottom-nav>button{
    min-height:44px!important;
    font-size:10px!important;
  }
  body.qnna-mobile-app-pro{
    padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))!important;
  }
  body.qnna-mobile-app-pro .qnna-backtop{
    bottom:calc(70px + env(safe-area-inset-bottom,0px))!important;
  }
}
@media (prefers-reduced-motion:reduce){
  .qnna-mobile-search-panel,.qnna-mobile-search-card,.qnna-main-nav{
    scroll-behavior:auto!important;
  }
}
