/* XDAY NOCTURNE / restrained page-level navigation affordance. */
body.xday-nocturne #xday-scroll-to-top {
  position: fixed;
  inset: auto 22px 22px auto;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(176, 133, 212, .38);
  border-radius: 6px;
  background: rgba(21, 16, 29, .94);
  color: #e2c9f5;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(7px);
  transition: opacity .22s ease, transform .22s ease,
              background .22s ease, border-color .22s ease,
              visibility .22s ease;
}

body.xday-nocturne #xday-scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

body.xday-nocturne #xday-scroll-to-top:hover {
  border-color: rgba(188, 137, 236, .7);
  background: #261b34;
}

body.xday-nocturne #xday-scroll-to-top:focus-visible {
  outline: 2px solid #b67ce6;
  outline-offset: 3px;
}

body.xday-nocturne #xday-scroll-to-top svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 560px) {
  body.xday-nocturne #xday-scroll-to-top {
    inset: auto 15px 17px auto;
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.xday-nocturne #xday-scroll-to-top { transition: none; }
}