/* 2020-05-13 override edits */
.nav-container, .mirco-nav-container {
    display: flex;
    padding: 0;
    margin: 0 !important;
    align-items: center;
}

ul.nav-container li, ul.mirco-nav-container li {
    margin: 0 30px 0 0 !important;
}

.link-mainmenu {
    padding: 0px !important;
}

    ul.nav-container li ul li, ul.mirco-nav-container li ul li {
        margin: auto !important;
    }

.nav-item {
    /* display: flex;
    flex-direction: column;
    margin: -1px 25px 0 0;
    padding: 0px; */
    cursor: pointer;
    font-weight: bold;
    text-align: left;
}

.nav-item__header {
    /*display: flex;*/
    width: 100%;
    color: #fff;
    letter-spacing: 0.03em;
}

.nav-item:focus {
    outline: #4d90fe solid 3px;
}

.nav-item-link {
    margin: 3px;
}

    .nav-item-link:focus {
        outline: #4d90fe solid 3px !important;
    }

.nav-item-related-link {
    margin: 3px !important;
}

    .nav-item-related-link:focus {
        outline: #4d90fe solid 3px !important;
    }

.nav-item-links {
    display: none;
}


ul.nav-item-list {
    display: none;
    position: absolute;
    flex-direction: column;
    top: 78px;
    padding-top: 10px;
    background-color: #006ba6;
}

.nav-item-list ul {
    display: block !important;
}

.nav-item-list > a {
    margin: 0;
    padding: 8px 0 8px 16px;
    align-items: center;
    font-size: 16px;
    line-height: 20px;
    color: #fff !important;
    text-decoration: none !important;
    outline: 0;
    font-family: 'Proxima Nova', Arial, sans-serif;
}

    .nav-item-list > a:hover,
    .related-links > a:hover,
    .related-links-mobile > a:hover {
        background-color: #0a5584;
        color: #fff !important;
        text-decoration: none;
        border-bottom: none;
    }

.related-links-title {
    font-weight: 300;
    padding: 8px 8px 0px 0px;
    font-size: 12px;
}

    .related-links-title span {
        margin-left: 15px;
    }

.related-links,
.related-links-mobile {
    display: flex !important;
    flex-direction: column;
    width: 300px;
    /*padding: 0 0 10px 16px;*/
    background-color: #006ba6;
    font-size: 12px;
    font-weight: 300;
    color: #fff !important;
    border-top: none !important;
}

    .related-links a,
    .related-links-mobile a {
        display: flex;
        /*height: 35px;*/
        margin: 0;
        padding: 0px;
        align-items: center;
        font-size: .9em;
        line-height: 20px;
        color: #fff !important;
        text-decoration: none !important;
        outline: 0;
        font-weight: 300 !important;
    }

    .related-links > span {
        padding-top: 12px;
        padding-bottom: 5px;
    }

    .related-links-mobile > a {
        padding-left: 20px;
    }

.visible {
    display: flex !important;
}

.invisible {
    display: none !important;
}

@media (min-width: 768px) {

    ul.mirco-nav-container > li button.nav-item {
        margin: 0 4px 0 4px;
    }

    ul.nav-container li ul {
        width: 300px !important;
    }

    .related-links li a {
        font-size: 12px !important;
    }

    ul.nav-container li ul li, ul.micro-nav-container li ul li {
        margin: 0px !important;
    }

    /*.nav-item__header {
        padding: 8px 0px 8px 0px;
    }*/

    /*.nys-global-header {
        display: block !important;
    }*/

    .nav-viewer {
        display: flex;
    }

    .nav-container {
        padding-left: 30px !important;
    }

    /*.micro-nav-container {
        padding-left: 20px !important;
    }*/

    ul.nav-item-list {
        top: 53px;
    }

    .micro-nav-container ul.nav-item-list {
        top: 75px !important;
    }

    .nav-item-list > a {
        font-size: 12px;
        line-height: 17px;
    }

    .related-links > a,
    .related-links-mobile > a {
        font-size: 12px;
        line-height: 17px;
        padding: 8px 0px 8px 16px;
    }

    .related-links > span {
        padding: 8px 0px 8px 16px;
        font-size: 12px;
        line-height: 17px;
    }
}

@media (min-width: 1023px) {

    .mirco-nav-container .nav-item {
        margin: 0 8px 0 8px;
    }

    .related-links-title {
        font-size: 14px;
    }

    .related-links li a {
        font-size: 14px !important;
    }

    .nys-global-header {
        display: flex !important;
    }

    .nav-container {
        padding-left: 4px !important;
    }
    /*.nav-container, .micro-nav-container {
        padding-left: 4px !important;
    }*/

    /*.micro-nav-container {
        height:75px;
        align-items:center;
    }*/
    .nav-viewer {
        display: flex;
    }

    .nav-item-list {
        display: none;
        position: absolute;
        flex-direction: column;
        top: 78px;
        width: 300px;
        padding-top: 10px;
        background-color: #006ba6;
    }

        .nav-item-list a {
            margin: 0;
            padding: 8px 0 8px 16px;
            align-items: center;
            font-size: 16px;
            line-height: 20px;
            color: #fff !important;
            text-decoration: none !important;
            outline: 0;
            font-family: 'Proxima Nova', Arial, sans-serif;
            letter-spacing: .018em !important;
        }

    .related-links {
        padding-bottom: 5px;
    }

        .related-links > a,
        .related-links-mobile > a {
            font-size: 14px;
            line-height: 20px;
        }

        .related-links > span {
            font-size: 14px;
            line-height: 20px;
        }
}

