/* Right-to-left pages (Arabic, B18, taken from the Self-Empowerment Profile). Loaded by
   layouts/partials/rtl_head when the language is written right to left; the classes and inline
   styles of the HTML are mirrored on the server (App\Support\Rtl) and brandscan.css / report.css
   are replaced by their mirrored copy in css/rtl/. */

/* Arabic letters in Noto Sans Arabic (variable, weights 100-900, SIL OFL), whatever family a
   page names: each family below gets the Arabic glyphs through unicode-range. */
@font-face { font-family: 'Noto Sans Arabic'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/noto-sans-arabic-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/noto-sans-arabic-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/noto-sans-arabic-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url('../fonts/noto-sans-arabic-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFC; }

/* Arabic needs a little more line height; no letter-spacing (it breaks the joins), no capitals,
   no slanted Arabic */
html[dir="rtl"] body.bs { line-height: 1.75; }
html[dir="rtl"] * { letter-spacing: normal !important; }
html[dir="rtl"] .bs .eyebrow, html[dir="rtl"] [style*="uppercase"] { text-transform: none; }
html[dir="rtl"] em, html[dir="rtl"] i, html[dir="rtl"] .serif { font-style: normal; }

/* Charts keep the geometry they were drawn with */
html[dir="rtl"] svg { direction: ltr; }
html[dir="rtl"] svg text { unicode-bidi: plaintext; }

/* The readiness gauge reads 0 → 100 like the charts */
html[dir="rtl"] .gauge, html[dir="rtl"] .gauge-scale { direction: ltr; }

/* Figures, codes and ratings stay left to right inside Arabic text */
html[dir="rtl"] .num, html[dir="rtl"] .grade { unicode-bidi: isolate; }

/* E-mail addresses, passwords, links and numbers are typed left to right */
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="password"], html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="number"] { direction: ltr; text-align: right; }
