/*
 * Fórmulas desenhadas no servidor (plugin, modulos/formulas.php). São as regras que o MathJax põe na página quando
 * desenha no navegador; aqui elas chegam no <head>, porque a fórmula já vem pronta e o MathJax muitas vezes nem é
 * baixado. Tiradas da saída do próprio MathJax 3.2.2 (SVG + MathML para leitores de tela); só ficaram as que as
 * questões usam. Se o MathJax mudar de versão, confira de novo com a saída do desenhador (ferramentas/formulas).
 */
mjx-container[jax="SVG"] { direction: ltr; }
mjx-container[jax="SVG"] > svg { overflow: visible; min-height: 1px; min-width: 1px; }
mjx-container[jax="SVG"][display="true"] { display: block; text-align: center; margin: 1em 0; }
mjx-container[jax="SVG"][display="true"][width="full"] { display: flex; }
mjx-container[jax="SVG"][justify="left"] { text-align: left; }
mjx-container[jax="SVG"][justify="right"] { text-align: right; }
mjx-container[jax="SVG"] path[data-c], mjx-container[jax="SVG"] use[data-c] { stroke-width: 3; }
g[data-mml-node="mtable"] > line[data-line], svg[data-table] > g > line[data-line] { stroke-width: 70px; fill: none; }
g[data-mml-node="mtable"] > rect[data-frame], svg[data-table] > g > rect[data-frame] { stroke-width: 70px; fill: none; }
g[data-mml-node="mtable"] > .mjx-dashed, svg[data-table] > g > .mjx-dashed { stroke-dasharray: 140; }
g[data-mml-node="mtable"] > .mjx-dotted, svg[data-table] > g > .mjx-dotted { stroke-linecap: round; stroke-dasharray: 0,140; }
g[data-mml-node="mtable"] > g > svg { overflow: visible; }
foreignObject[data-mjx-xml] { font-family: initial; line-height: normal; overflow: visible; }

/* A fórmula em MathML, só para leitores de tela (e para o Google ler a conta): fora da tela */
mjx-assistive-mml {
    position: absolute !important; top: 0; left: 0; clip: rect(1px, 1px, 1px, 1px);
    padding: 1px 0 0 0 !important; border: 0 !important; display: block !important; width: auto !important; overflow: hidden !important;
    -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
mjx-assistive-mml[display="block"] { width: 100% !important; }
