/* TODO: Fix mobile styles once Font Awesome is installed.
 * - Home icon should go away on mobile
 * - Close icon and circle should overlap
 */

/* Note: Unity has xl breakpoint of 1260px and
 * default Bootstrap is 1200px. Set media queries
 * at 1200px until using Unity.
 */

/* Overall styles */

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px
}

.sr-only-focusable:active, .sr-only-focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto
}
.sr-only:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(100%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Not sure what this style in global_header.scss is supposed
   to accomplish but all it does is make long pages not scroll
   and shoots all the content to the left.
   Overriding until/unless it's needed.
 */
body.dropdown-pinned {
  overflow: auto;
  position: initial;
}

/*--------------------------------------------------------------
# Global Header

1. Wrapper Definitions, Global Mixins, Variables
2. Top Menu
3. Scrolled, Mobile
4. Scrolled, Desktop
5. Main Menu, Mobile
6. Main Menu, Mobile Only
7. Main Menu, Desktop
8. Page Content
--------------------------------------------------------------*/
/*.dropdown-pinned {
    overflow: hidden;
    position: fixed;
}*/

/*--------------------------------------------------------------
2. Top Menu
--------------------------------------------------------------*/
#wrapper-header-top {
    background-color: #e8e8e8;
    height: 24px;
    -webkit-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    -o-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    height: 24px;
}

#header-top {
    background-color: #e8e8e8;
    height: 24px;
    -webkit-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    -o-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
}

#header-top .nav {
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

#header-top .nav-link {
    padding: .5rem; /* Make sure global header links are at least 24px for accessibility. */
}

#header-top .nav-link.sr-only {
    justify-self: flex-start;
}

#header-top .login-status {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-right: 0.5rem;
}

#header-top .login-status > a {
    padding: 0;
    margin: 0;
    color: #484848;
    text-decoration: none;
}

#header-top .login-status > a.name {
    font-weight: 700;
}

#header-top .login-status > a.signout:before {
    content: '(';
    margin-left: 4px;
}

#header-top .login-status > a.signout:after {
    content: ') ';
}

#header-top .form-inline label {
    position: relative;
    margin-left: -85px;
    font-weight: 400;
    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    color: #747474;
}

#header-top input[type='search'] {
    background: url("/modules/custom/asu_header/images/font-awesome-svg/search-gray-6.svg") no-repeat 10px 50%;
    background-size: 12px;
    width: 32px;
    cursor: pointer;
    font-size: .75rem;
    line-height: 0.75rem;
    border: 0;
    border-radius: 0;
    padding: 0.25rem;
    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    height: 1.5rem;
    margin: 0;
}

#header-top input[type='search'] + label {
    display: none;
}

#header-top input[type='search']:focus {
    background-image: url("/modules/custom/asu_header/images/font-awesome-svg/search-gray-5.svg");
    width: 200px;
    color: #747474;
    background-color: #fff;
    cursor: auto;
    margin: .75rem 0;
    padding-left: 2rem;
}

#header-top input[type='search']:focus + label {
    display: block;
}

#header-top input[type='search']:focus:valid + label {
    display: none;
}

#header-top input:-moz-placeholder {
    color: transparent;
}

#header-top input::-webkit-input-placeholder {
    color: transparent;
}

/*--------------------------------------------------------------
3. Scrolled, Mobile
--------------------------------------------------------------*/
#asu-header .navbar,
#asu-header .navbar-brand .horiz,
#asu-header .navbar-brand .vert,
#asu-header .title {
    -webkit-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    -o-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
}

#asu-header.scrolled #wrapper-header-top {
    height: 0;
    overflow: hidden;
}

#asu-header.scrolled #header-top {
    height: 0;
    overflow: hidden;
}

#asu-header.scrolled #header-main .navbar-brand .horiz {
    margin-bottom: 0.5rem;
}

#asu-header.scrolled #header-main .navbar-brand .vert {
    margin: 12px 1rem 12px 0;
    padding: 0.25rem 0;
    height: 64px;
}

#asu-header.scrolled #header-main .title {
    padding-bottom: 1rem;
}

#asu-header.scrolled #header-main .title .unit-name {
    display: none;
}

