:root {
    --bcp-ink: #111111;
    --bcp-body: #45627f;
    --bcp-muted: #6d6d6d;
    --bcp-border: #d1d1d1;
    --bcp-gold: #bd8a2d;
    --bcp-green: #073c32;
    --bcp-surface: #ffffff;
    --bcp-radius: 10px;
    --bcp-content-width: 1360px;
    --bcp-sidebar-width: 400px;
    --bcp-gap: 56px;
}

.bcp-archive,
.bcp-archive * {
    box-sizing: border-box;
}

.bcp-archive {
    width: 100%;
    overflow: hidden;
    color: var(--bcp-ink);
    background: #ffffff;
}

.bcp-container {
    width: min(calc(100% - 40px), var(--bcp-content-width));
    margin-inline: auto;
}

.bcp-archive-hero {
    position: relative;
    min-height: 365px;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    background-color: var(--bcp-green);
    background-image: var(--bcp-hero-image);
    background-size: cover;
    background-position: center;
}

.bcp-archive-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(4, 48, 40, 0.78);
}

.bcp-archive-hero__inner {
    padding-top: 80px;
    padding-bottom: 72px;
}

.bcp-archive-hero__eyebrow {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bcp-archive-hero__title {
    max-width: 1050px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 4.5vw, 72px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.bcp-archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--bcp-sidebar-width);
    gap: var(--bcp-gap);
    align-items: start;
    padding-top: 76px;
    padding-bottom: 90px;
}

.bcp-archive-main {
    min-width: 0;
}

.bcp-category-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.bcp-category-heading__label {
    display: block;
    margin-bottom: 8px;
    color: var(--bcp-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bcp-category-heading__title {
    margin: 0;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.bcp-category-heading__count {
    flex: 0 0 auto;
    color: var(--bcp-muted);
    font-size: 15px;
    font-weight: 600;
}

.bcp-category-description {
    max-width: 850px;
    margin-bottom: 34px;
    color: var(--bcp-body);
    font-size: 17px;
    line-height: 1.7;
}

.bcp-category-description p {
    margin: 0 0 1em;
}

.bcp-featured-card {
    overflow: hidden;
    margin-bottom: 42px;
    border: 1px solid var(--bcp-border);
    border-radius: 18px;
    background: var(--bcp-surface);
}

.bcp-featured-card__image-link,
.bcp-blog-card__image-link {
    display: block;
    overflow: hidden;
    background: #e9e9e9;
}

.bcp-featured-card__image-link {
    aspect-ratio: 16 / 8.5;
}

.bcp-featured-card__image,
.bcp-blog-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bcp-featured-card__image {
    transition: transform 0.35s ease;
}

.bcp-featured-card:hover .bcp-featured-card__image,
.bcp-blog-card:hover .bcp-blog-card__image {
    transform: scale(1.025);
}

.bcp-featured-card__body {
    padding: 30px 32px 34px;
}

.bcp-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--bcp-muted);
    font-size: 13px;
    line-height: 1.4;
}

.bcp-featured-card__title,
.bcp-blog-card__title {
    margin: 0 0 13px;
    line-height: 1.14;
    letter-spacing: -0.025em;
}

.bcp-featured-card__title {
    font-size: clamp(28px, 3vw, 42px);
}

.bcp-featured-card__title a,
.bcp-blog-card__title a,
.bcp-recent-post__title a,
.bcp-category-link {
    color: inherit;
    text-decoration: none;
}

.bcp-featured-card__title a:hover,
.bcp-blog-card__title a:hover,
.bcp-recent-post__title a:hover,
.bcp-category-link:hover {
    color: var(--bcp-gold);
}

.bcp-featured-card__excerpt,
.bcp-blog-card__excerpt {
    color: var(--bcp-body);
    font-size: 16px;
    line-height: 1.7;
}

.bcp-featured-card__excerpt p,
.bcp-blog-card__excerpt p {
    margin: 0 0 1em;
}

.bcp-read-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    color: var(--bcp-green);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.bcp-read-more:hover {
    color: var(--bcp-gold);
}

.bcp-read-more span {
    transition: transform 0.2s ease;
}

.bcp-read-more:hover span {
    transform: translateX(3px);
}

.bcp-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.bcp-blog-card {
    overflow: hidden;
    border: 1px solid var(--bcp-border);
    border-radius: var(--bcp-radius);
    background: #ffffff;
}

.bcp-blog-card__image-link {
    aspect-ratio: 16 / 9;
}

.bcp-blog-card__body {
    padding: 22px 23px 25px;
}

.bcp-blog-card__title {
    font-size: 24px;
}

.bcp-blog-card__excerpt {
    font-size: 15px;
}

.bcp-sidebar {
    display: grid;
    gap: 18px;
    min-width: 0;
    position: sticky;
    top: 30px;
}

.bcp-category-box,
.bcp-sidebar-box {
    padding: 38px 40px;
    border: 1px solid var(--bcp-border);
    border-radius: var(--bcp-radius);
    background: #ffffff;
}

.bcp-category-box__title,
.bcp-sidebar-box__title {
    margin: 0 0 26px;
    color: #111111;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
}

.bcp-category-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bcp-category-item {
    margin: 0;
    padding: 0;
}

.bcp-category-link {
    display: block;
    color: #656565;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 600;
}

.bcp-category-count {
    margin-left: 3px;
}

.bcp-recent-posts {
    padding-bottom: 30px;
}

.bcp-recent-posts__list {
    display: grid;
    gap: 28px;
}

.bcp-recent-post {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.bcp-recent-post__image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 0.75;
    background: #e9e9e9;
}

.bcp-recent-post__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bcp-recent-post__title {
    margin: -3px 0 7px;
    color: #222222;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;
}

.bcp-recent-post__date {
    color: #999999;
    font-size: 12px;
    line-height: 1.4;
}

.bcp-pagination {
    margin-top: 46px;
}

.bcp-pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bcp-pagination li {
    margin: 0;
}

.bcp-pagination a,
.bcp-pagination span {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--bcp-border);
    border-radius: 6px;
    color: #222222;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.bcp-pagination .current {
    border-color: var(--bcp-green);
    background: var(--bcp-green);
    color: #ffffff;
}

