/* Brenner: match the previous desktop header without changing the mobile menu. */
@media (min-width: 1200px) {
    .navbar-mainnavigation {
        --mainnavigation-nav-height: 140px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    /* The legacy app.css assigns 140px to the brand alone. With the new
       Pizpalue padding this made the complete header approximately 230px high. */
    .navbar-mainnavigation .navbar-brand {
        height: 116px;
        padding-top: 0;
        padding-bottom: 0;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .navbar-mainnavigation .navbar-brand-image img {
        height: 116px;
        max-height: 116px;
        width: auto;
        object-fit: contain;
    }

    .navbar-mainnavigation .navbar-collapse {
        flex-grow: 1;
        margin-left: auto;
        justify-content: flex-end;
    }

    .navbar-mainnavigation .navbar-nav {
        margin-left: auto;
    }
    /* Target Pizpalue's actual header and its navigation, including rules
       that otherwise keep the navigation list beside the logo. */
    #page-header > .container-mainnavigation {
        display: flex;
        align-items: center;
        width: 100%;
    }

    #page-header #mainnavigation {
        display: flex !important;
        flex: 1 1 auto !important;
        justify-content: flex-end !important;
        margin-left: auto;
        min-width: 0;
        width: auto;
    }

    #page-header #mainnavigation > .navbar-nav {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        margin-left: auto;
    }
}

/* Suppress the pointer-triggered focus halo only on the menu's own toggle.
   Keyboard interaction restores the theme's normal visible focus indicator. */
@media (min-width: 1200px) {
    #page-header #mainnavigation[data-brenner-input="pointer"] [data-brenner-dropdown-toggle="1"]:focus {
        outline: none !important;
        box-shadow: none !important;
    }
}
