/* *****************************************************************************
 *
 *   local.css
 *
 ******************************************************************************/

/* *****************************************************************************
 * Variables and Bootstrap Overrides 
 */

:root {
    /* Color option 1 */
    /*--bck-brand-color-rgb: 138, 36, 50;*/
    /*--bck-brand-color-hex: #8a2432;*/

    /* Color option 2 */
    --bck-brand-color-rgb: 128, 9, 45;
    --bck-brand-color-hex: #80092d;

    /* Other colors brought over from the Wordpress site palette */
    --bck-off-white: #eeeff0;
    --bck-light-grey: #b7bbbe;
    --bck-dark-grey: #333f48;

    --bck-dir-scroll-margin-top: 100px;
}

.btn-primary {
    --bs-btn-bg: rgb(var(--bck-brand-color-rgb));
    --bs-btn-hover-bg: rgba(var(--bck-brand-color-rgb), 0.8);
    --bs-btn-active-bg: rgb(var(--bck-brand-color-rgb));
    --bs-btn-border-color: rgb(var(--bck-brand-color-rgb));
    --bs-btn-hover-border-color: rgba(var(--bck-brand-color-rgb), 0.8);
    --bs-btn-active-border-color: rgba(var(--bck-brand-color-rgb), 0.8);
    --bs-btn-focus-box-shadow: rgba(var(--bck-brand-color-rgb), 0.5) 0px 0px 0px 3.75px;
}

.nav-link {
    --bs-nav-link-padding-y: 0.25rem;
}

.nav-pills .nav-link.active {
    --bs-nav-pills-link-active-bg: rgb(var(--bck-brand-color-rgb));
}

.nav-item > a > i {
    display: inline-block;
    margin-right: 5px;
}

body.bck-dir {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--bck-brand-color-hex);
}

.bck-dir__block {
    margin: 1rem 0;
    width: 100%;
    display: block;
}

.bck-dir__container {
    padding: 0 1rem;
    width: 100%;
    display: block;
}

/* *****************************************************************************
 * bck-dir_photo-container
 */

.bck-dir_photo-container {
    width: 200px;
    /*height: 200px;*/
    aspect-ratio: 3 / 4;

    position: relative;

    margin-right: auto;
    margin-left: auto;
    margin-top: 1rem;
    margin-bottom: 0;

    display: flex;
    align-items: center;

    background-color: var(--bck-brand-color-hex);
}

.bck-dir_photo-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, .6) 50%,
        rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 3.25s infinite linear;
}

@keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

.bck-dir_photo-container.is-loaded::before {
    display: none;
}

.bck-dir_photo-container .bck-dir_photo {
    max-width: 100%;
    /*max-width: 200px;*/
    border: 4px solid var(--bck-brand-color-hex);
    opacity: 0;
    transition: opacity .25s ease;
}

.bck-dir_photo-container.is-loaded .bck-dir_photo {
    opacity: 1;
}

/* *****************************************************************************
 * Moved over from old common.css
 */

@media screen and (min-width: 576px) {
    body {
        background-color: var(--bck-off-white);
    }
}
@media screen and (min-width:768px) {

}

/* *****************************************************************************
 * bck-dir__mainheader
 */

.bck-dir__mainheader {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background-color: var(--bck-brand-color-hex);
    color: #fff;

    padding: 7px 15px 7px 10px;
}
.bck-dir__mainheader h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #fff;
    font-weight: 400;
    letter-spacing: 0.05em;
}
@media screen and (min-width: 576px) {
    .bck-dir__mainheader {
        padding: 10px;
    }
}
@media screen and (min-width:768px) {
    .bck-dir__mainheader {
    }
}

/* *****************************************************************************
 * bck-dir__masthead
 */

.bck-dir__masthead {
    display: flex;
    column-gap: 10px;
    align-items: center;
}
@media screen and (min-width:768px) {
    .bck-dir__masthead {
    }
}

.bck-dir__masthead-header > span:first-child {
    display: none;
}
@media screen and (min-width:576px) {
    .bck-dir__masthead-header > span:first-child {
        display: inline;
    }
}