.bcp-pagination a:hover {
    border-color: var(--bcp-gold);
    color: var(--bcp-gold);
}

.bcp-empty-state {
    padding: 55px 35px;
    border: 1px solid var(--bcp-border);
    border-radius: var(--bcp-radius);
    text-align: center;
}

.bcp-empty-state h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.bcp-empty-state p {
    margin: 0;
    color: var(--bcp-body);
    line-height: 1.6;
}

/* Shortcode-only category box can be used anywhere on the site. */
.bcp-category-box {
    width: 100%;
}

@media (max-width: 1100px) {
    .bcp-archive-layout {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 34px;
    }

    .bcp-category-box,
    .bcp-sidebar-box {
        padding: 30px;
    }

    .bcp-recent-post {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 13px;
    }

    .bcp-recent-post__title {
        font-size: 15px;
    }
}

@media (max-width: 820px) {
    .bcp-container {
        width: min(calc(100% - 32px), var(--bcp-content-width));
    }

    .bcp-archive-hero {
        min-height: 300px;
    }

    .bcp-archive-hero__inner {
        padding-top: 65px;
        padding-bottom: 55px;
    }

    .bcp-archive-layout {
        grid-template-columns: 1fr;
        padding-top: 50px;
        padding-bottom: 65px;
    }

    .bcp-sidebar {
        position: static;
    }

    .bcp-blog-grid {
        grid-template-columns: 1fr;
    }

    .bcp-sidebar {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

@media (max-width: 560px) {
    .bcp-container {
        width: min(calc(100% - 24px), var(--bcp-content-width));
    }

    .bcp-archive-hero {
        min-height: 250px;
    }

    .bcp-archive-hero__inner {
        padding-top: 52px;
        padding-bottom: 42px;
    }

    .bcp-archive-hero__title {
        font-size: 39px;
    }

    .bcp-category-heading {
        display: block;
    }

    .bcp-category-heading__count {
        display: inline-block;
        margin-top: 12px;
    }

    .bcp-featured-card__image-link {
        aspect-ratio: 16 / 10;
    }

    .bcp-featured-card__body {
        padding: 24px 21px 27px;
    }

    .bcp-featured-card__title {
        font-size: 29px;
    }

    .bcp-blog-card__title {
        font-size: 22px;
    }

    .bcp-sidebar {
        grid-template-columns: 1fr;
    }

    .bcp-category-box,
    .bcp-sidebar-box {
        padding: 30px 26px;
    }

    .bcp-category-box__title,
    .bcp-sidebar-box__title {
        font-size: 24px;
    }

    .bcp-category-link {
        font-size: 17px;
    }
}
