/* ============================================================
   Theme UI additions that are not part of the approved static
   build. Kept out of assets/css/main.css so that file stays a
   byte-for-byte copy of the signed-off design.
   ============================================================ */

/* ---------- back to top ---------- */
.to-top{
  position:fixed;z-index:70;
  right:clamp(16px,3vw,34px);
  bottom:clamp(16px,3vw,34px);
  width:52px;height:52px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(6,32,27,.78);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border:1px solid rgba(222,190,127,.52);
  color:#DEBE7F;cursor:pointer;padding:0;
  opacity:0;pointer-events:none;transform:translateY(14px);
  transition:opacity .45s cubic-bezier(.65,0,.35,1),
             transform .45s cubic-bezier(.65,0,.35,1),
             background .4s ease,color .4s ease,border-color .4s ease;
}
.to-top.is-on{opacity:1;pointer-events:auto;transform:translateY(0)}
.to-top:hover{background:#DEBE7F;color:#06201B;border-color:#DEBE7F}
.to-top:focus-visible{outline:2px solid #DEBE7F;outline-offset:3px}
.to-top svg{width:15px;height:15px;display:block}
.to-top svg path{stroke:currentColor}

/* Out of the way of the open mobile menu. */
body.menu-open .to-top{opacity:0;pointer-events:none}

@media (max-width:600px){
  .to-top{width:46px;height:46px}
  .to-top svg{width:13px;height:13px}
}
@media (prefers-reduced-motion:reduce){
  .to-top{transition-duration:.001ms}
}
