/*
 * The Arabic type pair (CR req_4ASQESe1x8c9). Loaded only on Arabic pages by resources/views/partials/arabic-type.blade.php,
 * which also loads the families from Google Fonts. The families are named here and in that partial, nowhere else:
 * every Arabic rule (home-v3.css, checkout-page.css, the tasbih page) reads these variables.
 *
 *   --ar-display  headings (pairs with the Fraunces serif)
 *   --ar-body     running text, buttons, forms (pairs with Inter)
 *
 * Arabic is never letter-spaced or upper-cased (it has no capitals and spacing breaks the joined letters).
 */
[lang="ar"] {
    --ar-display: "Amiri", "Fraunces", Georgia, serif;
    --ar-body: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ar-lh-body: 1.6;
    --ar-lh-display: 1.25;
}

[lang="ar"] body,
[lang="ar"] button,
[lang="ar"] input,
[lang="ar"] select,
[lang="ar"] textarea {
    font-family: var(--ar-body);
}

/* The v2-editorial pages (the Arabic tasbih page, the v2 islands on the Arabic home): Fraunces and Inter
   have no Arabic letters, so the pair takes over; the serif headings keep their serif contrast. */
[lang="ar"] .v2 {
    font-family: var(--ar-body);
    line-height: var(--ar-lh-body);
}
[lang="ar"] .v2 .v2-serif,
[lang="ar"] .v2 h1,
[lang="ar"] .v2 h2,
[lang="ar"] .v2 h3 {
    font-family: var(--ar-display);
    line-height: var(--ar-lh-display);
    letter-spacing: 0;
}
[lang="ar"] .v2 * {
    letter-spacing: 0 !important;
    text-transform: none !important;
}
