@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    font-size: 16px;
}

body {
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: #000;
}

body {
}

h1, h2, h3 {
    font-family: "Open Sans", sans-serif;
    font-style: normal;
    font-weight: 700;
    text-rendering: optimizelegibility;
}

h1 {
    font-size: 400%;
    line-height: 1.1;
    font-size: 200%;
}

h2 {
    font-size: 285.7%;
    line-height: 1.2;
    font-size: 150%;
}

h3 {
    font-size: 228.5%;
    line-height: 1.3;
    font-size: 117%;
}

ul.details-list li {
    line-height: 1.8;
}


/* 
 * MAP STUFF
 */


#map {
    height: 700px;
}

#clear-map {
    z-index: 10000;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #fff;
    border: 1px solid #346734;
    color: #346734;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.leaflet-control-geocoder {
    /* avoid collision with attribution */
    bottom: 10px;
}


/*
 * MEMBER CARDS
 */

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
    margin-bottom: 30px;

    padding: .25rem;
}
.member-grid {
    height: 700px;
    max-height: 700px;
    overflow-y: scroll;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    width: 100%;
    padding: 16px;
    border: 1px solid #333333;
    background-color: #eeddcc;
    color: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(35, 52, 43, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a.member-card {
    text-decoration: none;
}

.member-card:hover,
.member-card:focus-visible,
.member-card.member-card-active {
    outline: 3px solid #A52A2A;
}

.logo-frame {
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.logo-frame img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.member-name {
    overflow-wrap: anywhere;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
}

/*
 * MEMBER DETAILS MODAL
 */

#member-cards-and-details-wrapper {
    position: relative;
}

#member-details-modal {
    position: absolute;
    top: 0;
    left: 0;

    height: 700px;
    max-height: 700px;
    overflow-y: scroll;

    background: white;
    border: 1px solid #333333;
    padding: 1rem;
}

@media screen and (min-width: 1200px) {
    #member-details-modal {
        height: 700px;
        max-height: 700px;
        overflow-y: scroll;
    }
}

#member-details-modal .btn-close {
    margin-top: .5rem;
    opacity: 1;
}

#member-details > section {
    padding: 0 1rem 1rem 1rem;
}

#member-details > section:not(:first-child) {
    padding-top: 1rem;
}

#member-details > section:not(:last-child) {
    border-bottom: 2px solid #333333;
}

@media screen and (max-width: 991px) {
#member-details .detail-photo {
    margin-bottom: 2rem;
}
}

#member-details > section .btn-close {
    margin-top: .25em;
    font-size: .75em;
}

#member-details .detail-photo,
#member-details .detail-photo-credit {
    max-width: 400px;
    margin: 0 auto;
}

#member-details .detail-photo-credit {
    margin-bottom: 1em;
}

#member-details #member-details-content {
    align-self: center;
}

#member-details #member-details-content h2 {
    margin-bottom: 12px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
}

#member-details .mission {
    margin-bottom: 20px;
    color: #33483c;
    font-size: 1.08rem;
}

#member-details .details-list {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

#member-details .details-list li {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
}

#member-details .meta-label {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
}

#member-details .details-list a {
    font-weight: 700;
    overflow-wrap: anywhere;
    color: inherit;
}

#member-details .details-links {
    text-align: center;
}
#member-details .details-links a {
    color: inherit;
    font-size: 2rem;
}

#member-details .photo-credit {
    margin-top: 10px;
    font-size: 0.85rem;
}

.modal-header {
    background-color: #eeddcc;
}

@media (max-width: 760px) {
    #member-details #member-details.visible {
        grid-template-columns: 1fr;
    }

    #member-details .details-list li {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    #member-details-modal,
    .member-grid {
        height: 500px;
        max-height: 500px;
    }
}
