/* Laxers Vision in Arabic. The page reads right to left: css/site.ar.css is the site's stylesheet mirrored (work/ar/flip.py),
   and this file holds what mirroring cannot know: the Arabic type, and the few things set by hand. Pictures of interfaces
   (everything under dir="ltr") are left exactly as they are in English. */

/* the Arabic letters of the site's own family: Tajawal, as in the catalogue. Latin words and figures stay in Manrope */
@font-face{font-family:Manrope;src:url(../fonts/Tajawal-Regular.ttf) format("truetype");font-weight:200 450;font-display:swap;size-adjust:108%;
  unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:Manrope;src:url(../fonts/Tajawal-Medium.ttf) format("truetype");font-weight:451 800;font-display:swap;size-adjust:108%;
  unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF}

/* joined letters are never spaced apart or slanted */
html[lang="ar"] :where(:not([dir=ltr],[dir=ltr] *)){letter-spacing:0!important}
html[lang="ar"] :where(i,em,cite,address,dfn):where(:not([dir=ltr],[dir=ltr] *)){font-style:normal!important}
/* drawings are drawn left to right, whatever the page */
html[lang="ar"] svg{direction:ltr}
/* the arrows point the way the page reads */
html[dir="rtl"] :is(.arw,.mm-ar):where(:not([dir=ltr] *)){scale:-1 1}

/* ---------- the home's showcase: its layout is the script's own and is kept; its words read right to left, on the right ---------- */
html[dir="rtl"] .stage :is(.cap,.cap-go,.illus,.hint,.wm-l,.stops){direction:rtl}
html[dir="rtl"] .stage :is(.cap,.cap *,.cap-go,.illus,.hint,.wm-l,.stops *){letter-spacing:0!important}
html[dir="rtl"] .stage .cap{text-align:right}
html[dir="rtl"] .stage .cap-t{line-height:1.22}
html[dir="rtl"] .stage .cap-t .ln{padding:.2em 0 .3em .5em;margin:-.2em 0 -.3em -.5em}
html[dir="rtl"] .stage.pt .cap-t .ln{padding-left:0;margin-left:0}
html[dir="rtl"] .stage .cap-t sup{margin-left:0;margin-right:.55em}
html[dir="rtl"] .stops{right:auto;left:calc(var(--gut) - 10px)}
html[dir="rtl"] .stops button::after{margin-right:0;margin-left:10px}

/* ---------- the two flow drawings: on a wide screen they run right to left; every node keeps its own face ---------- */
html[dir="rtl"] .af:not(.af-p) .af-d,html[dir="rtl"] .wf:not(.wf-p) .wf-d{transform:scaleX(-1)}
html[dir="rtl"] .af:not(.af-p) .af-n,html[dir="rtl"] .wf:not(.wf-p) .wf-n{scale:-1 1}
html[dir="rtl"] :is(.af,.wf) *{letter-spacing:0!important}
html[dir="rtl"] .af:not(.af-p) .af-n.a b{left:auto;right:calc(var(--d) * .5em + .55em)}

/* ---------- drawings kept as drawn (the flow drawings, the map with its six questions, the stack of layers, a film with the
   lines under it, the name letter by letter): their Arabic words still read right to left, each in its own place ---------- */
:where(html[dir="rtl"] :is(.af,.wf,.qa,.gk,.bp-trip,.abc2-l,.ab1-n,.wv-f,.lts) :is(p,span,b,small,figcaption,li,dd,dt,h3,h4,strong)){unicode-bidi:plaintext;text-align:match-parent}
html[dir="rtl"] :is(.qa,.gk,.bp-trip,.abc2-l,.ab1-n) *{letter-spacing:0!important}
html[dir="rtl"] .gk-lb :is(b,span),html[dir="rtl"] .abc2-c :is(.w,.g){text-align:left}
@media (min-width:901px){html[dir="rtl"] .qa-l :is(.q3,.q4,.q5) :is(h3,p){text-align:left}}
/* on a narrow screen the six questions are a plain list under the map, and read from the right like the page */
@media (max-width:900px){html[dir="rtl"] .qa-l{direction:rtl}html[dir="rtl"] .qa-l li,html[dir="rtl"] .qa-l li :is(h3,p){text-align:right!important}}
/* the tall drawing of the agent: the name beside the agent takes two lines, inside the drawing */
html[dir="rtl"] .af-p .af-n.a b{white-space:normal;width:max-content;max-width:6.6em;line-height:1.2}
html[dir="rtl"] .ab1-n{justify-content:flex-end}
