/* Match the surrounding Computer Modern text and inherit both colour themes. */
[data-math] .katex { font-size: 1em; }
[data-math] .katex-display {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin: .65em 0;
  padding: .2em 0;
}
[data-math] .katex-display > .katex { white-space: nowrap; }
