/* Back-to-top button. Appears after 500px scroll. */

.pv-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #001233;
  border: 1px solid rgba(167, 136, 49, 0.45);
  color: #a78831;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 240ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 240ms cubic-bezier(0.4, 0, 0.2, 1),
              background-color 200ms ease,
              border-color 200ms ease,
              color 200ms ease,
              visibility 0s linear 240ms;
  z-index: 90;
  padding: 0;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.pv-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 240ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 240ms cubic-bezier(0.4, 0, 0.2, 1),
              background-color 200ms ease,
              border-color 200ms ease,
              color 200ms ease;
}

.pv-to-top:hover,
.pv-to-top:focus-visible {
  background: #a78831;
  border-color: #a78831;
  color: #001233;
  outline: none;
}

.pv-to-top:focus-visible {
  box-shadow: 0 0 0 3px rgba(167, 136, 49, 0.35);
}

.pv-to-top svg {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

@media (max-width: 540px) {
  .pv-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
  .pv-to-top svg {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pv-to-top {
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
}
