*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

 :root {
    --page-width: 100%;
    --side-margin: calc((100vw - var(--page-width) + 13px) / -2);
    --blue: #1b356a;
    --navy: #0b132c;
    --light-blue: #c4e0e1;
    --yellow: #f6d699;
    overflow-x: hidden;
    font-family: sans-serif;
    color: #58595b;
    font-size: 18px;
}

@media (max-width: 500px) {
     :root {
        --side-margins: -15px;
    }
}

body {
    color: inherit;
}

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

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

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: 20px;
}

#subpage-main p:empty {
    display: none;
}


/* H1 - H6 */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: var(--blue);
    margin: 0;
    padding: 0;
    margin-bottom: .5em;
}

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

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
    font-family: inherit;
}

h1 {
    font-size: 40px;
}

h2 {
    font-size: 34px;
}

h3 {
    font-size: 30px;
}

h4 {
    font-size: 27px;
}

h5 {
    font-size: 24px;
}

h6 {
    font-size: 21px;
}

h1.title {
    margin-top: .25em;
}

#homepage-main :is(h1, h2, h3, h4, h5, h6) {
    text-align: center;
}

h1.title:empty {
    display: none;
    /*Hides the extra margin that is added on pages without a title*/
}

#subpage-main p:not(:empty)+h2,
#subpage-main p:not(:empty)+h3,
#subpage-main p:not(:empty)+h4,
#subpage-main ul+h2,
#subpage-main ul+h3,
#subpage-main ul+h4,
#subpage-main table+h2,
#subpage-main table+h3,
#subpage-main table+h4 {
    margin-top: 1.5em;
}

#subpage-main h2+ul,
#subpage-main h3+ul,
#subpage-main h4+ul {
    margin-top: -.75rem;
    /*Adjusts for the margin-bottom placed on these headings to make the ul's look like they belong to that heading*/
}


/*Links*/

a {
    color: var(--blue);
    transition: .125s color ease-in-out;
    text-decoration-style: dotted;
    font-weight: bold;
}

a:hover,
a:focus {
    color: #58595b;
    text-decoration-style: dotted;
}

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

.button-link {
    text-decoration-style: none;
    color: white;
    display: block;
    width: fit-content;
    background: #40b0b4;
    padding: .75em 2ch;
    border-radius: .25em;
    transition: .125s background ease-in-out;
    border: none;
    text-transform: capitalize;
    font-weight: normal;
}

.button-link:hover,
.button-link:focus {
    text-decoration-style: dotted;
    background: var(--blue);
    color: white;
}

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

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


/*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 */
    position: relative;
    left: var(--side-margin);
    right: var(--side-margin);
    width: calc(100vw + 13px);
}

.img-responsive.full-width:not(#mycanvas img),
.img-responsive.banner-image:not(#mycanvas img) {
    /* Make sure that when the system automatically adds the class .img-responsive that it doesn't break .full-width. This is not applied to images viewed on the Grid Editor page. */
    max-width: unset;
}

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

.row-background:not(#mycanvas .row-background) {
    position: relative;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    padding-left: 15px;
}

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

.feed-item+.feed-item {
    margin-top: 1rem;
}

@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: calc(100vw + 30px);
    }
    .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;
    }
}

grammarly-btn {
    display: none;
    /*If someone copy/pastes text from Grammarly it will add this invisible button and cause the page to scroll horizontally. This style hides that.*/
}


/* Slideshows defaults */

.carousel {
    font-size: 20px;
}

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

.caption-text:empty,
.alt-text:empty {
    display: none;
}


/*----------Responsive Nivo*/

div[id^=slider-container-FD],
div[id^=slider_FD],
.nivoSlider img {
    max-width: 100% !important;
    height: auto !important;
}


/*----------Nivo Controls*/

.nivo-prevNav,
.nivo-nextNav {
    background-image: none !important;
    width: 25px !important;
    top: 25% !important;
    /*Fallback for browsers that don't support calc*/
    top: calc( 50% - 50px) !important;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 75px;
    font-family: Arial, sans-serif;
    text-shadow: 0px 0px 10px rgba(51, 51, 51, 0.4);
}

