:root {
    --sans: "neue-haas-grotesk-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --serif: 'Playfair Display', serif;
    --color: #4da8a4;
    /*^^For pages outside of the top level menu items and their children. */
}


/* Highlight active page category in main menu */

#navbar2>ul>li>a {
    position: relative;
}

@media (min-width: 1201px) {
    #about #about-link::after,
    #study-at #study-at-link::after,
    #students #students-link::after,
    #members #members-link::after,
    #faculty #faculty-link::after,
    #visitors #visitors-link::after,
    #board #board-link::after,
    #contact #contact-link::after {
        content: '';
        position: absolute;
        left: 3px;
        right: 3px;
        display: block;
        bottom: 24px;
        height: 3px;
        background: #8F3660;
    }
}

body#about,
body#study-at,
body#students {
    --page-title-bg: url(https://www.rolf.org/css/min/img/bg-page-title.png);
    --color: #237174;
    --bg-img: url('../images/Pattern_02_green.png');
}

body#members {
    --page-title-bg: url(../images/title-pattern-blue.png);
    --color: #1F384B;
    --bg-img: url('../images/Pattern_02_blue.png');
}

body#faculty {
    --page-title-bg: url(../images/title-pattern-red.png);
    --color: #782D53;
    --bg-img: url('../images/Pattern_02_red.png');
}

body#visitors,
body#board,
body#unsorted {
    --page-title-bg: url(../images/title-pattern-orange.png);
    --color: #B0704E;
    --bg-img: url('../images/Pattern_02_orange.png');
}

body#contact {
    --page-title-bg: url(../images/title-pattern-black.png);
    --color: #3D4047;
    --bg-img: url('../images/Pattern_02_black.png');
}

.page-title {
    background-image: var(--page-title-bg);
}

.btn {
    max-width: fit-content;
}

.btn.btn-default {
    border: 1px solid white;
    background-color: var(--color);
}

.btn+a:not(.btn) {
    display: inline-block;
    margin-left: 1em;
}


/*  Onpage Menu ----------------------------
    ----------------------------------------
 */

.NP .caret {
    /* Make sure the main menu doesn't show carets for dropdowns */
    display: none;
}

header .dropdown-menu {
    /* Make sure the main menu doesn't show dropdowns */
    display: none !important;
}

@media (max-width: 767px) {
    #onpage-menu-wrapper {
        margin-top: 1em;
        margin-bottom: 1em;
    }
}

#onpage-menu-wrapper::after {
    content: '';
    display: block;
    padding-bottom: .5em;
    border-bottom: 2px solid var(--color);
}

#unsorted #onpage-menu-wrapper {
    display: none;
}

#onpage-menu-wrapper>ul {
    background: transparent;
    position: relative;
    top: 0;
    bottom: 0;
    float: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

#onpage-menu-wrapper>ul>li {
    width: auto;
    padding: 0;
}

#onpage-menu-wrapper a {
    color: currentColor;
    padding: 5px;
    font-family: var(--sans);
    text-decoration: none;
    font-size: 1.1em;
    opacity: .75;
    margin-right: 10px;
}

#onpage-menu-wrapper>ul>li>a:hover,
#onpage-menu-wrapper>ul>li>a:focus {
    color: var(--color);
    background: transparent !important;
    transition: color .125s ease-in;
}

#onpage-menu-wrapper .dropdown-submenu b.caret {
    display: inline-block;
    margin-left: .25ch;
}

#onpage-menu-wrapper>ul ul {
    /* Onpage menu dropdown menu */
    background: var(--color);
    color: white;
    padding: 16px 1em;
    min-width: calc(168px + .25ch);
    /* overflow: hidden; */
}

#onpage-menu-wrapper .dropdown:hover>.dropdown-menu,
#onpage-menu-wrapper .dropdown:focus>.dropdown-menu {
    /* Open the dropdown menu */
    display: block;
}

#onpage-menu-wrapper>ul ul a {
    position: relative;
}

#onpage-menu-wrapper>ul ul a:hover,
#onpage-menu-wrapper>ul ul a:focus {
    color: white;
}

#onpage-menu-wrapper>ul ul a:hover::before,
#onpage-menu-wrapper>ul ul a:focus::before {
    content: '';
    position: absolute;
    left: -16px;
    right: -16px;
    top: 0;
    bottom: 0;
    background: var(--color);
    filter: brightness(1.2);
    z-index: -1;
}

