.language-control {
  position: relative;
  z-index: 2;
  flex: none;
  color: var(--ink, #20221f);
  font: 14px/1.4 Arial, Helvetica, sans-serif;
}
.language-control summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 5px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.language-control summary::-webkit-details-marker { display: none; }
.language-control summary:hover { background: var(--td-color-surface, #f9e4db); }
.language-globe { flex: none; width: 19px; height: 19px; }
.language-chevron { flex: none; width: 12px; height: 12px; }
.language-control[open] .language-chevron { transform: rotate(180deg); }
.language-switcher {
  position: absolute;
  inset: calc(100% + 8px) 0 auto auto;
  min-width: 176px;
  padding: 8px;
  border: 1px solid var(--line, #d4c9c1);
  border-radius: 8px;
  background: var(--paper, #fffaf4);
  box-shadow: 0 8px 22px #211a401f;
}
.language-switcher a {
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher a[aria-current] {
  background: var(--td-color-surface, #f9e4db);
}
.language-switcher a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.language-control summary:focus-visible,
.language-switcher a:focus-visible {
  outline: 2px solid var(--td-color-focus, currentColor);
  outline-offset: 2px;
}
.emoji-tile figcaption { overflow-wrap: anywhere; hyphens: auto; }
.header .identity { order: 0; }
.header #navigation { order: 1; }
.header .language-control { order: 2; }
.header .menu-toggle { order: 3; }
body > main > .language-control { width: max-content; margin-left: auto; }
@media (min-width: 761px) and (max-width: 1120px) {
  .header { flex-wrap: wrap; justify-content: space-between; row-gap: 8px; }
  .header #navigation { order: 3; width: 100%; justify-content: flex-end; }
}
@media (max-width: 760px) {
  html:has(.header .language-control) .header { gap: 8px; }
  .header .identity { margin-right: auto; }
  .header .language-control summary { gap: 4px; padding-inline: 5px; }
}
@media (max-width: 440px) {
  html:has(.header .language-control) .header { padding-inline: 16px; }
  .header:has(.language-control) .identity > span { display: none; }
  .header:has(.language-control) .menu-toggle { width: 44px; justify-content: center; gap: 0; font-size: 0; }
  .header:has(.language-control) .menu-toggle span { font-size: 22px; }
}