/*--------------------------------------------------------------
4. Scrolled, Desktop
--------------------------------------------------------------*/
@media (min-width: 1200px) {
    #asu-header.scrolled .navbar-container.no-links {
        margin-top: 2rem;
    }
    #asu-header.scrolled .navbar-nav .nav-link,
    #asu-header.scrolled .navbar-nav .dropdown .nav-link {
        padding-top: 0;
    }
    #asu-header.scrolled #header-main .navbar-brand .vert {
        padding: 0;
    }
    #asu-header.scrolled #header-main .title {
        padding-bottom: 0;
        margin: 16px 0;
    }
    #asu-header.scrolled #header-main .title.subdomain-name {
        font-size: 1.5rem;
    }
}

/*--------------------------------------------------------------
5. Main Menu, Mobile
--------------------------------------------------------------*/
#wrapper-header-top {
    display: none;
}

#wrapper-header-main {
    border-bottom: 1px solid #d0d0d0;
    background-color: #ffffff;
}

#header-main {
    padding: 0;
}

#header-main .navbar {
    padding: 1.5rem 0 0 0;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

#header-main .navbar-brand {
    padding: 0;
    margin: 0;
}

#header-main .navbar-brand .vert {
    display: none;
}

#header-main .navbar-brand .horiz {
    display: block;
    height: 32px;
    width: auto;
    margin-bottom: 1rem;
    margin-left: 2rem;
}

#header-main .navbar-toggler {
    color: #191919;
    border: 0;
    margin-right: 2rem;
}

#header-main .navbar-toggler:focus {
    outline: 0;
}

#header-main .navbar-toggler .fa-stack {
    width: 0.875em;
    height: 1em;
}

#header-main .navbar-toggler .fa-circle {
    color: #e8e8e8;
    font-size: 1rem;
    margin-left: -12px;
    /* Magic number, align icon with hamburger */
}

#header-main .navbar-toggler .fa-times {
    margin-left: -5px;
    /* Magic number, same thing */
}

#header-main .svg-inline--fa.fa-w-14 {
  width: .875em;
}

#header-main .svg-inline--fa {
  font-size: inherit;
  height: 1em;
  vertical-align: -.125em;
}

#header-main .svg-inline--fa.fa-stack-2x {
  height: 2em;
  width: 2.5em;
}

#header-main .svg-inline--fa.fa-stack-1x {
  height: 1em;
  width: 1.25em;
}

#header-main .svg-inline--fa.fa-stack-1x,
#header-main .svg-inline--fa.fa-stack-2x {
  bottom: 0;
  margin: auto;
  right: 0;
  top: 0;
}

#header-main .navbar-toggler.collapsed .fa-stack {
    display: none;
}

#header-main .navbar-toggler.collapsed .fa-bars {
    display: inline-block;
}

#header-main .navbar-toggler:not(.collapsed) .fa-stack {
    display: inline-block;
}

#header-main .navbar-toggler:not(.collapsed) .fa-bars {
    display: none;
}

#header-main .navbar-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    width: 100%;
}

#header-main .title {
    line-height: 1;
    font-size: 1rem;
    font-weight: 700;
    padding: 0 2rem 1.5rem 2rem;
}

#header-main .title > a {
    color: #191919;
    text-decoration: none;
}

#header-main .title > a:visited {
    color: #191919;
}

#header-main .title > a:hover {
    text-decoration: underline;
}

#header-main .title .unit-name {
    display: none;
}

#header-main .navbar-nav .nav-link {
    padding: 1rem 2rem 0.5rem 2rem;
    border-top: 1px solid #d0d0d0;
    color: #191919;
}

#header-main .navbar-nav .nav-link .fa-home {
    display: none;
}

#header-main .navbar-nav .nav-link:visited {
    color: #191919;
}

#header-main .navbar-nav .nav-link:after {
    -webkit-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    -o-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    content: '';
    display: block;
    height: 0.5rem;
    background-color: #ffc627;
    position: absolute;
    top: 3rem;
    bottom: inherit;
    width: 0;
    margin-left: 2rem;
    position: relative;
    top: 0.5rem;
}

#header-main .navbar-nav .nav-link.active:after {
    width: 100%;
    margin-left: 0;
}

