.bb-home-blog,
.bb-blog-page,
.bb-post-page {
    padding: 80px 0;
}

.bb-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 42px;
}

.bb-section-heading p {
    max-width: 700px;
    margin-bottom: 0;
}

.bb-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.bb-blog-card {
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    height: 100%;
}

.bb-blog-card-image-link {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.bb-blog-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-blog-card-body {
    padding: 28px;
}

.bb-blog-card-body h2,
.bb-blog-card-body h3 {
    margin: 10px 0 14px;
    font-size: 1.45rem;
    line-height: 1.3;
}

.bb-blog-card-body h2 a,
.bb-blog-card-body h3 a,
.bb-brand-link {
    color: inherit;
    text-decoration: none;
}

.bb-blog-card-body h2 a:hover,
.bb-blog-card-body h3 a:hover,
.bb-brand-link:hover {
    text-decoration: underline;
}

.bb-blog-category {
    color: #00407a;
    font-weight: 700;
    font-size: 0.9rem;
}

.bb-blog-meta {
    margin-top: 20px;
    color: #667085;
    font-size: 0.9rem;
}

.bb-brand-card {
    display: flex;
    flex-direction: column;
}

.bb-brand-link-wrap {
    margin-top: auto;
    padding-top: 12px;
    margin-bottom: 0;
}

.bb-brand-link {
    color: #00407a;
    font-weight: 700;
}

.bb-blog-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.bb-blog-header {
    max-width: 820px;
    margin-bottom: 48px;
}

.bb-blog-header h1,
.bb-post-header h1 {
    margin-bottom: 18px;
}

.bb-post-shell {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
}

.bb-post-header {
    margin-bottom: 36px;
}

.bb-post-kicker {
    color: #00407a;
    font-weight: 700;
    margin-bottom: 14px;
}

.bb-post-deck {
    font-size: 1.2rem;
    line-height: 1.65;
    color: #475467;
    max-width: 800px;
}

.bb-post-meta {
    margin-top: 20px;
    color: #667085;
}

.bb-post-figure {
    margin: 0 0 44px;
}

.bb-post-figure img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 16px;
}

.bb-image-credit {
    margin-top: 9px;
    font-size: 0.82rem;
    color: #667085;
}

.bb-image-credit a {
    color: inherit;
}

.bb-article-content {
    font-size: 1.08rem;
    line-height: 1.8;
}

.bb-article-content h2 {
    margin-top: 52px;
    margin-bottom: 18px;
    font-size: 2rem;
    line-height: 1.25;
}

.bb-article-content h3 {
    margin-top: 34px;
    margin-bottom: 14px;
    font-size: 1.4rem;
}

.bb-article-content p,
.bb-article-content ul,
.bb-article-content ol,
.bb-article-content blockquote {
    margin-bottom: 22px;
}

.bb-article-content li + li {
    margin-top: 10px;
}

.bb-article-content blockquote {
    padding: 20px 24px;
    border-left: 4px solid #00407a;
    background: #f7f9fc;
    font-style: italic;
}

.bb-article-content blockquote p:last-child {
    margin-bottom: 0;
}

.bb-article-content a {
    color: #00407a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bb-back-link {
    display: inline-block;
    margin-top: 52px;
    font-weight: 700;
    color: #00407a;
}

@media (max-width: 767px) {
    .bb-home-blog,
    .bb-blog-page,
    .bb-post-page {
        padding: 54px 0;
    }

    .bb-section-heading {
        display: block;
    }

    .bb-section-heading .button {
        margin-top: 20px;
    }

    .bb-blog-shell,
    .bb-post-shell {
        width: min(100% - 28px, 900px);
    }

    .bb-article-content h2 {
        font-size: 1.65rem;
    }
}

/* homepage brands */
.bb-brands-section {
    padding-top: 72px;
    padding-bottom: 72px;
}

/* Webflow removes the normal container gutter at desktop widths, so the
   brands section needs its own centred content width. */
.bb-brands-section > .container {
    width: 88%;
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
}

.bb-brands-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.bb-brands-heading .header-hat-center {
    margin-bottom: 10px;
}

.bb-brands-heading .display-3 {
    margin: 0;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.18;
}

.bb-brands-intro-copy {
    max-width: 680px;
    margin: 14px auto 0;
    color: #526273;
    font-size: 16px;
    line-height: 1.6;
}

.bb-brand-group {
    margin-top: 0;
}

.bb-brand-group--tools {
    margin-top: 48px;
    padding-top: 42px;
    border-top: 1px solid rgba(0, 64, 122, .13);
}

.bb-brand-group-heading {
    max-width: 760px;
    margin: 0 auto 22px;
    text-align: center;
}

.bb-brand-group-heading h3 {
    margin: 0 0 6px;
    color: #12263a;
    font-size: 22px;
    line-height: 1.25;
}

.bb-brand-group-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}

/* Six tracks let three cards sit evenly on the first row, while the final
   two occupy the middle four tracks and remain centred underneath. */
.bb-brand-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.bb-brand-grid > .bb-brand-card {
    grid-column: span 2;
}

.bb-brand-grid > .bb-brand-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.bb-brand-grid > .bb-brand-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.bb-brand-card {
    display: flex;
    min-width: 0;
    height: 100%;
    padding: 20px 15px 18px;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 64, 122, .10);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(32, 55, 79, .08);
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.bb-brand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 23px rgba(32, 55, 79, .12);
    text-decoration: none;
}

.bb-brand-logo-wrap {
    display: flex;
    width: 100%;
    height: 70px;
    margin-bottom: 12px;
    align-items: center;
    justify-content: center;
}

.bb-brand-logo {
    display: block;
    width: auto;
    max-width: 72px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

.bb-brand-name {
    display: block;
    margin: 0;
    color: #12263a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.bb-brand-tagline {
    display: block;
    margin-top: 6px;
    color: #00407a;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
}

.bb-brand-description {
    display: block;
    margin-top: 9px;
    color: #5f6d7c;
    font-size: 12.5px;
    line-height: 1.45;
}

.bb-brand-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.bb-brand-features > span {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 999px;
    background: #e8f1f8;
    color: #00407a;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
}

@media screen and (max-width: 900px) {
    .bb-brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bb-brand-grid > .bb-brand-card,
    .bb-brand-grid > .bb-brand-card:nth-child(4) {
        grid-column: auto;
    }

    .bb-brand-grid > .bb-brand-card:nth-child(5) {
        width: calc(50% - 9px);
        grid-column: 1 / -1;
        justify-self: center;
    }
}

@media screen and (max-width: 767px) {
    .bb-brands-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .bb-brands-section > .container {
        width: calc(100% - 32px);
    }

    .bb-brands-heading {
        margin-bottom: 34px;
    }

    .bb-brand-grid {
        gap: 12px;
    }

    .bb-brand-grid > .bb-brand-card:nth-child(5) {
        width: calc(50% - 6px);
    }

    .bb-brand-group--tools {
        margin-top: 38px;
        padding-top: 34px;
    }
}

@media screen and (max-width: 479px) {
    .bb-brands-section > .container {
        width: calc(100% - 28px);
    }

    .bb-brand-grid {
        grid-template-columns: 1fr;
    }

    .bb-brand-grid > .bb-brand-card:nth-child(5) {
        width: 100%;
        grid-column: auto;
    }

    .bb-brand-card {
        padding-left: 22px;
        padding-right: 22px;
    }
}
