.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.language-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(243, 232, 200, 0.34);
  background: transparent;
  color: var(--ink, #f3e8c8);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.language-toggle:hover {
  border-bottom-color: currentColor;
}

.language-toggle:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.language-toggle__globe {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.language-toggle__label {
  opacity: 0.58;
  transition: opacity 180ms ease;
}

.language-toggle__label.is-active {
  opacity: 1;
}

.language-toggle__divider {
  opacity: 0.34;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    row-gap: 0 !important;
    padding: 12px clamp(14px, 3vw, 24px) 10px !important;
  }

  .nav-left {
    display: flex !important;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    gap: 0 !important;
    font-size: 12px !important;
  }

  .nav-left a {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  .nav-right {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    width: 100%;
    margin-top: 2px;
    padding-top: 6px;
    border-top: 1px solid rgba(243, 232, 200, 0.22);
    align-items: center;
    gap: 6px !important;
  }

  .social-link {
    width: 44px !important;
    height: 44px !important;
    opacity: 0.92;
  }

  .social-link svg {
    width: 21px !important;
    height: 21px !important;
  }

  .nav-right > .social-link:last-child svg {
    width: 24px !important;
    height: 24px !important;
  }

  .language-switcher {
    justify-self: start;
  }

  .language-toggle {
    gap: 6px;
    border-bottom: 0;
    font-size: 11px;
  }

  .language-toggle__globe {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 10px !important;
  }

  .nav-left {
    font-size: 12px !important;
  }

  .language-toggle {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .nav-left {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    font-size: 11px !important;
  }

  .nav-left a {
    width: 100%;
    min-width: 0;
  }

  .nav-left a:nth-child(1) { grid-column: 1 / 3; }
  .nav-left a:nth-child(2) { grid-column: 3 / 5; }
  .nav-left a:nth-child(3) { grid-column: 5 / 7; }
  .nav-left a:nth-child(4) { grid-column: 1 / 4; }
  .nav-left a:nth-child(5) { grid-column: 4 / 7; }
}

@media (pointer: coarse) {
  .nav-left a,
  .nav-right a {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .social-link {
    width: 44px !important;
    height: 44px !important;
  }

  .language-toggle {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-toggle__label {
    transition: none;
  }
}
