/* Arabic pages (html[dir=rtl]). Loaded by inc/page.php only when 'lang' => 'ar'.
   The layout mostly mirrors on its own (flex/grid follow dir); this file fixes the physical left/right rules and sets the Arabic type. */
[dir="rtl"] body { font-family: Tahoma, "Segoe UI", "Noto Naskh Arabic", Arial, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .btn, [dir="rtl"] .kick, [dir="rtl"] .lede, [dir="rtl"] .big,
[dir="rtl"] summary, [dir="rtl"] .foot-k { font-family: inherit; letter-spacing: 0; }
[dir="rtl"] .kick { font-size: 14px; }
[dir="rtl"] p, [dir="rtl"] li, [dir="rtl"] dd { line-height: 1.85; }
/* Latin names and code inside Arabic text keep their own direction. */
[dir="rtl"] [lang="en"], [dir="rtl"] bdi { unicode-bidi: isolate; }

[dir="rtl"] .skip { left: auto; right: 12px; }
[dir="rtl"] .crumbs li + li::before { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .stats li { border-right: 0; border-left: 1px solid var(--hx-line); }
[dir="rtl"] .stats li:first-child { padding-left: 24px; padding-right: 0; }
[dir="rtl"] .stats li:last-child { border-left: 0; }
@media (max-width: 760px) {
  [dir="rtl"] .stats li:nth-child(3) { padding-left: 24px; padding-right: 0; }
  [dir="rtl"] .stats li:nth-child(2) { border-left: 0; }
}
[dir="rtl"] .faq summary::after { right: auto; left: 4px; }
[dir="rtl"] .tl { padding-left: 0; padding-right: 34px; }
[dir="rtl"] .tl::before, [dir="rtl"] .tl-fill { left: auto; right: 7px; }
[dir="rtl"] .tl li::before { left: auto; right: -33px; }
[dir="rtl"] .flow { padding: 22px 54px 22px 22px; }
[dir="rtl"] .flow::before { left: auto; right: 32px; }
[dir="rtl"] .flow::after { left: auto; right: 28px; }
[dir="rtl"] .flow li::before { left: auto; right: -27px; }
[dir="rtl"] .proof > li { border-left: 1px solid var(--hx-line); border-right: 3px solid var(--cu); }
[dir="rtl"] .phases li::before { left: auto; right: 0; }
[dir="rtl"] .qs { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] .portrait { float: left; margin: 6px 28px 18px 0; }
[dir="rtl"] .portrait img { transform: none; } /* photo sits left of the text here, and already looks right toward it */
[dir="rtl"] .ss-ic { margin-right: 0; margin-left: 5px; }
/* Numbers and years read left to right. */
[dir="rtl"] .yr, [dir="rtl"] .stats b, [dir="rtl"] .face b { direction: ltr; unicode-bidi: isolate; }

/* The Pinout menu is a drawing of a chip: keep pin 1 top-left as on a real datasheet. */
[dir="rtl"] .pn-chip, [dir="rtl"] .pn-cap { direction: ltr; }
[dir="rtl"] .pn-lb { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }

/* Viva Vola band: mirror only the background image, so its dark green side sits under the right-aligned Arabic text */
[dir="rtl"] .vv-star { isolation: isolate; }
[dir="rtl"] .vv-star::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url(../assets/vivavola/band-green.webp) 0 50% / cover no-repeat; transform: scaleX(-1); }

/* contact honeypot: left:-9999px becomes a 10,000px horizontal scroll in RTL; hide it off the clipped (right) side instead */
[dir="rtl"] .hp { left: auto; right: -9999px; }
