.waey-back-to-top { display: none; }

@media (max-width: 767px) {
    .waey-masthead, .masthead {
        padding-top: env(safe-area-inset-top, 0px);
    }
    .waey-masthead-inner, .waey-sections-inner, .masthead .shell {
        max-width: 100%;
        box-sizing: border-box;
    }
    .waey-back-to-top:not([hidden]) {
        position: fixed;
        z-index: 30;
        inset-inline-start: max(12px, env(safe-area-inset-right, 0px));
        inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px));
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--waey-border, #dce5f2);
        border-radius: 50%;
        background: var(--waey-surface, #fff);
        color: var(--waey-accent, #105bd3);
        box-shadow: 0 2px 10px #11151c30;
        font: 700 22px/1 Arial, sans-serif;
        text-decoration: none;
    }
}
