/* BAEDAVIM: reglas exclusivamente de la cabecera pública. */
@media (max-width: 1199.98px) {
    .baedavim-public-header,
    .baedavim-public-header__top,
    .baedavim-public-header__brandbar,
    .baedavim-public-header__brandbar-inner,
    .baedavim-public-header .baedavim-public-nav {
        width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
    }
    .baedavim-public-header__brandbar { background: #1B4052; }
    .baedavim-public-header .baedavim-public-header__brandbar-inner {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0; gap: .65rem; padding: .75rem 1rem;
    }
    .baedavim-public-header__baedavim { display: block; min-width: 0; }
    .baedavim-public-header .baedavim-public-header__baedavim img {
        width: min(240px, 100%); max-width: 100%; height: auto;
        max-height: 72px; margin-inline: auto; object-position: center;
    }
    .baedavim-public-header .baedavim-public-header__institutions {
        display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
        align-items: center; justify-items: center; gap: .75rem;
        min-width: 0; width: min(480px, 100%); max-width: 100%;
        box-sizing: border-box; margin-inline: auto; padding: .6rem .8rem;
        background: #fff; border-radius: .75rem;
    }
    .baedavim-public-header .baedavim-public-header__institutions img {
        display: block; width: 100%; min-width: 0; max-width: 100%;
        height: auto; max-height: 52px; object-fit: contain;
    }
    .baedavim-public-header .baedavim-public-nav > .container-fluid {
        display: flex; flex-wrap: wrap; justify-content: space-between;
        align-items: center; width: 100%; min-width: 0; box-sizing: border-box;
        padding-inline: 1rem !important;
    }
    .baedavim-public-nav .baedavim-public-nav__brand { display: inline-block !important; color: #1B4052; }
    .baedavim-public-nav [data-bd-public-toggle] { display: none !important; }
    .baedavim-public-nav[data-bd-ready] [data-bd-public-toggle] {
        display: inline-flex !important; align-items: center; justify-content: center;
        min-width: 44px; min-height: 44px;
    }
    .baedavim-public-nav .baedavim-public-nav__panel {
        display: block !important; flex: 0 0 100%; width: 100%; min-width: 0;
        height: auto; visibility: visible; overflow: visible;
    }
    .baedavim-public-nav[data-bd-ready] .baedavim-public-nav__panel:not(.bd-public-nav-open) {
        display: none !important;
    }
    .baedavim-public-nav .navbar-nav {
        display: flex; flex-direction: column !important; align-items: stretch !important;
        width: 100%; padding: .4rem 0; margin: 0 !important;
    }
    .baedavim-public-nav .nav-item { min-width: 0; margin: 0 !important; }
    .baedavim-public-nav .nav-link { min-height: 44px; overflow-wrap: anywhere; }
    .baedavim-public-nav .baedavim-public-nav__login { margin: .4rem 0; }
    .baedavim-public-nav [data-bd-public-toggle]:focus-visible { outline: 2px solid #2D638B; outline-offset: 3px; }
}
