/* PPS — Back-to-top button with scroll progress ring
   Loaded in numeric order; later files may refine earlier ones. */

/* ==========================================================================
   Back to top
   ========================================================================== */
.to-top {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 90;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold-light);
  box-shadow: 0 12px 28px -12px rgba(25, 36, 58, .6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.9);
  transition: opacity .35s, transform .35s var(--ease), visibility .35s, background .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--white); }
.to-top .icon { width: 20px; height: 20px; position: relative; z-index: 1; transition: transform .3s var(--ease); }
.to-top:hover .icon { transform: translateY(-3px); }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 150.8;           /* 2 * PI * 24 */
  stroke-dashoffset: var(--progress, 150.8);
  transition: stroke-dashoffset .1s linear;
}
.to-top:hover .to-top-ring circle { stroke: var(--white); }
@media (max-width: 680px) { .to-top { bottom: 18px; inset-inline-end: 18px; width: 46px; height: 46px; } }
