/* Only Astra's existing back-to-top control; no global presentation changes. */
body #ast-scroll-top.ss-back-to-top {
    box-sizing: border-box;
    position: fixed;
    inset: auto max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) auto;
    z-index: 90;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 52px;
    height: 86px;
    min-width: 44px;
    padding: 12px 0;
    margin: 0;
    border: 1px solid #28382d;
    border-radius: 999px;
    color: #28382d;
    background: #f4f0e8;
    box-shadow: 0 3px 12px rgba(25, 40, 30, .09);
    font: normal 500 10px/1 "Segoe UI", Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(7px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
body #ast-scroll-top.ss-back-to-top.ss-is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
body #ast-scroll-top.ss-back-to-top::before,
body #ast-scroll-top.ss-back-to-top::after { content: none; }
body #ast-scroll-top.ss-back-to-top .ss-back-to-top-arrow {
    display: block;
    flex: none;
    width: 22px;
    height: 26px;
    transform: none;
    transition: transform .18s ease;
}
body #ast-scroll-top.ss-back-to-top .ss-back-to-top-label { letter-spacing: .16em; padding-left: .16em; }
body #ast-scroll-top.ss-back-to-top:focus-visible {
    outline: 2px solid #28382d !important;
    outline-offset: 4px;
    box-shadow: 0 0 0 4px #f4f0e8 !important;
}
@media (hover: hover) and (pointer: fine) {
    body #ast-scroll-top.ss-back-to-top:hover .ss-back-to-top-arrow { transform: translateY(-2px); }
}
@media (max-width: 600px) {
    body #ast-scroll-top.ss-back-to-top {
        right: calc(20px + env(safe-area-inset-right, 0px));
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        transform: translateY(0);
        transition: opacity .2s ease, visibility .2s ease;
        width: 46px;
        height: 76px;
        gap: 3px;
    }
}
@media (prefers-reduced-motion: reduce) {
    body #ast-scroll-top.ss-back-to-top,
    body #ast-scroll-top.ss-back-to-top .ss-back-to-top-arrow { transition: none; transform: none !important; }
}
