/*=============== BLOG PAGE (blog.php) ===============
  Article and "all articles" views. Card and article-body styles come from
  blog.css; layout chrome (header, footer) from styles.css. */

.bp {
    padding-top: 5.5rem;
    padding-bottom: 2rem;
}

.bp-back {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .95rem;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--title-color);
    background: var(--bc-brand-soft);
}

.bp-back:hover {
    color: var(--bc-brand);
}

/*=============== ARTICLE ===============*/
.bp-hero {
    max-width: 800px;
    margin-bottom: 2rem;
    text-align: center;
}

.bp-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 1.1rem;
    font-size: .85rem;
    color: var(--bc-muted);
}

.bp-chip {
    position: static;
}

.bp-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--bc-ink);
}

.bp-hero__lead {
    margin: 0 auto;
    max-width: 640px;
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--bc-ink-2);
}

.bp-cover {
    max-width: 1080px;
    margin: 0 auto 2.5rem;
}

.bp-cover img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--bc-shadow);
}

.bp-cover .post-video {
    border-radius: 24px;
    box-shadow: var(--bc-shadow);
}

.bp-layout {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
}

.bp-share {
    display: flex;
    align-items: center;
    gap: .5rem;
    order: 2;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bc-line);
}

.bp-share__label {
    margin-right: .25rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--bc-muted);
}

.bp-share a,
.bp-share button {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--bc-line);
    background: var(--bc-surface);
    color: var(--bc-ink);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
}

.bp-share a:hover,
.bp-share button:hover,
.bp-share button.is-done {
    color: #102018;
    background: var(--bc-yellow);
    transform: translateY(-2px);
}

.bp-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    max-width: 800px;
    margin-top: 3rem;
    padding: 1.75rem 2rem;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, hsla(61, 74%, 63%, .3), transparent 45%),
        linear-gradient(135deg, #2C5E48, hsl(155, 35%, 14%));
}

.bp-cta h2 {
    margin: 0 0 .3rem;
    font-size: 1.3rem;
    color: #fff;
}

.bp-cta p {
    margin: 0;
    color: hsla(0, 0%, 100%, .8);
    font-size: .92rem;
}

.bp-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .8rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    color: #102018;
    background: var(--bc-yellow);
    transition: transform .2s;
}

.bp-cta__btn:hover {
    transform: translateY(-2px);
}

.bp-more {
    margin-top: 4rem;
}

.bp-section-title {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    color: var(--bc-ink);
}

/* Share bar beside the text on wide screens */
@media screen and (min-width: 1100px) {
    .bp-layout {
        grid-template-columns: 64px minmax(0, 1fr);
        max-width: 880px;
        margin-left: auto;
        margin-right: auto;
    }

    .bp-share {
        position: sticky;
        top: 7rem;
        order: 0;
        flex-direction: column;
        align-self: start;
        padding-top: 0;
        border-top: 0;
    }

    .bp-share__label {
        margin: 0 0 .25rem;
    }
}

/*=============== ALL ARTICLES ===============*/
.bp-list__head {
    max-width: 640px;
    margin: 0 auto 2rem;
    text-align: center;
}

.bp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .9rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bc-brand);
    background: var(--bc-brand-soft);
}

.bp-list__title {
    margin: 0 0 .75rem;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    letter-spacing: -.02em;
    color: var(--bc-ink);
}

.bp-list__lead {
    margin: 0;
    color: var(--bc-ink-2);
}

.bp-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 2rem;
}

.bp-filters a {
    padding: .45rem .95rem;
    border-radius: 999px;
    border: 1px solid var(--bc-line);
    font-size: .85rem;
    font-weight: 500;
    color: var(--bc-ink-2);
    background: var(--bc-surface);
}

.bp-filters a:hover {
    color: var(--bc-brand);
}

.bp-filters a.is-active {
    color: #102018;
    background: var(--bc-yellow);
    border-color: transparent;
    font-weight: 600;
}

.bp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.25rem;
}

.bp-missing {
    max-width: 32rem;
    margin: 2rem auto;
    text-align: center;
}

.bp-missing__icon {
    display: inline-grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1rem;
    border-radius: 22px;
    font-size: 2rem;
    color: #102018;
    background: var(--bc-yellow);
}

.bp-missing h1,
.bp-missing h2 {
    margin: 0 0 .5rem;
    color: var(--bc-ink);
}

.bp-missing p {
    margin: 0 0 1.5rem;
    color: var(--bc-ink-2);
}
