/* Arabic uses the existing IBM Plex weights and a smaller display scale. */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/ibm-plex-sans-arabic-arabic-600-normal-0pRdybE_.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

html:lang(ar) {
  --arabic-reading-font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --arabic-display-size: clamp(1.875rem, 1.25rem + 1.6vw, 3rem);
  --arabic-section-size: clamp(1.4375rem, 1.05rem + 1.35vw, 2.25rem);
  --arabic-lead-size: clamp(1rem, .96rem + .2vw, 1.125rem);
}

html:lang(ar) body {
  font-family: var(--arabic-reading-font);
  font-weight: 400;
  line-height: 1.72;
}

html:lang(ar) body main :is(h1, h2, h3, h4) {
  font-family: var(--arabic-reading-font);
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.38;
}

html:lang(ar) body main h1 {
  font-size: var(--arabic-display-size);
  line-height: 1.3;
  text-wrap: balance;
}

html:lang(ar) body main :is(
  [class*="_sectionHead_"], [class*="_sectionShell_"], [class*="_plansHeading_"],
  [class*="_articleSection_"], [class*="_related_"], [class*="_cta_"],
  [class*="_finalCall_"], .example, .final-call
) h2 {
  font-size: var(--arabic-section-size);
}

html:lang(ar) body main .report h2 {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
}

html:lang(ar) body main :is(
  [class*="_heroLead_"], [class^="_lead_"], [class*="_sectionHead_"] > p:not([class*="_eyebrow_"]), .lead
) {
  font-size: var(--arabic-lead-size);
  font-weight: 400;
  line-height: 1.75;
}

html:lang(ar) body :is(
  button, .button, .header-download, a[class*="Button_"],
  a[class*="headerDownload_"], a[class*="headerSubscribe_"]
) {
  font-weight: 600;
}
