/* Right-to-left pages (ar, ur; owner 30.11.2026, Z-1748). scripts/site-rtl.py links this file on those pages only.
   Most of the site is flex and grid, which turn round by themselves under dir="rtl"; these are the places that set a
   side by hand. */
/* hidden form trap: pushed off to the right, where a right-to-left page does not scroll (left:-9999px made the page
   10 000 px wide and showed it empty) */
[dir="rtl"] .contact-honey { left: auto; right: -9999px; }
[dir="rtl"] .skip:not(:focus) { left: auto; right: -9999px; }
[dir="rtl"] .skip:focus { left: auto; right: 12px; }
/* the language menu opens from the left edge of the header, inward */
[dir="rtl"] .langsel ul { right: auto; left: 0; text-align: right; }
[dir="rtl"] .langsel a[aria-current]::after { margin-left: 0; margin-right: auto; }
/* lists and quotes indent from the right */
[dir="rtl"] ul, [dir="rtl"] ol { padding-right: 1.4em; padding-left: 0; }
[dir="rtl"] .langsel ul, [dir="rtl"] nav ul, [dir="rtl"] ul[class], [dir="rtl"] ol[class] { padding-right: 0; }
[dir="rtl"] blockquote { border-left: 0; border-right: 3px solid currentColor; padding-left: 0; padding-right: 1em; }
/* code, commands, addresses and the AI texts stay left to right inside the page */
[dir="rtl"] code, [dir="rtl"] pre, [dir="rtl"] kbd, [dir="rtl"] samp, [dir="rtl"] input[type="email"], [dir="rtl"] input[type="url"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] pre { text-align: left; }
/* blocks the site left-aligns on purpose read from the right here */
[dir="rtl"] .os-fig, [dir="rtl"] .os-win { text-align: right; }
:lang(ur) { line-height: 1.9; }