#header-main .navbar-site-buttons {
    padding: 1rem 2rem;
    border-top: 1px solid #d0d0d0;
}

#header-main .navbar-site-buttons .btn {
    margin-bottom: 1rem;
}

#header-main .navbar-site-buttons .btn:last-of-type {
    margin-bottom: 0;
}

#header-main #menubar {
    overflow-y: scroll;
}

#header-main #menubar.collapsing {
    height: unset !important;
}

#header-main #menubar.collapsing .navbar-mobile-footer.pinned,
#header-main #menubar.show .navbar-mobile-footer.pinned {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
}

#header-main .navbar-mobile-footer {
    background-color: #e8e8e8;
}

#header-main .navbar-mobile-footer .navbar-mobile-search {
    padding: 1rem 2rem;
    width: 100%;
    border-top: 1px solid #d0d0d0;
}

#header-main .navbar-mobile-footer .navbar-mobile-search input {
    width: 100%;
    background: url("/modules/custom/asu_header/images/font-awesome-svg/search-gray-6.svg") no-repeat 10px 50%;
    background-size: 16px;
    background-color: #ffffff;
    border: 0;
    border-radius: 0;
    padding-left: 32px;
}

#header-main .navbar-mobile-footer .nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row;
    justify-items: start;
    width: 100%;
}

#header-main .navbar-mobile-footer .nav-grid .nav-link {
    color: #191919;
    margin-right: 0;
    text-align: center;
    width: 100%;
    font-size: 0.875rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #d0d0d0;
}

#header-main .navbar-mobile-footer .nav-grid .nav-link:nth-child(even) {
    border-left: 1px solid #d0d0d0;
}

#header-main .navbar-mobile-footer .nav-grid .login-status {
    display: block;
    width: 100%;
}

#header-main .navbar-mobile-footer .nav-grid .login-status > a {
    border: 0;
    padding: 0;
    margin: 0;
    color: #191919;
    text-decoration: none;
}

#header-main .navbar-mobile-footer .nav-grid .login-status > a.name {
    font-weight: 700;
}

#header-main .navbar-mobile-footer .nav-grid .login-status > a.signout:before {
    content: '(';
    margin-left: 4px;
}

#header-main .navbar-mobile-footer .nav-grid .login-status > a.signout:after {
    content: ') ';
}

#header-main .navbar-mobile-footer.shadow:before {
    -webkit-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    -o-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    content: '';
    height: 3.5rem;
    width: 100%;
    background: transparent -webkit-gradient(linear, left bottom, left top, from(#19191914), to(#19191900)) 0% 0% no-repeat padding-box;
    background: transparent -o-linear-gradient(bottom, #19191914 0%, #19191900 100%) 0% 0% no-repeat padding-box;
    background: transparent linear-gradient(0deg, #19191914 0%, #19191900 100%) 0% 0% no-repeat padding-box;
    position: absolute;
    top: -3.5rem;
}

#header-main .dropdown {
    border-top: 1px solid #d0d0d0;
}

#header-main .dropdown:not(:last-child) {
    border-bottom: 0;
}

#header-main .dropdown .nav-link {
    border-top: 0;
}

#header-main .dropdown .fa-chevron-down {
    float: right;
    font-size: 1.25rem;
    -webkit-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    -o-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
}

#header-main .dropdown.show .fa-chevron-down {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

#header-main .dropdown:after {
    -webkit-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    -o-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    content: '';
    display: block;
    height: 0.5rem;
    background-color: #ffc627;
    position: absolute;
    top: 3rem;
    bottom: inherit;
    width: 0;
    margin-left: 2rem;
}

#header-main .dropdown.active:after {
    width: calc(100% - 4rem);
    /* arbitrary number */
    margin-left: 2rem;
}

#header-main .dropdown.show:after {
    width: calc(100% - 4rem);
    /* arbitrary number */
    margin-left: 2rem;
}

#header-main .dropdown.megamenu.show:after {
    width: calc(100% - 4rem);
    /* arbitrary number */
    margin-left: 2rem;
}

#header-main .dropdown-menu {
    margin: 0;
    padding: 1rem;
    border: 0;
    border-top: 1px solid #d0d0d0;
}

