/* make the INNER wrapper sticky */
.sb-sticky{
  position: sticky;
  top: 16px;                 /* adjust if you have a fixed header */
  height: fit-content;       /* shrink to content height */
}

/* ensure ancestors don't kill sticky */
.layout, .container { overflow: visible !important; }

/* if your layout is a grid, this helps sticky behave */
aside.sidebar { align-self: start; }

/* mobile: no sticky */
@media (max-width: 900px){
  .sb-sticky{ position: static; }
}
.sb-sticky{ position: sticky; top: 16px; height: fit-content; }
.layout,.container{ overflow: visible !important; }  /* prevents sticky from breaking */
aside.sidebar{ align-self: start; }                  /* for CSS grid/flex layouts */
