header nav {
  align-items: center;
}

header nav .resources-menu {
  position: relative;
}

header nav .resources-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #fff;
  font: inherit;
  list-style: none;
  cursor: pointer;
}

header nav .resources-menu > summary::-webkit-details-marker {
  display: none;
}

header nav .resources-menu > summary::after {
  content: "";
  width: .42em;
  height: .42em;
  margin: -.2em 0 0;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

header nav .resources-menu > ul {
  position: absolute;
  inset: calc(100% + 10px) auto auto 50%;
  z-index: 3;
  transform: translateX(-50%);
  width: max-content;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  background: #fff6e8;
  box-shadow: 0 6px 20px #382b2129;
}

header nav .resources-menu li a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: #244c43;
  white-space: nowrap;
}

header nav .resources-menu li a:is(:hover, :focus-visible, [aria-current]) {
  background: #ebe0ce;
}

header .login nav .resources-menu > summary {
  display: flex;
  min-height: 44px;
  padding: 9px;
  color: #244c43;
}

header .login nav .resources-menu > ul {
  position: static;
  transform: none;
  width: auto;
  margin: 0 0 0 10px;
  padding: 0 0 0 4px;
  border-left: 1px solid #d8ccb6;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
