.site-back-to-top {
    position: fixed;
    z-index: 4;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 3rem;
    max-width: calc(100vw - 2rem);
    padding: .65rem 1rem;
    border: 1px solid #8ba6c4;
    border-radius: 999px;
    background: #092349;
    box-shadow: 0 5px 20px #061a3660;
    color: #fff;
    font-size: .88rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
}

.site-back-to-top[hidden] {
    display: none;
}

.site-back-to-top:hover {
    border-color: #ffdb69;
    background: #123b68;
    color: #fff;
}

.site-back-to-top:focus-visible {
    outline: 3px solid #ffdb69;
    outline-offset: 4px;
}

.site-back-to-top-icon {
    color: #ffdb69;
    font-size: 1.25rem;
    line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
    .site-back-to-top {
        scroll-behavior: auto;
        transition: none;
    }
}
