/* ==========================================================================
   RTL refinements. The main stylesheet already uses logical properties;
   this file only flips directional glyphs and handles mixed-direction text.
   ========================================================================== */

/* Chevron / arrow icons point "forward" in LTR; mirror them for RTL. */
.riwaya-rtl .icon--flip,
[dir="rtl"] .icon--flip{transform:scaleX(-1)}

/* Each paragraph picks its own direction from its first strong character, so an
   English sentence inside an Arabic chapter is not mangled, and vice versa. */
.riwaya-rtl .entry-content p,
[dir="rtl"] .entry-content p{unicode-bidi:plaintext;text-align:start}

/* Inputs for URLs / e-mail stay LTR so addresses are typed and read correctly. */
.riwaya-rtl input[type="url"],
.riwaya-rtl input[type="email"],
[dir="rtl"] input[type="url"],
[dir="rtl"] input[type="email"]{direction:ltr;text-align:right}
