/**
 * Latin Modern Math Upright Font Declarations
 * Custom font with upright integral symbols for improved mathematical typesetting
 */

@font-face {
  font-family: 'Latin Modern Math Upright';
  src: url('./latinmodern-math-upright.6344a44e.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Root font-family for all KaTeX-rendered math */
.katex {
  font-family: 'Latin Modern Math Upright',
               'Times New Roman',
               serif !important;
  font-size: 1.21em;
}

/* Force MathML inside KaTeX to also use it */
.katex math {
  font-family: 'Latin Modern Math Upright',
               'Times New Roman',
               serif !important;
}

/* CSS custom properties for easy font switching */
:root {
  --math-font-upright: 'Latin Modern Math Upright', 'Times New Roman', serif;
}

/* Utility classes for testing and selective application */
.math-upright-integrals {
  font-family: var(--math-font-upright);
}

.math-upright-integrals .katex {
  font-family: var(--math-font-upright);
}

.math-upright-integrals .katex .main {
  font-family: var(--math-font-upright);
}

/* Specific targeting for integral symbols */
.math-upright-integrals .katex .mord.mathdefault,
.math-upright-integrals .katex .mop {
  font-family: var(--math-font-upright);
}