#header-main .dropdown-menu .btn {
    margin: 0.5rem 0;
}

#header-main .btn.nav-link {
  font-weight: normal;
  border-radius: 0;
  border: none;
  width: 100%;
  text-align: left;
}

#header-main .btn.nav-link:hover,
#header-main .btn.nav-link:focus {
  transform: none;
}

#header-main .dropdown-toggle:after {
  border: none;
}

#header-main .dropdown-menu div[class^='col-'] {
    margin-bottom: 3rem;
    padding: 0 2rem;
}

#header-main .dropdown-menu div[class^='col-']:last-child {
    margin-bottom: 0;
}

#header-main .dropdown-col {
    padding: 0 2rem;
    margin-bottom: 3rem;
}

#header-main .dropdown-col:last-child {
    margin-bottom: 0;
}

#header-main .dropdown-item {
    padding: 1rem 0.5rem;
    white-space: normal;
}

#header-main .dropdown-item:visited {
    color: #191919;
}

#header-main .dropdown-item + .dropdown-item {
    border-top: 1px solid #bfbfbf;
}

/*--------------------------------------------------------------
6. Main Menu, Mobile Only
--------------------------------------------------------------*/
#wrapper-header-main .container-lg {
    padding: 0;
}

/*--------------------------------------------------------------
7. Main Menu, Desktop
--------------------------------------------------------------*/
/* Breakpoint at which the mobile menu is triggered */
@media (min-width: 1200px) {
    #wrapper-header-top {
        display: block;
    }
    #header-main .navbar {
        padding: 0;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
    }
    #header-main .navbar-brand .vert {
        display: block;
        height: 72px;
        width: auto;
        margin: 20px 1rem 20px 0;
    }
    #header-main .navbar-brand .horiz {
        display: none;
    }
    #header-main .navbar-container.no-links {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        margin-top: 2.5rem;
    }
    #header-main .navbar-container.no-links .title {
        width: 100%;
        margin: 0;
    }
    #header-main .navbar-container.no-links .navbar-collapse {
        -webkit-box-pack: end !important;
        -ms-flex-pack: end !important;
        justify-content: flex-end !important;
    }
    #header-main .title {
        line-height: 1;
        margin: 1rem 0 0.5rem 0;
        font-weight: 700;
        padding: 0;
    }
    #header-main .title .unit-name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        display: block;
    }
    #header-main .title .subdomain-name {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    #header-main .title.subdomain-name {
        font-size: 2rem;
        margin: 1.5rem 0 1rem 0;
        font-weight: 700;
    }
    #header-main .navbar-site-buttons {
        padding: 0;
        border: 0;
    }
    #header-main .navbar-site-buttons .btn {
        margin-bottom: 0;
    }
    #header-main .navbar-site-buttons .btn + .btn {
        margin-left: 1rem;
    }
    #header-main #menubar {
        overflow: initial;
    }
    #header-main .navbar-nav {
        line-height: 1rem;
    }
    #header-main .navbar-nav > .nav-link {
        border: 0;
        font-size: 1rem;
        color: #191919;
        padding: 0.5rem 0.75rem;
        /* Magic number */
        margin-right: 0.5rem;
    }
    #header-main .navbar-nav > .nav-link:after {
        -webkit-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
        -o-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
        transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
        content: '';
        display: block;
        height: 0.5rem;
        background-color: #ffc627;
        position: relative;
        top: inherit;
        bottom: 0;
        width: 0;
        margin-left: 0;
        bottom: -8px;
        left: -8px;
    }
    #header-main .navbar-nav > .nav-link:hover:after {
        width: 100%;
        margin-left: 0;
        width: calc(100% + 16px);
    }
    #header-main .navbar-nav > .nav-link.active:after {
        width: 100%;
        margin-left: 0;
        width: calc(100% + 16px);
    }
    #header-main .navbar-nav > .nav-link-home {
        padding-bottom: 7px;
        /* Magic number */
    }
    #header-main .navbar-nav > .nav-link-home .fa-home {
        display: inline-block;
        font-size: 16px;
    }
    #header-main .navbar-nav .nav-item .nav-link {
        padding: 0.5rem 0.75rem 0 0.75rem;
        /* Magic number */
    }
    #header-main .dropdown {
        position: relative;
        padding: 0;
        border: 0;
        margin-right: 0.5rem;
    }
    #header-main .dropdown:after {
        -webkit-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
        -o-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
        transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
        content: '';
        display: block;
        height: 0.5rem;
        background-color: #ffc627;
        position: relative;
        top: inherit;
        bottom: 0;
        width: 0;
        margin-left: 0;
    }
    #header-main .dropdown:hover:after {
        width: 100%;
        margin-left: 0;
    }
    #header-main .dropdown.active:after {
        width: 100%;
        margin-left: 0;
    }
    #header-main .dropdown.dropdown.show:after {
        width: 100%;
        margin-left: 0;
    }
    #header-main .dropdown.dropdown.megamenu.show:after {
        width: 100%;
        margin-left: 0;
    }
    #header-main .dropdown .fa-chevron-down {
        float: none;
        display: inline-block;
        font-size: 0.75rem;
        margin-left: 0.5rem;
    }
    #header-main .dropdown-menu {
        margin: -1px 0 0 0;
        border: 1px solid #d0d0d0;
        border-top: 1px solid #ffffff;
        padding: 2rem;
    }
    #header-main .dropdown-menu div[class^='col-'] {
        margin-bottom: 0;
    }
    #header-main .dropdown-menu.dropdown-columns.show {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    #header-main .dropdown-col {
        width: 16rem;
        padding: 0 1.5rem 0 0;
        border-right: 1px solid #bfbfbf;
        margin-right: 1.5rem;
    }
    #header-main .dropdown-col:last-of-type {
        margin-right: 0;
        padding-right: 0;
        border-right: 0;
    }
    #header-main .dropdown-col h3 {
        margin-top: 0;
    }
    #header-main .dropdown-item {
        padding: 0.5rem 0;
        white-space: normal;
    }
    #header-main .dropdown-item:visited {
        color: #191919;
    }
    #header-main .dropdown-item:hover {
        color: #8c1d40;
        text-decoration: underline;
    }
    #header-main .dropdown-item + .dropdown-item {
        border-top: 0;
    }
    #header-main .megamenu {
        position: static;
    }
    #header-main .megamenu .dropdown-menu {
        background-color: #ffffff;
        border-bottom: 1px solid #bfbfbf;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-top: 0;
        padding: 0;
    }
    #header-main .megamenu .row {
        width: 100%;
        padding: 2rem 0;
    }
    #header-main .megamenu .row.with-buttons {
        padding: 1rem 0;
    }
    #header-main .megamenu .row.with-buttons:before {
        content: '';
        height: 1px;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        background-color: #bfbfbf;
        position: relative;
        top: -1rem;
    }
    #header-main .megamenu .row.with-buttons div[class^='col-'] {
        padding-bottom: 0;
    }
    #header-main .megamenu div[class^='col-'] {
        border-right: 1px solid #bfbfbf;
        padding: 0 1.5rem 2.5rem 1.5rem;
        position: relative;
    }
    #header-main .megamenu div[class^='col-']:last-of-type {
        border-right: 0;
    }
    #header-main .megamenu div[class^='col-'] h3 {
        margin-top: 0;
    }
    #header-main .megamenu div[class^='col-'] .dropdown-item {
        white-space: normal;
    }
    #header-main .megamenu div[class^='col-'] .dropdown-item + .dropdown-item {
        border-top: 0;
    }
    #header-main .megamenu div[class^='col-'] .dropdown-item + .btn {
        position: absolute;
        bottom: 0;
        margin: 0;
    }
    #header-main .megamenu div[class^='col-'] .btn + .btn {
        margin-left: 1.5rem;
    }
    #header-main .navbar-mobile-footer {
        display: none;
    }
}

