/* Keep long code lines on one line and let code blocks scroll horizontally. */
.markdown-body figure.highlight {
  overflow-x: auto;
}

.markdown-body figure.highlight table {
  table-layout: auto;
  width: max-content;
  min-width: 100%;
}

.markdown-body figure.highlight td.gutter {
  width: 1%;
}

.markdown-body figure.highlight td.code pre,
.markdown-body .code-wrapper pre,
.markdown-body > pre {
  overflow-x: auto;
  white-space: pre;
}

.markdown-body figure.highlight td.code code,
.markdown-body .code-wrapper pre code,
.markdown-body > pre code {
  white-space: inherit;
  overflow-wrap: normal;
  word-break: normal;
}

/* Center display math generated by Pandoc and MathJax. */
.markdown-body span.math.display,
.markdown-body mjx-container[display="true"] {
  display: block;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  text-align: center;
}
