
/* V178: keep strategy explanation and app CTA within the bottom edge of grid navigation. */
/* Only applies to the desktop side-by-side strategy view, not stacked mobile lessons. */
@media(min-width:1121px){
 body:has(#lessonView:not(.hidden)) #lessonView .lesson-layout{
  align-items:start!important;
 }
 body:has(#lessonView:not(.hidden)) #lessonView .lesson-side{
  display:flex!important;flex-direction:column!important;
  gap:0!important;grid-template-rows:none!important;
  max-height:var(--sp-strategy-left-height,650px)!important;
  height:var(--sp-strategy-left-height,650px)!important;
  min-height:0!important;overflow:hidden!important;
  align-self:start!important;
 }
 body:has(#lessonView:not(.hidden)) #lessonView .lesson-side > .lesson-overview-copy{
  flex:0 0 auto!important;max-height:36%!important;
  overflow-y:auto!important;overflow-x:hidden!important;
 }
 body:has(#lessonView:not(.hidden)) #lessonView .lesson-side > .lesson-side-ad{
  flex:0 0 auto!important;min-height:0!important;max-height:56px!important;
  overflow:hidden!important;
 }
 body:has(#lessonView:not(.hidden)) #lessonView .lesson-side > .lesson-step-copy{
  display:block!important;flex:1 1 auto!important;
  min-height:0!important;height:auto!important;max-height:none!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain!important;scrollbar-width:thin!important;
  overflow-wrap:anywhere!important;
 }
 body:has(#lessonView:not(.hidden)) #lessonView .lesson-side > .lesson-actions{
  flex:0 0 auto!important;
  min-height:47px!important;
  margin-top:4px!important;margin-bottom:0!important;
  padding:0!important;
 }
}
@media(max-width:1120px){
 body:has(#lessonView:not(.hidden)) #lessonView .lesson-side{
  height:auto!important;max-height:none!important;overflow:visible!important;
 }
 body:has(#lessonView:not(.hidden)) #lessonView .lesson-side > .lesson-step-copy{
  height:auto!important;max-height:none!important;overflow:visible!important;
 }
}