#unsorted #onpage-home-link,
#footer~#onpage-home-link {
    display: none;
}

.men-level-2 {
    /* Dropdowns from the dropdown */
    top: 0;
    left: calc(100% + 16px);
}

#gm-canvas .page-container .btn:hover,
#gm-canvas .page-container .btn:visited,
#gm-canvas .page-container .btn:active {
    /* Change color so button text is viewable in the GPE */
    color: #333;
}

.heading-row>.col-md-12>h2:first-child,
.heading-row>.col-md-12>h3:first-child {
    margin-top: 0;
}

@media (min-width: 990px) {
    .flex-row {
        display: flex;
    }
    .flex-row div[class*="col-md-"]:not(.photo-and-text) {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

.calendar {
    border-top: 1px solid #525252;
    margin-bottom: 25px;
}

.event-item {
    display: flex;
    flex-direction: row;
}

.event-item>* {
    padding: 0.75em 1ch;
    margin: 0;
}

.event-item:nth-of-type(even) {
    background: #EBEBEB;
}

.calendar time {
    font-family: var(--sans);
    white-space: nowrap;
    text-align: center;
    min-width: 20%;
}

.calendar .event-title {
    font-family: var(--serif);
    font-size: 16px;
    color: currentColor;
}

.calendar .event-title a {
    padding: 0;
    opacity: .9;
    cursor: pointer;
    color: inherit;
    text-decoration: inherit;
}

@media (max-width: 990px) {
    .calendar time {
        min-width: 25%;
    }
}

@media (max-width: 767px) {
    .calendar time {
        min-width: 30%;
    }
}

span.entity {
    display: inline-block;
    font-weight: bold;
    font-family: var(--sans);
    font-size: 5em;
    margin-bottom: -1em;
}

#subpage a:not(.btn):not(.ev-title-link):not(.button-link) {
    text-decoration: underline;
}

#subpage .row:not(.heading-row):not(.form-group)+.row {
    margin-top: 50px;
}

@media (max-width: 767px) {
    .container:not(.mms-container) [class*="col-xs-"]+[class*="col-xs-"] {
        margin-top: 4rem;
    }
}

#subpage img {
    max-width: 100%;
    height: auto;
    display: block;
}

.link-list>:first-child {
    padding-bottom: .5em;
    border-bottom: 1px solid #525252;
    margin-bottom: .75em
}

.link-list ul {
    list-style: none;
    padding-left: 0;
    font-family: var(--sans);
    font-size: 18px;
}

.talking-head {
    font-family: var(--sans);
    /* font-size: 1.05em; */
    display: flex;
    flex-direction: row;
    /* justify-content: space-between; */
    align-items: center;
    margin-bottom: 25px;
}

#subpage .talking-head img {
    height: 130px;
    border-radius: 50%;
    margin-bottom: 0;
    margin-right: 30px;
}

@media (max-width: 767px) {
    #subpage .talking-head img {
        max-width: calc(50% - 30px);
    }
}

.talking-head figcaption {
    max-width: 40ch;
}

.talking-head figcaption p {
    margin-bottom: 0;
}

.talking-head figcaption p+p {
    margin-top: .5em;
}


/* 
Styles commented out because new talking head's are not following the same structure
.talking-head figcaption :first-child::before {
    content: '“';
    display: inline-block;
    margin-left: -1ch;
}

.talking-head figcaption :first-child::after {
    content: '”';
}

.talking-head figcaption :last-child:not(:first-child)::before {
    content: '—';
    display: inline-block;
    margin-left: -1.5ch;
} */

.multiple-row-columns>*+* {
    margin-top: 50px;
}

@media (max-width: 990px) and (min-width: 767px) {
    .col-md-4.multiple-row-columns:not([class*="col-sm-"]) {
        /* Switch single column to two column rows*/
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 50px 30px;
    }
    .col-md-4.multiple-row-columns>*+* {
        /* Remove margin from elements in columns  */
        margin-top: 0;
    }
}

.journal-grid:not(.gm-editing),
#gm-canvas .journal-grid .gm-content {
    /* Super weird selector needed to carry the style through to the GPE, but not the wrong part of the GPE */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    grid-gap: 25px 30px;
}

.hero-figure {
    height: 340px;
}

