/* Display-math spacing. The two blocks are parallel: MathJax 2 emits
   span.MJXc-display, MathJax 4 emits mjx-container. Neither selector
   matches the other engine. */
.remark-slide-content p > span.MJXc-display {
  font-size: 90%;
  margin: 0.12em 0 !important;
  padding: 0.02em 0 !important;
}
.remark-slide-content p:has(> span.MJXc-display) {
  line-height: 1.15;
  margin-top: 0.12em;
  margin-bottom: 0.12em;
}

.remark-slide-content p > mjx-container[display="true"] {
  font-size: 90%;
  margin: 0.12em 0 !important;
  padding: 0.02em 0 !important;
}
.remark-slide-content p:has(> mjx-container[display="true"]) {
  line-height: 1.15;
  margin-top: 0.12em;
  margin-bottom: 0.12em;
}
