/* Hallmark · shape: Open Executive, back-to-top button with a yellow scroll-progress ring. */
/* Back to top: JS-created button with a yellow scroll ring */
.js .to-top {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: var(--z-sticky);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-paper);
  cursor: pointer;
  opacity: 0;
  transform: translateY(var(--space-sm));
  visibility: hidden;
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short);
}
.js .to-top.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s, 0s, 0s, 0s, 0s;
}
.js .to-top svg { display: block; grid-area: 1 / 1; fill: none; pointer-events: none; }
.js .to-top__ring { width: 100%; height: 100%; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.js .to-top__track { stroke: var(--color-paper); opacity: 0.35; }
.js .to-top__fill { stroke: var(--color-sun); stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .to-top__arrow { stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-short) var(--ease-out); }
.js .to-top:hover, .js .to-top:focus-visible { background: var(--color-sun); color: var(--color-ink); }
.js .to-top:hover .to-top__track, .js .to-top:focus-visible .to-top__track { stroke: var(--color-ink); }
.js .to-top:hover .to-top__fill, .js .to-top:focus-visible .to-top__fill { stroke: var(--color-ink); }
.js .to-top:hover .to-top__arrow, .js .to-top:focus-visible .to-top__arrow { transform: translateY(-3px); }
.js .to-top.is-visible:active { transform: translateY(1px); transition-duration: var(--dur-micro); }
.js .to-top:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; transition: none; }
.js .to-top.is-done .to-top__arrow { animation: to-top-nudge 600ms var(--ease-out) 1; }
@keyframes to-top-nudge { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) {
  .js .to-top, .js .to-top.is-visible, .js .to-top.is-visible:active, .js .to-top__arrow { transition: none; }
  .js .to-top, .js .to-top.is-visible, .js .to-top.is-visible:active { transform: none; }
  .js .to-top.is-done .to-top__arrow { animation: none; }
}

/* De knop blijft rechtsonder staan; de copyrightregel in de footer schuift opzij zodat de knop er niet over valt. */
@media (min-width: 40.0625rem) {
  .js .site-footer__copy { margin-right: calc(52px + var(--space-md)); }
}

@media (min-width: 60.0625rem) { .js .to-top { bottom: var(--space-xl); } }
