.listing-page {
    padding-top: 112px;
    padding-bottom: 56px;
    font-family: var(--font-sans);
}

.listing-page__header {
    margin-bottom: 26px;
}

.listing-page__header .entry-title {
    margin: 0 0 14px;
    padding-left: 14px;
    border-left-width: 4px;
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.2;
}

.search-results-page__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
    align-items: end;
    gap: 32px;
    margin-bottom: 30px;
    padding: clamp(28px, 4vw, 44px);
    border-radius: 14px;
    background: linear-gradient(115deg, #202020 0%, #292723 100%);
    color: #fff;
}

.search-results-page__heading > p {
    margin: 0 0 10px;
    color: #e7a237;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.search-results-page__heading h1 {
    margin: 0 0 12px;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.search-results-page__heading > span {
    color: #cfcac2;
    font-size: 14px;
}

.search-results-page__form .site-search-form {
    padding: 7px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
}

.listing-page .archive-description {
    max-width: 840px;
    color: #5b6066;
    font-size: 15px;
    line-height: 1.65;
}

.listing-page__empty p {
    margin: 0 0 18px;
    color: #515151;
    font-size: 15px;
    line-height: 1.65;
}

.error-404 {
    padding-top: 84px;
    font-family: var(--font-sans);
}

.error-404__hero {
    overflow: hidden;
    background: linear-gradient(118deg, #171717 0%, #22211f 65%, #382d1c 100%);
    color: #fff;
}

.error-404__hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
    align-items: center;
    min-height: 520px;
    gap: 50px;
    padding-top: 74px;
    padding-bottom: 74px;
}

.error-404__copy {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.error-404__code {
    margin: 0 0 12px;
    color: #dd931d;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: .18em;
}

.error-404 h1 {
    max-width: 680px;
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.04em;
}

.error-404__lead {
    max-width: 650px;
    margin: 24px 0 28px;
    color: #d6d2ca;
    font-size: 17px;
    line-height: 1.7;
}

.error-404__search {
    max-width: 650px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 11px;
    background: rgba(255, 255, 255, .08);
}

.error-404__home {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    color: #f1aa37;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.error-404__home:hover, .error-404__home:focus-visible {
    color: #fff;
}

.error-404__visual {
    position: relative;
    min-height: 330px;
}

.error-404__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 260px;
    height: 260px;
    place-items: center;
    border: 42px solid #dd931d;
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(221, 147, 29, .1), 0 22px 55px rgba(0, 0, 0, .3);
    transform: translate(-50%, -50%) rotate(-8deg);
}

.error-404__ring span {
    color: #fff;
    font-size: 90px;
    font-weight: 850;
    line-height: 1;
}

.error-404__chip {
    position: absolute;
    z-index: 2;
    width: 54px;
    height: 54px;
    border: 8px dashed rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: #a76500;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}

.error-404__chip--one {
    top: 18px;
    right: 10%;
    transform: rotate(18deg);
}

.error-404__chip--two {
    bottom: 20px;
    left: 4%;
    transform: rotate(-20deg) scale(.74);
}

.error-404__links {
    padding-top: 38px;
    padding-bottom: 52px;
}

.error-404__links > p {
    margin: 0 0 18px;
    color: #7d5110;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.error-404__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.error-404__menu li {
    margin: 0;
}

.error-404__menu a {
    display: block;
    padding: 11px 16px;
    border: 1px solid #dfd9cf;
    border-radius: 8px;
    color: #202020;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.error-404__menu a:hover, .error-404__menu a:focus-visible {
    border-color: #dd931d;
    background: #fff8ec;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.content-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e3ded6;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(24, 28, 33, 0.06);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.content-card:hover {
    border-color: #d9c49f;
    box-shadow: 0 15px 34px rgba(24, 28, 33, 0.1);
    transform: translateY(-3px);
}

.content-card__media {
    display: block;
    height: 190px;
    overflow: hidden;
    background: #f2eee7;
}

.content-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.content-card:hover .content-card__media img {
    transform: scale(1.025);
}

.content-card__media--placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #262626 0%, #3b3020 100%);
    color: #e5a136;
    text-decoration: none;
}

.content-card__media--placeholder span {
    display: -webkit-box;
    max-width: 82%;
    overflow: hidden;
    padding: 10px 16px;
    border: 1px solid rgba(229,161,54,.45);
    border-radius: 9px;
    color: #f0a735;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.content-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.content-card__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 8px;
    color: #76736e;
    font-size: 11px;
    line-height: 1.4;
}

.content-card__title {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    font-size: 19px;
    line-height: 1.35;
}

.content-card__title a {
    color: #202020;
    text-decoration: none;
}

.content-card__title a:hover, .content-card__title a:focus-visible {
    color: #9a650e;
}

.content-card__excerpt {
    margin: 0 0 16px;
    color: #5a5e63;
    font-size: 14px;
    line-height: 1.6;
}

.content-card__link {
    margin-top: auto;
    color: #a96800;
    font-size: 13px;
    font-weight: 800;
}

.content-card__link:hover, .content-card__link:focus-visible {
    color: #202020;
}

.content-card__link span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.content-card__link:hover span {
    transform: translateX(3px);
}

.listing-page__empty {
    max-width: 760px;
    padding: 30px;
    border: 1px solid #e4e6e8;
    border-radius: 14px;
    background: #f8f6f2;
    color: #50545a;
    font-size: 15px;
}

.listing-page .navigation.pagination {
    display: block;
    width: 100%;
    margin: 34px 0 0;
}

.listing-page .pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.listing-page .pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #ddd8d0;
    border-radius: 8px;
    background: #fff;
    color: #303030;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
}

