/* Floating vertical icon dock, identical on desktop and mobile */
#global-nav-wrapper {
    position: fixed;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#global-nav-wrapper .nav-dock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(22, 27, 34, 0.9);
    border: 1px solid #30363d;
    border-radius: 22px;
    padding: 8px 5px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
#global-nav-wrapper .nav-dock a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 1;
    border-radius: 50%;
    text-decoration: none;
    opacity: 0.82;
    transition: opacity .15s ease, background-color .15s ease, transform .15s ease;
}
#global-nav-wrapper .nav-dock a:hover,
#global-nav-wrapper .nav-dock a:active {
    opacity: 1;
    background: rgba(88,166,255,0.16);
    transform: scale(1.08);
}
#global-nav-wrapper .nav-dock a.home { opacity: 1; }
#global-nav-wrapper .nav-dock .sep {
    width: 16px;
    height: 1px;
    background: #30363d;
    margin: 3px 0;
}
#global-nav-wrapper .nav-dock a.active {
    opacity: 1;
    background: rgba(88,166,255,0.22);
    box-shadow: inset 0 0 0 1px rgba(88,166,255,0.5);
}
/* Label tooltip, flyout to the left so it never clips off-screen */
#global-nav-wrapper .nav-dock a::after {
    content: attr(data-label);
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(22,27,34,0.95);
    border: 1px solid #30363d;
    color: #c9d1d9;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 9px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}
#global-nav-wrapper .nav-dock a:hover::after { opacity: 1; }
@media (max-width: 600px) {
    #global-nav-wrapper .nav-dock a::after { display: none; }
    /* Sleeker mobile treatment: slimmer capsule, smaller icons, more glass */
    #global-nav-wrapper .nav-dock {
        gap: 0;
        padding: 6px 4px;
        border-radius: 18px;
        background: rgba(22, 27, 34, 0.72);
        border-color: rgba(48, 54, 61, 0.6);
        box-shadow: 0 2px 10px rgba(0,0,0,0.35);
    }
    #global-nav-wrapper .nav-dock a {
        width: 26px;
        height: 26px;
        font-size: 14px;
        opacity: 0.7;
    }
    #global-nav-wrapper .nav-dock a.home { opacity: 0.9; }
    #global-nav-wrapper .nav-dock .sep {
        width: 12px;
        margin: 2px 0;
    }
}
