/* Preserve the Erol User layout after the Consulting 6.7.19 migration.
 * Source: Consulting 4.6.7 Zurich CSS, root style.css, and this site's theme_mod custom_css.
 * Revision 2: old root style overrides nav padding to18px; remove new wrapper10px margin.
 * Retain old20px contact line box, yielding51px strip height.
 * Prerequisite native settings: header_builder=theme_builder, header_style=header_style_6.
 * Restore homepage header_inverse=on separately if preserving its prior effective flag.
 */
body.site_layout_zurich.header_style_6 #header .header-box {
    background: transparent;
    box-shadow: none;
}
body.site_layout_zurich.header_style_6:not(.home) #header .header-box {
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
body.site_layout_zurich.header_style_6 #header .header-box::before {
    background: transparent;
}

/* Preserve the previous full-width blue contact strip and source contact order.
 * New PHP emits address, email, phone; the former template emitted phone, email, address.
 */
@media (min-width: 992px) {
    body.site_layout_zurich.header_style_6 #header .top_bar {
        background: #002e5b;
    }
    body.site_layout_zurich.header_style_6 #header .top_bar .container,
    body.site_layout_zurich.header_style_6 #header .header-box > .container {
        width: 1140px;
        padding: 0 15px;
    }
    body.site_layout_zurich.header_style_6 #header .top_bar_info_wr {
        width: 100%;
        margin: 0;
    }
    body.site_layout_zurich.header_style_6 #header .top_bar_info {
        display: flex !important;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 14px 0 17px;
    }
    body.site_layout_zurich.header_style_6 #header .top_bar_info::after {
        display: none;
    }
    body.site_layout_zurich.header_style_6 #header .top_bar_info > li {
        padding: 0;
        margin: 0 80px 0 0;
        font-size: 14px;
        min-height: 20px;
        line-height: 20px;
        letter-spacing: 1px;
        color: #fff;
    }
    body.site_layout_zurich.header_style_6 #header .top_bar_info > li:nth-child(3) {
        order: 1;
    }
    body.site_layout_zurich.header_style_6 #header .top_bar_info > li:nth-child(2) {
        order: 2;
    }
    body.site_layout_zurich.header_style_6 #header .top_bar_info > li:first-child {
        order: 3;
        margin-left: auto;
    }
    body.site_layout_zurich.header_style_6 #header .top_bar_info > li > span,
    body.site_layout_zurich.header_style_6 #header .top_bar_info > li > i {
        line-height: 1;
        vertical-align: middle;
    }
    body.site_layout_zurich.header_style_6 #header .top_bar_info > li i {
        margin-right: 10px;
        color: #ff636a;
        font-size: 16px;
    }
    body.site_layout_zurich.header_style_6 #header .top_bar_info > li i.stm-email {
        font-size: 12px;
    }
    body.site_layout_zurich.header_style_6 #header .top_bar_info > li i.stm-location-2 {
        font-size: 17px;
    }

    /* The new mobile_grid_tablet rule incorrectly also sets display:block above 991px. */
    body.site_layout_zurich.header_style_6 #header .header-box .container .nav-box {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        padding: 26px 0;
    }
    body.site_layout_zurich.header_style_6 #header .nav-box .logo-box {
        flex: 0 0 auto;
        width: auto;
    }
    body.site_layout_zurich.header_style_6 #header .logo-desktop a {
        margin-top: -12px !important;
    }
    body.site_layout_zurich.header_style_6 #header .header-box .container .nav-box .main_menu_nav {
        display: flex;
        flex-wrap: nowrap;
        flex: 0 0 auto;
        width: auto;
        padding: 0;
        margin: 0 -25px 0 auto;
    }
    body.site_layout_zurich.header_style_6 #header .nav-box .main_menu_nav > li {
        line-height: 1;
        font-size: 16px;
        font-weight: 600 !important;
    }
    body.site_layout_zurich.header_style_6 #header .header-box .container .nav-box .main_menu_nav > li > a {
        padding: 10px 18px;
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
        color: #002e5b;
        font-size: 16px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: 1px;
        text-transform: none;
    }
    body.site_layout_zurich.header_style_6 #header .header-box .container .nav-box .main_menu_nav > li.current-menu-item > a,
    body.site_layout_zurich.header_style_6 #header .header-box .container .nav-box .main_menu_nav > li.current-menu-ancestor > a,
    body.site_layout_zurich.header_style_6 #header .header-box .container .nav-box .main_menu_nav > li:hover > a {
        color: #ff636a;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    body.site_layout_zurich.header_style_6 #header .top_bar .container,
    body.site_layout_zurich.header_style_6 #header .header-box > .container {
        width: 970px !important;
    }
    body.site_layout_zurich.header_style_6 #header .top_bar_info > li {
        margin-right: 30px;
    }
    body.site_layout_zurich.header_style_6 #header .header-box .container .nav-box .main_menu_nav {
        margin-right: -15px;
    }
    body.site_layout_zurich.header_style_6 #header .header-box .container .nav-box .main_menu_nav > li > a {
        padding-right: 18px;
        padding-left: 18px;
    }
}

/* Old transparent headers were in normal flow on tablets/phones. This prevents
 * the new absolute header from covering the first ~100px of the unchanged slider.
 */
@media (max-width: 1023px) {
    body.site_layout_zurich.header_style_6.header_transparent #header {
        position: relative;
        inset: auto;
    }
}
@media (max-width: 991px) {
    body.site_layout_zurich.header_style_6 #header .top_bar {
        display: none;
    }
    body.site_layout_zurich.header_style_6 #header .header-box .container .nav-box {
        display: block;
        padding: 0;
    }
    body.site_layout_zurich.header_style_6 #header .header-box .container .logo-box {
        align-items: flex-start;
        flex-wrap: nowrap;
        padding: 22px 35px 30px 41px;
    }
    body.site_layout_zurich.header_style_6 #header .logo-box .menu-toggle {
        flex: 0 0 26px;
        margin-top: 17px;
    }
    body.site_layout_zurich.header_style_6 #header .header-box .container .nav-box .main_menu_nav > li > a {
        padding: 11px !important;
        font-size: 16px !important;
        font-weight: normal !important;
        text-transform: uppercase !important;
        text-align: center !important;
    }
}

/* The preserved custom padding now needs to follow new global_styles/main.css. */
body.site_layout_zurich .page_title {
    padding: 54px 10px 27px;
}

/* Retain the previous fallback font and inherited line height. */
body.site_layout_zurich {
    font-family: "Open Sans", sans-serif;
    line-height: 1.42857143;
}
