/* Arabic pages.
   Content is mirrored to RTL (dir="rtl" on <html>), but the language strip,
   the header navigation and the footer navigation keep direction: ltr,
   so every link / button sits exactly where it sits on the English site. */

html[lang="ar"] body{
  font-family:"Barlow","Cairo","Segoe UI",Tahoma,"Noto Naskh Arabic",Arial,sans-serif;
  line-height:1.9;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .wordmark,
html[lang="ar"] .btn,
html[lang="ar"] .more,
html[lang="ar"] .rel a b,
html[lang="ar"] .nf h1,
html[lang="ar"] .page-hero h1{
  font-family:"Barlow Condensed","Cairo","Segoe UI",Tahoma,"Noto Naskh Arabic",Arial,sans-serif;
  text-transform:none;
  letter-spacing:0;
}

html[lang="ar"] .hero h1,
html[lang="ar"] .page-hero h1,
html[lang="ar"] h2{
  line-height:1.3;
}

html[lang="ar"] .specs th,
html[lang="ar"] .specs td{
  letter-spacing:0;
}

/* --- navigation bars: translated, never mirrored --- */
html[dir="rtl"] .langbar,
html[dir="rtl"] header,
html[dir="rtl"] footer,
html[dir="rtl"] .langbar .wrap,
html[dir="rtl"] header .wrap,
html[dir="rtl"] footer .wrap,
html[dir="rtl"] .nav,
html[dir="rtl"] .foot-nav,
html[dir="rtl"] .foot-related{
  direction:ltr;
}

html[dir="rtl"] header a,
html[dir="rtl"] footer a,
html[dir="rtl"] .langbar a,
html[dir="rtl"] .langbar .cur,
html[dir="rtl"] .wordmark,
html[dir="rtl"] .foot-bottom span{
  unicode-bidi:isolate;
}

/* the hero scrim turns with the mirrored layout, so the dark side stays under the text */
html[dir="rtl"] .hero::after{
  background:linear-gradient(260deg,rgba(11,42,82,.94) 0%,rgba(15,54,106,.72) 48%,rgba(11,42,82,.2) 100%);
}
