/* Four-language selector and CJK typography. */
body .u-header .u-language-dropdown { min-width: 132px !important; width: 132px !important; }
.u-header .u-language:hover .u-language-dropdown,
.u-header .u-language:focus-within .u-language-dropdown,
.u-header .u-language.luna-language-open .u-language-dropdown { display: block !important; visibility: visible !important; opacity: 1 !important; pointer-events: auto !important; }
.u-header .u-language-active { cursor: pointer; }
.u-header .u-language-dropdown .u-language-url { white-space: nowrap; }
html[lang="zh-CN"] body { font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif; }
html[lang="zh-CN"] .u-text, html[lang="zh-CN"] .u-btn, html[lang="zh-CN"] .u-nav-link { font-family: inherit; }
html[lang="zh-CN"] .u-text { line-break: strict; overflow-wrap: break-word; }

/* Dropdown links already contain their labels as real text. */
body .u-header .u-language-dropdown .u-language-url::before,
body .u-header .u-language-dropdown .u-language-url::after,
body .u-header .u-language-active::after {
  content: none !important;
  display: none !important;
}

/* Keep the selected language visible at every breakpoint, with one label only. */
body .u-header .u-language-active::before {
  content: attr(data-lang-text) !important;
  display: inline-block !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

@media (min-width: 992px) and (max-width: 1599px) { body .u-header .u-language { translate: 14px 0; } }

/* Keep dropdowns above the following section and outside the header's bounds. */
body .u-header {
  z-index: 10000 !important;
  overflow: visible !important;
}
body .u-header > .u-sheet {
  overflow: visible !important;
}
body .u-header .u-language {
  z-index: 1100 !important;
  overflow: visible !important;
}
body .u-header .u-language-dropdown {
  z-index: 1101 !important;
  overflow: visible !important;
}