.nivo-prevNav:hover,
.nivo-nextNav:hover {
    text-decoration: none;
    color: #ae0e0d;
    text-shadow: none;
}

.nivo-prevNav {
    left: 10px !important;
}

.nivo-nextNav {
    right: 10px !important;
}

.nivo-prevNav:after {
    content: "‹";
}

.nivo-nextNav:after {
    content: "›";
}

[class*="-background"] {
    position: relative;
}

[class*="-background"]:not(.gray-background) h1:not(#mycanvas *),
[class*="-background"]:not(.gray-background) h2:not(#mycanvas *),
[class*="-background"]:not(.gray-background) h3:not(#mycanvas *),
[class*="-background"]:not(.gray-background) h4:not(#mycanvas *),
[class*="-background"]:not(.gray-background) h5:not(#mycanvas *),
[class*="-background"]:not(.gray-background) h6:not(#mycanvas *),
[class*="-background"]:not(.gray-background) p:not(#mycanvas *),
[class*="-background"]:not(.gray-background) a:not(#mycanvas *):not(.button-link) {
    color: white;
}

[class*="-background"]::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

.row[class*="-background"]::before {
    left: var(--side-margin);
    right: var(--side-margin);
}

#mycanvas [class*="-background"]::before {
    /* Markup is different in the Grid Pages so styles don't work correctly */
    content: none;
}

main:not(#mms-main) .column[class*="-background"]:not([class*="-background"] [class*="-background"]) {
    /* If a column has a background applied to it, but the row containing it does not apply these styles */
    margin-top: -2rem;
    padding: 2rem 30px 3rem;
}


/* Header */

body>header.wrapper {
    position: sticky;
    top: 0;
    z-index: 200;
    padding-top: 5px;
    padding-bottom: 5px;
    transition: .125s padding ease-in-out;
}

body>header.unscrolled {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

body>header::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    background: var(--light-blue);
    z-index: -1;
}

body>header section {
    display: flex;
    justify-content: space-between;
}

body>header section svg {
    width: 200px;
    height: auto;
    max-width: 100%;
    transition: .125s width ease-in-out;
}

body>header.unscrolled section svg {
    width: 300px;
}

.header-links {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
}

section .header-links li {
    padding: 0 5px;
}

section .header-links li+li::before {
    content: '|';
    font-weight: bold;
    color: var(--blue);
    display: inline-block;
    padding-right: 10px;
}

.header-links a {
    text-decoration: none;
}

header>nav {
    display: flex;
    justify-content: space-between;
    align-items: inherit;
    width: 100%;
}

#main-logo {
    max-width: 100%;
    width: 145px;
    height: 100px;
    display: block;
}

@media (max-width: 990px) {
    header>nav {
        flex-direction: column;
        align-items: end;
    }
}

@media (max-width: 700px) {
    body {
        overflow: inherit;
    }
    body>header.wrapper {
        display: flex;
        position: fixed;
    }
    body>header section {
        display: contents;
    }
    section .header-links {
        display: none;
    }
    header+main {
        /* Make up for height of header since it is set to fixed instead of sticky */
        margin-top: 70.34px;
        transition: .125s margin ease-in-out;
    }
    header.unscrolled+main {
        /* Make up for height of header since it is set to fixed instead of sticky */
        margin-top: 129.13px;
    }
}

@media (max-width: 500px) {
    header.unscrolled+main {
        /* Make up for height of header since it is set to fixed instead of sticky */
        margin-top: calc(129.13px - 3px);
        /* There seems to be a small gap above the slideshow on my phone */
    }
}


/* Desktop Navigation */

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

#nav_menu {
    padding: 0;
    width: 100%;
}

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

#nav_menu .dropdown-menu {
    font-size: inherit;
    padding: 0;
    top: calc(100% + 4px);
    box-shadow: none;
}

#nav_menu .dropdown-menu>li {
    display: block;
}

#nav_menu a {
    text-decoration: none;
    color: var(--blue);
    transition: .125s color ease-in-out;
    display: block;
    font-family: 'Raleway', sans-serif;
}

#nav_menu>ul>li>a {
    padding: 3px 0;
}

