/* Arabic (right-to-left) — js/i18n.js sets <html lang="ar" dir="rtl"> */
html.tr-wait body { opacity: 0; }
html[lang="ar"] body, html[lang="ar"] button, html[lang="ar"] input, html[lang="ar"] select, html[lang="ar"] textarea { font-family: Tajawal, "Segoe UI", Tahoma, Arial, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-family: Tajawal, "Segoe UI", Tahoma, Arial, sans-serif; font-weight: 800; letter-spacing: 0; }
html[lang="ar"] .eyebrow, html[lang="ar"] [class*="eyebrow"] { letter-spacing: 0; }
html[lang="ar"] .pd-main:has(img)::after { content: '🔍 اضغط للتكبير'; }
/* the macaws perched on the ring summary and on "Find Your Bird's Ring Size" sit on the other side in Arabic:
   turn them round so they still look towards the frame */
html[dir="rtl"] .sum-perch, html[dir="rtl"] .ring-perch { scale: -1 1; }
/* the ring preview and the laser machine read left to right, as in English */
html[dir="rtl"] .r3-wrap, html[dir="rtl"] .cr-laser { direction: ltr; }
html[dir="rtl"] .pt-word-text { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] #s-range, html[dir="rtl"] #pt-range-ok, html[dir="rtl"] .r3-label { unicode-bidi: plaintext; }
html[dir="rtl"] #s-range { direction: ltr; unicode-bidi: isolate; }
