/* ── Navbar Contact dropdown (shared across pages, see scripts/contact.js) ── */
.nav-contact {
  position: relative;
}

.nav-contact-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  outline: none;
}

.nav-contact-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-contact-toggle[aria-expanded="true"] {
  color: var(--text-primary);
}

.nav-contact-panel {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  width: 280px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  text-align: left;
  z-index: 110;
  animation: navContactIn .15s ease;
}

.nav-contact-panel[hidden] {
  display: none;
}

@keyframes navContactIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-contact-note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.nav-contact-name {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-contact-email {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}

.nav-contact-email:hover {
  text-decoration: underline;
}

.nav-contact-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.nav-contact-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.nav-contact-btn:hover {
  border-color: var(--border-hover);
}

.nav-contact-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.nav-contact-btn-primary:hover {
  border-color: var(--accent);
  filter: brightness(1.1);
}

@media (max-width: 600px) {
  .nav-contact-label {
    display: none;
  }

  .nav-contact-panel {
    width: min(280px, calc(100vw - 32px));
  }
}
