.nav-drop { position: relative; }

.nav-drop::before {
  content: "";
  position: absolute;
  left: -20px;
  right: -20px;
  top: 100%;
  height: 18px;
}

.nav-drop > a { gap: 8px; }

.nav-caret {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: 45deg;
  translate: 0 -2px;
  flex: none;
  transition: rotate 0.2s ease, translate 0.2s ease;
}

.nav-drop:hover > a .nav-caret,
.nav-drop:focus-within > a .nav-caret {
  rotate: 225deg;
  translate: 0 1px;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: max-content;
  min-width: 360px;
  padding: 10px 0;
  background: var(--bg, #f4f3ee);
  border: 0;
  box-shadow: 0 18px 44px rgba(23, 23, 23, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  translate: -50% 8px;
  transition: opacity 0.2s ease, translate 0.2s ease, visibility 0.2s ease;
}

.nav-drop:hover .nav-menu,
.nav-drop:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  translate: -50% 0;
}

.nav-menu a {
  min-width: 0;
  height: auto;
  justify-content: flex-start;
  padding: 14px 28px;
  font-family: Manrope, Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink, #171717);
  white-space: nowrap;
  border-bottom: 0;
  box-shadow: inset 2px 0 0 transparent;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a.active {
  color: var(--blue, #11acf7);
  border-bottom: 0;
  box-shadow: inset 2px 0 0 var(--nav-line, #0069b9);
}

.nav-menu a.active { font-weight: 800; }

html.motion nav .nav-menu a::after,
html.motion nav .nav-menu a:hover::after,
html.motion nav .nav-menu a:focus-visible::after {
  content: none;
}

@media (prefers-reduced-motion: reduce) {
  .nav-caret,
  .nav-menu,
  .nav-menu a { transition: none; }
}

@media (max-width: 1100px) {
  nav.open .nav-drop { width: 100%; }

  nav.open .nav-drop > a { width: fit-content; }

  nav.open .nav-caret { display: none; }

  nav.open .nav-menu,
  nav.open .nav-drop:hover .nav-menu,
  nav.open .nav-drop:focus-within .nav-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    translate: none;
    width: auto;
    min-width: 0;
    padding: 2px 0 6px 8px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  nav.open .nav-menu a { padding: 8px 12px; }
}
