.post-archive {
    padding: clamp(32px, 4vw, 60px) 0;
}

.post-archive > .container {
    max-width: none;
}

.post-archive__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-archive__card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
    color: #17243d;
}

.post-archive__image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 12px;
    background: #eef2f7;
}

.post-archive__image img,
.post-archive__image picture {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 180ms ease;
}

.post-archive__title {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    margin: 0;
    color: #17243d;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.post-archive__title a {
    color: inherit;
    text-decoration: none;
}

.post-archive__description {
    display: -webkit-box;
    overflow: hidden;
    color: #667085;
    font-size: 14px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.post-archive__description p {
    margin: 0;
}

.post-archive__card:hover .post-archive__image img,
.post-archive__card:focus-within .post-archive__image img {
    transform: scale(1.025);
}

.post-archive__card:hover .post-archive__title,
.post-archive__card:focus-within .post-archive__title {
    color: #0554f2;
}

.easyfind-article-listings {
    width: 100%;
    margin-top: 40px;
}

.easyfind-article-listings .est-home-listings__header {
    margin-bottom: 12px;
}

.easyfind-article-listings .est-home-listings__title {
    white-space: normal;
}

.easyfind-article-listings .est-home-listings__swiper {
    padding-bottom: 8px;
}

/* Keep universal listing cards intact inside the article editor. */
.easyfind-article-listings .est-home-listings__swiper .swiper-wrapper {
    align-items: stretch;
}

.easyfind-article-listings .est-home-listings__swiper .swiper-slide {
    height: auto;
}

.easyfind-article-listings .est-listing-card,
.easyfind-article-listings .est-listing-card:hover,
.easyfind-article-listings .est-listing-card:focus-within {
    height: auto;
    min-height: 260px;
}

.easyfind-article-listings .est-listing-card__inner {
    height: 100%;
}

.editor .easyfind-article-listings .est-listing-card__title {
    min-height: 38px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

@media (min-width: 1440px) {
    .post-archive__title {
        min-height: 48px;
        font-size: 20px;
    }

    .editor .easyfind-article-listings .est-listing-card__title {
        min-height: 42px;
        font-size: clamp(14px, .82vw, 17px);
    }
}

@media (max-width: 1023px) {
    .post-archive__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .post-archive {
        padding: 24px 0 32px;
    }

    .post-archive__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 12px;
    }

    .post-archive__card {
        gap: 7px;
    }

    .post-archive__title {
        min-height: 38px;
        font-size: 15px;
        line-height: 1.25;
    }

    .post-archive__description {
        font-size: 12px;
    }

    .easyfind-article-listings {
        margin-top: 32px;
    }

    .easyfind-article-listings .est-listing-card,
    .easyfind-article-listings .est-listing-card:hover,
    .easyfind-article-listings .est-listing-card:focus-within {
        min-height: 220px;
    }

    .editor .easyfind-article-listings .est-listing-card__title {
        min-height: 32px;
        font-size: 12px;
        line-height: 1.3;
    }
}
