/* Languages: the language menu in the nav and the phone menu, and per language type fixes.
   Kept apart from light.css so language work and layout work never touch the same file. */

/* desktop language menu, a small dropdown next to Partner login (the nav sits at the bottom, so it opens upward) */
nav.top .dd.lang>button{height:44px;padding:0 11px;gap:6px;border-radius:12px;font:600 13px/1 Inter,sans-serif;letter-spacing:.02em;color:var(--ink)}
nav.top .dd.lang>button svg{transform:none;opacity:.75}
nav.top .dd.lang .ddm{min-width:172px;padding:6px}
nav.top .dd.lang .ddm a{display:flex;align-items:center;min-height:42px;padding:0 14px;border-radius:10px;font:500 14.5px/1.2 Inter,sans-serif;color:var(--ink)}
nav.top .dd.lang .ddm a:hover,nav.top .dd.lang .ddm a:focus-visible{background:#f1effb}
nav.top .dd.lang .ddm a[aria-current]{font-weight:600;color:var(--ink)}
nav.top .dd.lang .ddm a[aria-current]::after{content:"";width:7px;height:7px;margin-left:auto;background:var(--acc-d)}
@media (max-width:900px){nav.top .dd.lang{display:none}}

/* phone menu: four language buttons in two columns */
.mnav .mlang{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:6px 0 10px}
.mnav .mlang a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 12px;border:1px solid var(--hair);border-radius:12px;font:500 16px/1.2 Inter,sans-serif;letter-spacing:0}
.mnav .mlang a[aria-current]{border-color:var(--ink);font-weight:600}

/* Russian: the display font (Bricolage Grotesque) has no Cyrillic, so headings use Inter Tight throughout
   instead of mixing two fonts letter by letter */
html[lang="ru"]{--display:"Inter Tight",Inter,sans-serif}
html[lang="ru"] .phero h1,html[lang="ru"] h1{letter-spacing:-.03em}

/* note under the playground when its demos are still in English */
.pg-en{display:block;margin-top:8px;font-style:normal;font-size:13px;color:var(--mist)}
.ft-legal{color:inherit;opacity:.85}

/* longer words in Russian, Spanish and French: let headings and buttons wrap instead of overflowing */
html:not([lang="en"]) h1,html:not([lang="en"]) h2,html:not([lang="en"]) h3{overflow-wrap:break-word;hyphens:auto}
html:not([lang="en"]) .btn{white-space:normal;text-align:center}

/* Russian home hero: Inter Tight has no condensed width like the display font, so "АВТОМАТЕ." needs a smaller size on phones to fit without breaking the word */
html[lang="ru"] .pxhead{hyphens:manual}
@media (max-width:600px){html[lang="ru"] .pxhead{font-size:clamp(44px,14vw,100px)}}

/* Spanish and French home hero: never hyphenate the hero words. "AUTOMATIZADA." is a little wider than the phone column at the default size, so Spanish steps down slightly on phones */
html[lang="es"] .pxhead,html[lang="fr"] .pxhead{hyphens:manual}
@media (max-width:600px){html[lang="es"] .pxhead{font-size:clamp(46px,16.5vw,100px)}}
