/* ARABISCA Arabic pages: right-to-left reading and the Cairo typeface.
   Loaded only by /ar/* pages, after the shared styles. The ARABISCA wordmark keeps Anton. */

html[lang="ar"] body,
html[lang="ar"] body *:not(.home-wordmark):not(.home-wordmark *):not(svg):not(svg *) {
  font-family: Cairo, Onest, sans-serif !important;
  letter-spacing: 0 !important; /* spacing between letters breaks joined Arabic script */
}

/* Headings: Anton is tall and condensed; Cairo needs weight and a little more line height. */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .display {
  font-weight: 800 !important;
  line-height: 1.22 !important;
  text-transform: none !important;
}
html[lang="ar"] h1 em,
html[lang="ar"] h2 em { font-style: normal; }

/* Small capitals labels read better slightly larger and bolder in Arabic. */
html[lang="ar"] .eyebrow,
html[lang="ar"] .links a,
html[lang="ar"] .small {
  font-size: 12.5px !important;
  font-weight: 600;
}

/* Paragraphs: Arabic needs more line height. */
html[lang="ar"] p,
html[lang="ar"] li,
html[lang="ar"] label,
html[lang="ar"] summary,
html[lang="ar"] dd {
  line-height: 1.8;
}

/* Keep Latin-only details left-to-right inside Arabic sentences. */
html[lang="ar"] input[type="email"],
html[lang="ar"] input[type="url"],
html[lang="ar"] [href^="mailto:"] {
  direction: ltr;
  unicode-bidi: plaintext;
}
html[lang="ar"] input[type="email"],
html[lang="ar"] input[type="url"] { text-align: right; }

/* Language switch in the main navigation. */
.lang-switch { font-weight: 600; }

/* The ARABISCA wordmark and the scrolling platform names stay left-to-right. */
html[lang="ar"] .home-wordmark,
html[lang="ar"] .arb-marquee-track {
  direction: ltr;
}

/* Tick boxes and round options sit on the right of their text. */
html[lang="ar"] label > input[type="checkbox"],
html[lang="ar"] label > input[type="radio"] {
  margin-left: 10px !important;
  margin-right: 0 !important;
}
