/* FIVE:CNR Wiki V98 — The desktop left menu is anchored to the viewport.
   A grid placeholder preserves the exact existing content/right-menu columns.
   This prevents the sticky-sidebar jump at the bottom/top of a guide. */
@media (min-width:901px) {
  html body .layout::before {
    content:"";
    display:block;
    grid-column:1;
    grid-row:1;
    width:100%;
    min-width:0;
    pointer-events:none;
  }
  html body .layout > main.content {
    grid-column:2;
    grid-row:1;
  }
  html body .layout > aside.toc {
    grid-column:3;
    grid-row:1;
  }
  html body .layout > aside.sidebar#sidebar {
    position:fixed!important;
    top:76px!important;
    bottom:0!important;
    left:0!important;
    height:calc(100vh - 76px)!important;
    height:calc(100dvh - 76px)!important;
    max-height:calc(100dvh - 76px)!important;
    width:220px!important;
    max-width:220px!important;
    margin:0!important;
    transform:none!important;
    transition:none!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
    z-index:5;
  }
  html body .layout > aside.sidebar#sidebar #categoryList {
    overflow-anchor:none!important;
    overscroll-behavior:contain!important;
  }
}
@media (min-width:1101px) and (max-width:1350px) {
  html body .layout > aside.sidebar#sidebar {
    width:205px!important;
    max-width:205px!important;
  }
}
@media (min-width:901px) and (max-width:1100px) {
  html body .layout > aside.sidebar#sidebar {
    width:240px!important;
    max-width:240px!important;
  }
}
