/* Floating back-to-top control.
   Sits above the design; orbit.css is not modified. */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--a);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease,
    color .2s ease, border-color .2s ease, visibility .2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--a);
  border-color: var(--a);
  color: var(--bg);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--a);
  outline-offset: 3px;
}

.back-to-top svg {
  display: block;
}

@media (max-width: 620px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}
