.bd-coded-single {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 20px 64px;
}

.bd-coded-single__header {
    margin-bottom: 28px;
}

.bd-coded-single__header h1 {
    position: relative;
    margin: 0;
    padding-bottom: 16px;
    color: #102944;
    font-size: clamp(1.6rem, 3.4vw, 2.15rem);
    font-weight: 800;
    line-height: 1.45;
}

.bd-coded-single__header h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2a6df6, #1da97c);
}

.bd-coded-single__lead {
    margin: 14px 0 0;
    max-width: 720px;
    color: #5f7593;
    font-size: 1.02rem;
    line-height: 1.9;
}

.bd-coded-single__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.bd-coded-single__meta a {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    background: #eef4ff;
    border: 1px solid #d7e4fb;
    color: #2a6df6;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.bd-coded-single__meta a:hover {
    background: #2a6df6;
    border-color: #2a6df6;
    color: #fff;
}

.bd-coded-single__date {
    color: #8296ad;
    font-size: 0.82rem;
}

.bd-coded-document {
    width: 100%;
}

/* The sandboxed app frame: rounded showcase card so full-bleed author
   backgrounds read as a deliberate framed app, not a broken slab. */
.bd-coded-public-frame {
    width: 100%;
    border: 1px solid #e3eaf3;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 60px -28px rgba(16, 41, 68, 0.35);
    transition: height 0.25s ease;
}

.bd-coded-error {
    background: #fff4f6;
    color: #a61d3f;
    border: 1px solid #f2c7d2;
    border-radius: 12px;
    padding: 14px 16px;
}

/* Related-links nav appended by the SEO engine — unstyled on coded pages
   because the site content styles don't apply inside this template. */
.bd-coded-single .bd-seo-related-links,
.bd-coded-single .bd-seo-cluster-links {
    margin-top: 36px;
    padding: 22px 24px;
    border-radius: 16px;
    background: #f7fafd;
    border: 1px solid #e3eaf3;
}

.bd-coded-single .bd-seo-related-links-kicker {
    margin: 0 0 14px;
    color: #102944;
    font-size: 0.95rem;
    font-weight: 800;
}

.bd-coded-single .bd-seo-related-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bd-coded-single .bd-seo-related-links-list li {
    margin: 0;
}

.bd-coded-single .bd-seo-related-links-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d7e4fb;
    color: #2a6df6;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(16, 41, 68, 0.05);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.bd-coded-single .bd-seo-related-links-list a:hover {
    background: #2a6df6;
    border-color: #2a6df6;
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .bd-coded-single {
        padding: 24px 12px 48px;
    }

    .bd-coded-public-frame {
        border-radius: 14px;
    }

    .bd-coded-single .bd-seo-related-links,
    .bd-coded-single .bd-seo-cluster-links {
        padding: 16px;
    }
}
