/* Keep the primary navigation and account actions together on wide screens. */
@media (min-width: 1400px) {
    .header > .container {
        width: calc(100% - 40px);
        max-width: 1600px;
        display: flex;
        align-items: center;
    }
    .header .nav-bar-header { flex: 0 0 auto; }
    .header .logo { padding: 0 24px 0 0; margin: 16px 0; }
    .header #mainMenu {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
        min-width: 0;
        padding: 0;
    }
    .header #mainMenu > .navbar-nav {
        display: flex;
        align-items: center;
        float: none !important;
        margin: 0;
        flex-shrink: 0;
    }
    .header #mainMenu > .navbar-nav > li > a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 52px;
        line-height: 1.3;
        padding: 0;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
        margin: 0 9px;
        transition: color .2s, border-color .2s;
    }
    .header #mainMenu > .navbar-nav > li { padding: 0; position: relative; }
    .header #mainMenu > .navbar-nav > li > .sub-menu-small,
    .header #mainMenu > .navbar-nav > li > .sub-menu-big {
        top: 100%;
        padding-top: 0;
        z-index: 1001;
    }
    .header #mainMenu > .navbar-nav > li > a[data-pages] {
        position: relative;
        z-index: 1002;
    }
    .header #mainMenu > .navbar-nav > .active > a,
    .header #mainMenu > .navbar-nav > li:hover > a {
        padding: 0;
        border-bottom-color: #e60000;
    }
    .header #mainMenu > .navbar-right {
        margin-left: 12px;
    }
    .header #mainMenu > .navbar-right > .nav-donation > .donate-btn {
        height: 42px;
        margin: 0 0 0 8px;
        padding: 0 20px;
        border: 2px solid #c70000;
        border-radius: 24px;
        font-size: 16px;
        font-weight: 600;
        text-transform: none;
        white-space: nowrap;
    }
}

.header #mainMenu > .navbar-right > .nav-donation > .donate-btn,
.header #mainMenu > .navbar-right > .nav-donation > .donate-btn:hover,
.header #mainMenu > .navbar-right > .nav-donation > .donate-btn:focus,
.header #mainMenu > .navbar-right > .nav-donation > .donate-btn:visited {
    color: #fff !important;
    background-color: #c70000;
}

/* Collapse before long English labels can push account actions onto a new row. */
@media (max-width: 1399px) {
    .header .navbar-toggle { display: block; }
    .header .nav-bar-header { width: 100%; float: none; }
    .header .nav-bar-header::after { content: ""; display: table; clear: both; }
    .header #mainMenu.collapse { display: none !important; }
    .header #mainMenu.collapse.in { display: block !important; }
    .header #mainMenu {
        width: 100%;
        margin-top: 0;
        clear: both;
        max-height: calc(100vh - 100px);
        overflow-y: auto !important;
        background: #fff;
    }
    .header #mainMenu > .navbar-nav {
        float: none !important;
        margin: 0;
    }
    .header #mainMenu > .navbar-nav > li {
        float: none;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }
    .header #mainMenu > .navbar-right {
        display: flex;
        align-items: center;
        padding: 16px 0;
    }
    .header #mainMenu .sub-menu-small,
    .header #mainMenu .sub-menu-big {
        position: static;
        width: 100%;
        max-height: none;
    }
    .header #mainMenu .sub-menu-small-container,
    .header #mainMenu .sub-menu-big-container {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
    }
}
