/* Shared return-to-top control across the site. */
button.back-to-top {
  position: fixed;
  z-index: 75;
  right: 24px;
  bottom: 20vh;
  bottom: clamp(96px, 20vh, 180px);
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(17,29,37,.92);
  color: #fff;
  box-shadow: 0 10px 30px rgba(8,18,25,.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .24s ease, transform .24s ease, visibility 0s linear .24s, background .2s ease;
  cursor: pointer;
}
button.back-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}
button.back-to-top:hover { background: var(--orange, #f05a30); }
button.back-to-top:focus-visible { outline: 3px solid #f4c85a; outline-offset: 3px; }
.back-to-top span { font-size: 22px; line-height: 1; transform: translateY(-1px); }

@media (max-width: 680px) {
  button.back-to-top { right: 16px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  button.back-to-top { transition: none; }
}
