/* =====================================================
   BLOG POST — single article layout (.bp-)
   ====================================================== */

.bp-article {
    padding: var(--section-pad) 24px;
}

.bp-wrap {
    max-width: 780px;
    margin: 0 auto;
}

/* ---- Meta row under the title (in the banner) ---- */
.bp-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, .82);
}

.bp-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.bp-meta i,
.bp-meta svg {
    width: 15px;
    height: 15px;
}

/* ---- Lead image ---- */
.bp-hero-img {
    margin-bottom: 34px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e8e3da;
    box-shadow: 0 24px 52px rgba(23, 23, 20, .11);
}

.bp-hero-img img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ---- Body copy ---- */
.bp-body > p {
    margin-bottom: 20px;
    font-size: 16.5px;
    line-height: 1.8;
    color: #4a463e;
}

.bp-body > p.bp-standfirst {
    font-size: 19px;
    line-height: 1.65;
    color: var(--black, #171714);
    font-weight: 500;
}

.bp-body h2 {
    margin: 40px 0 14px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 800;
    letter-spacing: -.8px;
    line-height: 1.2;
    color: var(--black, #171714);
}

.bp-body h3 {
    margin: 28px 0 10px;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.3px;
    color: var(--black, #171714);
}

.bp-body a {
    color: var(--orange-dark, #cb5901);
    font-weight: 600;
    border-bottom: 1px solid rgba(254, 111, 1, .35);
    transition: border-color 240ms ease;
}

.bp-body a:hover {
    border-bottom-color: var(--orange, #fe6f01);
}

.bp-body strong {
    color: var(--black, #171714);
}

/* ---- Lists ---- */
.bp-list {
    margin: 0 0 22px;
    display: grid;
    gap: 11px;
}

.bp-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 16px;
    line-height: 1.7;
    color: #4a463e;
}

.bp-list i,
.bp-list svg {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 5px;
    color: var(--orange, #fe6f01);
}

/* ---- Figure ---- */
.bp-figure {
    margin: 30px 0;
}

.bp-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid #e8e3da;
}

.bp-figure figcaption {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray, #706b61);
    text-align: center;
}

/* ---- Pull quote ---- */
.bp-quote {
    margin: 34px 0;
    padding: 24px 26px;
    border-left: 3px solid var(--orange, #fe6f01);
    border-radius: 0 16px 16px 0;
    background: #fff6ec;
    font-family: "Manrope", sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -.4px;
    color: var(--black, #171714);
}

/* ---- Table of contents ---- */
/* Same warm panel and orange rule as .bp-quote, so it reads as part of the
   article rather than a widget bolted on top of it. */
.bp-toc {
    margin: 28px 0 34px;
    padding: 20px 24px 22px;
    border: 1px solid #f0e4d2;
    border-left: 3px solid var(--orange, #fe6f01);
    border-radius: 0 16px 16px 0;
    background: #fff9f2;
}

.bp-toc-title {
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--orange-dark, #cb5901);
    margin-bottom: 12px;
}

.bp-toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: bp-toc;
}

.bp-toc-item {
    counter-increment: bp-toc;
}

.bp-toc-item + .bp-toc-item {
    margin-top: 8px;
}

.bp-toc-item > a {
    display: inline-flex;
    align-items: baseline;
    gap: 9px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: #4a463e;
    border-bottom: 0;
    transition: color 240ms ease;
}

.bp-toc-item > a::before {
    content: counter(bp-toc, decimal-leading-zero);
    flex-shrink: 0;
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: var(--orange, #fe6f01);
}

.bp-toc-item > a:hover {
    color: var(--orange-dark, #cb5901);
}

/* Sub-headings sit in, and drop the numbering so the H2 sequence stays clean. */
.bp-toc-sub {
    counter-increment: none;
    margin-left: 22px;
}

.bp-toc-sub > a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray, #706b61);
}

.bp-toc-sub > a::before {
    content: "";
    width: 10px;
    height: 1px;
    align-self: center;
    background: rgba(254, 111, 1, .5);
}

/* The header is sticky, so an anchor jump has to clear it. */
.bp-body h2[id],
.bp-body h3[id] {
    scroll-margin-top: 130px;
}

/* ---- Recent blogs ---- */
.bp-recent {
    padding: var(--section-pad) 24px calc(var(--section-pad) + 10px);
    background: #fffdf8;
    border-top: 1px solid #ece6db;
}

.bp-recent-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: var(--header-gap);
}

.bp-recent-title {
    font-family: "Manrope", sans-serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -1.1px;
    color: var(--black, #171714);
}

/* Three across; the cards themselves are the listing's .bl-card, unchanged. */
.bp-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ---- End CTA ---- */
.bp-end {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ece6db;
}

/* =====================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1000px) {
    .bp-recent-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .bp-article {
        padding-inline: 18px;
    }
    .bp-toc {
        padding: 18px 18px 20px;
    }
    .bp-recent {
        padding-inline: 18px;
    }
    .bp-body > p {
        font-size: 16px;
    }
    .bp-body > p.bp-standfirst {
        font-size: 17.5px;
    }
    .bp-quote {
        padding: 20px;
        font-size: 17px;
    }
}

@media (max-width: 560px) {
    .bp-end .sv-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
    .bp-recent-grid {
        grid-template-columns: 1fr;
    }
    .bp-toc-sub {
        margin-left: 14px;
    }
}
