/* BBM Article Sidebar v1.0.1: single post typography plus sticky sidebar outline (Backlinko style) */

body.single-post .entry-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #1c1c1c;
    max-width: 720px;
}

body.single-post header.entry-header .entry-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
}

body.single-post .entry-content h2 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.6em;
}

body.single-post .entry-content h3 {
    font-size: 22px;
    font-weight: 700;
}

body.single-post .entry-content h2[id] {
    scroll-margin-top: 96px;
}

body.single-post .entry-content figure img,
body.single-post .entry-content img {
    border-radius: 10px;
}

body.single-post .entry-content figcaption {
    font-size: 14px;
    text-align: center;
    color: #667085;
}

body.single-post .entry-content table {
    width: 100%;
    border-collapse: collapse;
}

body.single-post .entry-content th,
body.single-post .entry-content td {
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
}

body.single-post .entry-content th {
    background: #f2f7fb;
}

/* In-content outline boxes from retrofit drafts are hidden: the sidebar outline replaces them */
body.single-post .entry-content .bbm-toc {
    display: none !important;
}

body.single-post .bbm-takeaways {
    background: #f2f7fb;
    border-left: 4px solid #046bd2;
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    margin: 28px 0;
}

body.single-post .bbm-takeaways h2 {
    font-size: 22px;
    margin-top: 0;
}

body.single-post .bbm-cta {
    background: #046bd2;
    color: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 32px 0;
}

body.single-post .bbm-cta h2 {
    color: #fff;
    margin-top: 0;
}

body.single-post .bbm-cta a {
    color: #fff;
    text-decoration: underline;
}

/* Sidebar outline, Backlinko style: teal accents, caps label, arrow bullets */
.bbm-outline {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 22px;
}

.bbm-outline-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0f766e;
    margin: 0 0 14px;
}

.bbm-outline ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bbm-outline li {
    margin: 0 0 10px;
    padding-left: 18px;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
}

.bbm-outline li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #14b8a6;
    font-weight: 700;
}

.bbm-outline li:last-child {
    margin-bottom: 0;
}

.bbm-outline a {
    color: #1c1c1c;
    text-decoration: none;
}

.bbm-outline a:hover {
    color: #0f766e;
}

.bbm-outline a.active {
    color: #0f766e;
    font-weight: 700;
}

@media (min-width: 922px) {
    body.single-post #secondary,
    body.single-post #bbm-outline-sidebar {
        position: sticky;
        top: 96px;
        align-self: start;
    }
    body.single-post .bbm-outline {
        position: sticky;
        top: 96px;
    }
    body.single-post.bbm-fallback-grid #content .ast-container {
        display: grid;
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 48px;
        max-width: 1120px;
        margin-left: auto;
        margin-right: auto;
    }
    body.single-post.bbm-fallback-grid #primary,
    body.single-post.bbm-fallback-grid #secondary {
        width: auto;
        max-width: none;
    }
}

@media (max-width: 921px) {
    body.single-post .entry-content {
        font-size: 17px;
        max-width: none;
    }
    body.single-post header.entry-header .entry-title {
        font-size: 30px;
    }
    body.single-post .entry-content h2 {
        font-size: 24px;
    }
}

html {
    scroll-behavior: smooth;
}
