/* RTL baseline (UI-SPEC §RTL Contract.2 — Plan 03.1-04 audit pass) */
body {
  direction: rtl;
  text-align: right;
  font-family: var(--rfd-ar-body);
}

/* === RTL component overrides (added 03.1-04 after rfd.css audit) === */

/* UI-SPEC §RTL line 264: search-icon spacing now lives in rfd.css with
 * `margin-inline-start: 8px` (logical) — see WR-01 fix in 03.1-REVIEW.
 * Override removed because the rtl.css enqueue order (rfd-child handle, which
 * WP repoints at rtl.css when is_rtl()) is BEFORE rfd-components, so a
 * physical margin-left in rfd.css would have clobbered any rtl.css override.
 */

/* LTR plugin injection catch-all (UI-SPEC §RTL Contract.3, PITFALLS §1)
 * MUST be the LAST rule of rtl.css.
 */
[dir="ltr"]:not(html):not(.rfd-ltr-safe) {
  direction: inherit !important;
  text-align: inherit !important;
  unicode-bidi: inherit !important;
}