/* Scroll long desktop side menus without changing page content scrolling. */
@media (min-width:801px) {
  body:not(.intrinsic-client-portal) .layout.private #sidebar {
    position:sticky;
    top:76px;
    height:calc(100vh - 76px);
    height:calc(100dvh - 76px);
    max-height:calc(100dvh - 76px);
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior-y:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    scrollbar-color:#3c78ae #07264b;
  }
  body:not(.intrinsic-client-portal) .layout.private #sidebar #side-links { flex-shrink:0; }
  body:not(.intrinsic-client-portal) .layout.private #sidebar .side-caption,
  body:not(.intrinsic-client-portal) .layout.private #sidebar .side-bottom { flex-shrink:0; }
}
/* Keep horizontal tab-style navigation on smaller screens. */
@media (max-width:800px) {
  body:not(.intrinsic-client-portal) .layout.private #sidebar {
    overflow-x:auto;
    overflow-y:hidden;
    height:auto;
    max-height:none;
    overscroll-behavior-x:contain;
  }
}
