/**
 * File: /shared/css/navbar.css
 * Purpose: Shared navbar presentation and interaction behavior.
 *
 * Defines structural and interaction styling for platform navigation.
 * Brand-specific visual values are supplied through CSS custom properties.
 *
 * Dependencies:
 * - /shared/css/tokens.css
 * - /brand/{brand}/css/tokens.css
 *
 * This file must not contain:
 * - Hard-coded brand-specific colors
 * - Brand-specific imagery
 * - Page-specific navigation behavior
 */


/* ==========================================
   NAVBAR
   ========================================== */

/*
 * The active brand controls the navbar background color.
 *
 * Falls back to the shared surface color when a brand does
 * not define --brand-navbar.
 */
 .navbar.navbar-light {
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;

    background-color: var(
        --brand-navbar,
        var(--color-surface)
    );
}

#navbar .container-fluid {
    height: 100%;
    min-height: var(--navbar-height, 80px);

    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    align-self: center;

    padding-top: 0;
    padding-bottom: 0;
}

.navbar-end {
    margin-left: auto;
    align-self: stretch;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    justify-items: end;
    align-items: center;
}

.navbar-signed-in {
    grid-row: 1;
    align-self: start;
    padding-top: 6px;
    max-width: min(70vw, 22rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
}

.navbar-signed-in:hover,
.navbar-signed-in:focus {
    opacity: 1;
    text-decoration: underline;
}


/* ==========================================
   NAVBAR TOGGLER
   ========================================== */

/*
 * Remove browser/framework focus and active effects that
 * conflict with the platform's navbar presentation.
 *
 * !important is retained here because these rules may need
 * to override Bootstrap's navbar toggler styles.
 */
.navbar-end > .navbar-toggler {
    grid-row: 2;
}

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
    font-weight: normal !important;
}


/* ==========================================
   NAVBAR TOGGLER ICON
   ========================================== */

/*
 * Disable transitions inherited from framework or theme CSS.
 */
.navbar-toggler-icon {
    transition: none !important;
}