@media (max-width: 767px) {

    .nav-viewer {
        display: none;
    }

    .nys-global-header h1 {
        padding-left: 65px !important;
    }

    .nav-container {
        display: none;
        padding: 0;
        margin: 0;
        align-items: center;
        flex-direction: column;
        position: absolute;
        background-color: #006ba6;
        top: 84px;
        width: 255px;
    }

    .micro-nav-container {
        top: 80px;
    }

    .nys-global-header > ul.micro-nav-container {
        position: absolute;
        width: 255px;
        border-top: 1px solid #fff;
        z-index: 2;
    }

    .nav-container a:hover, .micro-nav-container a:hover {
        border-bottom: none;
    }

    .nav-container-related-mobile {
        background-color: #006ba6;
        width: 255px;
    }

    .nav-item-list {
        display: none;
        flex-direction: column;
        background-color: #006ba6;
        position: absolute;
        top: 75px;
        width: 255px;
        z-index: 1;
        padding-top: 0px;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        margin: 0 0px 0 0;
        padding: 0px;
        cursor: pointer;
        width: 255px;
        /*height: 75px;*/
        justify-content: center;
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-bottom-color: #0085ad;
    }

        .nav-item:focus {
            outline: #4d90fe solid 3px;
            outline-offset: -5px;
        }

    .nav-item-links {
        display: flex;
        flex-direction: column;
        margin: 0 0px 0 0;
        padding: 0px;
        cursor: pointer;
        width: 255px;
        justify-content: center;
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-bottom-color: #0085ad;
    }

    .nav-item-list > a {
        height: auto;
        margin: 0;
        padding: 20px 35px 20px 30px;
        align-items: center;
        font-size: 14px;
        line-height: 20px;
        color: #fff !important;
        text-decoration: none;
        outline: 0;
        font-family: 'Proxima Nova', Arial, sans-serif;
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-bottom-color: #0085ad;
    }

        .nav-item-list > a:last-of-type {
            display: inline !important;
        }

        .nav-item-list > a:hover,
        .nav-item-links > a:hover,
        .related-links > a:hover,
        .nav-item__header:hover,
        .related-links-mobile span:hover {
            background-color: #0a5584;
            color: #fff !important;
            text-decoration: none;
            border-bottom: none;
        }

    .nav-item__header {
        display: flex;
        width: 100%;
        color: #fff !important;
        padding: 20px 0 20px 30px;
        letter-spacing: 0.018em;
    }

    .nav-item-link {
        padding: 20px 0 20px 30px;
        letter-spacing: 0.018em;
    }

    .related-links,
    .related-links-mobile {
        padding-left: 20px !important;
    }

        .related-links span,
        .related-links-mobile span {
            padding: 20px 0 20px 30px !important;
            font-weight: bold;
        }

    .related-links,
    .related-links-mobile {
        display: flex;
        width: 255px;
        flex-direction: column;
        padding: 0px !important;
        background-color: #006ba6;
        font-size: 14px;
        font-weight: 300;
        color: #fff !important;
    }

        .related-links > a,
        .related-links-mobile > a {
            padding: 20px 0px 20px 30px !important;
        }

    .mobile-item--active {
        display: flex;
        align-items: center;
        padding-left: 49px;
        background-color: #006ba6;
        color: #4892bc;
    }
    /*
    .mobile-item--not-active:after {
        background-image: url('../../icons/icon-arrow-right.png');
        background-image: linear-gradient(transparent, transparent), url('../../icons/icon-arrow-right.svg');
        background-size: 16px;
        background-repeat: no-repeat;
        width: 2em;
        height: 1.2em;
        content: '';
        position: absolute;
        right: 5px;
        margin-top: 10px;
    }

    .mobile-item--active:before {
        background-image: url('../../icons/icon-arrow-left.png');
        background-image: linear-gradient(transparent, transparent), url('../../icons/icon-arrow-left.svg');
        background-size: 16px;
        background-repeat: no-repeat;
        width: 2em;
        height: 1.2em;
        display: inline-block;
        content: '';
        position: absolute;
        left: 19px;
        margin-top: 1px;
    }
*/
    div.visible > div.related-links,
    div.invisible > div.related-links-mobile {
        display: none;
    }
}

div > .microsite-nys-global-header {
    display: block !important;
}

.nys-global-header h1 a:focus, .nyserdalogo a:focus {
    outline: #4d90fe dotted 1px;
}


/* nys-menu-microsite overrides */
.microsite-nys-global-header:after {
    display: block;
    content: " ";
    clear: both;
}

@media (min-width: 768px) {
    .nys-global-header > ul.micro-nav-container li {
        padding: 0 15px !important;
    }

    .nys-global-header > ul.micro-nav-container li  ul li {
        padding: 0px !important;
    }

    .mirco-nav-container button {
        width: inherit !important;
        display: inline-block;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin: 0;
    }
}

@media (min-width: 768px) {
    .nav-item__header {
        padding: 8px 0 8px 0;
        margin: 0;
        display: inline-block;
    }

    .mirco-nav-container {
        display: block;
        padding: 0 !important;
        margin: 0 !important;
        height: 75px;
        align-items: center;
        padding-left: 0px !important;
    }

    .horizontal.unstacked.nys-global-header > ul.micro-nav-container {
        padding: 0 !important;
        height: 75px;
        align-items: center;
    }

    .menu-wrapper:after {
        display: block;
        content: " ";
        clear: both;
    }

    .nys-global-header.unstacked.horizontal > ul.micro-nav-container li ul {
        top: 63px !important;
        left: 0;
    }
}

@media (min-width: 768px) and (max-width:855px) {
    .menu-wrapper {
        height: auto !important;
    }
}

@media (min-width: 768px) {
    .nys-global-header > ul > li > ul > li {
        padding: 0 !important;
    }
}
