/* Use the genuine Book face at normal weight, not synthetic bold math. */
@font-face {
  font-family: "New Computer Modern Math Book";
  src: url("fonts/NewCMMath-Book.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.transcription math {
  font-family: "New Computer Modern Math Book", math;
}

/* Keep chapter resources distinct from the worked solutions. */
.transcription .chapter-resources {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Typst-specific image alignment and native MathML layout. */
.typst-align[data-alignment="center"] > img {
  display: block;
  margin-inline: auto;
}

/* Keep long equations scrollable, with room for tall fractions and accents. */
.transcription math[display="block"] {
  margin-block: 1.4rem;
  padding-block: 0.95rem;
}

.transcription math[display="block"],
.transcription :is(p, li):has(math) {
  max-width: 100%;
  overflow-x: auto;
}

.transcription li:has(math) {
  list-style-position: inside;
}
