/* Back to Top button — sitewide (Base Outline asset row)
   Added 2026-10-20 for SOL-30797.
   Button is injected by /images/pub/back-to-top.js and only shown after scrolling.
   Colours from content/override.css: primary navy #32385A, link blue #0722CE.
   Icon is an inline SVG so no icon font is involved (Font Awesome CDN must not be loaded on this site). */

#sc-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #32385A;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  z-index: 9999;
}

#sc-back-to-top.sc-btt--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#sc-back-to-top:hover {
  background: #0722CE;
}

#sc-back-to-top:focus-visible {
  background: #0722CE;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

#sc-back-to-top svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 767px) {
  #sc-back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
  #sc-back-to-top svg {
    width: 18px;
    height: 18px;
  }
}

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

@media print {
  #sc-back-to-top {
    display: none !important;
  }
}
