html {
    --blue: #183656;
    --orange: #f47529;
    --text: #7a7a7a;
    font-size: 17px;
    font-family: 'Cabin', sans-serif;
    color: var(--text);
    --side-margin: calc((100vw - var(--page-width) + 13px) / -2);
}

body {
    color: inherit;
    overflow-x: hidden;
}

body,
header,
footer,
main,
header nav {
    font-family: inherit !important;
    font-size: inherit !important;
    /* Prevent MMS pages with hard-coded fonts from overwriting this  */
}

p {
    margin: 0;
}

p:not(:last-child) {
    margin-bottom: .75em;
    color: inherit;
}


/*--------------------------------------------------------
    Headings
--------------------------------------------------------*/

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 .3em;
    padding: 0;
    font-weight: bold;
    color: currentColor;
    text-transform: capitalize;
    line-height: 1.2;
}

h1:not(:first-child),
h2:not(:first-child),
h3:not(:first-child),
h4:not(:first-child),
h5:not(:first-child),
h6:not(:first-child) {
    margin-top: 1em;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 25px;
}

h3 {
    font-size: 22px;
}

h4 {
    font-size: 20px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 17px;
}


/*--------------------------------------------------------
    Links
--------------------------------------------------------*/

a {
    text-decoration: none;
    color: var(--blue);
    transition: .25s color ease-in-out;
}

a:hover,
a:focus {
    color: var(--orange);
    text-decoration: none;
}

.button-link {
    text-transform: capitalize;
    display: block;
    width: fit-content;
    background-color: var(--blue);
    color: white;
    text-align: center;
    padding: .6em 1ch;
    text-decoration: none;
    line-height: 1;
    transition: background .25s ease-in-out;
    text-shadow: none;
    border: 1px solid currentColor;
}

.button-link:hover,
.button-link:focus {
    color: white;
    background-color: var(--orange);
    text-decoration: none;
    border-color: currentColor;
    outline: none;
}

.button-link:not(:first-child) {
    margin-top: 1.5em;
}

.button-link:not(:last-child) {
    margin-bottom: 2em;
}

#mms-main a {
    text-decoration: none;
}


/*--------------------------------------------------------
    Objects
--------------------------------------------------------*/

.offscreen {
    /* This class allows an element to be read by a screenreader without appearing in the viewport  */
    position: absolute;
    left: -666vw;
}


/*  Wrappers
    *.wrapper acts as a more symantic stand in for <container><row><col-md-12></col-md-12></row></container> in sections of this build that don't require stacking columns 
 */

.wrapper {
    margin-right: auto;
    margin-left: auto;
    max-width: 100%;
    position: relative;
    height: inherit;
    padding-left: 15px;
    padding-right: 15px;
}

.full-width {
    /* Make an element span the width of the viewport */
    /* 13px to compensate for width of scrollbar */
    position: relative;
    left: var(--side-margin);
    right: var(--side-margin);
    width: calc(100vw + 13px);
}

#gm-canvas .full-width {
    left: unset;
    right: unset;
    width: unset;
}

@media (min-width:768px) {
     :root {
        --page-width: 100%;
    }
}

@media (min-width:991px) {
     :root {
        --page-width: 970px;
    }
    .wrapper {
        width: 970px;
    }
}

@media (min-width:1201px) {
     :root {
        --page-width: 1170px;
    }
    .wrapper {
        width: 1170px;
    }
}

.row-background:not(#mycanvas .row-background) {
    position: relative;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    padding-left: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 30px;
}

.row-background:not(#mycanvas .row-background):last-child {
    padding-top: 3.5rem;
    padding-bottom: 4.5rem;
}

.row-background:not(#mycanvas .row-background)::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -666vw;
    right: -666vw;
    display: block;
    background-color: var(--gray);
    opacity: .25;
}

.row-background:not(#mycanvas .row-background)>.column {
    background: white;
    padding: 1.5rem 30px;
    border-radius: 5px;
}