/*--------------------------------------------------------------
8. Page Wrapper
--------------------------------------------------------------*/
/*
 * Fiddled the margin-top styles to only activate for
 * non-admin users (who will have the fixed-top class
 * on the header.
 * May need some additional margin tweaking so content
 * without a hero isn't snug up against the header.
 * -dlf
 */
/*
 * When there's an admin toolbar, scoot the ASU header down.
 * This corrects the problem with extra margin at the top and
 * lets it retain the scrolling behavior.
 */
.toolbar-horizontal .fixed-top {
  top: 80px;
}
/* Make sure admin toolbar is always usable above the ASU header */
#toolbar-administration {
  position: relative;
  z-index: 10000;
}

#asu-header + div,
#asu-header + main {
    -webkit-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    -o-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    /*margin-top: 113px;*/
}

#asu-header.fixed-top + div,
#asu-header.fixed-top + main {
    margin-top: 113px;
}

#asu-header.scrolled + div,
#asu-header.scrolled + main {
    -webkit-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    -o-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
    /*margin-top: 97px;*/
}

#asu-header.fixed-top.scrolled + div,
#asu-header.fixed-top.scrolled + main {
    margin-top: 97px;
}

@media (min-width: 992px) {
    #asu-header + div,
    #asu-header + main {
        -webkit-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
        -o-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
        transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
        /*margin-top: 137px;*/
    }
    #asu-header.fixed-top + div,
    #asu-header.fixed-top + main {
        margin-top: 137px;
    }
    #asu-header.scrolled + div,
    #asu-header.scrolled + main {
        -webkit-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
        -o-transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
        transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
        /*margin-top: 81x;*/
    }
    #asu-header.fixed-top.scrolled + div,
    #asu-header.fixed-top.scrolled + main {
        margin-top: 81px;
    }
}