.listing-page .pagination .page-numbers:hover, .listing-page .pagination .page-numbers:focus-visible {
    border-color: #dd931d;
    background: #fff8eb;
}

.listing-page .pagination .page-numbers.current {
    border-color: #202020;
    background: #202020;
    color: #fff;
}

.listing-page .pagination .page-numbers.dots {
    min-width: 28px;
    padding-right: 4px;
    padding-left: 4px;
    border-color: transparent;
    background: transparent;
}

.listing-page .pagination .prev, .listing-page .pagination .next {
    min-width: 104px;
}

@media (max-width: 900px) {
    .search-results-page__header {
        grid-template-columns: 1fr;
    }

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

}

@media (max-width: 860px) {
    .error-404__hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 62px;
        padding-bottom: 62px;
    }

    .error-404__visual {
        display: none;
    }

}

@media (max-width: 680px) {
    .listing-page {
        padding-top: 94px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .search-results-page__header {
        gap: 22px;
        padding: 26px 20px;
        border-radius: 10px;
    }

    .search-results-page__heading h1 {
        font-size: 29px;
    }

    .listing-page .pagination .nav-links {
        gap: 6px;
    }

    .listing-page .pagination .page-numbers {
        min-width: 39px;
        min-height: 39px;
        padding: 7px 10px;
    }

    .listing-page .pagination .prev, .listing-page .pagination .next {
        min-width: auto;
    }

}

@media (max-width: 600px) {
    .header-search {
        top: calc(100% + 7px);
        right: 16px;
        padding: 16px;
    }

    .site-search-form {
        flex-direction: column;
    }

    .site-search-form__submit {
        width: 100%;
    }

    .error-404 {
        padding-top: 74px;
    }

    .error-404__hero-inner {
        padding-top: 48px;
        padding-bottom: 50px;
    }

    .error-404 h1 {
        font-size: 39px;
    }

    .error-404__lead {
        font-size: 15px;
    }

    .error-404__search {
        padding: 7px;
    }

    .error-404__menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .error-404__menu a {
        height: 100%;
    }

}
