/* Right-to-left pages (Arabic). Loaded only when the page is right-to-left, after the mirrored -rtl stylesheets that
   build_rtl.mjs generates. Written by hand. */

/* Arrow icons drawn inline (menu "overview" links, section cards, carousel controls) point the reading direction.
   The scale property composes with any hover transform, so the arrow still moves on hover. */
[dir="rtl"] svg.ofds-arrow,
[dir="rtl"] :is(.of-hero-prev, .of-hero-next) svg{scale:-1 1}

/* Words not yet translated stay in English. Each paragraph takes its direction from its own first letter, so English
   sentences keep their full stop at the end and dates read "31 Jan 2027"; the text stays aligned to the right, with
   the rest of the mirrored layout. */
[dir="rtl"] :where(.ofh-page, .of-home, .ofh-chrome) :where(p, li, h1, h2, h3, h4, h5, h6, dt, dd, figcaption, summary, blockquote, label, legend, td, th){unicode-bidi:plaintext}
[dir="rtl"] :where(.ofh-page, .of-home, .ofh-chrome) :where(p, li, h1, h2, h3, h4, h5, h6, dt, dd, figcaption, summary, blockquote, label, legend, td, th):where(:not([style*="text-align"])){text-align:right}
