/* Unified portal navigation controls — injected by js/portal-nav.js */
.portal-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border-radius: 0.75rem;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #3f4850;
    font-family: 'Rubik', system-ui, -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.portal-nav-btn:hover {
    background: #e5eeff;
    color: #006194;
    border-color: #cbd5e1;
}
.portal-nav-btn:focus-visible {
    outline: 2px solid rgba(0, 97, 148, .5);
    outline-offset: 2px;
}
.portal-nav-btn .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
}
.portal-nav-btn--admin {
    background: rgba(0, 97, 148, .1);
    border-color: rgba(0, 97, 148, .3);
    color: #006194;
}
.portal-nav-btn--admin:hover {
    background: #006194;
    border-color: #006194;
    color: #ffffff;
}
@media (max-width: 639px) {
    .portal-nav-label {
        display: none;
    }
    .portal-nav-btn {
        padding: 0 8px;
    }
}

/* Floating back button for iOS standalone PWA (no browser chrome, no back gesture) */
.ios-back-fab {
    position: fixed;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    background: rgba(255, 255, 255, .96);
    color: #006194;
    box-shadow: 0 6px 16px rgba(11, 28, 48, .25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .1s ease, background-color .15s ease;
}
.ios-back-fab:active {
    transform: scale(.94);
    background: #e5eeff;
}
.ios-back-fab .material-symbols-outlined {
    font-size: 24px;
    line-height: 1;
}
