nav#subnav {
}

nav#subnav ul {
    display: flex;
    flex-wrap: wrap
}

nav#subnav li {
    font-family: Merriweather;
    font-style: normal;
    font-weight: normal;
    font-size: 18px;
    line-height: 26px;
    /* or 144% */
    color: #585961;
    margin: 0 2em 0 0;
}

nav#subnav li:last-child {
    margin-right: 0;
}

nav#subnav li a {
    color: inherit;
    padding: 1.166666666666667em 0;
    display: block;
    position: relative;
}

nav#subnav li a:hover {
    color: #020873;
}

nav#subnav li.current a {
    color: #020873;
}




nav#subnav li.current a::after {
    display: block;
    content: "";
    background: #020873;
    width: 100%;
    height: 4px;
    position: absolute;
    bottom: 0;
    left: 0;
}

body[class*="philanthropy"] nav#subnav {
    background: rgba(196, 196, 196, 0.1);
    color: #656565;
}

body[class*="philanthropy"] nav#subnav li a {
}

body[class*="philanthropy"] nav#subnav li a:hover,
body[class*="philanthropy"] nav#subnav li.current a {
    color: #BD4800;
}

body[class*="philanthropy"] nav#subnav li.current a::after {
    background: currentColor;
}


body.single-analysis .widevidholder,
nav#subnav li:first-child {
    margin-left: calc((((100% - (11 * 20px)) / 12) * 3) + (3 * 20px));
}

@media all and (max-width: 1399px) {
    body.single-analysis .widevidholder,
    nav#subnav li:first-child {
        margin-left: calc((((100% - (11 * 20px)) / 12) * 3) + (3 * 20px));
    }
}

@media all and (max-width: 1199px) {
    body.single-analysis .widevidholder,
    nav#subnav li:first-child {
        margin-left: calc((((100% - (11 * 20px)) / 12) * 2) + (2 * 20px));
    }


    nav#subnav li {
        font-size: 16px;
        line-height: 24px;
        margin-right: 1.5em;
        letter-spacing: -0.01em;
    }

}

@media all and (max-width: 999px) {
    body.single-analysis .widevidholder,
    nav#subnav li:first-child {
        margin-left: calc((((100% - (11 * 20px)) / 12) * 2) + (2 * 20px));
    }
}

@media all and (max-width: 899px) {
    body.single-analysis .widevidholder,
    nav#subnav li:first-child {
        margin-left: calc((((100% - (11 * 20px)) / 12) * 1) + (1 * 20px));
        margin-left: 0
    }

    nav#subnav ul {
        padding-top: 10px;
    }

    nav#subnav li {
        font-size: 12px;
        line-height: 26px;
        margin: 0 10px 10px 0;
    }

    nav#subnav li a {
        border: 1px solid #D9D1C7;
        padding: 0.333em 1em;
    }

    nav#subnav li.current a::after {
        display: none;
    }

    nav#subnav li.current a {
        color: #FFF;
        background: #020873;
    }


    body[class*="philanthropy"] nav#subnav {


    }

    body[class*="philanthropy"] nav#subnav li a {
    }

    body[class*="philanthropy"] nav#subnav li a:hover,
    body[class*="philanthropy"] nav#subnav li.current a {
        border: 1px solid #bd4800;
        background: #bd4800;
        color: #FFF;
    }





}