.bck-dir__masthead-logo {
    border-style: solid;
    border-color: #ddd;
    border-width: 3px;
}
.bck-dir__masthead-logo img {
    width: 32px;
}
@media screen and (min-width:576px) {
    .bck-dir__masthead-logo {
        border-style: solid;
        border-color: #ddd;
        border-width: 5px;
    }
}
@media screen and (min-width:768px) {
    .bck-dir__masthead-logo img {
        width: 48px;
    }
}

/* *****************************************************************************
 * bck-dir__topmenu
 */

.bck-dir__topmenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #444;
    flex-direction: column;
    min-width: 150px;
}
.bck-dir__topmenu a {
    color: white !important;
    text-decoration: none;
    border-bottom: 1px solid #555;
    padding: 0.75rem;
}
.menu-toggle {
    display: none;
}
.menu-icon {
    cursor: pointer;
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.menu-icon span {
    height: 4px;
    background: white;
    border-radius: 2px;
}
.menu-toggle:checked + .menu-icon + nav.bck-dir__topmenu {
    display: flex;
}
@media screen and (min-width:576px) {
    .bck-dir__topmenu {
    }
}
@media screen and (min-width:768px) {
    .bck-dir__topmenu {
        position: static;
        display: flex !important;
        flex-direction: row;
        background: none;
        gap: 1rem;
    }
    .bck-dir__topmenu a {
        border: none;
        padding: 0;
    }
    .menu-icon {
        display: none;
    }
}

.bck-dir__edition-tagline {
    font-size: 100%;
    margin-bottom: 1em;
}

.bck-dir__edition-tagline > .pill {
    background: var(--bck-brand-color-hex);
    color: white;
    padding: 4px 7px;
    border-radius: 7px;
}

/* *****************************************************************************
 * side-nav
 */

.side-nav {
    display: none;
    background-color: var(--bck-off-white);
    border: 1px solid var(--bck-light-grey);
    border-right: 2px dotted var(--bck-light-grey);
    padding: 0;
}
.side-nav a {
    display: flex;
    padding: 1rem;
    text-decoration: none;
    color: #222;
    border-bottom: 1px solid #ddd;
    justify-content: flex-start;
    align-items: center;
    column-gap: 5px;
}
.side-nav a.indent {
    padding-left: calc(1rem + 20px) !important;
}
@media screen and (min-width: 992px) {
    .side-nav {
        display: block;
        height: 100vh;
        position: sticky;
        top: 100px;
    }
}

/* *****************************************************************************
 * bottom-nav
 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #eee;
    border-top: 1px solid #ccc;
    /*padding: 0.75rem 0;*/
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    /*display: flex;
    justify-content: space-around;*/
}
.bottom-nav a {
    display: flex;
    text-decoration: none;
    color: #222;
    justify-content: flex-start;
    align-items: center;
    flex-flow: column;
    row-gap: 3px;
    padding: 0.75rem 0;
    border-right: 1px solid #ccc;
}
.bottom-nav a:last-child {
    border-right: none;
}
.bottom-nav a:hover {
    background-color: rgba(255, 255, 255, 0.8);
}
@media screen and (min-width: 992px) {
    .bottom-nav {
        display: none;
    }
}

/**
 * main
 */
@media screen and (min-width: 576px) {
    main {
        box-shadow: 0px 0px 10px rgb(200, 200, 200);
    }
}

/* *****************************************************************************
 * bck-dir__pagecontent
 */

.bck-dir__pagecontent {
    background: #fff;
    /*padding-top: 1rem;*/
    padding-top: 0;
    padding-bottom: 1rem;
    padding-left: 0;
    padding-right: 0;
    /*border: 5px solid var(--bck-light-grey);*/
}

@media screen and (min-width: 576px) {
    .bck-dir__pagecontent {
        border-right: 1px solid var(--bck-light-grey);
        border-left: 1px solid var(--bck-light-grey);
        border-top: 1px solid var(--bck-light-grey);
        border-bottom: 1px solid var(--bck-light-grey);
    }
}
@media screen and (min-width: 992px) {
    .bck-dir__pagecontent {
        border-right: 1px solid var(--bck-light-grey);
        border-left: none;
        border-bottom: 1px solid var(--bck-light-grey);
    }
}

