.lmyc-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(66, 89, 54, 0.18);
  box-shadow: 0 2px 12px rgba(66, 89, 54, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lmyc-lang-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(66, 89, 54, 0.72);
  font-family: var(--font-body-family, inherit);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.48rem 0.62rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.lmyc-lang-switch__btn:hover,
.lmyc-lang-switch__btn:focus-visible {
  color: #425936;
  outline: none;
}

.lmyc-lang-switch__btn.is-active {
  background: linear-gradient(165deg, #425936 0%, #303d1c 100%);
  color: #fdf8f3;
  box-shadow: 0 2px 8px rgba(48, 61, 28, 0.22);
}

.lmyc-lang-switch__sep {
  width: 1px;
  height: 0.9rem;
  background: rgba(66, 89, 54, 0.16);
  flex-shrink: 0;
}

#site-header .lmyc-header-row .lmyc-header-actions {
  grid-area: end;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  align-self: center;
  gap: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 6;
}

#site-header .lmyc-header-row .lmyc-header-actions .lmyc-lang-switch--header {
  grid-area: unset;
  margin-right: 0.35rem;
  display: none !important;
}

#site-header .lmyc-header-row .lmyc-header-actions .header-button,
#site-header .lmyc-header-row .lmyc-header-actions a.header__icons.header-button {
  grid-area: unset;
  flex-shrink: 0;
}

#site-header .lmyc-header-row .lmyc-lang-switch--header {
  flex-shrink: 0;
  display: none !important;
  grid-area: lang;
  justify-self: end;
  align-self: center;
  margin-right: 0.35rem;
  position: relative;
  z-index: 6;
  pointer-events: none;
}

.menu-drawer .lmyc-lang-switch--drawer {
  display: none !important;
}

@media screen and (max-width: 989px) {
  #site-header .lmyc-header-row {
    grid-template-columns: auto minmax(0, 1fr) auto auto !important;
    grid-template-areas: "start center lang end" !important;
  }

  body:has(#hero) #site-header .lmyc-header-row {
    grid-template-columns: auto minmax(0, 1fr) auto auto !important;
    grid-template-areas: "start . lang end" !important;
  }

  #site-header .lmyc-header-row .lmyc-lang-switch--header {
    transform: scale(0.92);
    transform-origin: center right;
  }

  #site-header .lmyc-header-row .lmyc-lang-switch__btn {
    padding: 0.42rem 0.52rem;
    font-size: 0.68rem;
  }
}

@media screen and (min-width: 990px) and (max-width: 1499px) {
  #site-header .lmyc-header-row {
    grid-template-columns: auto minmax(0, 1fr) auto auto !important;
    grid-template-areas: "start center lang end" !important;
  }

  body:has(#hero) #site-header .lmyc-header-row {
    grid-template-columns: auto minmax(0, 1fr) auto auto !important;
    grid-template-areas: "start . lang end" !important;
  }
}

@media screen and (min-width: 1500px) {
  #site-header .lmyc-header-row {
    grid-template-columns: auto minmax(0, 1fr) auto auto !important;
    grid-template-areas: "drawer nav lang end" !important;
  }
}

body.header-at-top #site-header .lmyc-lang-switch {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.35);
}

body.header-at-top #site-header .lmyc-lang-switch__btn {
  color: rgba(255, 255, 255, 0.82);
}

body.header-at-top #site-header .lmyc-lang-switch__btn.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #303d1c;
  box-shadow: none;
}

body.header-at-top #site-header .lmyc-lang-switch__btn:hover,
body.header-at-top #site-header .lmyc-lang-switch__btn:focus-visible {
  color: #fff;
}

body.header-at-top #site-header .lmyc-lang-switch__sep {
  background: rgba(255, 255, 255, 0.28);
}

html[lang="zh-HK"] body {
  font-feature-settings: "kern" 1;
}
