.church-library {
    width: 100%;
    color: #173B60;
}

.church-library-container {
    box-sizing: border-box;
    width: 75%;
    margin: 3rem auto;
    padding: 3rem 1.5rem;
    background: #FFFFFF;
    color: #173B60;
    border: none;
}

.church-library-intro {
    text-align: center;
}

.church-library h1 {
    margin: 0 0 1.5rem;
    color: #173B60;
    font-size: 2.2rem;
    line-height: 1.2;
}

.church-library-description {
    width: 75%;
    margin: 0 auto;
}

.church-library-description h5 {
    margin: 0 0 .5rem;
    color: #173B60;
    font-size: 1rem;
    line-height: 1.4;
}

.church-library-controls {
    width: 75%;
    margin: 2rem auto 0;
    color: #173B60;
    text-align: center;
}

.church-library-filter-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: .75rem;
    align-items: center;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.church-library-filter-row label {
    color: #173B60;
    text-align: right;
    font-weight: 600;
}

.church-library-select,
.church-library-search {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: .55rem .7rem;
    border: 1px solid #215387;
    border-radius: .25rem;
    background: #FFFFFF;
    color: #173B60;
    font-size: 1rem;
}

.church-library-select:focus,
.church-library-search:focus {
    border-color: #173B60;
    outline: 2px solid #DCECF8;
    outline-offset: 1px;
}

.church-library-search {
    width: 50%;
    margin: 1rem auto 0;
}

.church-library-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 1.5rem;
}

.church-library-table {
    width: 75%;
    margin: 0 auto;
    border-collapse: collapse;
    background: #FFFFFF;
    color: #173B60;
    text-align: left;
}

.church-library-table thead {
    background: #215387;
    color: #FFFFFF;
}

.church-library-table th,
.church-library-table td {
    padding: .35rem .5rem;
    border: 1px solid #215387;
    vertical-align: top;
}

.church-library-table tbody tr:nth-child(odd) {
    background: #FFFFFF;
}

.church-library-table tbody tr:nth-child(even) {
    background: #EAF3FA;
}

.church-library-table tbody tr:hover {
    background: #DCECF8;
}

.church-library-title {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: #173B60;
    text-align: left;
    text-decoration: none;
    font: inherit;
    cursor: help;
}

.church-library-title:hover,
.church-library-title:focus {
    color: #FFFFFF;
    background: #173B60;
    text-decoration: underline;
}

.church-library-popover {
    position: fixed;
    z-index: 999999;
    max-width: 420px;
    padding: 12px 14px;
    border: 1px solid #215387;
    border-radius: 5px;
    background: #FFFFFF;
    color: #173B60;
    box-shadow: 0 4px 14px rgba(23, 59, 96, .25);
    font-size: .9rem;
    line-height: 1.35;
    pointer-events: none;
}

.church-library-popover-paragraph {
    margin-top: .6rem;
}

.church-library-error {
    padding: 1rem !important;
    color: #173B60;
    text-align: center;
}

@media (max-width: 900px) {
    .church-library-container,
    .church-library-table {
        width: 95%;
    }

    .church-library-description,
    .church-library-controls {
        width: 95%;
    }

    .church-library-search {
        width: 75%;
    }
}

@media (max-width: 600px) {
    .church-library-container {
        margin: 1rem auto;
        padding: 2rem .75rem;
    }

    .church-library h1 {
        font-size: 1.7rem;
    }

    .church-library-filter-row {
        grid-template-columns: 1fr;
    }

    .church-library-filter-row label {
        text-align: center;
    }

    .church-library-search {
        width: 100%;
    }

    .church-library-table {
        width: 100%;
        font-size: .85rem;
    }

    .church-library-popover {
        max-width: calc(100vw - 30px);
    }
}
