/* The navigation owns its scroll area, including when browser bars shorten iOS. */
.sidebar{
 top:var(--sidebar-visible-top,0px);
 bottom:auto;
 height:100vh;
 height:var(--sidebar-visible-height,100dvh);
 max-height:var(--sidebar-visible-height,100dvh);
 box-sizing:border-box;
 overflow-x:hidden;
 overflow-y:auto;
 -webkit-overflow-scrolling:touch;
 overscroll-behavior-y:contain;
 touch-action:pan-y;
 padding-bottom:calc(24px + env(safe-area-inset-bottom,0px));
}
/* Do not let flexbox squeeze the navigation and strand the footer below it. */
.sidebar>*{flex-shrink:0}
.sidebar .nav,.sidebar-bottom{flex-shrink:0}

/* A closed off-canvas menu must also leave keyboard and accessibility navigation. */
@media(max-width:720px){.sidebar:not(.open){visibility:hidden;pointer-events:none}.sidebar.open{visibility:visible;pointer-events:auto}}
