/* Keep Excel teaching content usable on narrow screens. */

/* Videos get the same size as in the course (styles/layout-responsive-v5.css). */
main .quarto-video {
  max-width: 100%;
}

main .quarto-video > iframe {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto !important;
  margin-inline: auto;
  max-width: 100%;
  width: min(100%, 400px) !important;
}

main .quarto-figure-center figcaption {
  text-align: center;
}

main .quarto-float-tbl,
main .quarto-float-fig {
  margin-inline: auto;
}

main .quarto-float-tbl figcaption,
main .quarto-float-fig figcaption {
  text-align: center;
  text-wrap: balance;
}

main .quarto-float-tbl table {
  width: 100%;
}

main .quarto-float-tbl {
  overflow-x: auto;
}

/* Long formulas wrap in text, lists, and table cells. */
main p code,
main li code,
main td code {
  overflow-wrap: anywhere;
  white-space: normal;
}

main mjx-container[display="true"] {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

main .question-group-label,
main .exercise-label {
  color: var(--bs-primary);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

main h3.exercise-heading {
  color: var(--bs-gray-700);
  font-size: 1.25rem;
}

main h4.exercise-heading {
  color: var(--bs-gray-700);
  font-size: 1.1rem;
}

main h5.exercise-heading {
  color: var(--bs-gray-700);
  font-size: 1rem;
  font-style: normal;
}
