/* The UH Division of Research headers.css file is a modified version of the University of Houston header styles.
The original header styles was Created Summer 2016 by UH Web Marketing Team (see UH headers-footers.css) */

/*
 *
 * Table of Contents:
 * ------------------
 * General Header Styles
 * Global Navigation Container
 * Tactical Links
 * Site Name
 * Site Navigation Container
 * Menu Button
 * Primary Navigation
 * Responsive Menu Styles
 *
 */

/* ==========================================================================
   General Header Styles
   ========================================================================== */

.uh-header {
    background-color: #54585A;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

.uh-header-secondary-red {
    background-color: #54585A;
}

.uh-header a,
.uh-header a:visited {
    color: #FFF9D9;
    text-decoration: none;
}

.uh-header a:hover,
.uh-header a:focus,
.uh-header a:visited:hover {
    color: #000;
    text-decoration: none;
}

/* ==========================================================================
   Global Navigation Container
   ========================================================================== */

.uh-header .global-nav {
    overflow: hidden;
    padding: 0;
}

.uh-header .global-logo {
    left: 0;
    height: 3rem; /* fixes bug in IE11 */
    padding: 0 1.25rem;
    position: absolute;
    top: 0;
    right: 4.25rem;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.uh-header .global-logo a {
    display: block;
    max-width: 260px;
    min-width: 220px;
    width: 50%;
}

.uh-header .global-logo img,
.uh-header .global-logo svg {
    display: block;
    height: auto;
    width: 100%;
}

.uh-header .global-logo svg {
    fill: white;
}

@media screen and (min-width: 768px) {
    .uh-header .global-logo {
        padding: 0 2.5rem;
    }
}

@media screen and (min-width: 992px) {
    .uh-header {
        display: block;
        z-index: 100;
    }
    .uh-header .global-nav {
        /* https://www.smashingmagazine.com/2016/05/fluid-typography/#controlling-the-rate-of-scale */
        font-size: calc(14px + (16 - 14) * (100vw - 992px) / (1200 - 992)); /* scale between 14px and 16px (see above link) */
    }
    .uh-header-primary .global-nav {
        margin-bottom: -3em;
        position: relative;
    }
    .uh-header .global-nav .container {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
    }
    .uh-header-primary .global-nav .container {
        -webkit-box-pack: end;
            -ms-flex-pack: end;
                justify-content: flex-end;
    }
    .uh-header .global-logo {
        margin-right: 2.5rem;
        padding: 0;
        position: static;
        -webkit-align-self: center;
        -ms-flex-item-align: center;
            -ms-grid-row-align: center;
            align-self: center;
        -ms-flex-preferred-size: 260px;
            flex-basis: 260px;
        -webkit-box-flex: 1;
            -ms-flex-positive: 1;
                flex-grow: 1;
        -ms-flex-negative: 1;
            flex-shrink: 1;
    }
    .uh-header-primary .global-logo {
        display: none;
    }
}

@media screen and (min-width: 1200px) {
    .uh-header .global-nav {
        font-size: 1rem; /* 16px */
    }
}

/* ==========================================================================
   Tactical Links
   ========================================================================== */

.uh-header .nav-tactical {
    line-height: 1.5;
    margin: 0 -.75em;
    /*padding-top: .5em;*/
}

.uh-header .nav-tactical a {
    display: block;
    padding: .5em .75em;
}

.uh-header .nav-tactical a svg,
.uh-header .nav-tactical a img {
    display: block;
    float: left;
    height: 1.5em;
    margin-right: .5em;
    width: 1.5em;
}

.uh-header .nav-tactical a svg,
.uh-header .nav-tactical a svg * {
    fill: currentColor !important;
}

.uh-header .nav-tactical .nav-link-search {
    display: none;
}

@media screen and (min-width: 992px) {
    .uh-header .nav-tactical {
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        /*padding-top: 0;*/
    }
    .uh-header .nav-tactical a {
        padding: .75em;
    }
    .uh-header .nav-tactical .nav-link-search {
        display: block;
        opacity: 1;
        -webkit-transition: opacity .25s ease, color .25s ease;
        -o-transition: opacity .25s ease, color .25s ease;
        transition: opacity .25s ease, color .25s ease;
    }
    .active-search .uh-header .nav-tactical .nav-link-search {
        color: black;
        opacity: .25;
    }
}

/* ==========================================================================
   Site Name
   ========================================================================== */
.uh-header:not(.uh-header-primary) .site-name {
    margin-top: 3rem;
    -webkit-box-ordinal-group: 0;
        -ms-flex-order: -1;
            order: -1;
}

/*.uh-header-primary .site-name {*/
    /*display: none;*/
/*}*/

.uh-header-secondary .site-name {
    background-color: #00866c;
    color: white;
    text-align: right;
}


.uh-header-secondary .site-name a {
    display: inline-block;
    background: #fff;
    color: #3e4142;
    padding: 7px 18px;
    position:relative;
    border-radius:30px;
    font-weight:700;
    text-transform:uppercase;
    font-size:16px;
    box-shadow:0px 0px 0px 5px rgba(255,255,255,0.2);
}

.uh-header-secondary .site-name a span {
    color: #C8102E;
}


.navbtn {
    margin: 15px 5px;
}

@media screen and (max-width: 690px) {
	.uh-header-secondary .site-name {
    text-align: center;
	padding-top: 15px;
    padding-bottom: 15px;
     }

    .uh-header-secondary .site-name a {
        display: inline-block;
        background: #fff;
        color: #3e4142;
        padding: 3px 12px;
		margin: 5px;
        position: relative;
        border-radius: 30px;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 16px;
		min-width: 125px;
        box-shadow: 0px 0px 0px 4px rgba(255,255,255,0.1);
    }

    /*.site-name .container {*/
        /*display: flex;*/
        /*justify-content: center;*/
    /*}*/


    .navbtn {
        margin: 15px 5px;
    }

}

.uh-header-secondary .site-name a:hover {
    box-shadow:0px 0px 0px 7px rgba(255,255,255,0.1);
}


.uh-header-secondary .site-name a span {
    padding-left:4px;
    font-weight:700;
}




/*.header-secondary-slate .site-name {*/
    /*background-color: #54585A;*/
/*}*/

/*.uh-header-secondary-red .site-name {*/
    /*background-color: #c8102e;*/
/*}*/

/*.uh-header-secondary-white .site-name {*/
    /*background-color: white;*/
    /*color: #54585A;*/
/*}*/

/*.uh-header-secondary .site-name h1 {*/
    /*color: inherit;*/
    /*font: inherit;*/
    /*letter-spacing: inherit;*/
    /*margin: 0;*/
    /*padding: 0;*/
    /*text-transform: none;*/
/*}*/

/*.uh-header .site-name a,*/
/*.uh-header .site-name svg,*/
/*.uh-header .site-name img {*/
    /*display: inline-block;*/
/*}*/

/*.uh-header .site-name a,*/
/*.uh-header .site-name a:visited {*/
    /*color: white;*/
/*}*/

.uh-header-primary .site-name a {
    display: block;
    height: 0;
    padding: 0 0 26.923076923077%;
    position: relative;
    width: 100%;
}

.uh-header-primary .site-name img,
.uh-header-primary .site-name svg {
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.uh-header-primary .site-name svg {
    fill: white;
}

.uh-header-secondary-white .site-name a,
.uh-header-secondary-white .site-name a:visited {
    color: inherit;
}

.uh-header-custom  .site-name {
    background-color: white;
    padding: 2.5rem 0;
}

.uh-header-custom .site-name img {
    max-width: 500px;
    width: 100%;
}

@media screen and (min-width: 992px) {
    .uh-header:not(.uh-header-primary) .site-name {
        margin-top: 0;
        padding: 6px 0;
    }
    .uh-header-primary .site-name {
        display: block;
        min-width: 0; /* fixes a bug where Edge ignores flex-basis here */
        -ms-flex-preferred-size: 260px;
            flex-basis: 260px;
        -webkit-box-flex: 0;
            -ms-flex-positive: 0;
                flex-grow: 0;
        -ms-flex-negative: 1;
            flex-shrink: 1;
    }
    .uh-header-secondary .site-name {
        font-size: 3.75rem; /* 60px */
        /* https://www.smashingmagazine.com/2016/05/fluid-typography/#controlling-the-rate-of-scale */
        font-size: calc(44px + (60 - 44) * (100vw - 992px) / (1200 - 992)); /* scale between 44px and 60px (see above link) */
        margin-top: 0;
        padding: .25em 0 calc(.25em - 3px);
    }
    .uh-header-custom .site-name {
        margin-top: 0;
    }
}

@media screen and (min-width: 1200px) {
    .uh-header-secondary .site-name {
        font-size: 3.75rem; /* 60px */
    }
}

/* ==========================================================================
   Site Navigation Container
   ========================================================================== */

.uh-header-primary .site-nav {
}

.uh-header-secondary .site-nav {
    background-color: #960C22;
}

.uh-header-secondary-slate .site-nav {
    background-color: #54585A;
}

.uh-header-secondary-red .site-nav {
    background-color: #c8102e;
}

.uh-header-secondary-white .site-nav {
    background-color: #54585A;
}

@media screen and (min-width: 992px) {
    .uh-header-primary .site-nav {
        padding: 2rem 0;
        /*padding: calc(32px + (40 - 32) * (100vw - 992px) / (1200 - 992)) 0;*/
    }
    .uh-header-primary .site-nav .container {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
}

@media screen and (min-width: 1200px) {
    .uh-header-primary .site-nav {
        /*padding: 2.5rem 0;*/
    }
}

/* ==========================================================================
   Menu Button
   ========================================================================== */

.uh-header .menu-button {
    background: none;
    border: none;
    color: #fff9d9;
    cursor: pointer;
    display: block;
    height: 3rem;
    padding: .75rem;
    position: absolute;
    right: 1.25rem;
    top: 0;
    width: 3rem;
}

.uh-header .menu-button svg {
    fill: currentColor;
    height: 1.5rem;
    width: 1.5rem;
}

.uh-header .menu-button-active {
    background-color: #960C22;
}

@media only screen and (min-width: 768px) {
    .uh-header .menu-button {
        right: 2.55rem;
    }
    .uh-header .global-search .search-submit {
        right: 3rem;
    }
}

@media only screen and (min-width: 992px) {
    .uh-header .menu-button {
        display: none;
    }
}

/* ==========================================================================
   Primary Navigation
   ========================================================================== */

.uh-header .nav-primary {
    font-weight: bold;
    line-height: 1.5;
    margin: 0 -1.25rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

.uh-header .nav-primary li {
    position: relative;
}

/*.uh-header .nav-primary > li:last-child {
    padding-bottom: .5em;
}*/

.uh-header .nav-primary a {
    display: block;
    padding: .5em 1.25rem;
}

.uh-header .nav-primary a:empty {
    /*display: none;*/
}

.uh-header .nav-primary .caret {
    /* border-top: .25em solid #FFF9D9; */
    /* border-right: .25em solid transparent; */
    /* border-bottom: none; */
    /* border-left: .25em solid transparent; */
    position: absolute;
    right: 1.75rem;
    top: .25em;
    width: 2rem;
    height: 2rem;
    border: none;
    padding: .25rem;
    display: block;
    -webkit-transition: -webkit-transform .25s ease;
    transition: -webkit-transform .25s ease;
    -o-transition: transform .25s ease;
    transition: transform .25s ease;
    transition: transform .25s ease, -webkit-transform .25s ease;
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
        transform: rotate(0deg);
}

.uh-header .nav-primary .opened .caret {
    -webkit-transform: rotate(-180deg);
    -ms-transform: rotate(-180deg);
        transform: rotate(-180deg);
}

.uh-header .nav-primary .caret svg {
    fill: #fff9d9;
    height: 1.5rem;
    width: 1.5rem;
}

.uh-header .nav-primary .children {
    background-color: rgba(0,0,0,.25);
    font-weight: normal;
    max-height: 0;
    overflow: hidden;
    -webkit-transition: max-height .5s ease;
    -o-transition: max-height .5s ease;
    transition: max-height .5s ease;
}

.uh-header .nav-primary .opened + .children {
    max-height: 50rem;
}

@media screen and (min-width: 768px) {
    .uh-header .nav-primary {
        margin: 0 -2.5rem;
    }
    .uh-header .nav-primary a {
        padding: .5em 2.5rem;
    }
    .uh-header .nav-primary .caret {
        right: 2.5rem;
    }
}

@media screen and (min-width: 992px) {
    .uh-header .nav-primary {
        /* https://www.smashingmagazine.com/2016/05/fluid-typography/#controlling-the-rate-of-scale */
        font-size: calc(15px + (18 - 15) * (100vw - 970px)/(1200 - 970)); /* scale between 15px and 18px (see above link) */
        margin: 0 -.75rem;
        -webkit-box-align: end;
            -ms-flex-align: end;
                align-items: flex-end;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
    }
    .uh-header-primary .nav-primary {
        margin-left: calc(2.5rem - .75em);
        -webkit-box-flex: 1;
            -ms-flex-positive: 1;
                flex-grow: 1;
        -ms-flex-negative: 0;
            flex-shrink: 0;
        -webkit-box-pack: end;
            -ms-flex-pack: end;
                justify-content: flex-end;
    }
    .uh-header .nav-primary > li {
        -webkit-transition: background .25s ease;
        -o-transition: background .25s ease;
        transition: background .25s ease;
    }
    /*.uh-header .nav-primary > li:last-child {
        padding-bottom: 0;
    }*/
    .uh-header-primary .nav-primary > li {
        margin: auto 0 -1.125rem;
    }
    .uh-header .nav-primary li:hover {
        background: rgba(0,0,0,.25);
    }
    .uh-header .nav-primary a {
        padding: .75rem;
    }
    .uh-header .nav-primary .caret {
        border-top: .25em solid #FFF9D9;
        border-right: .25em solid transparent;
        border-bottom: none;
        border-left: .25em solid transparent;
        margin: 0;
        opacity: 0.5;
        position: relative;
        right: -.25em;
        top: auto;
        width: 0;
        height: 0;
        display: inline-block;
        padding: 0;
    }
    .uh-header .nav-primary li:hover .caret {
        opacity: 1;
    }
    .uh-header .nav-primary .caret svg {
        display: none;
    }
    .uh-header .nav-primary .children {
        background-color: #f2f2f2;
        border: 1px solid rgba(0,0,0,0.1);
        border-top-width: 0;
        -webkit-box-shadow: 0 .5rem 1rem rgba(0,0,0,0.05);
                box-shadow: 0 .5rem 1rem rgba(0,0,0,0.05);
        font-size: 1rem; /* 16px */
        line-height: 1.3125em;
        line-height: calc(1.5em - 3px);
        left: -999em;
        max-height: none;
        opacity: 0;
        overflow: visible;
        position: absolute;
        width: 260px;
    }
    .uh-header .nav-primary > li:hover > .children {
        left: -1px;
        opacity: 1;
        -webkit-transition: opacity .25s ease .25s, left 0 ease .25s;
        -o-transition: opacity .25s ease .25s, left 0 ease .25s;
        transition: opacity .25s ease .25s, left 0 ease .25s;
    }
    .uh-header .nav-primary > li:last-child:hover > .children {
        left: auto;
        right: 0;
    }
    .uh-header .nav-primary li:hover .children li:hover {
        background-color: #e5e5e5;
    }
    .uh-header .nav-primary .children a,
    .uh-header .nav-primary .children a:visited {
        color: #c8102e;
    }
    .uh-header .nav-primary .children a:hover,
    .uh-header .nav-primary .children a:visited:hover {
        color: #960C22;
    }
    .uh-header .nav-primary .children a {
        padding: .5em 1.5em .5em .75em;
    }
    .uh-header .nav-primary .children .caret {
        border-top: .25em solid transparent;
        border-right: none;
        border-bottom: .25em solid transparent;
        border-left: .25em solid #c8102e;
        position: absolute;
        right: .75em;
        top: .875em;
    }
    .uh-header .nav-primary .grandchildren {
        border-top-width: 1px;
        left: -999em;
        margin-left: 260px;
        opacity: 0;
        top: -1px;
        -webkit-transition: opacity 0s linear .25s, left 0s linear .25s;
        -o-transition: opacity 0s linear .25s, left 0s linear .25s;
        transition: opacity 0s linear .25s, left 0s linear .25s;
    }
    .uh-header .nav-primary .children li:hover .grandchildren {
        left: -2px;
        opacity: 1;
        -webkit-transition: opacity .25s ease, left 0s linear;
        -o-transition: opacity .25s ease, left 0s linear;
        transition: opacity .25s ease, left 0s linear;
    }
    .uh-header .nav-primary > li:last-child .children li .grandchildren {
        -webkit-transition: opacity 0s linear .25s, right 0s linear .25s;
        -o-transition: opacity 0s linear .25s, right 0s linear .25s;
        transition: opacity 0s linear .25s, right 0s linear .25s;
    }
    .uh-header .nav-primary > li:last-child .children li:hover .grandchildren {
        left: auto;
        opacity: 1;
        right: 258px;
        -webkit-transition: opacity .25s ease, right 0s linear;
        -o-transition: opacity .25s ease, right 0s linear;
        transition: opacity .25s ease, right 0s linear;
    }
}

@media screen and (min-width: 1200px) {
    .uh-header .nav-primary {
        font-size: 1.125rem; /* 18px */
    }
}

/* ==========================================================================
   Responsive Menu Styles
   ========================================================================== */

@media screen and (max-width: 991px) {
    .uh-header .global-search,
    .uh-header .global-nav,
    .uh-header .nav-primary {
        max-height: 0;
        overflow: hidden;
        -webkit-transition: max-height .35s ease;
        -o-transition: max-height .35s ease;
        transition: max-height .35s ease;
    }
    .active-nav .uh-header .global-nav {
        max-height: 20rem;
    }
    .active-nav .uh-header .global-search {
        max-height: 10rem;
    }
    .active-nav .uh-header .nav-primary {
        max-height: 100rem;
        -webkit-transition: max-height 1s ease;
        -o-transition: max-height 1s ease;
        transition: max-height 1s ease;
    }
}