/* Language picker, suggestion banner, gallery strip and per-language typography. Loaded by track.js on every page. */

/* ---------- Picker ---------- */
.ss-lang{position:relative;display:inline-flex}
.ss-lang-btn{display:inline-flex;align-items:center;gap:7px;height:44px;min-width:44px;padding:0 12px;border:1px solid var(--line,#E3EAF0);border-radius:12px;background:#fff;color:var(--ink,#101820);font:600 .92rem/1 var(--font,system-ui);cursor:pointer;-webkit-tap-highlight-color:transparent;justify-content:center}
.ss-lang-btn:hover{border-color:var(--brand,#4B9CD3)}
.ss-lang-btn svg{width:18px;height:18px;flex:none}
.ss-lang-code{display:none}
.ss-lang-list{position:absolute;right:0;top:calc(100% + 8px);z-index:300;min-width:200px;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid var(--line,#E3EAF0);border-radius:14px;box-shadow:0 18px 40px rgba(16,24,32,.14)}
.ss-lang-list[hidden]{display:none}
.ss-lang-list a{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:10px;text-decoration:none;color:var(--ink,#101820);font-weight:600;font-size:1rem;white-space:nowrap}
.ss-lang-list a:hover{background:#F2F7FB}
.ss-lang-list a[aria-current="true"]{background:var(--brand-soft,#EAF4FB);color:var(--brand-deep,#2E7CAF)}
.ss-lang-note{display:flex;flex-direction:column;gap:3px;padding:8px 12px 10px;margin-bottom:4px;border-bottom:1px solid var(--line,#E3EAF0);font-size:.84rem;line-height:1.4;color:var(--muted,#5B6B79);white-space:normal;max-width:240px}
.ss-lang-note strong{color:var(--ink,#101820)}
@media (max-width:640px){
  .ss-lang-btn{padding:0 9px;gap:5px}
  .ss-lang-name{display:none}
  .ss-lang-code{display:inline;font-size:.82rem;letter-spacing:.02em}
}
@media (max-width:420px){.ss-lang-btn{height:40px;min-width:40px;padding:0 7px}.ss-lang-btn svg{width:16px;height:16px}}
@media (max-width:360px){.ss-lang-code{display:none}.ss-lang-btn{padding:0 8px}}

/* ---------- Suggestion banner ---------- */
.ss-lang-banner{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 14px;padding:8px 52px 8px 16px;position:relative;background:var(--brand-soft,#EAF4FB);color:var(--brand-deep,#2E7CAF);font-size:.95rem;line-height:1.4;text-align:center}
.ss-lang-banner a{font-weight:800;color:inherit;text-underline-offset:3px}
.ss-lang-banner button{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;background:transparent;color:inherit;font-size:1.5rem;line-height:1;cursor:pointer}

/* ---------- Store-slide gallery (all languages) ---------- */
.rs-track.rs-slides{justify-content:flex-start;overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;gap:12px;padding:10px 24px 40px}
.rs-slides .rs-item{flex:0 0 clamp(170px,22vw,236px);max-width:none;scroll-snap-align:start}
.rs-slides .rs-item img{filter:none;border-radius:16px;box-shadow:0 12px 30px rgba(46,124,175,.18)}

/* ---------- Typography per language ---------- */
html[lang="ko"],html[lang="zh-Hans"]{--font:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","PingFang SC","Hiragino Sans GB","Noto Sans KR","Noto Sans SC","Malgun Gothic","Microsoft YaHei",sans-serif}
html[lang="ko"] body{word-break:keep-all;line-break:strict;overflow-wrap:break-word}
html[lang="zh-Hans"] body{line-break:strict;overflow-wrap:break-word}
html[lang="ko"] *,html[lang="zh-Hans"] *{letter-spacing:normal!important}
html[lang="ko"] .eyebrow,html[lang="zh-Hans"] .eyebrow{letter-spacing:.06em!important}
html[lang="ko"] :is(h1,h2,h3,.section-title){line-height:1.3}
html[lang="zh-Hans"] :is(h1,h2,h3,.section-title){line-height:1.3}
html[lang="ko"] body,html[lang="zh-Hans"] body{line-height:1.8}
html[lang="vi"] body{line-height:1.75}
html[lang="vi"] :is(h1,h2,h3,.section-title){line-height:1.2}
html[lang="es"] body,html[lang="fr"] body,html[lang="vi"] body{overflow-wrap:break-word}
html[lang="es"] :is(p,li,.step-desc,.feature-desc),html[lang="fr"] :is(p,li,.step-desc,.feature-desc){hyphens:auto}
