/* Hamburger menu: retain internal menu scrolling and keep Library Login fixed at the footer. */
#hamburgerMenu.menu-eight-visible-layout{
  display:flex!important;
  flex-direction:column!important;
  height:100dvh!important;
  max-height:100dvh!important;
  overflow:hidden!important;
}
#hamburgerMenu .hamburger-menu-head{flex:0 0 auto!important;}
#hamburgerMenu .menu-eight-scroll-area{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-width:thin!important;
  padding-right:6px!important;
}
#hamburgerMenu .menu-eight-scroll-area::-webkit-scrollbar{width:7px!important;}
#hamburgerMenu .menu-eight-scroll-area::-webkit-scrollbar-track{background:transparent!important;}
#hamburgerMenu .menu-eight-scroll-area::-webkit-scrollbar-thumb{background:#92979f!important;border-radius:10px!important;}
#hamburgerMenu .menu-fixed-footer{
  flex:0 0 auto!important;
  margin-top:auto!important;
  padding:14px 16px!important;
  background:#fff!important;
  border-top:1px solid #e4e8ee!important;
  overflow:visible!important;
}
#hamburgerMenu .menu-fixed-footer > a,
#hamburgerMenu .menu-fixed-footer .library-login,
#hamburgerMenu .menu-fixed-footer .menu-login{
  display:block!important;
  margin:0!important;
}

/* Compact menu items and move the Library Login button slightly upward. */
#hamburgerMenu .menu-eight-scroll-area > a{
  min-height:42px!important;
  height:auto!important;
  padding:7px 14px!important;
  line-height:1.25!important;
}
#hamburgerMenu .menu-fixed-footer{
  padding:9px 16px 18px!important;
}
#hamburgerMenu .menu-fixed-footer .menu-login,
#hamburgerMenu .menu-fixed-footer .library-login{
  transform:translateY(-20px)!important;
}
