/**
 * RTL Fixer — front-end styles.
 */

.rtl-fixer {
    direction: rtl;
    text-align: right;
}

.rtl-fixer-comment {
    margin-bottom: 1em;
}

.rtl-fixer-title {
    direction: rtl;
    unicode-bidi: isolate;
    /*
     * Inline spans only set the base direction of the FIRST line of a
     * wrapped title — continuation lines fall back to the surrounding
     * block's LTR direction. Making the wrapper an inline-block makes the
     * RTL direction (and right alignment) apply to every line.
     */
    display: inline-block;
    text-align: right;
}

/* Neutralise theme margins that assume LTR inside RTL containers. */
.rtl-fixer ul,
.rtl-fixer ol,
.rtl-fixer-auto ul,
.rtl-fixer-auto ol {
    padding-left: 0;
    padding-right: 1.5em;
}

/*
 * Universal buffer (2.0+): block-level elements whose majority text is
 * Arabic-script receive dir="rtl" + this class. text-align makes every
 * line start from the right, even when the theme's stylesheet sets an
 * explicit LTR text-align on the element.
 */
.rtl-fixer-auto {
    text-align: right;
}
