/* Coaching Perspectives: reusable return-to-top control */
.cp-back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  width: 46px;
  height: 46px;
  border: 1px solid #b89a62;
  border-radius: 50%;
  background: #252b38;
  color: #f3d8a9;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 6px 24px rgba(0,0,0,.42);
  font: 700 25px/1 Arial, sans-serif;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease, background .2s ease;
}
.cp-back-to-top.cp-is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.cp-back-to-top:hover { background: #394253; }
.cp-back-to-top:focus-visible {
  outline: 2px solid #f4dda9;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .cp-back-to-top { transition: none; }
}
@media print {
  .cp-back-to-top { display: none !important; }
}
