/* Floor ICT — back-to-top (sitewide, light + dark) */
.back-to-top {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 28; /* cookie-bar is 36 — sit under it, raised when cookie open */
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: var(--bg-elevated, var(--color-ink-3, #0f1c28));
  color: var(--text, var(--color-paper, #fff));
  box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.4rem);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease, color 0.15s ease;
}
.back-to-top:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top[hidden] {
  display: none !important;
}
.back-to-top:hover {
  color: #fff;
  background: var(--teal, var(--color-teal, #008eaa));
  border-color: var(--teal, var(--color-teal, #008eaa));
}
.back-to-top:focus-visible {
  outline: 2px solid var(--teal, var(--color-teal, #008eaa));
  outline-offset: 3px;
}
.back-to-top__icon {
  display: inline-flex;
  line-height: 0;
}
/* Clear cookie bar when visible (body.cookie-bar-on) */
body.cookie-bar-on .back-to-top {
  bottom: 5.75rem;
}
@media (width >= 720px) {
  body.cookie-bar-on .back-to-top {
    bottom: 5.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}
