/* ── Scroll Section Navigation (Up/Down arrows) ── */

.scroll-nav {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface-1, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.12);
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.25s,
    transform 0.25s;
  pointer-events: none;
}
.scroll-nav.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.scroll-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2, #374151);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.scroll-nav-btn:hover {
  background: var(--surface-2, #f3f4f6);
}
.scroll-nav-btn:active {
  background: var(--primary, #1e40af);
  color: #fff;
}
.scroll-nav-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .scroll-nav {
    bottom: 1rem;
    right: 0.75rem;
  }
}
