/* FIX197 staging: content element width normalization, preserve FIX196 outer margins. */
body.lesson-page .lesson-layout .reader-content { width:100%!important; min-width:0!important; box-sizing:border-box!important; }
/* Rich-text content boxes commonly arrive with inline pixel/percentage widths from the editor. */
body.lesson-page .lesson-layout .reader-content > :is(div,section,aside,blockquote,figure),
body.lesson-page .lesson-layout .reader-content > div[style*="width"],
body.lesson-page .lesson-layout .reader-content > p[style*="width"] {
  width:100%!important; max-width:100%!important; min-width:0!important; box-sizing:border-box!important;
}
body.lesson-page .lesson-layout .reader-content > div > :is(div,section,aside,blockquote)[style*="width"] {
  width:100%!important; max-width:100%!important; min-width:0!important; box-sizing:border-box!important;
}
/* Keep deliberate compact tables compact; full-width tables fill the reader. */
body.lesson-page .lesson-layout .reader-content table:not([data-nga185-fit="content"]):not([data-nga186-width]):not([data-nga187-width]):not([data-nga188-width]) {
  width:100%!important; max-width:100%!important; box-sizing:border-box!important;
}
body.lesson-page .lesson-layout .reader-content :is(.nga-mobile-table-scroll,.nga189-table-scroll,.nga190-table-scroll,.nga-table-scroll) {
  width:100%!important; max-width:100%!important; overflow-x:auto!important; box-sizing:border-box!important;
}
body.lesson-page .lesson-layout .reader-content :is(img,video,svg) { max-width:100%!important; height:auto!important; }
@media(max-width:800px){
 body.lesson-page .lesson-layout .reader-content > :is(div,section,aside,blockquote,figure){max-width:100%!important;}
}
