/* THE PUBLIC PAGES IN PERSIAN (18 October, the language copy): the same layout, read from the right. The site's own
   rules are written for left-to-right in only a handful of places; each is turned round here, and the type is one
   that has Persian letters on both phones: Vazirmatn (SIL Open Font License, beside it), served from the site itself. */
/* the Persian face itself is declared once, by langsite.js (FA_FACE), for every page and the app while the languages are on (28 October) */
/* the hidden "skip to content" link sits off the left edge; read from the right that edge is the far end of a
   ten-thousand-pixel page, so a phone could be scrolled sideways into nothing. It hides off the right instead. */
[dir=rtl] .skip { left: auto; right: -9999px; }
[dir=rtl] .skip:focus { right: var(--gutter); left: auto; }
/* the site's two type families are named once (--sans, --mono); in Persian both are the Persian face, and no letter is
   spaced out - Persian letters join, and spacing them breaks the word apart */
[dir=rtl] { --sans: "Vazirmatn", "Noto Sans Arabic", Tahoma, "Geeza Pro", "Segoe UI", system-ui, sans-serif;
            --mono: "Vazirmatn", "Noto Sans Arabic", Tahoma, "Geeza Pro", ui-monospace, monospace; }
[dir=rtl] body, [dir=rtl] body * { letter-spacing: 0 !important; }
[dir=rtl] .bk-name, [dir=rtl] .bk-name * { font-family: 'Archivo Variable', 'Archivo', system-ui, sans-serif; }
[dir=rtl] body { line-height: 1.85; }
[dir=rtl] .doc ul, [dir=rtl] .howto-body ul { padding-left: 0; padding-right: 1.1rem; }
[dir=rtl] th, [dir=rtl] td { text-align: right; }
[dir=rtl] .ticks li { padding-left: 0; padding-right: 1.5em; }
[dir=rtl] .nav-phone .nav-list { right: auto; left: 0; }
[dir=rtl] .bk-lang-list { right: auto; left: 0; }
[dir=rtl] .bk-name, [dir=rtl] .mark { direction: ltr; unicode-bidi: isolate; }
[dir=rtl] input[type=email], [dir=rtl] input[inputmode=numeric] { direction: ltr; text-align: right; }
/* the same for anything hidden off the left edge by its own style (the sign-in page's trap for robots) */
[dir=rtl] [style*="-9999px"] { left: auto !important; right: -9999px !important; }
/* A RIGHT-TO-LEFT PAGE IS NOT JUSTIFIED (30 October 2026, Mohsen): stretching Persian lines to both edges, with no
   kashida, opened uneven gaps between words. site.css justifies body text on wide screens; a right-to-left page reads from
   its own edge instead. */
@media (min-width: 760px) { main p, main li { text-align: start; -webkit-hyphens: manual; hyphens: manual; } }
