/* Shared PR-CAST front-end back-to-top control (Django and /guide WordPress). */
.pr-back-to-top {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid #080808;
  border-radius: 50%;
  background: #111;
  color: #fff;
  box-shadow: none;
  text-decoration: none;
  appearance: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.pr-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.pr-back-to-top svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  stroke: currentColor;
}
.pr-back-to-top:hover {
  background: #292929;
  color: #fff;
}
.pr-back-to-top:active { background: #050505; }
.pr-back-to-top:focus-visible { outline: 3px solid #4d9be6; outline-offset: 3px; }
body.public-drawer-open .pr-back-to-top { visibility: hidden; pointer-events: none; }
@media (max-width: 700px) {
  .pr-back-to-top {
    right: 13px;
    bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pr-back-to-top { transition: none; }
}
