/* Reserve room below the last item for the floating control. */
.scroll-to-top-footer {
  grid-column:1 / -1;
  flex:none;
  block-size:100px;
  overflow-anchor:none;
  pointer-events:none;
}
.scroll-to-top-button {
  position:fixed;
  right:calc(var(--scroll-top-right, 0px) + max(16px, env(safe-area-inset-right)));
  bottom:calc(var(--scroll-top-bottom, 0px) + max(16px, env(safe-area-inset-bottom)));
  z-index:20;
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  padding:0;
  border:1px solid #fff9;
  border-radius:50%;
  background:rgba(248,253,255,.74);
  color:#326b8d;
  box-shadow:0 2px 8px #326b8d22;
  cursor:pointer;
  opacity:.3;
  transition:opacity .15s ease, background-color .15s ease;
}
.scroll-to-top-button[hidden] {
  display:none;
}
.scroll-to-top-button:is(:active, .is-pressed) {
  opacity:1;
  background:rgba(255,255,255,.85);
  transition:none;
}
.scroll-to-top-button:focus-visible {
  outline:2px solid currentColor;
  outline-offset:3px;
}
@media (prefers-reduced-motion:reduce) {
  .scroll-to-top-button {transition:none;}
}
