/* Reusable scroll-to-top button for standalone pages */
.iapj-scroll-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(180deg, #347b62 0%, #214e3f 100%);
  box-shadow: 0 16px 36px rgba(12, 34, 56, 0.24);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.iapj-scroll-top svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.iapj-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.iapj-scroll-top:hover,
.iapj-scroll-top:focus-visible {
  box-shadow: 0 20px 44px rgba(12, 34, 56, 0.3);
  transform: translateY(-2px) scale(1);
}

.iapj-scroll-top:active {
  transform: translateY(0) scale(0.98);
}

.iapj-scroll-top:focus-visible {
  outline: 3px solid #1f6db8;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .iapj-scroll-top {
    right: 12px;
    bottom: 12px;
    width: 52px;
    height: 52px;
  }
}

@media print {
  .iapj-scroll-top {
    display: none !important;
  }
}
