/* Charoal v45 — accessible back-to-top control. */

#charoal-back-to-top-v45 {
  position: fixed;
  right: 96px;
  bottom: 22px;
  z-index: 999;
  display: flex;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #ec3aa7 0%, #8b2ba4 100%);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(139, 43, 164, .3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.9);
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

#charoal-back-to-top-v45.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#charoal-back-to-top-v45:hover {
  box-shadow: 0 13px 32px rgba(139, 43, 164, .42);
  transform: translateY(-2px) scale(1.04);
}

#charoal-back-to-top-v45:focus-visible {
  outline: 3px solid rgba(236, 58, 167, .28);
  outline-offset: 3px;
}

#charoal-back-to-top-v45 svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 767px) {
  #charoal-back-to-top-v45 {
    right: auto;
    bottom: 18px;
    left: 16px;
    width: 44px;
    height: 44px;
    box-shadow: 0 8px 22px rgba(139, 43, 164, .28);
  }

  #charoal-back-to-top-v45 svg {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #charoal-back-to-top-v45 {
    transition: none;
  }
}

