/*
 * Apresentacao compartilhada do conteudo rico das questoes.
 *
 * O editor possui regras equivalentes para que a edicao seja fiel, mas o
 * conteudo salvo tambem aparece no banco, em atividades, avaliacoes e telas
 * de impressao. Estas regras evitam que uma fracao corretamente gravada
 * volte a parecer texto linear depois do salvamento.
 */

.rich-content p {
    margin: 0 0 0.6em;
}

.rich-content p:last-child {
    margin-bottom: 0;
}

.rich-content .text-left {
    text-align: left;
}

.rich-content .text-center {
    text-align: center;
}

.rich-content .text-right {
    text-align: right;
}

.rich-content .text-justify {
    text-align: justify;
}

.math-fraction {
    display: inline-block;
    min-width: 1.7em;
    margin: 0 0.15em;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.math-numerator,
.math-denominator {
    display: block;
    padding: 0 0.2em;
    line-height: 1.1;
}

.math-numerator {
    border-bottom: 1px solid currentColor;
}

.math-root {
    display: inline-block;
    white-space: nowrap;
}

.math-root-index {
    display: inline-block;
    margin-right: -0.28em;
    font-size: 0.52em;
    vertical-align: super;
}

.math-root-symbol {
    font-size: 0.96em;
    vertical-align: middle;
}

.math-radicand {
    display: inline-block;
    padding: 0 0.15em;
    border-top: 1px solid currentColor;
}
