p.caption {
  color: #777;
  margin-top: 10px;
}
p code {
  white-space: inherit;
}
pre {
  word-break: normal;
  word-wrap: normal;
}
pre code {
  white-space: inherit;
}
p.flushright {
  text-align: right;
}
blockquote > p:last-child {
  text-align: right;
}
blockquote > p:first-child {
  text-align: inherit;
}

/* Keep wide display equations from running off the page: scroll within the
   text column instead of overflowing to the right. */
mjx-container[display="true"] {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
}
.math.display {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
}
/* Same guard for wide tables and raw HTML output. */
.cell-output-display > table,
table.table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}
