/*
 * Right-to-left and accessibility details (lane I18N, F207 and F191). The site's own stylesheets use
 * logical properties (margin-inline-start, inset-inline-end, text-align: start),
 * so a page mirrors by itself under <html dir="rtl">; what cannot follow on its
 * own is here. Linked on every public and member page through the layout's head
 * slot (config/extensions/i18n.php).
 */

/* Arrows that point "back" and "forward" turn round with the reading direction. */
[dir="rtl"] .i18n-flip { display: inline-block; transform: scaleX(-1); }

/* The cookie settings switch slides the other way. */
[dir="rtl"] .e2-cc-switch:checked::after { transform: translateX(-18px); }

/* People who ask their system for less motion get none: transitions and
   animations finish at once, smooth scrolling jumps (WCAG 2.3.3, F191). */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
