body.archive:is(.category,.tag) .yy-kb-archive-template,
body.archive:is(.category,.tag) #page,
body.archive:is(.category,.tag) .site-content {
    box-sizing: border-box;
}

body.archive:is(.category,.tag) #page.site.grid-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.archive:is(.category,.tag) .site-content {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.archive:is(.category,.tag).separate-containers .site-main,
body.archive:is(.category,.tag) .yy-kb-archive-template {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0;
}

body.archive:is(.category,.tag).separate-containers .site-main > *,
body.archive:is(.category,.tag) .yy-kb-archive-template > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.archive:is(.category,.tag) .yy-kb-archive-template > section:first-of-type {
    width: 100%;
    max-width: none;
}

.yy-kb-archive-template .wp-block-post-template > li > article {
    display: grid !important;
    grid-template-columns: 185px minmax(0, 1fr);
    align-items: start !important;
    column-gap: 20px !important;
}

.yy-kb-archive-template .wp-block-post-template > li > article > div:first-of-type {
    min-width: 0;
    width: 185px !important;
    max-width: 185px;
    overflow: hidden;
}

.yy-kb-archive-template .wp-block-post-template > li > article > div:last-of-type {
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.yy-kb-archive-template .wp-block-post-title,
.yy-kb-archive-template .wp-block-post-title a {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
}

.yy-kb-archive-template .wp-block-post-date,
.yy-kb-archive-template .wp-block-post-date time {
    overflow: visible !important;
    white-space: nowrap;
}

.yy-kb-archive-template .wp-block-post-title {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    color: #10213d !important;
    font-size: 18px !important;
    font-weight: 680 !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.yy-kb-archive-template .wp-block-post-title a {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-decoration: none;
}

.yy-kb-archive-template .wp-block-post-excerpt,
.yy-kb-archive-template .wp-block-post-excerpt__excerpt {
    color: #667085 !important;
    font-size: 14px !important;
    line-height: 1.72 !important;
}

.yy-kb-archive-template .wp-block-post-date {
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.yy-kb-archive-template .wp-block-read-more {
    font-size: 13px !important;
    font-weight: 620 !important;
    line-height: 1.5 !important;
}

.yy-kb-archive-template .yy-kb-post-category,
.yy-kb-archive-template .yy-kb-post-category a {
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.yy-kb-archive-template .wp-block-post-template > li > article {
    gap: 18px !important;
}

.yy-kb-archive-template .wp-block-post-template > li > article > div:first-of-type {
    flex: 0 0 185px !important;
    width: 185px !important;
    max-width: 185px;
    min-width: 0;
}

.yy-kb-archive-template .wp-block-post-template > li > article > div:first-of-type .wp-block-post-featured-image {
    width: 100%;
    height: 118px !important;
}

.yy-kb-archive-template .wp-block-post-template > li > article > div:last-child {
    flex: 1 1 0 !important;
    width: auto;
    min-width: 0;
}

.yy-kb-archive-template aside {
    gap: 20px !important;
}

.yy-kb-archive-template aside > section {
    padding: 22px !important;
}

.yy-kb-archive-template aside > section > h2 {
    margin: 0 0 17px !important;
    padding-bottom: 12px !important;
    color: #10213d !important;
    font-size: 18px !important;
    font-weight: 680 !important;
    line-height: 1.4 !important;
}

.yy-kb-archive-template .yy-kb-tag-cloud {
    gap: 8px !important;
    margin: 0 !important;
}

.yy-kb-archive-template .yy-kb-tag-cloud a,
.yy-kb-archive-template .yy-kb-tag-cloud a[style] {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    margin: 0 !important;
    padding: 5px 9px !important;
    border: 1px solid #dce4f0;
    border-radius: 6px;
    color: #526078;
    background: #f9fbfd;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.4 !important;
    text-decoration: none;
}

.yy-kb-archive-template .yy-kb-tag-cloud a:hover {
    border-color: #8fb2ff;
    color: #165dff;
    background: #eef4ff;
}

.yy-kb-archive-template .yy-kb-popular-list {
    margin: 0 !important;
    padding: 0 !important;
}

.yy-kb-archive-template .yy-kb-popular-list li {
    align-items: center !important;
    gap: 11px !important;
    margin-bottom: 14px !important;
    padding-bottom: 14px !important;
}

.yy-kb-archive-template .yy-kb-popular-list .wpp-thumbnail {
    flex: 0 0 88px !important;
    width: 88px !important;
    height: 60px !important;
    margin: 0 !important;
    border-radius: 7px !important;
    object-fit: cover;
}

.yy-kb-archive-template .yy-kb-popular-data {
    min-width: 0;
}

.yy-kb-archive-template .yy-kb-popular-data > a {
    display: -webkit-box !important;
    overflow: hidden;
    color: #243651 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.yy-kb-archive-template .yy-kb-popular-data > a:hover {
    color: #165dff !important;
}

.yy-kb-archive-template .yy-kb-popular-data .wpp-meta {
    display: block;
    margin-top: 5px !important;
    color: #98a2b3 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.yy-kb-archive-template .yy-kb-popular-list li {
    display: grid !important;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center !important;
    column-gap: 12px !important;
    width: 100%;
}

.yy-kb-archive-template .yy-kb-popular-list li > a:first-child {
    display: block !important;
    width: 88px !important;
    height: 60px !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid #edf1f6;
    border-radius: 7px;
    background: #f8fafc;
}

.yy-kb-archive-template .yy-kb-popular-list li > a:first-child .wpp-thumbnail,
.yy-kb-archive-template .yy-kb-popular-list li > .wpp-thumbnail {
    display: block !important;
    width: 88px !important;
    height: 60px !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: center;
}

.yy-kb-archive-template .yy-kb-popular-data {
    width: 100%;
    min-width: 0;
    text-align: left !important;
}

.yy-kb-archive-template .yy-kb-popular-data > a,
.yy-kb-archive-template .yy-kb-popular-data .wpp-meta {
    width: 100%;
    margin-left: 0 !important;
    text-align: left !important;
}

.yy-kb-archive-template .popular-posts ~ p {
    display: none !important;
}

.yy-kb-archive-template .wp-block-query-pagination {
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    font-size: 14px;
}

.yy-kb-archive-template .wp-block-query-pagination-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.yy-kb-archive-template .wp-block-query-pagination .page-numbers,
.yy-kb-archive-template .wp-block-query-pagination-next,
.yy-kb-archive-template .wp-block-query-pagination-previous {
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #dfe6f0;
    border-radius: 6px;
    color: #526078;
    background: #fff;
    font-size: 14px !important;
    line-height: 1.35;
    text-decoration: none;
}

.yy-kb-archive-template .wp-block-query-pagination .page-numbers.current {
    border-color: #165dff;
    color: #fff;
    background: #165dff;
    font-weight: 650;
}

.yy-kb-archive-template .wp-block-query-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

.yy-kb-archive-template .wp-block-query-pagination a:hover {
    border-color: #8fb2ff;
    color: #165dff;
    background: #f5f8ff;
}

@media (max-width: 1024px) {
    .yy-kb-archive-template > section:last-of-type > div {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .yy-kb-archive-template aside {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 18px !important;
    }
}

@media (max-width: 767px) {
    .yy-kb-archive-template .wp-block-post-template > li > article {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 16px !important;
    }

    .yy-kb-archive-template .wp-block-post-template > li > article > div:first-of-type {
        width: 100% !important;
        max-width: none;
    }

    .yy-kb-archive-template .wp-block-post-template > li > article > div:first-of-type {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: none;
    }

    .yy-kb-archive-template .wp-block-post-template > li > article > div:first-of-type .wp-block-post-featured-image {
        height: clamp(176px, 52vw, 260px) !important;
    }

    .yy-kb-archive-template .wp-block-post-title {
        font-size: 17px !important;
        line-height: 1.5 !important;
    }

    .yy-kb-archive-template .wp-block-post-excerpt,
    .yy-kb-archive-template .wp-block-post-excerpt__excerpt {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }

    .yy-kb-archive-template aside > section {
        padding: 18px !important;
    }

    .yy-kb-archive-template aside > section > h2 {
        margin-bottom: 15px !important;
        font-size: 17px !important;
    }

    .yy-kb-archive-template .wp-block-query-pagination {
        align-items: flex-start;
        gap: 10px;
        font-size: 13px;
    }

    .yy-kb-archive-template .wp-block-query-pagination .page-numbers,
    .yy-kb-archive-template .wp-block-query-pagination-next,
    .yy-kb-archive-template .wp-block-query-pagination-previous {
        min-width: 32px;
        min-height: 32px;
        padding: 5px 9px;
        font-size: 13px !important;
    }
}

@media (max-width: 640px) {
    .yy-kb-archive-template aside {
        grid-template-columns: 1fr;
    }

    .yy-kb-archive-template .yy-kb-tag-cloud a,
    .yy-kb-archive-template .yy-kb-tag-cloud a[style] {
        min-height: 28px;
        padding: 5px 8px !important;
        font-size: 12px !important;
    }

    .yy-kb-archive-template .yy-kb-popular-list .wpp-thumbnail {
        flex-basis: 84px !important;
        width: 84px !important;
        height: 58px !important;
    }

    .yy-kb-archive-template .yy-kb-popular-data > a {
        font-size: 13px !important;
    }
}
