/* AtharX website, Arabic edition. Loaded after site.rtl.css on the pages in ar/ only.
   site.rtl.css is the mirrored copy of site.css (made by _i18n/make_rtl.js). This file adds what mirroring cannot:
   the Arabic typeface, Arabic type settings, arrows, and the parts that stay left to right. */

/* IBM Plex Sans Arabic (IBM, SIL OFL), the Arabic companion of the site's IBM Plex Sans. Arabic letters only:
   Latin letters and digits keep coming from IBM Plex Sans, so product names look as on the English pages. */
@font-face{font-family:"IBM Plex Sans Arabic";src:url(../fonts/IBMPlexSansArabic-300.woff2) format("woff2");font-weight:300;font-display:swap;
  unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"IBM Plex Sans Arabic";src:url(../fonts/IBMPlexSansArabic-400.woff2) format("woff2");font-weight:400;font-display:swap;
  unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"IBM Plex Sans Arabic";src:url(../fonts/IBMPlexSansArabic-500.woff2) format("woff2");font-weight:500;font-display:swap;
  unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"IBM Plex Sans Arabic";src:url(../fonts/IBMPlexSansArabic-600.woff2) format("woff2");font-weight:600;font-display:swap;
  unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"IBM Plex Sans Arabic";src:url(../fonts/IBMPlexSansArabic-700.woff2) format("woff2");font-weight:700;font-display:swap;
  unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}

:root{--font:"IBM Plex Sans","IBM Plex Sans Arabic"}

/* ---------- Arabic type ----------
   Arabic letters join, so no letter spacing anywhere; lines need more room than Latin ones. */
*,*::before,*::after{letter-spacing:0!important}
body{line-height:1.8}
.display{line-height:1.25}
.h2{line-height:1.3}
.h3{line-height:1.5}
.big{line-height:1.6}
.lead{line-height:1.8}
.p{line-height:1.85}
.label,.idx{line-height:1.6}
.btn,.more{line-height:1.3}

/* ---------- arrows point the way the text runs ---------- */
.btn::after,.more::after,.tab .label::after,.xp-prod strong::after{content:"←"}
.btn.play::after{content:"▶"}
.art .back::before,.crumb::before,.job .back::before{content:"→"}

/* ---------- parts that stay left to right ---------- */
/* logo strip, the Mach axis, the before/after slider, the player's bar, the convergence chart */
.logos,.mach-rail,.cmp,.sc-bar,.conv-card svg{direction:ltr}
/* the two sides of the before/after slider keep their own labels */
.cmp .tag{left:10px;right:auto}
.cmp .tag.r{left:auto;right:10px}
/* Latin names, addresses and numbers inside Arabic text */
.mail,.sc-time,.sc-count,.psq-count{direction:ltr;unicode-bidi:isolate}

/* ---------- pictures are not mirrored, so the text stays on the side each picture leaves free ---------- */
/* hero: the text now stands on the right, so the darker side of the picture is the right one */
.hero::after{background:linear-gradient(180deg,rgba(5,12,9,.7) 0%,rgba(5,12,9,.08) 30%,rgba(5,12,9,.25) 55%,rgba(5,12,9,.92) 88%,var(--k0) 100%),
  linear-gradient(270deg,rgba(5,12,9,.6) 0%,rgba(5,12,9,0) 60%)}
/* the flag band keeps its text on the right, beside the flag (the flag picture is never mirrored) */
.band.right .wrap{justify-items:start}

/* ---------- drawn arrows ---------- */
.pr-name svg{transform:scaleX(-1)}
.pr-card:hover .pr-name svg,.pr-name a:focus-visible svg{transform:translateX(-4px) scaleX(-1)}

/* ---------- labels that name the left and the right of a picture stay on their side ---------- */
/* the four speed regimes sit under their part of the Mach axis; the text inside each one reads right to left */
.mach-regs{direction:ltr}
.mach-reg{direction:rtl}
.mach-reg button{text-align:right}
/* "CFD, hours" over the left half of the split picture and "AeroAI, seconds" over the right half */
.aisplit-heads{direction:ltr}
/* a pair of pictures described as "left" and "right" */
.seq-pair{direction:ltr}

/* training: the arrow of the selected programme points to its picture */
.js .pgx-pick svg{transform:translateX(10px) scaleX(-1)}
.js .pgx-head:hover .pgx-pick svg,.js .pgx-item.is-on .pgx-pick svg{transform:scaleX(-1)}
@media (max-width:860px){.mach-reg{padding-right:0}}
