/* 다국어(SB-I18N-P1): 언어 고르기·언어 안내 띠·언어별 글꼴. 모든 페이지가 빌드로 이 파일을 받는다. */

/* 한국어가 아닌 페이지는 웹 글꼴(Pretendard)을 쓰지 않는다. 시스템 글꼴로 먼저 그린 뒤 Pretendard가 도착하면
   줄 높이·줄바꿈이 바뀌어 화면이 밀렸다(일본어 첫 화면 제목 207→276px, SB-CLS-003). 한국어는 그대로 Pretendard */
html:not(:lang(ko)) body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
/* 일본어·중국어는 한자 모양이 그 언어 글꼴로 나오게 한국어 글꼴(맑은 고딕·애플 SD 고딕)을 빼고 그 언어 글꼴을 앞에 둔다 */
html:lang(ja) body { font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, 'Noto Sans JP', 'Segoe UI', sans-serif; }
html:lang(zh-Hans) body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans SC', 'Segoe UI', sans-serif; }
html:lang(zh-Hant) body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei UI', 'Microsoft JhengHei', 'Noto Sans TC', 'Segoe UI', sans-serif; }
/* 일본어·중국어는 띄어쓰기가 없어 한국어용 keep-all이면 줄이 안 바뀌고 휴대폰에서 잘린다(SB-DEMO 화면 확인 때 발견). 금칙 처리만 엄격하게 */
html:lang(ja) body, html:lang(zh-Hans) body, html:lang(zh-Hant) body { word-break: normal; line-break: strict; }

.lang-picker { position: relative; display: inline-block; font-size: 14px; line-height: 1; }
/* 펼친 동안은 고르기가 든 머리 영역을 맨 위로(머리 영역의 쌓임 순서가 아래 큰 제목보다 낮은 페이지가 있다) */
:has(> details.lang-picker[open]) { z-index: 1000; }
.lang-picker > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 8px; border: 1px solid rgba(127, 127, 127, 0.35); color: inherit; white-space: nowrap;
}
.lang-picker > summary::-webkit-details-marker { display: none; }
.lang-picker > summary:hover, .lang-picker[open] > summary { background: rgba(127, 127, 127, 0.12); }
.lang-picker > summary:focus-visible { outline: 2px solid #4c7dff; outline-offset: 2px; }
.lang-ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.lang-picker ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 1000; margin: 0; padding: 6px; list-style: none;
  min-width: 190px; max-height: 70vh; overflow-y: auto;
  background: #fff; color: #1d1d1f; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}
.lang-picker li a { display: block; padding: 9px 12px; border-radius: 6px; color: inherit; text-decoration: none; white-space: nowrap; }
.lang-picker li a:hover, .lang-picker li a:focus-visible { background: #f1f2f5; }
.lang-picker li a[aria-current] { font-weight: 700; }
@media (max-width: 640px) {
  .lang-picker > summary span { display: none; } /* 폰 폭에서는 지구 모양만 */
  .lang-picker > summary { padding: 7px 8px; }
}

/* 페이지가 그려진 뒤에 붙으므로 맨 위에 끼우면 화면 전체가 밀린다(CLS, SB-CLS-002). 화면 아래에 띄운다 */
.lang-offer {
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 44px 10px 16px;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
  background: #1d2433; color: #fff; font-size: 14px; text-align: center;
}
body:has(> .lang-offer) { padding-bottom: 48px; } /* 페이지 끝(바닥글)이 띠에 가리지 않게. 아래쪽만 늘어 위 내용은 움직이지 않는다 */
.lang-offer a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lang-offer-x {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px;
  border: 0; border-radius: 6px; background: transparent; color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
}
.lang-offer-x:hover { background: rgba(255, 255, 255, 0.14); }
@media print { .lang-picker, .lang-offer { display: none !important; } }