@media (min-width: 992px) {
    .row-background:not(#mycanvas .row-background)>.col-md-9 {
        width: calc(75% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-8 {
        width: calc(66.7% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-7 {
        width: calc(58.3% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-6 {
        width: calc(50% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-5 {
        width: calc(41.7% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-4 {
        width: calc(33.3% - 20px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-3 {
        width: calc(25% - 20px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-2 {
        width: calc(20% - 20px);
    }
}

@media (max-width: 990px) {
    .container,
    .wrapper {
        /* Extra wiggle room at a breakpoint that needs it  */
        width: 100%;
    }
    .full-width {
        --side-margin: -15px;
        left: var(--side-margin);
        right: var(--side-margin);
        /* width: 100vw; */
    }
    .row-background:not(#mycanvas .row-background) {
        padding-right: 15px;
    }
    .row-background::before {
        left: 0;
        right: 0;
    }
}

@media (max-width: 767px) {
    .row-background {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
     :root {
        --side-margin: 0;
    }
}


/*--------------------------------------------------------
    Header
--------------------------------------------------------*/

#header-top,
header.wrapper {
    padding-top: .5rem;
    padding-bottom: .5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 30px;
    position: relative;
}

#header-top,
#header-top a {
    color: white;
}

#header-top::before,
header.wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    background: white;
    z-index: -1;
    box-shadow: 0 0 15px rgba(0, 0, 0, .3);
}

#header-top::before {
    background: var(--blue);
    box-shadow: none;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1em 30px;
    align-items: center;
}

.contact-list svg {
    display: inline-block;
    margin-right: 0.5ch;
    margin-bottom: -3px;
    color: var(--orange);
}

header.wrapper {
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1rem 1ch;
    align-items: center;
}

.tagline {
    text-align: center;
    display: block;
    width: 160px;
    color: var(--blue);
}

header img {
    /* width: 173px; */
    max-width: 100%;
    height: auto;
    display: block;
    z-index: 1;
    position: relative;
}

@media (min-width: 991px) {
    .logo-wrapper {
        /* Adjust image position so left border aligns with .container edge */
        margin-left: -5px;
    }
}

header>section {
    display: flex;
    flex-direction: row-reverse;
    /* align-items: center; */
    justify-content: flex-end;
    gap: .5rem 10px;
}

header nav {
    display: flex;
    align-items: center;
}

@media (max-width: 1250px) {
    .tagline {
        font-size: 16px;
    }
}

@media (max-width: 990px) {
    header nav {
        width: 100%;
    }
}

@media (max-width: 900px) and (min-width: 768px) {
    .tagline {
        display: none;
    }
}

@media (max-width: 767px) {
    .logo-wrapper {
        min-width: 60vw;
    }
    header img {
        width: 110px;
    }
    .tagline {
        font-size: 16px;
    }
    .contact-list {
        display: none;
    }
}


/* Desktop menu  */

#nav_menu {
    position: relative;
    z-index: 1;
    padding: 0;
    width: inherit;
}

#nav_menu>ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
}

#nav_menu>ul::before,
#nav_menu>ul::after {
    content: none;
}

#nav_menu li {
    position: relative;
}

#nav_menu>ul>li>a {
    position: relative;
    padding: .5em 1.75ch;
    text-transform: capitalize;
    color: var(--blue);
    transition: .25s color ease-in-out;
    border-radius: 1em;
}

#nav_menu>ul>li>a:hover,
#nav_menu>ul>li>a:focus {
    color: var(--orange);
}

#nav_menu a {
    text-decoration: none;
    background: transparent;
    transition: .25s color ease-in-out;
}

#nav_menu a:hover,
#nav_menu a:focus,
#nav_menu .nav .open>a,
#nav_menu .nav .open>a:focus,
#nav_menu .nav .open>a:hover {
    background: var(--accent);
}

#nav_menu .caret {
    margin-left: .5ch;
}

#nav_menu .dropdown-menu {
    /* Dropdown menu  */
    font-size: inherit;
    padding: 0.5em 0;
    border: none;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    top: calc(100% + .5rem);
}

#nav_menu .dropdown-menu a {
    text-decoration: none;
    background: transparent;
    transition: .25s background ease-in-out, .25s color ease-in-out;
}

#nav_menu .dropdown-menu a:hover,
#nav_menu .dropdown-menu a:focus {
    background: var(--primary);
    color: var(--orange);
}

