.home .directory-search {
    min-height: 118px;
    margin-top: -1px;
    padding: 36px 0;
    color: #555;
    background: var(--scw-search-sage);
    box-shadow: 0 3px 9px rgba(0, 0, 0, .16);
}

.home .search-fields {
    width: min(
        calc(100% - (2 * var(--scw-archive-gutter))),
        var(--scw-archive-canvas)
    );
    grid-template-columns: 1.4fr 1fr 1fr .8fr auto;
    gap: 9px;
}

.home .search-fields input,
.home .search-fields select,
.home .radius-field,
.home .search-fields button {
    min-height: 45px;
    border-radius: 0;
}

.home .search-fields input,
.home .search-fields select,
.home .radius-field {
    border: 1px solid #b5c4a1;
}

.home .search-fields button {
    color: #fff;
    background: var(--scw-archive-blue);
    font-family: "Open Sans Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.home .search-fields button:hover,
.home .search-fields button:focus-visible {
    background: #145b88;
}

.home-content-grid {
    padding: 62px 0 70px;
    display: grid;
    grid-template-columns: minmax(0, 907px) minmax(280px, 335px);
    justify-content: space-between;
    gap: 58px;
}

.home-primary {
    min-width: 0;
}

.locations-section {
    width: auto;
    padding: 0;
}

.section-heading {
    margin-bottom: 48px;
    text-align: center;
}

.section-heading h1 {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
    align-items: center;
    gap: 22px;
    color: #363636;
    font-family: "Open Sans Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.section-heading h1::before,
.section-heading h1::after {
    content: "";
    height: 1px;
    background: #d9ded3;
}

.section-heading p {
    margin: 11px 0 0;
    color: #999;
    font-size: 14px;
    line-height: 24px;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 60px 4.4%;
}

.location-card {
    min-width: 0;
    min-height: 302px;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.location-card-link {
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: inherit;
}

.location-card-link:focus-visible {
    outline: 0;
}

.location-image {
    width: 168px;
    height: 168px;
    flex: 0 0 168px;
    display: block;
    overflow: hidden;
    border: 6px solid var(--scw-archive-green);
    border-radius: 50%;
    background: #eee;
    transition:
        border-color .3s ease,
        outline-color .3s ease;
}

.location-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(100%);
    transform: none;
    transition: filter .3s ease;
}

.location-card-link:hover .location-image,
.location-card-link:focus-visible .location-image {
    border-color: var(--scw-archive-focus-border);
}

.location-card-link:focus-visible .location-image {
    outline: 3px solid var(--scw-archive-focus);
    outline-offset: 4px;
}

.location-card-link:hover .location-image img,
.location-card-link:focus-visible .location-image img {
    filter: grayscale(0%);
    transform: none;
}

.location-copy {
    min-height: 0;
    padding: 20px 8px 0;
    display: block;
}

.location-title {
    margin: 0;
    display: block;
    color: #3b3b3b;
    font-family: "Open Sans Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.location-description {
    margin-top: 6px;
    display: -webkit-box;
    overflow: hidden;
    color: #777;
    font-size: 13px;
    line-height: 21px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.location-card-link:hover .location-title,
.location-card-link:focus-visible .location-title {
    color: var(--scw-archive-blue);
}

.home .directory-stats {
    margin-top: 52px;
    padding: 0;
    color: #555;
    background: transparent;
}

.home .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.home .stats-grid p {
    min-height: 70px;
    margin: 0;
    padding: 10px 8px;
    border: 0;
    border-radius: 2px;
    color: #34462f;
    background: #e5ebde;
    text-align: center;
}

.home .stats-grid strong {
    font-family: "Open Sans Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 30px;
}

.home .stats-grid span {
    margin-top: 2px;
    color: #4c5d48;
    font-size: 10px;
    font-weight: 600;
    line-height: 15px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.home .submission-callout {
    padding: 48px 0 0;
    color: #777;
    background: transparent;
    text-align: center;
}

.home .submission-callout > p {
    max-width: 740px;
    margin: 0 auto 30px;
    line-height: 24px;
}

.home .submission-button {
    width: min(100%, 420px);
    min-height: 58px;
    margin-inline: auto;
    padding: 15px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--scw-archive-green-dark);
    font-family: "Open Sans Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
}

.home .submission-button:hover,
.home .submission-button:focus-visible {
    background: var(--scw-archive-blue);
}

.home-sidebar {
    min-width: 0;
    padding-left: 30px;
    border-left: 1px solid #ececec;
}

.home-sidebar-widget {
    padding-bottom: 34px;
}

.home-sidebar-widget + .home-sidebar-widget {
    padding-top: 31px;
    border-top: 1px solid #e7e7e7;
}

.home-sidebar-widget h2 {
    margin: 0 0 18px;
    color: #3b3b3b;
    font-family: "Open Sans Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
}

.home-sidebar-widget p {
    margin: 0 0 16px;
    color: #777;
    font-size: 12px;
    line-height: 20px;
}

.home-sidebar-search .search-form {
    display: flex;
}

.home-sidebar-search .search-form label {
    min-width: 0;
    flex: 1 1 auto;
}

.home-sidebar-search .search-field,
.home-sidebar-search .search-submit {
    min-height: 36px;
}

.home-sidebar-search .search-submit {
    padding-inline: 12px;
    background: var(--scw-archive-blue);
}

.home-account-links {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    list-style: none;
}

.home-account-links a,
.home-account-logout button {
    min-height: 44px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    border: 1px solid #afbf99;
    color: #42583c;
    background: #eef2e9;
}

.home-account-links a:hover,
.home-account-links a:focus-visible,
.home-account-logout button:hover,
.home-account-logout button:focus-visible {
    color: #fff;
    border-color: var(--scw-archive-blue);
    background: var(--scw-archive-blue);
}

.home-account-logout {
    margin-top: 8px;
}

.home-account-logout input[type="hidden"] {
    display: none;
}

.home-account-logout button {
    width: 100%;
    cursor: pointer;
}

.home-latest-list {
    display: grid;
    gap: 20px;
}

.home-latest-list article {
    min-width: 0;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
}

.home-latest-list article.no-image {
    grid-template-columns: 1fr;
}

.home-latest-image,
.home-latest-image img {
    width: 70px;
    height: 70px;
    display: block;
}

.home-latest-image img {
    object-fit: cover;
}

.home-latest-list h3 {
    margin: 0 0 5px;
    font-family: "Open Sans Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 16px;
    line-height: 20px;
}

.home-latest-list h3 a {
    color: #507992;
}

.home-latest-list h3 a:hover,
.home-latest-list h3 a:focus-visible {
    color: var(--scw-archive-blue);
    text-decoration: underline;
}

.home-latest-list p {
    margin: 0;
}

@media (max-width: 1100px) {
    .home-content-grid {
        grid-template-columns: minmax(0, 2.4fr) minmax(270px, 1fr);
        gap: 36px;
    }

    .location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .home-content-grid {
        padding-top: 50px;
        display: block;
    }

    .home-sidebar {
        margin-top: 58px;
        padding: 40px 28px 10px;
        border: 0;
        background: #f7f7f7;
    }

    .home-sidebar-widget {
        max-width: 680px;
        margin-inline: auto;
    }

}

@media (max-width: 800px) {
    .home .directory-search {
        padding: 24px 0;
    }

    .home .search-fields {
        width: min(calc(100% - 28px), var(--scw-archive-canvas));
        grid-template-columns: 1fr 1fr;
    }

    .home .search-fields label:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home .directory-search {
        min-height: 0;
        padding: 18px 0;
    }

    .home .search-fields {
        grid-template-columns: 1fr;
    }

    .home .search-fields label:first-child {
        grid-column: auto;
    }

    .home-content-grid {
        padding: 54px 0 52px;
    }

    .section-heading {
        margin-bottom: 42px;
    }

    .section-heading h1 {
        grid-template-columns: minmax(10px, 1fr) minmax(0, auto) minmax(10px, 1fr);
        gap: 12px;
        font-size: 24px;
        line-height: 31px;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .location-card {
        min-height: 308px;
    }

    .location-title {
        font-size: 26px;
        line-height: 34px;
    }

    .location-description {
        max-width: 350px;
        margin: 5px auto 0;
        font-size: 14px;
        line-height: 24px;
    }

    .home .stats-grid {
        gap: 8px;
    }

    .home .submission-callout {
        padding-top: 36px;
    }

    .home-sidebar {
        margin-inline: -14px;
        padding-inline: 28px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .location-image img {
        filter: grayscale(0%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .location-image,
    .location-image img {
        transition: none;
    }
}
