/* Formula rendering styles for Temml MathML output */

.formula-container {
  display: inline-block;
  font-size: 0.875rem; /* 14px - appropriate for table cells */
  line-height: 1.5;
}

/* MathML elements styling */
.formula-rendered math {
  font-family: 'Latin Modern Math', 'STIX Two Math', 'Cambria Math', serif;
  font-size: 1em; /* Match container size */
}

/* Ensure fractions are readable in table cells */
.formula-rendered mfrac {
  font-size: 0.95em;
}

/* Style function names in text mode */
.formula-rendered mtext {
  font-family: monospace;
  font-size: 0.9em; /* Slightly smaller to balance with math */
}
