/* Mathematical content keeps its normal size. Only a genuinely long equation
   scrolls; the page, task header and answer controls remain within the screen. */
.m4u-math { min-width: 0; line-height: 1.75; }
.m4u-math p, .m4u-math li, .m4u-math label { line-height: 1.8; }
.m4u-math mjx-container[jax] { max-width: 100%; padding: .2em .05em; overflow-x: auto; overflow-y: hidden; vertical-align: middle; }
.m4u-math mjx-container[jax="SVG"] { display: inline-block; }
.m4u-math mjx-container[jax][display="true"] { display: block; margin: .8em 0; text-align: center; }
.m4u-math mjx-container[jax] > svg { overflow: visible; }
.m4u-math .p1-option > span, .m4u-math .form-check-label { min-width: 0; max-width: 100%; }
.m4u-math .form-check-input:disabled ~ .form-check-label { opacity: 1; color: inherit; }
.m4u-math .form-check { padding-block: .25rem; }
.question-card { scroll-margin-top: 5rem; }
.m4u-question-header { gap: .75rem; flex-wrap: wrap; align-items: flex-start !important; }
.m4u-question-header > div:first-child { flex: 1 1 16rem; min-width: 0; }
.m4u-question-tools { flex-wrap: wrap; flex: 0 1 auto; max-width: 100%; }
.m4u-info { display: inline-block; position: relative; font-size: .8rem; color: var(--m4u-muted, #5d6879); line-height: 1.5; max-width: 100%; }
.m4u-info > summary { cursor: pointer; border: 1px solid currentColor; border-radius: 1rem; padding: .2rem .65rem; width: max-content; list-style: none; user-select: none; }
.m4u-info > summary::-webkit-details-marker { display: none; }
.m4u-info > summary:hover, .m4u-info > summary:focus-visible { background: #eaf2ff; color: #164c86; }
.m4u-info > summary:focus-visible { outline: 2px solid #2670ba; outline-offset: 3px; }
.m4u-info[open] { flex-basis: 100%; width: 100%; }
.m4u-info-content { padding: .6rem 0; overflow-wrap: anywhere; }
@media(max-width: 600px) {
  .m4u-question-header > div:first-child { flex-basis: 100%; }
  .m4u-question-tools { width: 100%; }
  .m4u-math .card-body { padding: 1rem; }
  .m4u-math h5 { line-height: 1.4; }
  .m4u-math .skill-example, .m4u-math .skill-panel { min-width: 0; }
}
