/* FINDOM: Arabic version (RTL), 23.11.2026.
   Loaded only on /ar/ pages, after findom.css (home) or project.css (inner pages).
   Arabic text uses the system stack; Latin names keep Montserrat (it has no Arabic glyphs, so Arabic falls through). */

html[dir="rtl"] { font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", sans-serif; }
html[dir="rtl"] * { letter-spacing: normal !important; text-transform: none !important; }
html[dir="rtl"] p, html[dir="rtl"] li, html[dir="rtl"] .chapter p { line-height: 1.8; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { line-height: 1.3; }
html[dir="rtl"] .lead { line-height: 1.7; }
html[dir="rtl"] [dir="ltr"] { unicode-bidi: isolate; }

/* off-screen helpers: push to the right (left overflow scrolls in RTL) */
html[dir="rtl"] .skip-link { left: auto; right: -9999px; }
html[dir="rtl"] .skip-link:focus { right: 0; }
html[dir="rtl"] .enq-hp { left: auto; right: -9999px; }

/* ---------- home page (findom.css) ---------- */
html[dir="rtl"] header .menu { left: auto; right: -2000px; }
html[dir="rtl"] header.open .menu { left: auto; right: 0; }
html[dir="rtl"] header .menu::before { left: auto; right: -3000px; }
html[dir="rtl"] #panel .social { right: auto; left: 0; }
html[dir="rtl"] #panel .lang-sw { left: auto; right: 3.75rem; }
html[dir="rtl"] header article > div { right: auto; left: 0; }
html[dir="rtl"] header article p { line-height: 1.5; }
html[dir="rtl"] h1 span { -webkit-text-fill-color: #ffffff; }
html[dir="rtl"] #what aside > img { left: auto; right: 0; }
html[dir="rtl"] .menu li { line-height: 1.5; }

/* slider arrows: "previous" sits on the right and points right */
html[dir="rtl"] .arrows button.left { transform: none; }
html[dir="rtl"] .arrows button.right { transform: scaleX(-1); }
html[dir="rtl"] .arrows button.left:hover { left: 0.2rem !important; }
html[dir="rtl"] .arrows button.right:hover { right: 0.2rem !important; }

/* contacts card: photo on the left */
/* .address: flex row-reverse mirrors itself in RTL */
html[dir="rtl"] .address .addr-l { display: inline; }

@media (max-width: 999px) {
	html[dir="rtl"] #about .about:nth-child(odd) { right: auto; left: -1rem; }
	html[dir="rtl"] #about .about:nth-child(even) { left: auto; right: -1rem; }
}
@media (max-width: 677px) {
	html[dir="rtl"] .address > div { float: none; margin: 0 0 1.5rem 0; }
}
@media (max-width: 499px) {
	html[dir="rtl"] #panel .lang-sw { right: 0; }
}

/* ---------- inner pages (project.css) ---------- */
html[dir="rtl"] .topbar .lang-sw { margin-right: auto; margin-left: 1.6rem; }
html[dir="rtl"] .fact { padding: 2rem 0 2rem 1.5rem; border-right: 0; border-left: 1px solid var(--border); }
html[dir="rtl"] .fact:last-child { border-left: 0; }
html[dir="rtl"] .fact .n { line-height: 1.2; }
html[dir="rtl"] .phero--brand { background: radial-gradient(120% 130% at 28% 16%, #17284c 0%, #0b1330 46%, #05060f 100%); }
html[dir="rtl"] .enq input[type="email"] { text-align: right; }
@media (max-width: 900px) {
	html[dir="rtl"] .fact:nth-child(2) { border-left: 0; }
}
html[dir="rtl"] #looking > div:last-child > div { text-align: start; }
/* Arabic: no full justification (Chrome stretches only spaces - wide gaps on narrow columns) */
html[dir="rtl"] .lead, html[dir="rtl"] .chapter p, html[dir="rtl"] #what article > p, html[dir="rtl"] #governance > p { text-align: start; }
