/* A compact, keyboard-accessible language choice without extra runtime code. */
.jl-language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  width: max-content;
  margin: 0;
  padding: 0;
  font: inherit;
  line-height: 1.25;
  white-space: nowrap;
}
.jl-language-switcher > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.jl-language-switcher > span {
  opacity: .5;
  font-size: 12px;
}
.jl-language-switcher > a[aria-current="page"] {
  border-color: currentColor;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.jl-language-switcher > a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.jl-language-switcher > a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.jl-header .jl-language-switcher {
  color: #f5f1e9;
}
@media (max-width: 1279px) {
  .jl-header .jl-header-row:has(> .jl-language-switcher) {
    gap: 10px;
  }
  .jl-header .jl-header-row > .jl-language-switcher {
    margin-left: auto;
  }
}
@media (max-width: 359px) {
  /* Keep the name, credential and 44px language targets on narrow phones. */
  .jl-header:has(.jl-language-switcher) .jl-brand-mark {
    display: none;
  }
}
@media (min-width: 701px) and (max-width: 1023px) {
  /* Keep the Chinese contact control compact beside tablet filter actions. */
  html[lang="zh-Hans"] .jl-whatsapp-widget {
    right: 14px;
    width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    border-radius: 50%;
  }
  html[lang="zh-Hans"] .jl-whatsapp-widget span { display: none; }
  html[lang="zh-Hans"] .jl-whatsapp-widget::after { border-radius: 50%; }
}
