/* PanAGD Scroll To Top — no fonts, images or external dependencies. */
.panagd-stt {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 1px solid #d9e8f6;
    border-radius: 14px;
    background: #edf4fb;
    color: #2067b3;
    box-shadow: 0 2px 10px rgb(31 65 99 / 7%);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s, background-color .2s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.panagd-stt.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.panagd-stt:hover {
    background: #dfeefa;
    color: #2067b3;
    box-shadow: 0 4px 16px rgb(31 65 99 / 14%);
}

.panagd-stt:focus-visible {
    outline: 3px solid #2067b3;
    outline-offset: 3px;
}

.panagd-stt svg {
    display: block;
    width: 22px;
    height: 22px;
    pointer-events: none;
}

@media (max-width: 767px) {
    .panagd-stt {
        right: calc(14px + env(safe-area-inset-right, 0px));
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .panagd-stt {
        transition: none;
        transform: none;
    }
}

@media print {
    .panagd-stt { display: none !important; }
}
