/* ==========================================================================
   v3 "Skyline" : Arabic (RTL) overrides. Loads after every partial on /ar/.
   1 type  2 display sizes  3 mirrors (arrows, tilts, glows)  4 fixes.
   Latin pieces keep their own type: anything with dir="ltr" (brand H1, footer
   wordmark, 404 number, English reviews, domains) and the English-only tools.
   ========================================================================== */

/* ---------- 1. type ---------- */
html[dir=rtl]{
 --disp:"Plex Arabic","Bricolage Grotesque",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;
 --sans:"Plex Arabic","DM Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif
}
body.is-ar{line-height:1.85}
/* no uppercase, no tracking on Arabic text */
body.is-ar :not([dir=ltr],[dir=ltr] *,.tool[data-calc] *,.tool[data-permit] *){letter-spacing:0;text-transform:none}
/* headings and other display text: room for Arabic ascenders, dots and marks */
body.is-ar :is(h1,h2,h3,h4,legend,summary):not([dir=ltr],[dir=ltr] *,.tool[data-calc] *,.tool[data-permit] *){line-height:1.3}
body.is-ar h1:not([dir=ltr],[dir=ltr] *,.tool[data-calc] *,.tool[data-permit] *){line-height:1.24}
.is-ar .lead{line-height:1.8}
.is-ar .prose{line-height:1.9}
.is-ar .answer-a{line-height:1.85}
.is-ar .card-d{line-height:1.7}
.is-ar .btn,.is-ar .chip,.is-ar .eyebrow,.is-ar .answer-tag,.is-ar .navlink,.is-ar .sticky-bar a{line-height:1.4}
.is-ar .eyebrow,.is-ar .answer-tag,.is-ar .drop-h,.is-ar .foot-h{font-size:13.5px}
/* the gold marker sits under the Arabic baseline, clear of the line above */
.is-ar .hl{background:linear-gradient(transparent 70%,var(--gold) 70% 96%,transparent 96%)}
.is-ar .on-dark .hl{background:none}

/* ---------- 2. display sizes: about 6 to 10% smaller than Latin ---------- */
/* :where() keeps each rule at the specificity of the rule it replaces, so class-sized headings are untouched */
:where(.is-ar) h1{font-size:clamp(34px,4.6vw,66px)}
:where(.is-ar) h2{font-size:clamp(26px,3.1vw,41px)}
:where(.is-ar) .sec-head h2{font-size:clamp(34px,4.6vw,68px)}
:where(.is-ar) .pagetop.has-media h1{font-size:clamp(33px,3.9vw,56px)}
:where(.is-ar) .related>h2,:where(.is-ar) .band-grid h2{font-size:clamp(29px,3.9vw,54px)}
:where(.is-ar) .hm .h-sc h3{font-size:clamp(30px,3.6vw,52px)}
:where(.is-ar) .hm .h-faq .faq>h2,:where(.is-ar) .hm .h-end .sec-head h2{font-size:clamp(30px,3.8vw,54px)}
:where(.is-ar) .hm .h-two .sec-head h2{font-size:clamp(28px,3.1vw,44px)}
@media (max-width:720px){
 :where(.is-ar) .pagetop h1,:where(.is-ar) .pagetop.has-media h1{font-size:clamp(30px,8.6vw,40px)}
}
/* tiny Latin-sized labels are too small for Arabic */
.is-ar .facts dt{font-size:13px}
.is-ar .hm .h-sc strong{line-height:1.4}

/* ---------- 3. mirrors ---------- */
/* arrows point with the reading direction (the calculator keeps its own rule in 06-tools.css) */
.is-ar .i-arrow{transform:scaleX(-1)}
[dir=ltr] .i-arrow{transform:none}
/* tilts */
.is-ar .brand:hover .brand-mark{transform:rotate(8deg)}
.is-ar .nf-num{rotate:4deg}
.is-ar .pagetop-media .hero-img{rotate:2.5deg}
.is-ar .pagetop-media::before{rotate:-3deg}
.is-ar .pagetop-media:hover .hero-img,.is-ar .pagetop-media:hover::before{rotate:0deg}
.is-ar .case-shot img{rotate:2deg}
.is-ar .case:hover .case-shot img,.is-ar .case-shot:focus-visible img{rotate:0deg}
.is-ar .badge:hover .badge-ico{transform:translateY(-8px) rotate(6deg)}
.is-ar .hm .h-tile:hover{transform:translateY(-8px) rotate(1deg)}
/* decorative glows and grids drawn with physical corners */
.is-ar .pagetop::before,.is-ar .band-grid::after,.is-ar .hm .h-hero::before,.is-ar .hm .h-hero::after,.is-ar .hm .h-band::before,.is-ar .hm .h-end::before{transform:scaleX(-1)}
