/* Per-language fonts and right-to-left adjustments. The language is set on <html lang dir> by i18n/core.js.
   Brand type (fonts.css): Cabinet Grotesk for headlines, Switzer for text. The --sf-* names are kept so the
   component stylesheets don't change. */
:root{
 --sf-display:"Cabinet Grotesk","Inter","Helvetica Neue",Arial,sans-serif;
 --sf-text:"Switzer","Inter","Helvetica Neue",Arial,sans-serif;
 --lf-display:var(--sf-display);--lf-display-weight:600}
/* Cabinet Grotesk and Switzer stop at Latin; mixing them with Inter inside a word looks broken, so
   Vietnamese and Cyrillic set everything in Inter. */
html:is([lang="vi"],[lang="uk"],[lang="ru"]){
 --sf-display:"Inter","Helvetica Neue",Arial,sans-serif;--sf-text:"Inter","Helvetica Neue",Arial,sans-serif}
/* Inter covers Latin, Cyrillic and Vietnamese; Devanagari and Arabic scripts get their own faces. */
html[lang="hi"]{--lf-display:-apple-system,BlinkMacSystemFont,"Inter","Hind",sans-serif;--body:"Inter","Hind",sans-serif;--display:"Inter","Hind",sans-serif}
html[lang="ar"]{--lf-display:"Inter","Cairo",sans-serif;--body:"Inter","Cairo",sans-serif;--display:"Inter","Cairo",sans-serif}
html[lang="ur"]{--lf-display:"Inter","Noto Nastaliq Urdu",serif;--body:"Inter","Noto Nastaliq Urdu","Cairo",serif;--display:"Inter","Noto Nastaliq Urdu","Cairo",serif}
html:is([lang="hi"],[lang="ar"],[lang="ur"]){font-synthesis-weight:none}

/* Scripts with tall marks need room: Anton's tight .86–.95 line-heights would clip them. */
html[lang="hi"] :is(.start-ride h2,.support-intro h2,.ft-head h2,.gp-content h2,.ww-label,.sm-track span),
html[lang="ar"] :is(.start-ride h2,.support-intro h2,.ft-head h2,.gp-content h2,.ww-label,.sm-track span){line-height:1.15}
html[lang="ur"] :is(.start-ride h2,.support-intro h2,.ft-head h2,.gp-content h2,.ww-label,.sm-track span){line-height:1.6;font-weight:700}
html[lang="ur"] body{line-height:1.9}
html[lang="ur"] :is(.lf-menu-items a){--row:1.9em}
html[lang="hi"] :is(.lf-menu-items a){--row:1.45em}
html[lang="ar"] :is(.lf-menu-items a){--row:1.55em}
/* Uppercasing and wide tracking only make sense for Latin/Cyrillic. */
html:is([lang="hi"],[lang="ar"],[lang="ur"]) *{letter-spacing:0!important}

/* Right-to-left: mirror the few places that position text from the left. */
html[dir="rtl"] .ww-title{left:auto;right:5%;text-align:right}
html[dir="rtl"] .ww-index{right:auto;left:3%;text-align:left}
html[dir="rtl"] .ww-index button{text-align:left}
html[dir="rtl"] .burn-counter{left:auto;right:24px}
html[dir="rtl"] .start-credit{right:auto;left:20px}
html[dir="rtl"] .start-shade{transform:scaleX(-1)}
html[dir="rtl"] .lf-chat{right:auto;left:20px}
html[dir="rtl"] .lf-msg-assistant{border-bottom-left-radius:16px;border-bottom-right-radius:6px}
html[dir="rtl"] .lf-msg-user{border-bottom-right-radius:16px;border-bottom-left-radius:6px}
html[dir="rtl"] .support-faq summary{padding:24px 0 24px 48px}
html[dir="rtl"] .support-faq summary::after{right:auto;left:6px}
html[dir="rtl"] .support-faq details p{padding:0 0 26px 48px}
html[dir="rtl"] .ss-sticky::before{transform:scaleX(-1)}
@media (max-width:640px){html[dir="rtl"] .lf-chat{left:14px}}
/* Motion that is measured left-to-right stays LTR (the text inside still shapes right-to-left). */
html[dir="rtl"] :is(.slide-action,.sm-row,.gp-pin,.ww-stage,.lens-carousel){direction:ltr}
html[dir="rtl"] .ww-title,html[dir="rtl"] .ww-index{direction:rtl}