#subpage .hero-figure img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    height: inherit !important;
    /* !important is needed to fight against the height:auto; that the GPE automatically adds to all images */
    margin-bottom: 0;
}

.hero-figure figcaption {
    font-family: var(--sans);
    font-size: 38px;
    background: var(--color);
    color: white;
    padding: .25em 1em;
    text-transform: capitalize;
    position: relative;
    top: -3em;
    display: inline-block;
    text-align: center;
    min-width: 50%;
    line-height: 1;
}

#study-at .show-announcements .column {}

@media (max-width: 767px) {
    .hero-figure figcaption {
        font-size: 30px;
    }
}

@media (max-width: 500px) {
    .hero-figure figcaption {
        font-size: 25px;
    }
}

@media (min-width: 991px) {
    #study-at .show-announcements {
        display: flex;
    }
    #study-at .show-announcements .column {
        padding-bottom: calc(36.84px + 0.5rem);
        /* Styles added per #256044 */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    #study-at .horizontal-photo-text section:last-of-type {
        position: absolute;
        left: 15px;
        right: 15px;
        bottom: 0;
    }
}

.horizontal-photo-text {}

@media (max-width: 990px) and (min-width: 768px) {
    .horizontal-photo-text {
        margin-bottom: 1em;
    }
}

@media (max-width: 767px) {
    .horizontal-photo-text {
        width: 100%;
    }
}

.horizontal-photo-text img {
    width: 100%;
    margin-bottom: 15px;
}

.horizontal-photo-text section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: var(--sans);
}

.horizontal-photo-text section:last-of-type {
    flex-direction: row;
    align-items: center;
}

@media (max-width: 767px) {
    .horizontal-photo-text section:last-of-type {
        margin-bottom: 4rem;
    }
}

.horizontal-photo-text p,
.horizontal-photo-text p:nth-child(n+1):last-child:not(.standard) {
    /* Extra specificity needed to combat app.css style */
    margin-bottom: 1.5em;
}

.photo-and-text {
    display: flex;
}

.photo-and-text h2,
.photo-and-text h3 {
    margin-top: 0;
}

.photo-and-text> :first-child {
    margin-right: 30px;
    margin-bottom: 0;
    min-width: 50%;
    object-fit: cover;
}

@media (max-width: 990px) {
    div[class*="col-md-"]:not([class*="col-sm-"])+div[class*="col-md-"]:not([class*="col-sm-"]) {
        margin-top: 50px;
    }
}

@media (min-width: 990px) {
    .photo-and-text>.two-thirds {
        min-width: 66%;
    }
}

@media (max-width: 500px) {
    .photo-and-text {
        flex-direction: column;
    }
    #subpage .photo-and-text img {
        margin-bottom: 1em;
    }
}

.abstract-bg {
    background: var(--bg-img);
    background-size: cover;
    color: white;
    font-family: var(--sans);
    font-size: 1.5em;
    line-height: 1.2;
    padding: 2em 1em;
    height: inherit;
}

.abstract-bg .caption {
    font-size: 16px;
    line-height: 1.4em;
}

.abstract-bg .btn {
    box-shadow: none;
}

@media (min-width: 990px) {
    .flex-row>[class*="col-md-"] .abstract-bg {
        height: 100%;
    }
}

@media (max-width: 990px) and (min-width: 767px) {
    .col-sm-12>.abstract-bg,
    .abstract-bg.col-sm-12 {
        margin-top: 4rem;
        margin-bottom: 4rem;
    }
}

.three-quarter-image {}

@media (min-width: 767px) {
    .three-quarter-image {
        width: 75%;
    }
}

@media (max-width: 990px) and (min-width: 600px) {
    .link-list,
    .link-list+div {
        width: calc(50% - 15px);
        float: left;
    }
    .link-list {
        margin-right: 30px;
    }
}

form[action="contact_us_resp.php"] {
    background: #F9F8F8;
}

@supports (display:block) {
    /* GPE workarounds */
    #mycanvas {
        --color: #237174;
        --bg-img: url('../images/Pattern_02_green.png');
    }
    #mycanvas .photo-and-text,
    #mycanvas .flex-row {
        /* Can't be getting fancy in the GPE unless you want a mess on your hands */
        display: block;
    }
}

#contact-page {
    font-family: var(--sans);
}

#contact-page .address {
    font-family: var(--serif);
}