/* Additive language switcher for official English pages.
   Do not upload over common.css or neiye.css. */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.r-nav > .lang-switch {
  float: right;
  padding: 12px 0 12px 16px;
}
.lang-switch a {
  color: #3e4146;
  text-decoration: none;
  padding: 0 5px;
}
.lang-switch a:hover,
.lang-switch a:focus {
  color: #008dff;
  text-decoration: none;
}
.lang-switch a.is-active {
  color: #008dff;
  cursor: default;
}
.lang-switch .lang-sep {
  color: #c5c5c5;
  padding: 0 1px;
  font-weight: 400;
}
.m-nav-toolbar .lang-switch,
.navbar-header .lang-switch-mobile {
  margin-left: auto;
  padding: 0 10px;
}
.navbar-header {
  display: flex;
  align-items: center;
}
.navbar-header .lang-switch-mobile {
  order: 2;
}
.navbar-header .navbar-toggle {
  order: 3;
  margin-left: 4px;
}
.navbar-header .navbar-brand {
  order: 1;
}
.footer-div .lang-switch,
.footer-wenan .lang-switch {
  margin-left: 12px;
  vertical-align: middle;
}
.footer-div .lang-switch a,
.footer-wenan .lang-switch a {
  color: #fff;
}
.footer-div .lang-switch a.is-active,
.footer-div .lang-switch a:hover,
.footer-div .lang-switch a:focus,
.footer-wenan .lang-switch a.is-active,
.footer-wenan .lang-switch a:hover,
.footer-wenan .lang-switch a:focus {
  color: #8ec9ff;
}
.footer-div .lang-switch .lang-sep,
.footer-wenan .lang-switch .lang-sep {
  color: rgba(255,255,255,0.45);
}

.preview-en-lang-mark {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 99999;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #888;
  background: rgba(255,255,255,0.88);
  border: 1px solid #ddd;
  padding: 2px 7px;
  border-radius: 2px;
  pointer-events: none;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .r-nav > .lang-switch {
    display: none;
  }
}
