/* ============================================================
   Scroll-to-top button (index.php)
   Fixed bottom-right circular button. Hidden until the page has
   been scrolled down a bit, then fades/slides in; click smooth-
   scrolls back to the top. Lives directly in index.php (not a
   fragment) since it's pure page behavior, not editable content.
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1020;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--pine, #17402e);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, background-color .15s ease, visibility 0s linear .2s;
}
.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .2s ease, transform .2s ease, background-color .15s ease;
}
.scroll-top-btn:hover,
.scroll-top-btn:focus {
  background: var(--brass, #b98a2f);
  color: var(--pine, #17402e);
  outline: none;
}

@media (max-width: 575.98px) {
  .scroll-top-btn {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
}
