/* Keep the logo and horizontal navigation on the same row. */
html:not(.editing) .nice-header-row::before,
html:not(.editing) .nice-header-row::after { display:none; }
html:not(.editing) .c5wrapper .nice-header-row {
    display:grid;
    grid-template-columns:minmax(0,max-content) minmax(0,1fr);
    gap:16px;
    align-items:center;
    padding-top:12px;
    padding-bottom:12px;
}
html:not(.editing) .nice-header-row > .top-nav { grid-column:1; grid-row:1; min-width:0; max-width:140px; text-align:left; }
html:not(.editing) .nice-header-row > .primary-nav,
html:not(.editing) .nice-header-row > .nice-fixed-placeholder { grid-column:2; grid-row:1; min-width:0; }
html:not(.editing) .nice-header-row > .top-nav > .container,
html:not(.editing) .nice-header-row > .primary-nav > .container { width:100%; padding:0; }
html:not(.editing) .nice-header-row > .primary-nav.nice-horizontal-fixed > .container {
    width:var(--nice-header-width,100%);
    margin-left:auto;
    margin-right:auto;
    padding-left:calc(15px + var(--nice-fixed-logo-space,0px));
    padding-right:15px;
}
html:not(.editing) .nice-header-row .top-nav .row { margin:0; }
html:not(.editing) .nice-header-row .top-nav-left,
html:not(.editing) .nice-header-row .top-nav-right { width:100%; padding:0; float:none; }
html:not(.editing) .nice-header-row .top-nav-left img {
    max-width:140px;
    max-height:80px;
    width:auto;
    height:auto;
    object-fit:contain;
    display:block;
    margin-left:0!important;
    margin-right:0!important;
}
html:not(.editing) .nice-header-row .top-nav-left,
html:not(.editing) .nice-header-row .top-nav-left p,
html:not(.editing) .nice-header-row .top-nav-left [style*="text-align"] { text-align:left!important; }
html:not(.editing) .nice-header-row .top-nav-left p { margin:0; }
html:not(.editing) .nice-header-row > .primary-nav:not(.nice-horizontal-fixed) .navbar { margin-top:0; margin-bottom:0; }
@media(max-width:767px) {
    html:not(.editing) .c5wrapper .nice-header-row { gap:12px; }
    html:not(.editing) .nice-header-row > .top-nav { max-width:100px; }
    html:not(.editing) .nice-header-row .top-nav-left img { max-width:100px; max-height:60px; }
    html:not(.editing) .nice-header-row > .primary-nav .navbar-header { margin:0; }
}