#nav_menu .dropdown-menu:not(.men-level-):not(.men-level-0) {
    top: 0;
}

#nav_menu .dropdown-menu a {
    padding: .5em 20px;
}

#nav_menu .login-item {
    display: none;
}

.search-item svg {
    width: 1em;
    height: 1em;
}

@media (max-width: 1200px) {
    #nav_menu>ul {
        display: flex;
        justify-content: space-between;
    }
    #nav_menu>ul>li>a,
    #nav_menu .dropdown-menu a {
        padding: .5em 1ch;
    }
}

@media (max-width: 990px) {
    #nav_menu>ul>li>a,
    #nav_menu .dropdown-menu a {
        padding: .5em .5ch;
    }
}

@media (min-width: 768px) {
    #nav_menu .contact-item {
        display: none;
    }
}

@media (max-width: 767px) {
    #nav_menu {
        display: none;
    }
}


/* Mobile menu trigger  */

.mobileMenuTrigger:not(.triggerClose) {
    border: 2px solid currentColor;
    padding: 10px 5px;
    color: var(--blue);
    transition: color .25s ease-in-out;
    display: inline-flex;
    border-radius: 5px;
    background: transparent;
    border: none;
    padding: 0;
    margin-left: auto;
}

@media (min-width: 768px) {
    .mobileMenuTrigger:not(.triggerClose) {
        display: none;
    }
}

.mobileMenuTrigger:not(.triggerClose):hover,
.mobileMenuTrigger:not(.triggerClose):focus {
    color: var(--orange);
    outline: none;
}

.menu-trigger {
    padding: 5px;
    height: 30px;
}

.mobileMenuTrigger label {
    display: none;
}


/* Login modal */

.modal-open .modal {
    display: flex;
}

.modal-dialog {
    max-width: 100%;
    font-size: 16px;
    margin: auto;
    width: 300px;
}

.modal-content {
    margin-top: 20px;
    border-radius: 0;
}

.modal-header,
.modal-body {
    padding: .5rem 1rem;
}

.modal-header .close {
    opacity: 1;
    z-index: 1;
    position: relative;
}

.modal h2 {
    font-size: 24px;
}

.modal-header,
.modal-body {
    padding: 1em 2ch;
}

.modal input[name="Username"],
.modal input[name="Password"] {
    width: 100%;
    padding-left: .25em;
    padding-right: .25em;
    margin-bottom: 0.5em;
    height: 2em;
    border: 1px solid rgba(68, 68, 68, .5);
}

.modal a {
    display: block;
    margin-bottom: .5em;
}

@media (max-width: 990px) {
    .header-links li:not(:last-child) {
        display: none;
    }
}


/*--------------------------------------------------------
    Mobile navigation
--------------------------------------------------------*/

#mobileMenuWrapper {
    position: fixed;
    background: white;
    top: 0;
    bottom: 0;
    z-index: 50;
    overflow-y: auto;
    overflow-x: hidden;
    left: -120%;
    width: 300px;
    box-shadow: 0 3px 14px -2px rgba(0, 0, 0, 0.4);
    transition: left .25s ease-in-out;
}

#mobileMenuWrapper.open {
    left: 0;
}

#mobileMenuWrapper ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#mobileMenuWrapper li {
    display: block;
    margin-bottom: .7rem;
}

#mobileMenuWrapper a:not(.button-link) {
    background-color: transparent;
    text-decoration: none;
}

#mobileMenuWrapper .mDropdown {
    display: none;
    padding-top: .7rem;
}

#mobileMenuWrapper .mDropdown.open {
    display: block;
}

.triggerClose {
    text-align: right;
}

.triggerClose button {
    background: none;
    border: none;
    font-size: 2rem;
    padding: 0;
    line-height: 1;
}

#mobileMenuWrapper #mobile-menu {
    overflow: auto;
    padding: 1rem;
}


/*--------------------------------------------------------
    Main
--------------------------------------------------------*/

#subpage-main,
#mms-main {
    padding-top: 3rem;
    min-height: calc(100vh - 54px - 167px - 4rem);
}

main:not(#mms-main) .row:not(main>:first-child) {
    position: relative;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

main:not(#homepage-main)+footer {
    margin-top: 3rem;
}

@media (max-width: 767px) {
    #homepage-main {
        overflow-x: hidden;
    }
}


