/* Adnexa sand scrollbar. Only takes over once the script runs (html.has-hourglass). */
html.has-hourglass { scrollbar-width: none; }
html.has-hourglass::-webkit-scrollbar { display: none; }
/* the old 3px top progress bar is replaced by the hourglass */
html.has-hourglass .sprog { display: none; }

/* the sand column sits between the two arrow buttons */
.ah-hourglass {
  position: fixed;
  top: 26px;
  right: 4px;
  bottom: 26px;
  width: 16px;
  height: calc(100vh - 52px);
  z-index: 400;   /* above the sticky header (z-index 300) */
  pointer-events: none;
}

.ah-arrow {
  position: fixed;
  right: 2px;
  z-index: 401;   /* above the sticky header, so the up arrow gets its clicks */
  width: 20px;
  height: 22px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(195, 201, 214, 0.75);
  transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}
.ah-arrow svg { width: 12px; height: 12px; }
.ah-arrow.ah-up { top: 3px; }
.ah-arrow.ah-down { bottom: 3px; }
.ah-arrow:hover { color: #fff; background-color: rgba(255, 255, 255, 0.08); }
.ah-arrow:active { color: #ffb020; }
.ah-arrow:focus-visible { outline: 2px solid #2f8cff; outline-offset: 1px; color: #fff; }
/* at the very top or bottom, the arrow that can't move fades back */
.ah-arrow.is-end { opacity: 0.3; }

@media (max-width: 647px) {
  .ah-hourglass { right: 2px; width: 12px; }
  .ah-arrow { right: 0; width: 16px; }
}
