/* bris9.com 다국어 드롭다운 (KO / EN / JA / ZH / VI / ES / FR / DE) */

/* 번역 적용 전 깜빡임 방지 — i18n.js 가 적용 후 해제 */
html.i18n-loading body { visibility: hidden; }

.i18n-switch-slot { display: flex; align-items: center; }

.i18n-switch { position: relative; display: inline-flex; font-family: "Noto Sans KR", sans-serif; }

.i18n-switch__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #e3e3e3;
  border-radius: 30px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .2s;
}
.i18n-switch__toggle:hover { border-color: #111; }
.i18n-switch__toggle:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.i18n-switch__caret { transition: transform .2s; }
.i18n-switch.is-open .i18n-switch__caret { transform: rotate(180deg); }

.i18n-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  display: none;
}
.i18n-switch.is-open .i18n-switch__menu { display: block; }
.i18n-switch__menu li { margin: 0; padding: 0; }

.i18n-switch__btn {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 9px 12px;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: #444;
  cursor: pointer;
}
.i18n-switch__btn:hover, .i18n-switch__btn:focus-visible { background: #f2f2f2; color: #111; outline: none; }
.i18n-switch__btn.is-active { background: #000; color: #fff; }

/* 모바일: 헤더 공간이 좁으므로 축소 (지구본 + 코드만) */
@media (max-width: 575px) {
  .i18n-switch__toggle { height: 34px; padding: 0 10px; gap: 4px; font-size: 12px; }
  .i18n-switch__menu { min-width: 140px; }
}

/* 한국어 외 언어에서는 '영어 제목 + 한글 부제' 블록의 한글 부제를 숨김 */
html:not(.lang-ko) .i18n-ko-only { display: none !important; }
