/* LANG0: language menu with many languages (templates/com2/_header.html, LANGMENU) and the hint strip (world-lang.js) */
.lang--many .lang-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;width:min(420px,calc(100vw - 24px));max-height:min(70vh,560px);overflow:auto;overscroll-behavior:contain;z-index:60}
.lang--many .lang-menu[hidden]{display:none}
.lang--many .lang-menu a{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:15px;line-height:1.3}
.lang--many .lang-menu a small{font-size:11px;font-weight:600;color:var(--mut2);letter-spacing:.04em}
.lang--many .lang-menu a.is--on{background:var(--volt);color:var(--vink)}
.lang--many .lang-menu a.is--on small{color:var(--vink)}
.lang--many .lang-menu a[data-up] span::after{content:" ↗";color:var(--mut2);font-weight:400}
.lang--many .lang-menu a:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.lang--many .lang-menu li.lang-sep+li,.lang--many .lang-menu li.lang-sep+li+li{border-top:1px solid var(--line);margin-top:4px;padding-top:4px}
/* phone: a sheet under the header across the whole width (the header has a backdrop-filter, so position:fixed inside it
   would be fixed to the header, not to the screen) */
@media (max-width:640px){
 .lang.lang--many{position:static}
 .lang--many .lang-menu{position:absolute;left:8px;right:8px;top:calc(100% + 6px);width:auto;max-height:calc(100vh - 90px);max-height:calc(100dvh - 90px);border-radius:16px;padding:8px;box-shadow:0 18px 48px rgba(13,17,26,.24)}
 .lang--many .lang-menu a{padding:11px 12px;font-size:16px}
}
.lang-hint{display:flex;align-items:center;justify-content:center;gap:8px;padding:6px 12px;background:var(--voltbg);border-bottom:1px solid var(--line);font-size:14px;line-height:1.35}
.lang-hint a{color:var(--ink);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.lang-hint-x{flex:none;width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:var(--ink2);font:inherit;font-size:20px;line-height:1;cursor:pointer}
.lang-hint-x:hover{background:var(--surface2)}
.lang-hint-x:focus-visible{outline:2px solid var(--ink)}
/* POLISH (12.11.2026): the language hint floats over the page (bottom; on the map pages under the header) instead of pushing the
   page down after it has painted (a layout shift of up to 0.10 on phones); targets 44 px */
.lang-hint{position:fixed;z-index:70;left:50%;transform:translateX(-50%);bottom:max(10px,env(safe-area-inset-bottom));width:min(560px,calc(100% - 20px));
  box-sizing:border-box;justify-content:space-between;padding:4px 4px 4px 14px;border:1px solid var(--line2);border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.28)}
.lang-hint a{display:inline-flex;align-items:center;min-height:44px}
.lang-hint-x{width:44px;height:44px}
.map-page .lang-hint{bottom:auto;top:calc(var(--hd,60px) + 8px)}
