/* CKB-WEB-V1-R1-D-P5-R2-R2: article-specific reading and mixed-media closure.
 * No changes to News cards, Events, Courses or Gutenberg editor state.
 * Keep the first authored body block (video in the sampled story) first.
 */
body.ckb-wp-shell[data-page="article"] .ckb-article-detail .article-detail > header.section-shell-target h1 {
    font-size: clamp(34px, 3.8vw, 54px);
    line-height: 1.13;
    letter-spacing: -.026em;
    font-weight: 600;
    overflow-wrap: break-word;
    text-wrap: balance;
}
body.ckb-wp-shell[data-page="article"] .ckb-article-detail .article-detail > header.section-shell-target {
    padding-top: clamp(28px, 3.6vw, 54px);
    padding-bottom: clamp(24px, 3vw, 38px);
}
/* The general Article rule `iframe { height:auto }` is appropriate for
 * ordinary embeds but collapses a click-loaded YouTube frame to ~150px.
 * Absolutely fill the aspect-ratio card after explicit user interaction.
 */
body.ckb-wp-shell[data-page="article"] .ckb-article-detail .article-body .ckb-p5r2-video {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    min-width: 0;
    height: auto;
}
body.ckb-wp-shell[data-page="article"] .ckb-article-detail .article-body .ckb-p5r2-video iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-width: none;
    border: 0;
}
@media (max-width: 860px) {
    body.ckb-wp-shell[data-page="article"] .ckb-article-detail .article-detail > header.section-shell-target h1 {
        font-size: clamp(28px, 7.2vw, 36px);
        line-height: 1.17;
        letter-spacing: -.02em;
        text-wrap: pretty;
    }
    body.ckb-wp-shell[data-page="article"] .ckb-article-detail .article-detail > header.section-shell-target {
        padding-top: 30px !important;
        padding-bottom: 28px;
    }
}
@media (max-width: 480px) {
    body.ckb-wp-shell[data-page="article"] .ckb-article-detail .article-body .ckb-p5r2-video {
        margin: 16px auto;
    }
}
