#mobile-menu[hidden] {
  display: none !important;
}

@media (max-width: 1023px) {
  #menu-toggle {
    min-width: 3.25rem;
    min-height: 2.75rem;
  }

  [data-mobile-navigation-actions] {
    margin-left: auto;
  }

  .mobile-header__language {
    margin: 0;
  }

  .mobile-header__language select {
    width: auto;
    min-width: 3.5rem;
    min-height: 2.75rem;
    padding: 0 .45rem;
    border: 1px solid hsl(var(--gold) / .35);
    border-radius: .5rem;
    background: hsl(var(--surface-dark));
    color: hsl(var(--surface-dark-fg));
  }

  .mobile-header__account {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid hsl(var(--gold) / .4);
    border-radius: 999px;
    background: hsl(var(--gold) / .2);
    color: hsl(var(--gold));
  }

  .mobile-header__account-menu {
    position: fixed;
    top: 4.5rem;
    right: 1rem;
    z-index: 52;
    width: min(16rem, calc(100vw - 2rem));
  }

  .mobile-header__login {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    padding-inline: .65rem;
    border: 1px solid hsl(var(--gold) / .35);
    border-radius: .5rem;
  }

  #mobile-menu {
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    z-index: 49;
    display: grid;
    gap: .85rem;
    max-height: min(75dvh, 36rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .85rem 1.25rem 1rem;
    border-bottom: 1px solid hsl(var(--gold) / .2);
    background: hsl(var(--surface-dark) / .98);
    color: hsl(var(--surface-dark-fg));
    box-shadow: 0 1rem 2rem rgb(0 0 0 / .22);
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu__group {
    display: grid;
  }

  .mobile-menu__group--account {
    padding-top: .75rem;
    border-top: 1px solid hsl(var(--gold) / .35);
  }

  .mobile-menu__group-title {
    margin: 0;
    color: hsl(var(--gold));
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .mobile-menu__account-email {
    margin: .2rem 0 .35rem;
    color: hsl(var(--muted-foreground));
    font-size: .78rem;
    overflow-wrap: anywhere;
  }

  .mobile-menu__group > a,
  .mobile-menu__group > form > button {
    display: flex;
    width: 100%;
    min-height: 2.75rem;
    align-items: center;
    padding: .6rem .25rem;
    border-bottom: 1px solid hsl(var(--gold) / .1);
    text-align: left;
  }

  .mobile-menu__group > form {
    margin: 0;
  }

  .mobile-menu__group > :last-child,
  .mobile-menu__group > form:last-child > button {
    border-bottom: 0;
  }

  .mobile-menu__language {
    display: grid;
    grid-template-columns: 1fr minmax(6rem, auto);
    align-items: center;
    gap: .75rem;
    margin: 0;
    padding: .65rem 0;
    border-top: 1px solid hsl(var(--gold) / .15);
    border-bottom: 1px solid hsl(var(--gold) / .15);
  }

  .mobile-menu__language label {
    margin: 0;
    font-size: .85rem;
    font-weight: 600;
  }

  .mobile-menu__language select {
    width: 100%;
    min-height: 2.75rem;
  }
}

@media (min-width: 1024px) {
  #mobile-menu {
    display: none !important;
  }
}
