/* 22-locale.css (i18n46): the language switcher (50 languages) and the right-to-left layouts (ar he fa ur).
   Linked from <head> by i18n_render.head_assets() on every marketing render. Marketing host only: the app shell never loads it. */

/* ── language switcher: a pill that opens a popover grid (desktop) or a bottom sheet (phone) ── */
#langSw{position:fixed;inset-inline-end:14px;bottom:14px;z-index:60;font-family:inherit}
#langSw .lsw-btn{display:flex;align-items:center;gap:7px;background:rgba(23,23,43,.86);color:#fff;
  border:1px solid rgba(255,255,255,.20);border-radius:999px;padding:9px 14px;font:inherit;font-size:13px;font-weight:800;
  letter-spacing:.02em;cursor:pointer;transition:border-color .16s ease,transform .16s ease}
#langSw .lsw-btn:hover,#langSw.open .lsw-btn{border-color:#F5FFAB}
#langSw .lsw-btn:hover{transform:translateY(-1px)}
#langSw .lsw-btn:focus-visible,#langSw .lsw-grid a:focus-visible{outline:2px solid #F5FFAB;outline-offset:2px}
#langSw .lsw-glb{width:14px;height:14px;flex:none;stroke:#F5FFAB;fill:none;stroke-width:1.6}
#langSw .lsw-panel{position:absolute;inset-inline-end:0;bottom:calc(100% + 8px);width:min(560px,calc(100vw - 28px));
  max-height:min(62vh,540px);overflow-y:auto;overscroll-behavior:contain;background:#1b1b30;
  border:1px solid rgba(255,255,255,.16);border-radius:14px;padding:8px;opacity:0;visibility:hidden;
  transform:translateY(6px);transition:opacity .18s ease,transform .18s ease,visibility .18s;
  box-shadow:0 18px 44px -22px rgba(0,0,0,.8)}
#langSw.open .lsw-panel{opacity:1;visibility:visible;transform:translateY(0)}
#langSw .lsw-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
#langSw .lsw-grid a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:9px 11px;
  border-radius:8px;color:rgba(255,255,255,.86);text-decoration:none;font-size:13.5px;font-weight:600;line-height:1.25;border:0}
#langSw .lsw-grid a span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#langSw .lsw-grid a:hover{background:rgba(245,255,171,.10);color:#fff}
#langSw .lsw-grid a[aria-current="true"]{color:#F5FFAB;background:rgba(245,255,171,.07)}
#langSw .lsw-tag{font-size:11px;font-weight:800;opacity:.5;letter-spacing:.08em;flex:none}
@media(max-width:620px){
  #langSw{inset-inline-end:10px;bottom:10px}
  #langSw .lsw-btn{padding:8px 12px;font-size:12px}
  #langSw .lsw-panel{position:fixed;inset-inline:10px;bottom:56px;width:auto;max-height:66vh}
  #langSw .lsw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #langSw .lsw-grid a{padding:11px 10px}
}
@media print{#langSw{display:none}}

/* ── right-to-left (html[dir="rtl"]: ar he fa ur) ── */
html[dir="rtl"] body{text-align:right}
/* the pricing section and the upgrade modal stay English on every generated locale (another branch redesigns them): keep them left to right */
html[dir="rtl"] #pricing,html[dir="rtl"] #upgradeOvl{direction:ltr;text-align:left}

/* ── generated locales (html[data-gen]): longer words than English ── */
html[data-gen] #auth .rf-links a{white-space:nowrap}
/* Japanese runs 1 em per character: the hero headline is a dozen characters, so on a phone it must be a little smaller than the Latin
   size or its last character wraps alone ("す。") */
@media(max-width:720px){html[lang="ja"][data-gen] #auth .rf-hero h1{font-size:clamp(24px,6.6vw,92px);max-width:none}}
html[lang="ko"] body{word-break:keep-all}

/* wave1101: the pricing ticket's "once" / "/month" label beside the big amount never breaks inside itself (CJK and
   Arabic may break between any two characters; "/月" split into "/" and "月" on two lines) */
html[data-gen="1"] .tk-amount-per { white-space: nowrap; }