/*------------------------------------------------------------------
Footer - Table of Contents

1. Component Level Mixins
2. Wrapper Base Colors
3. Endorsed Footer (#endorsed-footer)
4. Footer Columns (#footer-columns)
5. Footer Innovation (#footer-innovation)
6. Footer Colophon (#footer-colophon)
-------------------------------------------------------------------*/

/* Fix side-scrolling on mobile. Don't want to
 * override Bootstrap more than once so setting this
 * only on mobile. Can remove this if Unity resolves
 * it at the grid level.
 */
/* md breakpoint */
@media (max-width: 768px) {
    .block-asu-global-footer .row {
        margin: 0;
    }
}

/*------------------------------------------------------------------
1. Component Level Mixins
--------------------------------------------------------------------*/
/*------------------------------------------------------------------
2. Wrapper Base Colors
--------------------------------------------------------------------*/
#wrapper-endorsed-footer,
#wrapper-footer-columns {
    background: #1e1e1e;
}

#wrapper-endorsed-footer h5,
#wrapper-footer-columns h5 {
    color: #ffffff;
}

#wrapper-endorsed-footer a {
    color: #e8e8e8;
}

#wrapper-endorsed-footer + #wrapper-footer-columns {
    border-top: 2px solid #393939;
}

#wrapper-footer-innovation {
    background-color: #ffc627;
}

#wrapper-footer-innovation a {
    margin-right: 1.5rem;
    text-decoration: none;
    color: #191919;
}

#wrapper-footer-colophon {
    background-color: #e8e8e8;
}

#wrapper-footer-colophon a {
    margin-right: 1.5rem;
    text-decoration: none;
    color: #191919;
}

/*------------------------------------------------------------------
3. Endorsed Footer (#endorsed-footer)
--------------------------------------------------------------------*/
#endorsed-logo img {
    width: 100%;
    height: auto;
    padding: 1.5rem 0 1rem 0;
}

#social-media .nav {
    padding-bottom: 1.5rem;
}

#social-media .nav-link {
    font-size: 2rem;
    color: #bfbfbf;
    line-height: 1;
    padding-top: 7px;
}

@media (min-width: 768px) {
    #endorsed-logo img {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding: 0.5rem 0 0.5rem 0;
        margin-left: -1.625rem;
        /* Magic number. Derived from internal padding of endorsed logo */
        max-height: 8rem;
        width: auto;
    }
    #social-media .nav {
        padding: 2.5rem 0;
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-end;
    }
    #social-media .nav .nav-item:last-child .nav-link {
        padding-right: 0;
    }
}

/*------------------------------------------------------------------
4. Footer Columns (#footer-columns)
--------------------------------------------------------------------*/
#footer-columns {
    padding: 1.5rem 2rem;
}

