/* Page progress and back-to-top link, in the site's sage palette. */
.scroll-top {
  --scroll-progress: 0%;
  position: fixed;
  z-index: 24;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: var(--scroll-top-bottom, calc(24px + env(safe-area-inset-bottom, 0px)));
  width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  color: #254635;
  background: conic-gradient(#587c3f var(--scroll-progress), #dce5d4 0);
  box-shadow: 0 5px 22px #112b3226;
  isolation: isolate;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.scroll-top::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: #f9fbf5;
  z-index: -1;
}
.scroll-top svg { width: 20px; height: 20px; flex-shrink: 0; }
.scroll-top-percent { font: 600 11px/1.2 var(--font); font-variant-numeric: tabular-nums; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 25px #112b3233; }
.scroll-top:focus-visible { outline: 3px solid #38572e; outline-offset: 4px; }
.scroll-top-description {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 620px) {
  .scroll-top {
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: var(--scroll-top-bottom, calc(92px + env(safe-area-inset-bottom, 0px)));
    width: 56px;
    height: 56px;
  }
}
@media (prefers-reduced-motion: reduce) { .scroll-top { transition: none; } }
@media (forced-colors: active) { .scroll-top { border: 2px solid ButtonText; } }
@media print { .scroll-top, .scroll-top-description { display: none; } }
