/* Formulae inherit the lesson palette. Wide display equations scroll within
 * their own line on a phone instead of widening the course page.
 */
.chapter-page .atpl-math { color: inherit; }
.chapter-page .atpl-math > .katex { font-size: 1.06em; }
.chapter-page .atpl-math-display {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  margin: .9em 0;
  padding: .18em .08em;
}
.chapter-page .atpl-math-display > .katex-display { margin: 0; }
.chapter-page .atpl-math-display .katex-display > .katex { white-space: nowrap; }
.chapter-page .atpl-math-error { font: inherit; }
.chapter-page .course-model-readouts .atpl-math > .katex { font-size: 1em; }
.chapter-page .course-model-readouts > div { min-width: 0; }
.chapter-page .answer-option { min-width: 0; }
/* Keep a mixed text/formula answer in one wrapping flex item beside A/B/C/D. */
.chapter-page .answer-option-text { flex: 1 1 0%; min-width: 0; }
@media (max-width: 600px) {
  .chapter-page .atpl-math-display > .katex-display { text-align: left; }
  .chapter-page .atpl-math-display .katex-display > .katex { text-align: left; }
}
