/* Arabic inner pages (9 Nov 2026): right-to-left fixes on top of inner.css. Loaded after v3-ar.css on /ar/ pages only. */
[dir='rtl'] body.inner { font-family: var(--body); }

/* generated by _ar_work/gen_inner_ar_css.py: Latin display face selectors, switched to Cairo for Arabic */
[dir='rtl'] .topic-index b,
[dir='rtl'] .glance b,
[dir='rtl'] .pc.lg h3,
[dir='rtl'] .prose h2,
[dir='rtl'] .stat b,
[dir='rtl'] .art-faq > h2,
[dir='rtl'] .cs-media.type span,
[dir='rtl'] .cs-body h3,
[dir='rtl'] .cs-nums dd,
[dir='rtl'] .res-item b,
[dir='rtl'] .ab-facts b,
[dir='rtl'] .tl-year,
[dir='rtl'] .ab-st-k,
[dir='rtl'] .sv-glance b,
[dir='rtl'] .sv-num,
[dir='rtl'] .sv-slab b,
[dir='rtl'] .sv-gate-n,
[dir='rtl'] .sv-spend b,
[dir='rtl'] .sv-card b,
[dir='rtl'] .sv-hub-core b,
[dir='rtl'] .sv-xcard h3,
[dir='rtl'] .sv-stats dd,
[dir='rtl'] .sv-stepn,
[dir='rtl'] .sv-conv h3,
[dir='rtl'] .sv-aic-copy h3,
[dir='rtl'] .sb-steps .sb-n {
  font-family: var(--body); font-weight: 800; text-transform: none; letter-spacing: 0; line-height: 1.3;
}

/* big result figures and long Arabic figures: keep them on one line at a size the column holds */
[dir='rtl'] .rs-fig, [dir='rtl'] .num dt, [dir='rtl'] .nums dt { white-space: nowrap; }
[dir='rtl'] .ix-hero h1, [dir='rtl'] .hero-h { line-height: 1.25; }
[dir='rtl'] .bn { font-weight: 800; white-space: nowrap; }
[dir='rtl'] .res-item.big b { font-size: clamp(40px, 4.8vw, 76px); line-height: 1.25; }
[dir='rtl'] .res-item b { font-size: clamp(30px, 3vw, 44px); line-height: 1.25; }

/* ---- Mirror rule (founder, 9 Nov 2026): on Arabic pages every element sits on the opposite side of the English page, text and
   pictures alike. 3D world scenes carry no words, so they are flipped; real client screenshots keep their orientation. ---- */
/* Solutions hero: the world moves to the left and fades towards the copy on the right; the scrim sits behind the copy */
[dir='rtl'] .sv-art { inset: 0 auto 0 0; transform: scaleX(-1); }
[dir='rtl'] .sv-hero2-glance .sv-glance { background: linear-gradient(to left, rgba(12, 12, 14, 0.92), rgba(12, 12, 14, 0.55)); }
@media (min-width: 900px) {
  [dir='rtl'] .sv-hero2-copy { position: relative; }
  [dir='rtl'] .sv-hero2-copy::before { content: ""; position: absolute; z-index: -1; inset: -12% -40vw -12% -18%; pointer-events: none;
    background: linear-gradient(to left, rgba(12, 12, 14, 0.94) 0%, rgba(12, 12, 14, 0.8) 70%, rgba(12, 12, 14, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 80%, transparent 100%); }
  [dir='rtl'] .sv-hero2 .sec-lead, [dir='rtl'] .sv-hero2 .crumbs { text-shadow: 0 1px 2px rgba(12, 12, 14, 0.95), 0 0 22px rgba(12, 12, 14, 0.9); }
}
/* v4 blocks (sv3.css) */
[dir='rtl'] .e-leak-world { transform: scaleX(-1); }
[dir='rtl'] .e-beat-fig img, [dir='rtl'] .e-way-fig, [dir='rtl'] .e-pf-art, [dir='rtl'] .e-wipe-a img, [dir='rtl'] .e-wipe-b img { transform: scaleX(-1); }
[dir='rtl'] .e-cell-in { --mx: 15%; }
[dir='rtl'] .e-pf { --mx: 82%; }
[dir='rtl'] .e-stn-n { font-family: var(--body); font-weight: 800; }
[dir='rtl'] .e-beat-t, [dir='rtl'] .e-cell p, [dir='rtl'] .e-stn > p:last-child { line-height: 1.7; }
[dir='rtl'] .e-pf-chip, [dir='rtl'] .e-beat-tag, [dir='rtl'] .e-pf-when, [dir='rtl'] .e-ch-label { letter-spacing: 0; }
/* a Latin name inside an Arabic heading (one .ln-mask since 9 Nov) never splits across two lines */
[dir='rtl'] .ln-mask { white-space: nowrap; }
/* Arabic figures with a word ("٢٫٩ مليون") stay on one line and step down a size so three fit the column */
[dir='rtl'] .sv-stats dd { white-space: nowrap; font-size: clamp(26px, 2.6vw, 40px); }
[dir='rtl'] .e-reach b { white-space: nowrap; }
/* v4 results and channel figures in Arabic: Cairo heavy (Anton has no Arabic) */
[dir='rtl'] .e-r b, [dir='rtl'] .e-reach b { font-family: var(--body); font-weight: 800; line-height: 1.15; letter-spacing: 0; }
[dir='rtl'] .e-r b { font-size: clamp(46px, 5.6vw, 88px); }
[dir='rtl'] .e-r.i3 b, [dir='rtl'] .e-r.i4 b { font-size: clamp(40px, 4.4vw, 66px); }
[dir='rtl'] .e-r p { max-width: 40ch; }
/* Latin names inside Arabic text (ar_site.put_text wraps them) never break across lines */
[dir='rtl'] .lt { white-space: nowrap; unicode-bidi: isolate; }
