/* ==========================================================================
   Blog article — single.php
   Tokens shared with service/hub/pricing: #00426b navy · #dceaf3 tint · #353535 body
   Inter body · Montserrat display · DM Sans H1
   ========================================================================== */

.bp-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
    flex-shrink: 0;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.bp-hero {
    background: #00426b;
    color: #ffffff;
    padding: 96px 0 48px;
}
@media (min-width: 1024px) {
    .bp-hero { padding: 120px 0 64px; }
}

.bp-breadcrumb { font-size: 0.875rem; margin-bottom: 20px; }
.bp-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bp-breadcrumb li,
.bp-breadcrumb a,
.bp-breadcrumb span { color: #ffffff !important; }
.bp-breadcrumb li + li::before { content: "›"; margin-right: 8px; color: #a7cae0 !important; }
.bp-breadcrumb a { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.4) !important; text-decoration-thickness: 1px !important; }
.bp-breadcrumb a:hover { color: #dceaf3 !important; text-decoration-color: rgba(255,255,255,0.8) !important; }
.bp-breadcrumb span[aria-current] { color: rgba(255,255,255,0.75) !important; }

.bp-hero-inner { max-width: 880px; margin-top: 18px; }

.bp-cat-pill {
    display: inline-block;
    font-family: Inter, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 7px 12px;
    border-radius: 99px;
    background: #dceaf3;
    color: #00426b !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none !important;
    margin-bottom: 14px;
}
.bp-cat-pill:hover { background: #ffffff; }

.bp-hero-title {
    font-family: "DM Sans", Montserrat, system-ui, sans-serif !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    font-size: clamp(2rem, 4.4vw, 3.1rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
    margin: 0 !important;
}
.bp-hero-dek {
    color: #dceaf3;
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 60ch;
    margin-top: 14px;
}

.bp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #dceaf3;
}
.bp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.bp-meta-item .bp-icon {
    width: 16px;
    height: 16px;
    color: #a7cae0;
}

/* ── Override vendor overflow-x: hidden that breaks position: sticky ────── */
/* overflow-x: hidden on body/.page-wrapper (theme-style.css) kills sticky  */
/* in all descendants. "clip" prevents horizontal scrollbars without that.  */
.single-post body,
.single-post .page-wrapper,
.single-post #page.hfeed.site { overflow-x: clip !important; }
.single-post html,
.single-post body { overflow: visible !important; }
.single-post body { overflow-x: clip !important; }

/* ── Layout wrapper (TOC + article) ──────────────────────────────────────── */
.bp-wrap {
    display: grid;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 48px;
}
@media (min-width: 1024px) {
    .bp-wrap {
        grid-template-columns: 260px minmax(0, 760px);
        justify-content: center;
        gap: 64px;
        padding-top: 64px;
        padding-bottom: 72px;
    }
}

/* TOC — hidden on mobile, sticky sidebar on desktop */
.bp-toc-col { display: none; }
@media (min-width: 1024px) {
    .bp-toc-col {
        display: block;
        position: sticky;
        top: 180px;
        align-self: start;
        height: max-content;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }
    .bp-toc-col > * + * { margin-top: 20px; }
}
.bp-toc-h {
    font-family: Montserrat, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #00426b;
    margin: 0 0 10px;
}
.bp-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
}
.bp-toc a {
    display: block;
    padding: 8px 0 8px 14px;
    border-left: 2px solid #dcdcdc;
    color: #4d4d4d !important;
    text-decoration: none !important;
    font-size: 0.92rem;
    line-height: 1.4;
}
.bp-toc a:hover { color: #00426b !important; }
.bp-toc a.active {
    border-left-color: #00426b;
    color: #00426b !important;
    font-weight: 600;
}

.bp-side-cta {
    background: #00426b;
    color: #ffffff;
    border-radius: 20px;
    padding: 22px;
    display: grid;
    gap: 10px;
}
.bp-side-cta-h {
    font-family: Montserrat, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
}
.bp-side-cta p { color: #ffffff; margin: 0; font-size: 0.95rem; line-height: 1.5; }

/* ── Article body ────────────────────────────────────────────────────────── */
.bp-article {
    display: grid;
    gap: 24px;
    min-width: 0;
}

/* Hero image above article */
.bp-hero-img {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #dceaf3;
    aspect-ratio: 16 / 9;
}
.bp-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Key takeaways card */
.bp-tk {
    background: #dceaf3;
    border-radius: 20px;
    padding: 24px 22px;
}
@media (min-width: 768px) {
    .bp-tk { padding: 28px 32px; }
}
.bp-tk-h {
    font-family: Montserrat, sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #00426b !important;
    letter-spacing: -0.01em !important;
    margin: 0 !important;
}
.bp-tk ul {
    margin: 14px 0 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
}
.bp-tk li { color: #353535; line-height: 1.55; }
.bp-tk li::marker { color: #00426b; }

/* ── Gutenberg content styling (the body the editor writes) ──────────────── */
.bp-content {
    font-family: Inter, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #353535;
}
.bp-content > *:first-child { margin-top: 0; }
.bp-content > *:last-child  { margin-bottom: 0; }

.single-post .bp-article .bp-content h2,
body.single-post .bp-article .bp-content h2 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: clamp(1.5rem, 2.4vw, 1.9rem) !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #00426b !important;
    margin: 48px 0 16px !important;
    scroll-margin-top: 180px;
}
/* Strip the extra weight from <strong> inside headings — pasted content */
/* from Google Docs often wraps H2/H3 text in <strong>, which renders    */
/* bolder than the heading itself.                                       */
.bp-content h2 strong,
.bp-content h3 strong,
.bp-content h4 strong { font-weight: inherit; }
.bp-content h3 {
    font-family: Inter, sans-serif !important;
    font-size: 1.2rem !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #00426b !important;
    margin: 32px 0 10px !important;
}
.bp-content h4 {
    font-family: Inter, sans-serif !important;
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #002a45 !important;
    margin: 24px 0 8px !important;
}

.bp-content p { margin: 0 0 18px; }
.bp-content p:last-child { margin-bottom: 0; }

/* First paragraph after H1 as lede */
.bp-content > p:first-of-type { font-size: 1.15rem; line-height: 1.7; color: #353535; }

/* Lists */
.bp-content ul,
.bp-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
    display: grid;
    gap: 10px;
}
.bp-content ul li::marker { color: #00426b; }
.bp-content ol li::marker { color: #00426b; font-weight: 700; }
.bp-content li { line-height: 1.65; }
.bp-content li > ul,
.bp-content li > ol { margin-top: 8px; margin-bottom: 0; }

/* Inline links */
.bp-content a {
    color: #00426b;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #a7cae0;
    text-decoration-thickness: 2px;
}
.bp-content a:hover,
.bp-content a:focus {
    color: #002a45;
    text-decoration-color: #00426b;
}

/* Images / figures */
.bp-content figure,
.bp-content .wp-block-image {
    margin: 24px 0;
    border-radius: 16px;
    overflow: hidden;
}
.bp-content figure img,
.bp-content .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}
.bp-content figcaption {
    margin-top: 10px;
    padding: 0 4px;
    font-size: 0.85rem;
    color: #4d4d4d;
    line-height: 1.5;
    text-align: center;
}

/* Blockquote */
.bp-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 4px solid #00426b;
    background: #f3f8fb;
    border-radius: 8px;
    font-style: italic;
    color: #353535;
}
.bp-content blockquote p { margin: 0; }

/* Tables (the briefs lean heavily on these) */
.bp-content .wp-block-table,
.bp-content figure.wp-block-table {
    margin: 24px 0;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}
.bp-content table,
.bp-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #ffffff;
    margin: 0;
}
.bp-content table:not(.wp-block-table table) {
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    overflow: hidden;
    margin: 24px 0;
}
.bp-content thead th {
    background: #00426b;
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 14px 18px;
    border: 1px solid #00426b;
    border-bottom: 1px solid #dcdcdc;
}
.bp-content thead th + th { border-left: 1px solid rgba(255,255,255,0.15); }
.bp-content tbody th,
.bp-content tbody td {
    text-align: left;
    padding: 14px 18px;
    border: 1px solid #dcdcdc;
    vertical-align: top;
    line-height: 1.55;
}
.bp-content tbody th { font-weight: 600; color: #00426b; background: #f3f8fb; }
.bp-content tbody tr:nth-child(even) td { background: #f7fafc; }

/* Code blocks */
.bp-content code {
    background: #f3f8fb;
    color: #002a45;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.bp-content pre {
    background: #002a45;
    color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 0.9rem;
}
.bp-content pre code { background: transparent; color: inherit; padding: 0; }

/* Inline CTA block */
.bp-inline-cta {
    display: grid;
    gap: 16px;
    align-items: center;
    background: #dceaf3;
    border-radius: 20px;
    padding: 24px;
    margin: 8px 0;
}
@media (min-width: 640px) {
    .bp-inline-cta { grid-template-columns: 1fr auto; }
}
.bp-inline-cta-h {
    font-family: Montserrat, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #00426b;
    margin: 0 0 6px;
}
.bp-inline-cta p { color: #353535; margin: 0; font-size: 1rem; line-height: 1.55; }

/* FAQ section — reuses sp-faq-* markup for parity */
.bp-faq-section { margin-top: 24px; }
.bp-faq-heading {
    font-family: Montserrat, sans-serif !important;
    font-size: clamp(1.5rem, 2.4vw, 1.9rem) !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #00426b !important;
    margin: 0 0 20px !important;
    scroll-margin-top: 180px;
}
.sp-faq-list { display: grid; gap: 12px; }
.sp-faq-item {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}
.sp-faq-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 22px;
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    color: #00426b;
    text-align: left;
}
.sp-faq-btn:hover { color: #002a45; }
.sp-faq-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #00426b;
    transition: transform 0.2s;
}
.sp-faq-answer {
    padding: 12px 22px 20px;
    font-family: Inter, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #4d4d4d;
}
.sp-faq-answer[hidden] { display: none; }
.sp-faq-answer p { margin: 0 0 10px; }
.sp-faq-answer p:last-child { margin-bottom: 0; }
.sp-faq-answer a {
    color: #00426b;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #a7cae0;
}

/* References */
.bp-refs {
    margin-top: 32px;
    padding: 24px 0 0;
    border-top: 1px solid #dcdcdc;
    font-size: 0.92rem;
    color: #4d4d4d;
}
.bp-refs h2 {
    font-family: Montserrat, sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #00426b !important;
    letter-spacing: 0 !important;
    margin: 0 0 10px !important;
}
.bp-refs ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.bp-refs li { line-height: 1.55; }
.bp-refs a { color: #00426b; text-decoration: underline; text-underline-offset: 3px; }

/* Author bio */
.bp-author {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    border: 1px solid #dcdcdc;
    border-radius: 20px;
    padding: 22px;
    margin-top: 32px;
    font-size: 0.98rem;
    background: #ffffff;
}
.bp-author-avatar-wrap {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 99px;
    overflow: hidden;
    background: #dceaf3;
}
.bp-author-avatar { width: 100%; height: 100%; display: block; }
.bp-author-body { min-width: 0; }
.bp-author-name {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #00426b;
    margin: 0 0 2px;
}
.bp-author-role {
    font-size: 0.85rem;
    color: #4d4d4d;
    margin: 0 0 10px;
}
.bp-author-body p:last-child { margin: 0; color: #353535; line-height: 1.6; }
.bp-author-body a { color: #00426b; text-decoration: underline; text-underline-offset: 3px; }

/* ── Related guides ──────────────────────────────────────────────────────── */
.bp-related {
    background: #dceaf3;
    padding: 56px 0;
}
@media (min-width: 1024px) {
    .bp-related { padding: 80px 0; }
}
.bp-related-head {
    margin-bottom: 32px;
    max-width: 760px;
}
.bp-related-head h2 {
    font-family: Montserrat, sans-serif !important;
    font-size: clamp(1.75rem, 2.8vw, 2.25rem) !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    color: #00426b !important;
    margin: 0 !important;
}
.bp-related-grid {
    display: grid;
    gap: 24px;
}
@media (min-width: 640px) {
    .bp-related-grid { grid-template-columns: repeat(3, 1fr); }
}
.bp-related-card {
    display: grid;
    gap: 14px;
    text-decoration: none !important;
    color: inherit;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 20px;
    padding: 14px 14px 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    align-content: start;
    transition: border-color 0.15s;
}
.bp-related-card:hover { border-color: #00426b; }
.bp-related-img {
    border-radius: 14px;
    overflow: hidden;
    background: #dceaf3;
    aspect-ratio: 5 / 3;
}
.bp-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bp-related-img-ph { width: 100%; height: 100%; background: #dceaf3; }
.bp-related-card h3 {
    font-family: Montserrat, sans-serif !important;
    font-size: 1.1rem !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: #00426b !important;
    margin: 0 !important;
    padding: 0 6px;
}
.bp-cat {
    display: inline-block;
    font-family: Inter, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 99px;
    background: #dceaf3;
    color: #00426b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    justify-self: start;
    width: fit-content;
    margin: 0 6px;
}

/* ── Final CTA ───────────────────────────────────────────────────────────── */
.bp-final { padding: 0 0 72px; }
@media (min-width: 1024px) {
    .bp-final { padding: 0 0 100px; }
}
.bp-final-inner {
    background: #00426b;
    color: #ffffff;
    border-radius: 24px;
    padding: 28px;
    display: grid;
    gap: 28px;
    align-items: center;
    margin-top: 72px;
}
@media (min-width: 960px) {
    .bp-final-inner { grid-template-columns: 1fr auto; padding: 48px 56px; gap: 48px; }
}
.bp-final-prose h2 {
    font-family: Montserrat, sans-serif !important;
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #ffffff !important;
    margin: 0 0 10px !important;
}
.bp-final-prose p { color: #ffffff; margin: 0; font-size: 1rem; line-height: 1.6; }
.bp-final-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.bp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 12px;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none !important;
    border: 1.5px solid #ffffff;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.bp-btn-primary,
a.bp-btn-primary       { background: #00426b !important; color: #ffffff !important; border-color: #00426b !important; }
.bp-btn-primary:hover,
a.bp-btn-primary:hover { background: #002a45 !important; color: #ffffff !important; }

.bp-btn-light,
a.bp-btn-light         { background: #ffffff !important; color: #00426b !important; border-color: #ffffff !important; }
.bp-btn-light:hover,
a.bp-btn-light:hover   { background: #dceaf3 !important; color: #00426b !important; }

.bp-btn-ghost,
a.bp-btn-ghost         { background: transparent !important; color: #ffffff !important; border-color: #ffffff !important; }
.bp-btn-ghost:hover,
a.bp-btn-ghost:hover   { background: rgba(255,255,255,0.12) !important; color: #ffffff !important; }
