/* ui/theme @ v1.3 — RTL delta, shared by every theme of an area.
 *
 * THIS FILE IS A DELTA, NOT A MIRROR. base.css uses CSS *logical* properties
 * (margin-inline, padding-block, text-align: start) so the overwhelming
 * majority of RTL needs no rule at all — the `dir` attribute does it. A
 * mirrored second stylesheet is forbidden and the test suite enforces that by
 * failing if base.css ever uses margin-left / float: right / etc.
 *
 * What legitimately belongs here is the genuine remainder — the handful of
 * properties CSS has no logical equivalent for:
 *   - box-shadow / text-shadow offsets
 *   - transform: translateX(), rotate() on directional icons
 *   - background-position and sprite offsets
 *   - directional glyphs (chevrons, arrows) that must flip
 *
 * Loaded ONLY when dir="rtl". A theme may add its own <theme>/css/rtl.css on
 * top of this for deltas that are specific to that theme.
 *
 * Keep it short. If this file starts to look like a mirror of base.css,
 * something in base.css is using a physical property and should be fixed there.
 */

/* Shadows have no logical form — the offset must flip with the direction. */
[dir="rtl"] .card {
    box-shadow: -1px 1px 3px rgba(0, 0, 0, .08);
}

/* Directional glyphs: a chevron pointing "forward" points the other way in RTL. */
[dir="rtl"] .icon-forward {
    transform: scaleX(-1);
}
