/* Shared hover menu used by the home menu and the page header */

.dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown > .menu-link::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 0.6em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 20;
  min-width: 260px;
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-panel a {
  display: block;
  padding: 12px 16px;
  background: rgba(10, 12, 18, 0.96);
  border: 1px solid #2a3142;
  border-left: 2px solid var(--accent);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.dropdown-panel a + a { border-top: 0; }

.dropdown-panel a:hover,
.dropdown-panel a:focus-visible {
  background: #141826;
  color: #fff;
  outline: none;
}

.dd-code {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.dd-title {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
