/* Language switcher (globe icon, top right of the header). */
.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 14px;
}
.lang-switch__button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  line-height: 0;
  transition: opacity 160ms ease;
}
.lang-switch__button:hover { opacity: 0.6; }
.lang-switch__button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 50%; }
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1000;
  min-width: 132px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #f8f7f3;
  border: 1px solid rgba(23, 25, 27, 0.12);
  box-shadow: 0 8px 24px rgba(23, 25, 27, 0.08);
}
.lang-switch__menu[hidden] { display: none; }
.lang-switch__menu button {
  display: block;
  width: 100%;
  padding: 8px 18px;
  border: 0;
  background: none;
  color: #17191b;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.lang-switch__menu button:hover,
.lang-switch__menu button:focus-visible { background: #e9e6c4; outline: none; }
.lang-switch__menu button[aria-current="true"] { font-weight: 700; }

/* Chinese text: AR One Sans has no Chinese characters, so use a clean system font for them. */
html[lang="zh-Hans"] body {
  font-family: "AR One Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
