/* Formula text remains readable if JavaScript or the bundled renderer fails. */
.question-rich-text, [data-sm-math] { min-width: 0; overflow-wrap: anywhere; }
.sm-math { max-width: 100%; white-space: normal; overflow-wrap: normal; font-weight: 400; }
.sm-math-inline { display: inline-block; vertical-align: middle; overflow-x: auto; overflow-y: hidden; padding: .16em .08em; }
.sm-math-display { display: block; overflow-x: auto; overflow-y: hidden; margin: .65em 0; padding: .25em .1em; }
.sm-math-display > .katex-display { margin: 0; text-align: left; }
.sm-math-display > .katex-display > .katex { display: inline-block; text-align: initial; }
.sm-math-fallback, .sm-math-pending { white-space: pre-wrap; overflow-wrap: anywhere; }
.sm-math-note { display: block; margin-top: .5em; font-size: .8rem; font-weight: 400; line-height: 1.6; color: var(--muted, #526674); white-space: normal; }
/* A wide formula is scrollable even inside a whole-card answer label. */
.member-choice-content .sm-math { position: relative; z-index: 2; }