/* Slideshows defaults */

.carousel {
    font-size: 20px;
}

.carousel-indicators {
    bottom: unset;
    text-align: left;
    left: 30px;
    right: unset;
    margin: 0;
    z-index: 1;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border: 1px solid white;
    background: transparent;
    margin: 0;
}

.carousel-indicators .active {
    border: 1px solid var(--blue);
    background: var(--blue);
    width: 12px;
    height: 12px;
}

.carousel-indicators li:not(:first-child) {
    margin-left: 5px;
}

.carousel-control.left,
.carousel-control.right {
    display: none;
}


/* Slideshow row  */

#slideshow-row .column {
    padding: 0;
}

#slideshow-row img {
    width: 100%;
}

#slideshow-row .carousel-caption {
    top: 0;
    left: calc(var(--side-margin) * -1);
    right: calc(var(--side-margin) * -1);
    bottom: 0;
    display: flex;
    align-items: center;
}

#slideshow-row .caption-text,
#slideshow-row .alt-text {
    font-size: 20px;
    margin: 0;
    text-align: left;
    line-height: 1.2;
    width: fit-content;
}

#slideshow-row .caption-text {
    font-weight: bold;
    font-size: 70px;
}

#slideshow-row p+p.alt-text {
    margin-top: .75em;
}

#slideshow-row .button-link {
    margin-top: 1em;
    background: var(--orange);
}

#slideshow-row .button-link:hover,
#slideshow-row .button-link:focus {
    background: var(--blue);
}

@media (min-width: 768px) {
    #slideshow-row .carousel-caption {
        text-shadow: 0 0 4px rgba(0, 0, 0, 1);
    }
    #slideshow-row .caption-text,
    #slideshow-row .alt-text {
        background: rgba(24, 54, 86, .4);
        padding: 5px 15px;
    }
}

@media (max-width: 1200px) {
    #slideshow-row .caption-text {
        font-size: 50px;
    }
}

@media (max-width: 990px) {
    #slideshow-row .caption-text {
        font-size: 35px;
    }
    #slideshow-row p+p.alt-text {
        font-size: 1rem;
    }
    #slideshow-row .button-link {
        margin-top: .5em;
    }
}

@media (max-width: 767px) {
    #slideshow-row .carousel-caption {
        position: relative;
        padding: 1rem 15px;
        background: var(--blue);
    }
    #slideshow-row .carousel-caption::before {
        opacity: 1;
    }
}


/* Quick links row */

#homepage-main #quick-links-row::before,
#homepage-main #cta-row::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    background: var(--blue);
    z-index: -1;
    display: block;
}

#homepage-main #quick-links-row ul {
    list-style: none;
    padding: 1.5rem 0 3rem;
    margin: 0;
    display: flex;
    justify-content: space-around;
    background: white;
    font-size: 20px;
    font-weight: bold;
    color: var(--blue);
}

@media (min-width: 1201px) {
    #homepage-main #quick-links-row ul {
        font-size: 24px;
    }
}

@media (min-width: 991px) {
    #homepage-main #quick-links-row ul {
        margin-top: -7rem;
    }
}

#quick-links-row li {
    text-align: center;
    position: relative;
}

#homepage-main #quick-links-row a::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#quick-links-row svg {
    display: block;
    width: 100px;
    height: 100px;
    color: var(--orange);
    margin: 0 auto .5rem;
    background: transparent;
    padding: 1.4rem;
    border-radius: 50%;
    overflow: initial;
    transition: .25s background ease-in-out, .25s color ease-in-out;
}

#quick-links-row li:hover svg,
#quick-links-row li:focus svg {
    background: var(--orange);
    color: white;
}

@media (max-width: 990px) {
    #homepage-main #quick-links-row ul {
        padding: 1rem 0 2rem;
    }
}

@media (max-width: 767px) {
    #homepage-main #quick-links-row ul {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
        gap: 1rem 30px;
    }
    #quick-links-row svg {
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    #homepage-main #quick-links-row ul {
        grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    }
}


/* Events row */

#homepage-main #events-row {
    margin: 0;
}

