.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
}

.nav-dropdown-toggle .icon {
  width: 16px;
  height: 16px;
}
.nav-dropdown.is-open .nav-dropdown-toggle .icon {
  transform: rotate(180deg);
}
.nav-dropdown.is-current summary,
.nav-dropdown-links a[aria-current] {
  color: #861326;
}
.nav-dropdown-links {
  position: absolute;
  top: calc(100% + 16px);
  left: -18px;
  min-width: 180px;
  padding: 10px;
  background: #faf8f5;
  border: 1px solid #dad4ca;
  box-shadow: 0 8px 20px #00000012;
  z-index: 20;
}
.nav-dropdown-links a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-dropdown-links a:hover {
  background: #eeebe3;
}
.nav-dropdown-toggle:focus-visible {
  outline: 2px solid #861326;
  outline-offset: 6px;
}
@media (max-width: 620px) {
  .nav-dropdown-toggle {
    padding: 12px;
    justify-content: space-between;
  }
  .nav-dropdown-links {
    position: static;
    margin: 0 12px 8px;
    padding: 0 0 0 12px;
    border: 0;
    border-left: 2px solid #dad4ca;
    box-shadow: none;
  }
}

.nav-dropdown-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-weight: 400;
  line-height: inherit;
  padding: 0;
}
.nav-dropdown-links[hidden] {
  display: none;
}

@media (max-width: 620px) {
  .nav-dropdown-toggle {
    width: 100%;
    padding: 12px;
    justify-content: flex-start;
  }
}

.menu-backdrop {
  display: none;
}
@media (max-width: 620px) {
  .header {
    position: relative;
    z-index: 30;
  }
  .menu-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgb(36 36 32 / 28%);
    z-index: 20;
    cursor: pointer;
  }
  .navlinks.open {
    box-shadow: 0 18px 30px -10px rgb(36 36 32 / 28%);
  }
}

@keyframes mobile-menu-enter {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes menu-backdrop-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 620px) and (prefers-reduced-motion: no-preference) {
  .navlinks.open {
    animation: mobile-menu-enter 400ms cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  .menu-backdrop:not([hidden]) {
    animation: menu-backdrop-enter 400ms ease-out;
  }
}
