@media screen and (max-width: 1024px) {
  /* The fixed header floats over the hero. Toggling it never shifts the article. */
  html.reading-mobile #contents.headT {
    padding-top: 0;
  }
  html.reading-mobile #header {
    transition: transform 160ms ease-out, opacity 160ms ease-out, background 200ms;
  }
  html.reading-mobile:not(.reading-header-shown):not(.allGnbOn) #header {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }
  /* No transform here: the original navigation drawer is fixed to the viewport. */
  html.reading-mobile.allGnbOn #header {
    transform: none;
    z-index: 1000;
  }
  html.reading-mobile #quick {
    transition: bottom 160ms ease-out, opacity 140ms ease-out;
  }
  html.reading-mobile:not(.reading-quick-shown) #quick,
  html.reading-mobile.allGnbOn #quick {
    opacity: 0;
    pointer-events: none;
  }
  html.reading-mobile #quick.active > .quick_wrap.pcHide {
    visibility: hidden;
  }
  /* Keep the tap target entirely above the folded strip, including on short screens. */
  html.reading-mobile #quick .hide_btn {
    top: auto;
    bottom: 100%;
    transform: none;
    z-index: 1;
    min-width: 44px;
    min-height: 32px;
  }
}
@media screen and (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  html.reading-mobile #header, html.reading-mobile #quick {
    transition: none;
  }
}
