/* ==========================================================================
   Right-to-left (ar + ckb). Loaded only on pages with <html dir="rtl">.
   Flex/grid order mirrors by itself; this file fixes what physical CSS and
   scripted motion assume about left and right.
   ========================================================================== */

/* Arabic script is joined: tracking pulls letters apart, and the Latin display line-heights clip it inside the P1 line masks. */
[dir="rtl"] *{ letter-spacing:0 !important; }
[dir="rtl"] :is(h1, h2, h3, .display, .p2, .mv__statement){ line-height:1.4; }
[dir="rtl"] .eyebrow{ text-transform:none; }

/* Directional icons point the other way */
[dir="rtl"] :is(.ti-arrow-right, .ti-arrow-left, .ti-arrow-up-right, .ti-chevron-right, .ti-chevron-left, .ti-send){ display:inline-block; transform:scaleX(-1); }

/* Scripted horizontal motion (P5 drag track, P9 marquee) is written for LTR: keep the track LTR, the cards RTL. */
[dir="rtl"] :is(.p5__track, .p9__row){ direction:ltr; }
[dir="rtl"] :is(.p5__track, .p9__row) > *{ direction:rtl; }

/* Physical offsets */
[dir="rtl"] .field--select::after{ right:auto; left:16px; }

/* Phone numbers and emails stay LTR inside RTL text */
[dir="rtl"] :is(a[href^="tel:"], a[href^="mailto:"], input[type="email"], input[type="tel"]){ direction:ltr; unicode-bidi:isolate; }
