/* Navigation feedback for mobile browsers and the Android WebView. */
@media (max-width: 767.98px) {
    /* Keep navigation beside the hamburger instead of under the right-hand logo. */
    #page-topbar .navbar-header > .d-flex:first-child { justify-content: flex-start !important; min-width: 0; }
    #page-topbar .mobile-nav-controls { display: inline-flex !important; align-items: center; flex: 0 0 auto; position: relative; z-index: 4; }
    #page-topbar .mobile-nav-controls .btn { display: inline-flex !important; align-items: center; justify-content: center; width: 30px; min-width: 30px; height: 40px; padding: 4px !important; margin: 0 !important; color: #14565a; }
    #page-topbar .mobile-nav-controls svg { display: block; width: 21px; height: 21px; flex: 0 0 auto; }
    .mobile-refresh-btn i { font-size: 20px; line-height: 1; }
    html.tbgp-nav-loading::before {
        content: ''; position: fixed; top: 0; left: 0; width: 35%; height: 4px;
        background: #1aa58f; box-shadow: 0 0 5px #147566;
        z-index: 2147483646; pointer-events: none;
        animation: tbgp-navigation 1.1s ease-in-out infinite;
    }
    html.tbgp-nav-loading::after {
        content: 'Loading...'; position: fixed; top: 7px; left: 50%; transform: translateX(-50%);
        padding: 4px 12px; border-radius: 16px; background: #147566; color: white;
        font: 12px/1.4 Arial, sans-serif; z-index: 2147483646; pointer-events: none;
    }
    @keyframes tbgp-navigation { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
    @media (prefers-reduced-motion: reduce) {
        html.tbgp-nav-loading::before { animation: none; width: 100%; }
    }
}
