.language-control {
  position: relative;
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: .45rem;
  min-block-size: 44px;
  min-inline-size: 0;
  max-inline-size: 12rem;
  padding: .35rem .68rem;
  border: 1px solid rgb(255 255 255 / 52%);
  border-radius: .6rem;
  color: #fff;
  cursor: pointer;
}
.language-control[hidden] { display: none; }
.language-control::before {
  content: "";
  inline-size: 1.05rem;
  block-size: 1.05rem;
  flex: none;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c5 5 5 13 0 18-5-5-5-13 0-18Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.language-control::after {
  content: "";
  inline-size: .4rem;
  block-size: .4rem;
  flex: none;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.11rem) rotate(45deg);
}
.language-current {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .85rem;
  font-weight: 650;
  line-height: 1.65;
}
.language-control [data-language-toggle] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  color: CanvasText;
  background: Canvas;
  font: inherit;
  font-size: max(1rem, 16px);
}
.language-control:hover { background: rgb(255 255 255 / 12%); }
.language-control :is(option, optgroup) { color: CanvasText; background: Canvas; }
.language-control:focus-within { outline: 3px solid currentColor; outline-offset: 3px; }
.language-control:has(select:disabled) { opacity: .65; }
.language-control [data-language-toggle]:disabled { cursor: wait; }
.language-control [data-language-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 400px) {
  .language-control { max-inline-size: 8.5rem; gap: .3rem; padding-inline: .45rem; }
  .header .header-inner { grid-template-columns: minmax(0, 1fr) auto; column-gap: .5rem; }
  .header .header-inner > .brand { min-inline-size: 0; }
  .header .header-inner > .brand .brand-signature { max-inline-size: 100%; }
}
@media (forced-colors: active) {
  .language-control { color: ButtonText; border-color: ButtonText; }
  .language-control::before { forced-color-adjust: none; }
}
.language-control,
.language-control select {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', 'Noto Sans Meetei Mayek', 'Noto Sans Ol Chiki', 'Nirmala UI', sans-serif;
}
html:is(:lang(mni), :lang(sat)) {
  --sans: 'Plus Jakarta Sans', 'Noto Sans Meetei Mayek', 'Noto Sans Ol Chiki', sans-serif;
  --serif: var(--sans);
  --display: var(--sans);
}
html:is(:lang(mni), :lang(sat)) :is(body, input, select, textarea, button) {
  font-family: var(--sans);
}
