:root {
    --theme-primary: #888888;
    --theme-primary-darker: #444444; /* hsv(254deg, 75%, 28%) */
    --theme-primary-lighter: #cccccc; /* hsv(254deg, 75%, 88%) */
    --theme-primary-bright: #ffffff; /* hsv(254deg, 50%, 100%) */

    /* --theme-primary fails all WCAG contrast requirements against
     * the chosen background rgba(210,210,210,0.89).
     * Use one of the colors from the background of the slideshow's
     * title slide for better readability.
     */
    --theme-secondary: rgb(49,80,150);
}

body {
    font-family: "Open Sans", Helvetica, sans-serif;
    color: rgb(85, 85, 85);
}

.brand-font {
    font-family: "Gabriela", serif;
    letter-spacing: 1px;
}

.btn {
    border-radius: 0.25rem;
    padding: 0.25rem 0.75rem;
}
.btn:not(.btn-disabled) {
    border: 1px solid var(--theme-secondary);
    color: var(--theme-secondary);
}
.btn.btn-disabled {
    border: 1px solid #888;
    color: #888;
}

/* ====== Header ====== */

main > header {
    background-color: white;
}

#nav-home {
    color: #333;
    font-size: 13px;
    line-height: 20.8px;
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

/* ====== Site navigation ====== */
div.navBar {
    display: flex;
    flex-direction: row;
    align-items: center;
}
@media (max-width: 991px) {
    .navbar > .container { justify-content: start; }
}

.navbar-toggle {
    margin-right: 1em;
    border-radius: 0.25em;
    background-color: white;
    border: 1px solid rgb(85, 85, 85);
    padding: 9px 10px;
}
@media (min-width: 992px) {
    .navbar-toggle { display: none; }
}

.navbar-toggle > .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background-color: #333;
}
.navbar-toggle > .icon-bar + .icon-bar { margin-top: 4px; }

li.nav-item {
    margin-left: 10pt;
    margin-right: 10pt;
}

.nav-current-page {
    border-bottom: 0.25em solid var(--theme-primary);
}

.nav-link {
    color: rgb(85, 85, 85);
    padding-top: 7pt;
    padding-bottom: 7pt;
}
.nav-link:active {
    color: white;
}

.hs-sub-menu {
    margin-top: 18pt;
    min-width: 220px;
}

@media (max-width: 991px) {
    .dropdown-item {
        max-width: 90vw;
        overflow-wrap: anywhere;
        white-space: normal;
    }
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--theme-primary);
}

/* ====== Footer ====== */

footer {
    background-color: rgb(17, 17, 17);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 8em;
}

footer #copy {
    display: block;
    font-size: 14px;
    margin-right: 10px;
}

footer #social li {
    display: inline-block;
    margin-left: 10px;
    margin-right: 10px;
}

footer #social a {
    color: rgba(255, 255, 255, 0.5);
}
footer #social a:hover {
    color: white;
}

/* ====== Background ====== */

main.bg {
    background: url("img/background-16882d90.jpg") center / cover;
}

/* ====== Articles ====== */
header ~ article.document {
    margin-top: 100px;
}

article.document {
    padding: 4rem;
    background-color: rgba(210, 210, 210, 0.89);
}

article.document h1, article.document h2, article.document h3 {
    font-family: "Gabriela", serif;
    font-weight: normal;
    text-transform: uppercase;
}

article.document h1 {
    text-align: center;
    font-size: 2rem;
}

article.document h2 {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}
article.document h2:not(:nth-child(1)), article.document h1 + p {
    margin-top: 4rem;
}

article.document h2::after {
    content: "";
    display: block;
    position: relative;
    top: 1.5rem;
    width: 60px;
    height: 0px;
    border-bottom: 1px solid black;
}

article.document h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Group photo headers */
.dzsparallaxer {
    border-bottom: 0.75em solid white;
    margin-bottom: 6em;
}

.group-photo-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("img/group-wide-855031ff.jpg");
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 140%;
}

.dzsparallaxer blockquote {
    font-size: 1.625em;
    font-style: italic;
    color: white;
    max-width: 85%;
    margin: 10rem auto;
    text-align: center;
    line-height: 1.75em;
}

/* Links */
article.container a, section.container a {
    color: var(--theme-secondary);
}
header a:hover {
    color: var(--theme-primary);
}
