/* Back-to-top button (injected by /assets/js/site.js).
   Primary: header/footer background #06080d; accent: --blue-2 #3b86ff (primary button, active category). */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60; /* above content and the sticky header (z-index 50), below .skip (100) */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 2px solid #3b86ff;
  border-radius: 50%;
  background: #06080d;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(59, 134, 255, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s,
    background-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s,
    background-color 0.15s ease, color 0.15s ease;
}

.scroll-top svg {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: #3b86ff;
  color: #06080d;
}

.scroll-top:focus {
  outline: none;
}

.scroll-top:focus-visible {
  outline: 3px solid #3cc7ff;
  outline-offset: 3px;
  border-radius: 50%;
}

@media (max-width: 767px) {
  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top,
  .scroll-top.is-visible {
    transition: none;
    transform: none;
  }
}
