/* Baseline RTL overrides, linked only on Arabic/Hebrew pages by the i18n build.
 * The site's main CSS is LTR-authored and inline per page; this provides a
 * sensible right-to-left baseline. Visual QA + per-component tuning is expected
 * as RTL traffic grows. */

html[dir="rtl"] body { direction: rtl; text-align: right; }

/* Mirror common flex rows so nav / footer / button groups read right-to-left. */
html[dir="rtl"] nav,
html[dir="rtl"] .nav-links,
html[dir="rtl"] .nav-ctas,
html[dir="rtl"] footer,
html[dir="rtl"] .footer-col,
html[dir="rtl"] .foot-links { direction: rtl; }

/* Lists and default text blocks. */
html[dir="rtl"] ul,
html[dir="rtl"] ol { padding-right: 1.2em; padding-left: 0; }

/* Keep code / numeric / latin-only widgets left-to-right inside an RTL page. */
html[dir="rtl"] code,
html[dir="rtl"] pre,
html[dir="rtl"] .ltr { direction: ltr; text-align: left; unicode-bidi: isolate; }

/* The injected language switcher stays usable in both directions. */
html[dir="rtl"] .lang-switcher { text-align: right; }
