/* ===== Tap-to-Top (t2t- scoped, brand theme) ===== */
.t2t-btn{
  position: fixed;
  right: 25px;
  bottom: 99px;
  z-index: 9999;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;

  /* unified brand color */
  background: #12616E;

  /* subtle brand glow */
  box-shadow:
    0 10px 24px rgba(18,97,110,0.28),
    inset 0 -8px 16px rgba(0,0,0,0.12);

  color: #fff;
  opacity: 0;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, filter .15s ease;
}

.t2t-btn svg {
  width: 20px;
  height: 20px;
}

/* hover + active states */
.t2t-btn:hover {
  filter: brightness(1.08);
}

.t2t-btn:active {
  transform: translateY(14px) scale(.9) translateY(1px);
}

/* focus ring in brand tone */
.t2t-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(18,97,110,0.25);
}

/* visible state */
.t2t-show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* phones: smaller size */
@media (max-width:480px){
  .t2t-btn{
    right:14px;
    bottom:99px;
    width:44px;
    height:44px;
  }
}

/* accessibility */
@media (prefers-reduced-motion: reduce){
  .t2t-btn{ transition:none }
}