#footer-columns #info-column .contact-link {
    margin-bottom: 2rem;
}

#footer-columns #info-column .contact-link a {
    color: #e8e8e8;
    line-height: 1.5rem;
    text-decoration: none;
    text-decoration: underline;
}

#footer-columns #info-column .contact-link a:hover {
    color: #ffc627;
    text-decoration: underline;
}

#footer-columns #info-column .contribute-button {
    margin-bottom: 2rem;
}

#footer-columns .flex-footer .card-foldable,
#footer-columns .flex-footer .card-header,
#footer-columns .flex-footer .card-body {
    background: #1e1e1e;
    color: #ffffff;
    border: 0;
}

#footer-columns .flex-footer .card-header {
    border-top: 1px solid #393939;
}

#footer-columns .flex-footer .card-header a {
    color: #e8e8e8;
    padding: 1.5rem 0;
    text-decoration: none;
}

#footer-columns .flex-footer .card-header a:hover {
    background: #1e1e1e;
}

#footer-columns .flex-footer .card-body {
    padding: 0 0 0 1.5rem;
}

#footer-columns .flex-footer .card-body .nav-link {
    color: #ffffff;
    padding: 0 0 1rem;
    color: #e8e8e8;
    line-height: 1.5rem;
    text-decoration: none;
}

#footer-columns .flex-footer .card-body .nav-link:hover {
    color: #ffc627;
    text-decoration: underline;
}

@media (min-width: 1200px) {
    #footer-columns {
        padding: 3rem 0;
    }
    #footer-columns h5 {
        margin: 0 0 1.5rem 0;
    }
    #footer-columns .flex-footer .card-header {
        border-top: 0;
        padding: 0;
    }
    #footer-columns .flex-footer .card-header a {
        padding: 0;
        cursor: default;
    }
    #footer-columns .flex-footer .card-header span {
        display: none;
    }
    #footer-columns .flex-footer .card-body {
        padding: 0;
        -webkit-transition-delay: 0;
        -o-transition-delay: 0;
        transition-delay: 0;
    }
    #footer-columns .flex-footer .card-body.collapse:not(.show) {
        display: block;
        min-height: auto;
    }
}

/*------------------------------------------------------------------
5. Footer Innovation (#footer-innovation)
--------------------------------------------------------------------*/
#footer-innovation .footer-innovation-links {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-weight: 700;
}

#footer-innovation .footer-innovation-links img {
    height: 100px;
    width: auto;
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
}

#footer-innovation .footer-innovation-links .nav-link {
    padding: 0;
}

@media (max-width: 991.98px) {
    #footer-innovation {
        padding: 0;
    }
    #footer-innovation .footer-innovation-links {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        padding-bottom: 1.5rem;
    }
    #footer-innovation .footer-innovation-links img {
        width: 100%;
        height: auto;
        -webkit-box-ordinal-group: 0;
        -ms-flex-order: -1;
        order: -1;
    }
    #footer-innovation .footer-innovation-links .nav {
        display: grid;
        grid-template-rows: 1fr 1fr 1fr;
        grid-auto-flow: column;
        justify-items: start;
        width: 100%;
        padding: 0 2rem;
    }
    #footer-innovation .footer-innovation-links .nav-link {
        margin-right: 0;
        padding: 0.5rem 0;
    }
    #footer-innovation .footer-innovation-links .nav-link:nth-child(n + 4) {
        justify-self: end;
    }
}

/*------------------------------------------------------------------
6. Footer Colophon (#footer-colophon)
--------------------------------------------------------------------*/
#wrapper-footer-colophon .colophon {
    margin: 1rem 0;
}

#footer-colophon .nav-link {
    padding: 0;
}

@media (max-width: 991.98px) {
    #footer-colophon {
        padding: 0;
    }
    #footer-colophon .nav {
        display: grid;
        grid-template-rows: 1fr 1fr 1fr;
        grid-auto-flow: column;
        justify-items: start;
        width: 100%;
        padding: 0 2rem;
    }
    #footer-colophon .nav-link {
        margin-right: 0;
        padding: 0.5rem 0;
    }
    #footer-colophon .nav-link:nth-child(n + 4) {
        justify-self: end;
    }
}