#homepage-main #events-row .column {
    padding: 2em 4ch;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.feed-item {
    padding: 1em 0;
}

.feed-item+.feed-item {
    border-top: 1px solid #e6e6e6;
}


/* CTA row */

#cta-row:not(#mycanvas .row) img {
    position: relative;
    z-index: -1;
    width: 100%;
}

#cta-row:not(#mycanvas .row) a {
    text-align: center;
    display: block;
    font-size: 20px;
    background: white;
    padding: 1em;
    margin-left: 30px;
    margin-right: 30px;
    line-height: 1;
    font-weight: bold;
    color: var(--blue);
    overflow: hidden;
    margin-top: -1.5em;
    transition: .25s margin ease-in-out, .25s padding ease-in-out, .25s color ease-in-out;
}

#homepage-main #cta-row a::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#cta-row:not(#mycanvas .row) a:hover,
#cta-row:not(#mycanvas .row) a:focus {
    padding-bottom: 2em;
    margin-top: -2.5em;
    color: var(--orange);
}

@media (max-width: 767px) {
    #cta-row .column+.column {
        margin-top: 2rem;
    }
}


/*--------------------------------------------------------
    Footer
--------------------------------------------------------*/

footer {
    padding-top: 3rem;
    padding-bottom: 3rem;
    color: white;
    position: relative;
}

footer::before {
    content: '';
    top: 0;
    bottom: 0;
    left: calc(var(--side-margin));
    right: calc(var(--side-margin));
    background: var(--blue);
    position: absolute;
    z-index: -1;
    border-top: 1px solid #263A65;
}

.social-list {
    display: flex;
    /* justify-content: flex-end; */
    align-items: center;
    position: relative;
    list-style: none;
    gap: 1rem 15px;
    padding: 1.5rem 0;
    margin: 0;
    line-height: 1;
    /* border-bottom: 1px solid #132b44; */
}

.social-list::before {
    /* content: ''; */
    position: absolute;
    bottom: 0;
    left: calc(var(--side-margin));
    right: calc(var(--side-margin));
    border-bottom: 1px solid #132b44;
}

.social-list svg {
    padding: 6px;
    background: #027BB6;
    transition: .25s background ease-in-out;
    border-radius: 50%;
}

.social-list svg:hover,
.social-list svg:focus {
    background: var(--orange);
}

.social-list path {
    fill: var(--primary);
}

.social-list rect {
    display: none;
}

footer>section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 30px;
    /* padding: 1rem 0; */
}

footer img[alt="HEDW: A community of higher ed data minds"] {
    height: fit-content;
}

@media (min-width: 991px) {
    footer img[alt="HEDW: A community of higher ed data minds"] {
        margin-left: -35px;
    }
}

footer>section>div {
    max-width: 400px;
    width: 100%;
}

footer>div {
    text-align: center;
    /* margin-top: 3rem; */
}

footer * {
    color: #c7ccd6;
}

footer *:is(h2) {
    color: white;
}

footer p {
    margin: 0;
}

footer a {
    text-decoration: underline;
}

footer a:hover,
footer a:focus {
    color: inherit;
}

footer .form-horizontal {
    display: flex;
}

footer .form-horizontal .form-group,
footer .form-group div {
    display: contents;
}

footer .form-horizontal .form-group::before,
footer .form-horizontal .form-group::after {
    content: none;
}

footer .form-group label {
    display: none;
}

footer .form-group input,
footer .form-group button {
    border: none;
    padding: 0.75em 1ch;
    font-size: 1rem;
    height: unset;
    border-radius: 0;
}

footer .form-group button {
    background: var(--orange);
    color: white;
}

@media (max-width: 767px) {
    footer::before {
        left: 0;
        right: 0;
    }
}


/*--------------------------------------------------------
    MMS Styles
--------------------------------------------------------*/


/* MMS Member Menu icons */

@media (min-width: 1200px) {
    .nav-tabs li.dropdown {
        width: 190px;
    }
}

@media (min-width: 990px) and (max-width: 1200px) {
    .nav-tabs li.dropdown {
        width: 155px;
    }
}

@media (min-width: 767px) and (max-width: 990px) {
    .nav-tabs li.dropdown {
        width: 120px;
    }
}