.bck-dir__pagecontent__header {
    margin: 0;
    padding-top: 7px;
    padding-right: 1rem;
    padding-left: 1rem;
    padding-bottom: 7px;
}

.bck-dir__pagecontent__section-header {
    margin-bottom: 1rem;
}

/* *****************************************************************************
 * bck-dir__breadcrumbs
 */

.bck-dir__breadcrumbs {
    margin: 0 1rem;
}

/* *****************************************************************************
 * footer
 */

.bck-dir__foot {
    padding-bottom: 5rem;
}
@media screen and (min-width: 992px) {
    .bck-dir__foot {
        padding-bottom: 3rem;
    }
}
.bck-dir__foot_container {
    width: 100%;
}
.bck-dir__foot_block1 {
    display: flex;
    flex-flow: column;
    column-gap: 10px;
}
@media screen and (min-width: 767px) {
    .bck-dir__foot_container {
        width: 90%;
        margin: 0 auto;
    }
}
@media screen and (min-width: 992px) {
    .bck-dir__foot_block1 {
        flex-flow: row;
        row-gap: 10px;
    }
    .bck-dir__foot_container {
        max-width: 1000px;
    }
    .bck-dir__foot_block1 > *:first-child {
        width: 40%;
    }
    .bck-dir__foot_block1 > *:last-child {
        width: 60%;
    }
}

.bck-dir__foot__brand {
    display: flex;
    flex-flow: column;
    row-gap: 1rem;
    margin-bottom: 3rem;
    text-align: left;
    font-size: 80%;
}
@media screen and (min-width: 992px) {
    .bck-dir__foot__brand {
        margin-bottom: 1rem;
    }
}

.bck-dir__foot__brand-phone {
}
.bck-dir__foot__brand-mission {
}
@media screen and (min-width: 767px) {
    .bck-dir__foot__brand-mission {
    }
}

.bck-dir__foot__brand-engage {
    display: flex;
    column-gap: 20px;
}

.bck-dir__foot__brand-logolink img.bck-dir__foot__brand-logo {
    width: 140px;
    height: auto;
}

.bck-dir__foot__brand-maplink {
    color: var(--bck-brand-color-hex);
    font-weight: 700;
}

.bck-dir__foot__links {
    display: flex;
    justify-content: center;
    flex-flow: column;
    row-gap: 20px;
    text-align: left;
}
@media screen and (min-width: 767px) {
    .bck-dir__foot__links {
        flex-flow: row;
        column-gap: 20px;
    }
}
.bck-dir__foot__links > * {
    display: flex;
    flex-flow: column;
    flex: 1;
    row-gap: 10px;
}
.bck-dir__foo__links-header {
    font-size: 110%;
    border-bottom: 1px solid var(--bck-brand-color-hex);
    padding-bottom: 5px;
}

.bck-dir__foot__end {
    display: flex;
    flex-flow: column;
    row-gap: 1rem;
    font-size: 10pt;
}

.bck-dir__foot__copyright {
    display: flex;
    flex-flow: column;
    row-gap: 0.25rem;
}

.bck-dir__foot__policies-titleix {
    display: flex;
    flex-flow: column;
    row-gap: 1rem;
}
.bck-dir__foot__policies-titleix > * {
    margin: 0;
}

.bck-dir__foot__policies-links {
    display: flex;
    flex-flow: column;
    justify-content: center;
    row-gap: 1rem;
}
@media screen and (min-width: 576px) {
    .bck-dir__foot__policies-links {
        flex-flow: row;
        column-gap: 1rem;
    }
}

footer {
    padding: 2rem 0;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
    text-align: center;
}

