/* Jupiter Academy v55 — fixed-height sticky sidebar, native lesson two-column layout.
   Keep the entire rail at the viewport top; scroll lessons *inside* the rail.
   Scoped to the v54 Academy lesson template only. */
@media (min-width:980px) {
  .jsa-lesson-two-column .jsa-lesson-shell {
    align-items:start!important;
  }
  .jsa-lesson-two-column .jsa-lesson-rail {
    position:sticky!important;
    position:-webkit-sticky!important;
    top:20px!important;
    align-self:start!important;
    height:calc(100vh - 20px)!important;
    height:calc(100dvh - 20px)!important;
    min-height:0!important;
    max-height:calc(100dvh - 20px)!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    z-index:2;
  }
  .jsa-lesson-two-column .jsa-lesson-rail > .jsa-course-scroll {
    position:static!important;
    top:auto!important;
    flex:1 1 auto!important;
    min-height:0!important;
    height:100%!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }
  .jsa-lesson-two-column .jsa-lesson-column {
    min-width:0!important;
  }
}
@media (max-width:979px) {
  .jsa-lesson-two-column .jsa-lesson-rail {
    position:relative!important;
    top:auto!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
  .jsa-lesson-two-column .jsa-lesson-rail > .jsa-course-scroll {
    position:static!important;
    top:auto!important;
    height:auto!important;
    max-height:360px!important;
    overflow-y:auto!important;
  }
}
