/*
FILE: static/global-nav.css
VERSION: 2026.08.16-public-content-responsive-v1
LAST_MODIFIED: 2026-08-16
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;
}


.analytics-consent {
    position: fixed;
    z-index: 10000;
    left: 18px;
    right: 18px;
    bottom: 18px;
    margin: 0 auto;
    max-width: 920px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid #d6b85c;
    border-radius: 12px;
    background: #102746;
    color: #fff;
    box-shadow: 0 12px 35px rgba(16, 39, 70, .32);
    font: 14px/1.45 Arial, sans-serif;
}
.analytics-consent > div:first-child { flex: 1; }
.analytics-consent strong, .analytics-consent span { display: block; }
.analytics-consent span { margin-top: 3px; color: #e0e9f3; }
.analytics-consent a { color: #f1c95a; }
.analytics-consent > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; }
.analytics-consent button {
    border: 0;
    border-radius: 7px;
    padding: 9px 13px;
    background: #d9a631;
    color: #102746;
    font-weight: 800;
    cursor: pointer;
}
.analytics-consent button.analytics-consent-secondary {
    border: 1px solid rgba(255,255,255,.55);
    background: transparent;
    color: #fff;
}
@media (max-width: 680px) {
    .analytics-consent { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; }
}

/* Public information and legal pages: visual-only responsive/accessibility layer. */
body.public-content-page .logo,
body.public-content-page .back-btn,
body.public-content-page .card a,
body.public-content-page .btn {
    border-radius: 6px;
}

body.public-content-page .logo:focus-visible,
body.public-content-page .back-btn:focus-visible,
body.public-content-page .card a:focus-visible,
body.public-content-page .btn:focus-visible {
    outline: 3px solid #d5ad62;
    outline-offset: 3px;
}

body.public-content-page .back-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
}

body.public-content-page .card,
body.public-content-page .card > * {
    min-width: 0;
}

body.public-content-page .card a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 700px) {
    body.public-content-page header {
        padding: 14px 18px;
        gap: 8px;
    }

    body.public-content-page .logo {
        max-width: 100%;
        font-size: clamp(1.05rem, 6vw, 1.35rem);
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    body.public-content-page .back-btn {
        padding-left: 0;
    }

    body.public-content-page main {
        padding: 1.25rem 1rem;
    }

    body.public-content-page .card {
        padding: clamp(1.25rem, 6vw, 1.8rem);
    }

    body.public-content-page h1 {
        font-size: clamp(1.7rem, 8vw, 2rem);
        line-height: 1.16;
        overflow-wrap: break-word;
    }

    body.public-content-page footer {
        padding: 1.5rem 3.5rem;
    }
}
