.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-resources {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
}

.nav-resources > summary {
  display: inline-flex;
  padding: 0;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  cursor: pointer;
  list-style: none;
}

.nav-resources > summary::-webkit-details-marker { display: none; }
.nav-resources > summary::after {
  content: "⌄";
  color: var(--cyan, #21d4e8);
  font-size: 14px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .18s ease;
}
.nav-resources[open] > summary::after { transform: rotate(180deg) translateY(1px); }

.nav-resource-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  right: 0;
  width: min(330px, calc(100vw - 28px));
  padding: 9px;
  border: 1px solid rgba(151, 181, 220, .28);
  color: #fff;
  background: rgba(6, 16, 30, .98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .34);
  opacity: 0;
  transform: translateY(-7px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.nav-resources[open] .nav-resource-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-resource-menu a {
  display: block;
  padding: 14px 15px;
  border: 1px solid transparent;
  color: #f5f8fc !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.25;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.nav-resource-menu a + a { border-top-color: rgba(151, 181, 220, .14); }
.nav-resource-menu a:hover,
.nav-resource-menu a:focus-visible {
  border-color: rgba(33, 212, 232, .45);
  color: #fff !important;
  background: rgba(45, 107, 255, .18);
  outline: none;
}

.nav-resource-menu small {
  display: block;
  margin-top: 5px;
  color: #9fb0c7;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

@media (max-width: 1080px) {
  .nav-resource-menu { right: -70px; }
}

@media (max-width: 900px) {
  .nav-inner { gap: 12px !important; }
  .nav-links, .nav-actions { gap: 10px !important; }
  .nav-links .nav-resources > .nav-link { display: inline-flex !important; }
  .nav-resource-menu { position: fixed; top: 70px; right: 14px; }
}

@media (max-width: 620px) {
  .nav-resources > summary { font-size: 11px; }
  .nav-resource-menu { top: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-resources > summary::after,
  .nav-resource-menu { transition: none; }
}

/* Keep the pricing, newsletter and map entries visible at every navigation breakpoint. */
.nav .nav-pricing,
.nav .nav-newsletter,
.nav .nav-map {
  display: inline-flex !important;
  align-items: center;
  min-height: 40px;
  white-space: nowrap;
}

.nav-links, .nav-actions {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 4px;
}

@media (max-width: 620px) {
  .nav + main .hero-content { padding-top: 152px; }
}