#nav_menu .nav .open>a,
#nav_menu .nav .open>a:focus,
#nav_menu .nav .open>a:hover,
#nav_menu a:hover,
#nav_menu a:focus {
    background: none;
}

#nav_menu .dropdown-menu a {
    padding: 2ch;
    background: #f9e6c2;
    transition: .125s background ease-in-out;
}

#nav_menu .dropdown-menu a:hover,
#nav_menu .dropdown-menu a:focus,
#mobile-menu a:hover,
#mobile-menu a:focus,
#mobile-menu .mDropdown a:hover,
#mobile-menu .mDropdown a:focus {
    background: var(--yellow);
}

#nav_menu .dropdown-menu>li+li a {
    border-top: 1px solid white;
}

@media (max-width: 1150px) {
    #nav_menu a {
        font-size: 16px;
    }
}

@media (max-width: 990px) {
    header>nav {
        margin-top: -50px;
    }
    #nav_menu {
        display: none !important;
    }
}

@media (max-width: 700px) {
    header>nav {
        margin-top: 0;
    }
}

#nav_menu .nav .dropdown li {
    position: relative;
    float: left;
    list-style-type: none;
    width: 100%;
}

#nav_menu .men-level-1 {
    top: -2px !important;
}

#nav_menu .men-level-1,
.men-level-2 {
    left: 100% !important;
}


/* Mobile navigation */

@media (min-width: 991px) {
    button.mobileMenuTrigger {
        display: none;
    }
}

button.mobileMenuTrigger {
    background: #40b0b4;
    border: none;
    color: white;
    padding: 13px 10px 8px;
    transition: .125s background ease-in-out;
}

button.mobileMenuTrigger:hover,
button.mobileMenuTrigger:focus {
    background: black;
}

#mobileMenuWrapper {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 201;
    overflow-y: auto;
    overflow-x: hidden;
    left: -120%;
    width: 300px;
    background-color: #f9e6c2;
    transition: left 300ms cubic-bezier(1.000, 0.010, 0.0, 1.000);
    box-shadow: 7px 0 5px rgb(0 0 0 / 10%);
}

#mobileMenuWrapper.open {
    left: 0;
    bottom: 0;
}

#mobile-menu {
    padding: 1em 2ch;
    list-style-type: none;
}

.triggerClose {
    text-align: right;
    font-size: 1.5em;
}

.triggerClose button {
    background: none;
    border: none;
    padding: 0;
}

#mobileMenuWrapper .mDropdown {
    display: none;
}

#mobileMenuWrapper .mDropdown.open {
    display: block;
    list-style: none;
    padding: 0;
}

#mobile-menu a {
    display: block;
    padding: 1ch;
    background: #f9e6c2;
    transition: .125s background ease-in-out;
}

#mobile-menu a:hover,
#mobile-menu a:focus {
    text-decoration: none;
}

#mobile-menu .mDropdown a {
    background: rgb(255 255 255 / 50%);
}

#mobile-menu .header-links {
    display: block;
}


/* Main page */

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

#mms-main {
    padding-top: 3rem;
}

main:not(#mms-main) .row:not(#slideshow-row) {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#homepage-main p {
    line-height: 1.7;
}

@media (max-width: 990px) {
    /*These two styles can be tweaked if needed, but they are a handy default for spacing rows (and then columns once the screen hits the col-xs breakpoint on subpages*/
    main:not(#mms-main) .row:not(#slideshow-row) {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }
    main:not(#mms-main) .column+.column {
        margin-top: 1rem;
    }
}


/* Index / Home Page */

#slideshow-row .item.active {
    display: flex;
    align-items: center;
}

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

#slideshow-row img {
    width: 100%;
    max-height: 50vh;
    object-fit: cover;
}

#slideshow-row .carousel-caption {
    top: unset;
    bottom: unset;
    left: 40%;
    right: 0;
    padding: 10px 30px;
}

