/* ==========================================================================
   Wellspring — nav-flyouts.css
   Nested Resources flyouts + mobile sub-sub menus. Additive only.
   ========================================================================== */

.dropdown-menu--resources {
  min-width: 220px;
  overflow: visible;
}

.dropdown-flyout-wrap {
  position: relative;
}

.dropdown-flyout-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 1.2rem;
  font-size: var(--text-body);
  color: var(--neutral-700);
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-flyout-trigger svg {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--neutral-400);
  flex-shrink: 0;
}

.dropdown-flyout-trigger:hover {
  background: var(--neutral-100);
  color: var(--neutral-900);
}

.dropdown-flyout {
  position: absolute;
  top: 0;
  left: calc(100% - 0.35rem);
  min-width: 220px;
  background: var(--white);
  border-radius: 0.8rem;
  padding: 0.5rem 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--neutral-100);
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 60;
}

.dropdown-flyout--scroll {
  max-height: 22rem;
  overflow-y: auto;
}

.dropdown-flyout-wrap:hover .dropdown-flyout,
.dropdown-flyout-wrap:focus-within .dropdown-flyout {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dropdown-flyout a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: var(--text-sm);
  color: var(--neutral-700);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.dropdown-flyout a:hover {
  background: var(--neutral-100);
  color: var(--neutral-900);
}

.mobile-item--nested {
  border-bottom: none;
}

.mobile-item--nested .mobile-parent {
  padding: 0.55rem 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--neutral-700);
}

.mobile-item--nested .mobile-submenu {
  padding-left: 0.75rem;
  border-left: 2px solid var(--neutral-100);
  margin-left: 0.25rem;
  margin-bottom: 0.35rem;
}

.mobile-item--nested .mobile-submenu a {
  font-size: var(--text-sm);
  padding: 0.45rem 0;
}
