/* Homepage scroll-to-top control, shared across every public page. */
html body .ir-scroll-top {
  position: fixed !important;
  right: 20px !important;
  bottom: 22px !important;
  z-index: 79 !important;
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 50% !important;
  background: #ff6000 !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(255,96,0,.28) !important;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.94);
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease,
              transform .24s cubic-bezier(.22,1,.36,1), box-shadow .2s ease;
}
html body .ir-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
html body .ir-scroll-top:hover,
html body .ir-scroll-top:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 30px rgba(255,96,0,.36) !important;
}
html body .ir-scroll-top:focus-visible {
  outline: 2px solid #ff6000 !important;
  outline-offset: 3px !important;
}
html body .ir-scroll-top svg {
  display: block;
  width: 16px !important;
  height: 16px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
@media (max-width: 960px) {
  html body .ir-scroll-top {
    right: 14px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }
  html body:has(.mobilebar) .ir-scroll-top {
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }
  html body:not(:has(.mobilebar)) .ir-scroll-top {
    bottom: 14px !important;
  }
}
@media (max-width: 620px) {
  html body:has(.mobilebar) .ir-scroll-top { bottom: 94px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body .ir-scroll-top { transition: none !important; }
}
