/* Style for unknown command; feel free to customize it */

merror.math-core-unknown-cmd {
    border: unset; /* `merror` default is `1px solid red` */
    background-color: unset; /* `merror` default is `lightYellow` */
    color: #c00; /* `merror` default is `unset` */
}

/* Styles for all browsers */

mtd {
    /* This is the default padding for mtd elements as defined in the MathML Core specification. */
    padding: 0.5ex 0.4em;
}

mtr > mtd:first-child {
    padding-left: 0;
}

mtr > mtd:last-child {
    padding-right: 0;
}

/* Styles for Chromium only */
@supports (not (-webkit-backdrop-filter: blur(1px))) and
    (not (-moz-appearance: none)) {
    menclose {
        position: relative;
        padding: 0.5ex 0;
    }
    menclose[notation~="box" i] {
        border: 0.04em solid;
        padding: 0.3rem;
    }
    menclose[notation~="actuarial" i] {
        padding: 0.03889rem 0.03889rem 0 0.03889rem;
        border-width: 0.08em 0.08em 0em 0em;
        border-style: solid;
        margin-right: 0.03889rem;
    }
    menclose[notation~="phasorangle" i] {
        border-bottom: 0.067em solid;
        padding: 0.2em 0.2em 0.1em 0.6em;
    }
    mrow.menclose-phasorangle {
        display: inline-block;
        position: absolute;
        left: 0.5px;
        bottom: -0.04em;
        height: 100%;
        aspect-ratio: 0.5;
        background-color: currentcolor;
        clip-path: polygon(
            0.05em 100%,
            0 calc(100% - 0.05em),
            calc(100% - 0.05em) 0,
            100% 0.05em
        );
    }
    mrow.menclose-updiagonalstrike,
    mrow.menclose-downdiagonalstrike {
        display: inline-block;
        position: absolute;
        left: 0.5px;
        bottom: 0;
        width: 100%;
        height: 100%;
        background-color: currentcolor;
    }
    mrow.menclose-updiagonalstrike {
        clip-path: polygon(
            0.05em 100%,
            0 calc(100% - 0.05em),
            calc(100% - 0.05em) 0,
            100% 0.05em
        );
    }
    mrow.menclose-downdiagonalstrike {
        clip-path: polygon(
            0em 0.05em,
            0.05em 0em,
            100% calc(100% - 0.05em),
            calc(100% - 0.05em) 100%
        );
    }
}

/* Styles for Chromium and Safari */
@supports (not (-moz-appearance: none)) {
    mover[accent="true" i] > mo:nth-child(2) {
        margin-bottom: 0.15ex;
    }
}
