/* Back to top — a floating control that returns to the top of the page. */
/* Hidden state uses visibility so the invisible button leaves the tab order. */
.gt-totop { position: fixed; right: 22px; bottom: 52px; z-index: 70; width: 46px; height: 46px; border-radius: 50%; border: var(--gt-border-width) solid var(--gt-border-2); background: var(--gt-surface); color: var(--gt-primary); display: grid; place-items: center; cursor: pointer; box-shadow: var(--gt-shadow-md); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s; transform: translateY(8px); }
.gt-totop.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.gt-totop:hover { background: var(--gt-primary-soft); }
.gt-totop:focus-visible { box-shadow: var(--gt-focus-ring); }
