/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* One text node + pre-line so KaTeX can match $ delimiters across newlines (simple_format’s <br> splits nodes and breaks math). */
.latex-text-body {
  white-space: pre-line;
  overflow-wrap: break-word;
}

/*
  KaTeX injects .katex spans inside this div. Inheriting pre-line / aggressive wrapping
  breaks inline math (often one glyph per line). Reset for KaTeX subtree only.
*/
.latex-text-body .katex,
.latex-text-body .katex-display {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}
