/* RTL overrides — injected only into RTL language pages (/ar/) by build_i18n.py.
   Baseline mirror of the LTR layout: direction flip does the heavy lifting for
   flex/grid/text; targeted fixes below for lists, alignment and LTR tokens.
   Visual review may surface a few inline-styled spots to touch up. */

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

/* Lists: bullets / numbers move to the right edge */
html[dir="rtl"] ul,
html[dir="rtl"] ol { padding-right: 1.25em; padding-left: 0; }

/* Keep monospace / code / prices / Latin brand tokens rendering left-to-right
   inside the RTL flow (Unicode bidi isolation) */
html[dir="rtl"] code,
html[dir="rtl"] [class*="mono"],
html[dir="rtl"] [style*="--mono"] { direction: ltr; unicode-bidi: isolate; }

/* Eyebrows / section labels / leads align to the right */
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .section-eyebrow,
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-lead,
html[dir="rtl"] .lead { text-align: right; }

/* Cards / tiers / list rows: align content to the right */
html[dir="rtl"] .tier,
html[dir="rtl"] .card,
html[dir="rtl"] .tier .body,
html[dir="rtl"] .tier ul li { text-align: right; }

/* Centered hero/CTA blocks stay centered */
html[dir="rtl"] [style*="text-align: center"],
html[dir="rtl"] [style*="text-align:center"] { text-align: center !important; }

/* Tables read right-to-left */
html[dir="rtl"] th,
html[dir="rtl"] td { text-align: right; }
