/* singrank.com/ar/ only (linked from app/layout.js when NEXT_PUBLIC_LANG=ar). 1 Dec 2026.
   <html dir="rtl"> flips flex rows, grids and inline text automatically. This file fixes what
   physical CSS (left/right) cannot: alignment, arrows, Latin runs, and Arabic typography.
   Font: system Arabic faces, no download (Geeza Pro / SF Arabic on Apple, Segoe UI on Windows,
   Noto Sans Arabic on Android). Inter Tight still renders the Latin words (SingRank, Google). */
html[lang="ar"] body,
html[lang="ar"] body :where(h1, h2, h3, h4, h5, h6, p, li, a, span, strong, b, em, small, button, summary, figcaption, label, input, textarea, select, blockquote, dt, dd, td, th) {
  font-family: var(--font-jakarta), "Inter Tight", "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif !important;
}
/* Arabic letters join: letter-spacing breaks the joins, uppercase/italic mean nothing. */
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] :where(h1, h2, h3, h4, h5, h6, p, li, .sv-kicker) { text-transform: none !important; }
html[lang="ar"] :where(em, i) { font-style: normal; }
html[lang="ar"] :where(p, li, dd, figcaption, blockquote) { line-height: 1.9; }
html[lang="ar"] :where(h1, h2, h3) { line-height: 1.45; }
/* Text that the site aligns left in LTR reads from the right here. */
html[dir="rtl"] :where(p, li, h1, h2, h3, h4, dd, dt, figcaption, blockquote, summary, label, td, th) { text-align: start; }
html[dir="rtl"] .home-six { text-align: right; }
/* Arrow glyphs (→ ↗) point the reading direction. */
html[dir="rtl"] a span[aria-hidden="true"], html[dir="rtl"] button span[aria-hidden="true"] { display: inline-block; transform: scaleX(-1); }
/* Phone numbers, prices, URLs and English titles stay left-to-right inside Arabic lines. */
html[dir="rtl"] :where(a[href^="tel:"], a[href^="mailto:"], a[href^="https://wa.me"], code, kbd, [lang="en"]) { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] [lang="en"] { font-family: var(--font-jakarta), "Inter Tight", sans-serif !important; text-align: left; }

/* Before → after figures read left to right, like the numbers inside them. */
html[dir="rtl"] :where(.hpb-fig, .ba-num, .cs-num, .cs-big, .cs-fig) { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .hpb-fig { text-align: right; }
