/*
 * MilitarySci RTL (§51).
 *
 * The theme is built with logical CSS properties (margin-inline,
 * padding-inline, inset-inline, border-inline-start…), so layout, spacing,
 * tables, breadcrumbs, drawers and timelines flip automatically under dir="rtl".
 *
 * This file contains only the handful of things that cannot be expressed
 * with logical properties or the runtime Arabic font block (see inc/rtl.php).
 */

/* Physical fallbacks for third-party content rendered with physical props. */
html[dir="rtl"] .alignleft { float: right; margin-right: 0; margin-left: var(--msi-space-5); }
html[dir="rtl"] .alignright { float: left; margin-left: 0; margin-right: var(--msi-space-5); }

/* Mono numerals stay LTR inside RTL text. */
html[dir="rtl"] [data-mono],
html[dir="rtl"] .msi-relchip__rel,
html[dir="rtl"] .msi-tlrow__date,
html[dir="rtl"] .msi-countdown__unit span,
html[dir="rtl"] .msi-errorpage__code,
html[dir="rtl"] .msi-activity__time {
	direction: ltr;
	unicode-bidi: embed;
}

/* The countdown unit order is symmetric; keep it identical in RTL. */
html[dir="rtl"] .msi-countdown { flex-direction: row-reverse; }
