/* Math-only adjustments: leave the verified Science stylesheet untouched. */
.math-course .instruction p,
.math-course .instruction li { overflow-wrap: anywhere; }
.math-course .math-table-scroll { max-width: 100%; overflow-x: auto; margin: 1.25rem 0; }
.math-course .math-table-scroll:focus-visible { outline: 3px solid #7022e8; outline-offset: 3px; }
.math-course .math-table-scroll table { min-width: 460px; margin: 0; table-layout: auto; }
.math-course .math-table-scroll caption { caption-side: top; }
.math-course .math-table-scroll th,
.math-course .math-table-scroll td { overflow-wrap: normal; word-break: normal; }

/* Authored question stimuli: scroll tables locally, keep diagrams legible. */
.math-course .question-stimulus{margin:1rem 0;max-width:100%;overflow-x:auto;}
.math-course .question-stimulus svg{display:block;width:100%;max-width:660px;height:auto;margin:auto;background:#fff;color:#172035;}
.math-course .question-stimulus table{border-collapse:collapse;width:100%;min-width:260px;}
.math-course .question-stimulus th,.math-course .question-stimulus td{border:1px solid #94a3b8;padding:.6rem;text-align:left;}
.math-course .question-stimulus caption{font-weight:700;text-align:left;padding:.5rem 0;}
.math-course .support-label{font-size:.9rem;color:#475569;}