#slideshow-row p {
    font-weight: bold;
    font-size: 2.8rem;
    color: var(--blue);
    line-height: 1;
    text-shadow: none;
    position: relative;
    display: block;
    margin-bottom: 0;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

#slideshow-row .caption-text::after {
    content: '';
    border-bottom: 3px solid;
    display: block;
    position: absolute;
    top: calc(100% + .25em);
    left: 0;
    right: 0;
}

#slideshow-row .alt-text {
    max-width: 570px;
    width: 100%;
    margin: auto;
}

#slideshow-row p:not(:empty)+p {
    margin-top: .5em;
}

#slideshow-row .button-link {
    font-size: 1.5rem;
    margin: 1rem auto 0;
}

@media(max-width: 1200px) {
    #slideshow-row p {
        font-size: 30px;
        font-size: clamp(20px, 3vw, 30px);
    }
    #slideshow-row .button-link {
        font-size: .75em;
    }
    #slideshow-row .carousel-caption {
        left: 30%;
        padding: 10px 15px;
    }
}

@media(max-width: 500px) {
    #slideshow-row .button-link {
        margin-top: .5rem;
    }
}


/* Banner row */

main:not(#mms-main) #banner-row.row:not(#slideshow-row) {
    padding-top: 1rem;
    padding-bottom: 1rem;
    line-height: 1;
}

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

#banner-row a {
    color: white;
    display: block;
    font-size: 1.5rem;
    text-transform: uppercase;
    text-align: center;
    font-weight: normal;
}

@media (max-width: 1200px) {
    #banner-row a {
        font-size: clamp(20px, 2vw, 30px);
    }
}


/* Welcome row */

@media (min-width: 768px) {
    #homepage-main #welcome-row {
        display: flex;
    }
}


/* Home-sidebar */

#home-sidebar,
#sidebar {
    background: var(--yellow);
    padding: 30px;
}

.featured-story {
    background: white;
    padding: 30px 15px;
    margin-top: 1rem;
}

#homepage-main .feed-item h3 {
    text-align: left;
    margin-bottom: 10px;
}

#homepage-main .feed-item h3+time {
    margin-top: -5px;
    margin-bottom: 10px;
    display: block;
}

.feed-item img {
    width: 100%;
}

.feed-item img+h3 {
    margin-top: 10px;
}

@media (max-width: 990px) and (min-width: 768px) {
    #home-sidebar {
        width: 350px;
        padding: 15px;
        margin-top: 0!important;
    }
}


/* Footer */

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

footer section {
    padding: 3rem 0;
}

footer section:first-child {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem 30px;
}

footer section:last-child p {
    text-align: center;
}

footer section::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    z-index: -1;
}

footer section:first-child::before {
    background: var(--blue);
}

footer section:last-child::before {
    background: var(--navy);
    border-top: 1px solid white;
}

footer section div {
    position: relative;
}

footer section div+div::before {
    content: '';
    border-left: 1px solid white;
    position: absolute;
    top: 0;
    bottom: 0;
    left: -20px;
}

footer :is(p, h2, a, address) {
    color: white;
}

footer h2 {
    font-size: 22px;
    margin-bottom: 1rem;
}

footer address {
    margin-bottom: 0;
}

footer .social-list .st0 {
    fill: transparent;
}

.social-list {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 1em 1ch;
}

.searchbox .search-input {
    border: none;
    padding: 1ch;
}

footer .searchbox [type="submit"] {
    display: none;
}

@media (max-width: 990px) {
    footer section:first-child {
        padding: 2rem 15px;
    }
    .affiliations-section {
        max-width: 270px;
    }
    .newsletter-form {
        max-width: unset;
    }
}

@media (max-width: 900px) {
    footer section:first-child {
        grid-template-columns: repeat(auto-fill, minmax(385px, 1fr));
    }
    footer section div+div::before {
        content: none;
    }
}


/* MMS Styling */


/* #slideshow-row {
    display: none;
} */


/* header,
#banner-row,
footer {
    display: none;
} */