/*
FILE: static/global-nav.css
VERSION: 2026.05.05-scroll-button-visibility-fix
LAST_MODIFIED: 2026-05-05
CATEGORY: CORE_ACTIVE
ROLE: Shared floating home/back-to-top controls for public and authenticated pages.
*/

.global-home-link,
.global-top-button,
.global-bottom-button {
    position: fixed;
    z-index: 9999;
    border: 1px solid rgba(15, 35, 68, .35);
    background: linear-gradient(180deg, #ecc66d, #d5a94d);
    color: #061b24;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
    font: 800 14px/1 Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

body.dashboard-page .global-bottom-button {
    top: 112px;
}

.global-home-link {
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1;
}

.global-top-button {
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}

.global-bottom-button {
    right: 18px;
    top: 86px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
}

.global-bottom-button.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.global-top-button.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.global-home-link:hover,
.global-top-button:hover,
.global-bottom-button:hover {
    filter: brightness(1.04);
}

@media (max-width: 620px) {
    .global-home-link {
        left: 12px;
        bottom: 12px;
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .global-top-button {
        right: 12px;
        bottom: 12px;
    }

    .global-bottom-button {
        right: 12px;
        top: 78px;
    }

    body.dashboard-page .global-bottom-button {
        top: 96px;
    }
}

.admin-menu-link {
    font-weight: 900;
    color: inherit;
}