footer.container-fluid {
    --bs-gutter-x: 2rem;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer hr {
    margin: 2rem auto;
}
@media screen and (min-width: 767px) {
    footer hr {
        width: 80%;
    }
}

/* *****************************************************************************
 * bck-dir__search__form
 */

.bck-dir__search__form-wrap {
    background-color: var(--bck-off-white);
    border: 1px solid var(--bck-light-grey);
    padding: 1rem 0.75rem;
}

input.form-control {
    border-radius: 0;
}

/* *****************************************************************************
 * bck-dir__peoplelist
 */

.bck-dir__peoplelist {
    --bck-dir__grid-border-color: var(--bck-light-grey);
    margin-bottom: 1rem;
}

.bck-dir__peoplelist.row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.bck-dir__peoplelist-item {
    text-align: center;
    flex: 0 0 auto;
}

.bck-dir__peoplelist-item-separator {
    flex: 0 0 100%;
    width: 100%;
    border-top: 6px dotted #e7e7e7;
    font-family: Arial;
    font-weight: bold;
    font-size: 250%;
    scroll-margin-top: var(--bck-dir-scroll-margin-top);
}

.bck-dir__peoplelist-item-frame {
    border: 1px solid var(--bck-dir__grid-border-color);
    box-shadow: 0px 0px 10px rgb(200, 200, 200);
}

/*.bck-dir__peoplelist-item-frame > *:first-child {
    margin-top: 1rem;
}*/

/* *****************************************************************************
 * bck-dir__attrlist
 */

.bck-dir__attrlist {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0.5rem 0 1rem;
}

.bck-dir__attrlist summary {
    font-size: 14pt;
}

.bck-dir__attrlist_val {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #ccc;
}

.bck-dir__attrlist_val-k {
    font-size: 80%;
    font-weight: 700;
}

.bck-dir__attrlist_val-k:after {
    content: ":";
}

.bck-dir__attrlist_val-v {
    overflow: hidden;
    background: white;
}

.bck-dir__name {
    font-weight: 700;
    font-size: 120%;
}

.bck-dir__idnum {
    font-size: %80;
}

.bck-dir__klass {
    font-style: italic;
}

/* *****************************************************************************
 * bck-dir__feature
 */

.bck-dir__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
@media screen and (min-width: 990px) {
    .bck-dir__features {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.bck-dir__feature {
    background: #eeeff0;
    /*border-radius: 10px;*/
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media screen and (min-width: 767px) {
    .bck-dir__feature {
        padding: 2rem;
    }
}
@media screen and (min-width: 990px) {
    .bck-dir__feature {
        padding: 3rem;
    }
}

.bck-dir__feature-icon {
    width: 4rem;
    height: 4rem;
    /*border-radius: 0.75rem;*/
    background-color: #8a2432;
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;

    /* from bg-gradient */
    background-image: var(--bs-gradient);
}

.bck-dir__feature-link {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    text-decoration: none;
}

.bck-dir__feature-link_text {
    font-size: 120%;
    font-weight: 300;
    text-align: center;
    letter-spacing: 0.1em;
}

.bck-dir__phone-access-list li {
    margin-bottom: 1rem;
}

.bck-dir__alpha-heading {
    font-size: 2rem;
    border-top: 2px solid #ccc;
    scroll-margin-top: var(--bck-dir-scroll-margin-top);
}

/* *****************************************************************************
 * bck-dir__departments
 */

.bck-dir__departments-container {
    /*display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;*/
}

.bck-dir__departments-details {
    margin-bottom: 1rem;
}

.bck-dir__departments-details > *:first-child {
    font-weight: 700;
}

/* *****************************************************************************
 * bck-dir__ctrl__alphabet
 */

.bck-dir__ctrl__alphabet {
    margin-bottom: 1rem;
    display: flex;
    gap: .2em;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

@media screen and (min-width: 992px) {
    .bck-dir__ctrl__alphabet {
        flex-wrap: nowrap;
    }
}

.bck-dir__ctrl__alphabet a {
    text-align: center;
    text-decoration: none;
    background-color: #cccccc;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-weight: 700;
    font-family: Arial,sans-serif;
    flex: 1;
    min-width: 2.0em;
}

.bck-dir__ctrl__alphabet a:hover {
    background-color: #f0f0f0;
    border: 1px solid #999;
}

@media screen and (min-width: 576px) {
    .bck-dir__ctrl__alphabet a {
        min-width: 1.1em;
    }
}

@media screen and (min-width: 992px) {
    .bck-dir__ctrl__alphabet a {

    }
}

/* *****************************************************************************
 * bck-dir__ctrl__alphabet-index
 */

.bck-dir__ctrl__alphabet-index-wrap {
    display: none; /* Off by default, subsequent rules set conditions for visibility */
    position: absolute;
    top: 0;
    right: 1px;
    width: 32px;
    margin: 0;
    padding: 0;
}

.bck-dir__ctrl__alphabet-index {
    --bck-dir-alphabet-index-top: 5rem;
    position: fixed;
    width: 32px;
    top: var(--bck-dir-alphabet-index-top);
    height: calc(92vh - var(--bck-dir-alphabet-index-top));
    display: flex;
    flex-direction: column;
    text-align: center;
}

.bck-dir__ctrl__alphabet-index > a {
    background-color: blue;
    background: transparent;/*rgba(255, 255, 255, 0.5);*/
    font-size: 12pt;
    text-decoration: none;
    font-weight: bold;
    font-family: Arial,sans-serif;
    height: 3.846%;
}

/* Adjust the index top on smaller screens which seem to need this */
@media screen and (width <= 576px) {
    .bck-dir__ctrl__alphabet-index {
        --bck-dir-alphabet-index-top: 4rem;
    }
}

/* Hide the vertical alphabet index on short screens (mainly portrait, but not just portrait) */
@media screen and (height >= 500px) {
    .bck-dir__ctrl__alphabet-index-wrap {
        display: block;
    }
    .bck-dir__pagecontent.with-gutter {
        padding-right: 32px;
    }
}

.bck-dir__person__fullview {
}
.bck-dir__person__fullview-imagewrap {
}
.bck-dir__person__fullview-imagewrap .bck-dir_photo-container {
    margin-top: 0;
    /*margin-bottom: 1rem;*/
}
.bck-dir__person__fullview-attrs {
    display: flex;
    flex-flow: column;
    row-gap: 0.5rem;
}
.bck-dir__person__fullview-attr {
    border: 1px solid #ccc;
    background: #eeeff0;
}
.bck-dir__person__fullview-attr_heading {
    background: #ccc;
    margin: 0;
    padding: 5px 7px;
    font-size: 120%;
    font-weight: 700;
}
.bck-dir__person__fullview-attr_body {
    padding: 5px 7px;
}
.bck-dir__person__fullview-attrs_core {
    display: flex;
    flex-flow: column;
    row-gap: 0.5rem;
}
.bck-dir__person__fullview-attrs_extended {
    display: flex;
    flex-flow: column;
    row-gap: 0.5rem;
}
@media screen and (min-width:768px) {
    .bck-dir__person__fullview {
        display: grid;
        grid-template-columns: 1fr 4fr;
        gap: 1rem;
    }
    .bck-dir__person__fullview-attrs {
        row-gap: 1rem;
    }
    .bck-dir__person__fullview-attrs_core {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .bck-dir__person__fullview-attrs_extended {
        row-gap: 1rem;
    }
}

/* *****************************************************************************
 * bck-dir__modal
 */

.bck-dir__modal {
    background: #eeeff0;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    text-align: center;
}
.bck-dir__modal-heading {
    margin: 0;
    padding: 1rem 1rem 0 1rem;
    width: 100%;
}
.bck-dir__modal-body {
    padding: 0 1rem 1rem 1rem;
    width: 100%;
}
.bck-dir__modal-question {
    font-size: 120%;
    font-weight: 700;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

/* *****************************************************************************
 * bck-dir__messages
 */

.bck-dir__messages {
    padding: 7px;
}
.bck-dir__messages > * {
    --bs-alert-border-radius: 0;
    margin-bottom: 0.5rem;
}
.bck-dir__messages > *:last-child {
    margin-bottom: 0;
}
