/* Below Bootstrap dialogs and cookie consent; no editor/content changes needed. */
#graf-back-to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 12px;
  border: 2px solid #202326;
  border-radius: 0;
  background: #ffe100;
  color: #202326;
  box-shadow: 0 4px 14px rgb(0 0 0 / 20%);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
#graf-back-to-top[hidden] { display: none !important; }
#graf-back-to-top:hover { background: #202326; color: #ffe100; }
#graf-back-to-top:focus-visible {
  outline: 3px solid #202326;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px #fff;
}
body.modal-open #graf-back-to-top { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  #graf-back-to-top { transition: none; }
}
