/* Arabic uses joined glyphs, with space above and below the baseline for marks. */
html:lang(ar) {
    --sw-arabic-font: "Geeza Pro", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}
html:lang(ar) :is(body, .sw-home, .sw-masthead, .sw-colophon, .swsc-wrap),
html:lang(ar) :is(button, input, select, textarea, summary, .sw-nav-direct),
html:lang(ar) .sw-masthead-actions a,
html:lang(ar) #primary :is(h1, h2, h3, h4, .sw-inner-kicker, .sw-eyebrow) {
    font-family: var(--sw-arabic-font);
    letter-spacing: normal;
}
html:lang(ar) #primary :is(h1, h2, h3, h4) {
    line-height: 1.35;
    word-break: normal;
    text-wrap: pretty;
}
html:lang(ar) #primary :is(p, li, label, summary) { line-height: 1.65; }
html:lang(ar) .sw-masthead :is(summary, .sw-nav-direct, .sw-masthead-quote) { line-height: 1.45; }
html:lang(ar) :is(#primary, .sw-masthead, .sw-colophon) { text-align: start; }
html:lang(ar) .sw-home-intro h1 em { font-family: inherit; font-style: normal; letter-spacing: normal; }

html:lang(ar) :is(.sw-reference-body, .sw-pattern-body) .sw-code,
html:lang(ar) .swsc-cart-heading h3 {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: right;
}
html:lang(ar) :is(.swsc-form, .swsc-cart-fields, .sw-guide-search, .sw-catalog-search) :is(textarea, input:not([type="file"])) {
    unicode-bidi: plaintext;
    text-align: start;
}
html:lang(ar) .swsc-form :is(input[type="email"], input[type="tel"], input[type="date"]) { direction: ltr; text-align: right; }
html:lang(ar) .sw-footer-networks { margin-inline: auto 0; }
html:lang(ar) .sw-nav-dropdown { inset-inline: -16px auto; }
html:lang(ar) .sw-skip-to-content:focus { inset-inline: 12px auto; }
html:lang(ar) .sw-language-picker > ul { right: auto; left: 0; }
html:lang(ar) .sw-market-faq summary { text-align: start; }
html:lang(ar) :is(.sw-home-arrow-link, .sw-home-button, .sw-home-program-text, .sw-footer-quote, .sw-market-links a) > span[aria-hidden="true"] {
    display: inline-flex;
    transform: scaleX(-1);
}
@media (min-width: 701px) {
    html:lang(ar) .sw-home-intro { width: min(44%, 1400px); }
    html:lang(ar) .sw-home-intro h1 { font-size: clamp(48px, 6.3vw, 180px); }
}
@media (max-width: 700px) {
    html:lang(ar) .sw-home .sw-home-intro h1 { line-height: 1.24; font-size: clamp(40px, 10vw, 65px); }
}
@media (max-width: 500px) {
    html:lang(ar) .sw-language-picker > ul { left: 50%; }
    html:lang(ar) .sw-footer-networks a:first-child { margin-inline: -10px 0; }
}
