/* Seule la mention nominative est masquée à l’écran. */
.lci-article-print-recipient {
    display: none;
}

@media print {
    /* Les aperçus WordPress deviennent des liens lisibles sur papier. */
    body.single-post iframe.wp-embedded-content {
        display: none !important;
    }

    body.single-post blockquote.wp-embedded-content {
        display: block !important;
        margin: 0.75em 0 !important;
        padding: 0 !important;
        border: 0 !important;
        font-size: inherit !important;
    }

    body.single-post blockquote.wp-embedded-content a::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        overflow-wrap: anywhere;
    }

    body.single-post .wp-block-embed__wrapper:has(iframe.wp-embedded-content),
    body.single-post .wp-block-embed:has(iframe.wp-embedded-content) {
        height: auto !important;
        min-height: 0 !important;
    }

    body.single-post .wp-block-embed__wrapper:has(iframe.wp-embedded-content)::before {
        display: none !important;
        padding: 0 !important;
    }

    /* Le lecteur et son conteneur proportionnel ne peuvent pas être imprimés. */
    body.single-post .wp-block-embed-youtube .wp-block-embed__wrapper,
    body.single-post iframe[src*="youtube.com/embed/"],
    body.single-post iframe[src*="youtube-nocookie.com/embed/"],
    body.single-post .wp-block-embed-youtube:not(:has(figcaption)) {
        display: none !important;
    }

    /* Une éventuelle légende reste lisible, sans l’espace réservé à la vidéo. */
    body.single-post .wp-block-embed-youtube {
        height: auto !important;
        min-height: 0 !important;
        margin-block: 0 !important;
    }

    body.single-post .yarpp-related,
    body.single-post .wp-block-post-comments-form,
    body.single-post #respond,
    body.single-post .wp-block-comment-reply-link,
    body.single-post .wp-block-comment-edit-link,
    body.single-post .comment-reply-link,
    body.single-post .comment-edit-link,
    body.single-post .pmpro_login-widget,
    body.single-post .widget_pmpro_member_login,
    body.single-post #pmpro_login,
    body.single-post #wpadminbar,
    body.single-post header.wp-block-template-part .wp-block-navigation,
    body.single-post header.wp-block-template-part .wp-block-search,
    body.single-post header.wp-block-template-part .lci-search-navigation,
    body.single-post header.wp-block-template-part .wp-block-social-links,
    body.single-post footer.wp-block-template-part .wp-block-navigation,
    body.single-post footer.wp-block-template-part .wp-block-social-links {
        display: none !important;
    }

    /* Conserve les signatures et logos existants sans une page de garde finale. */
    body.single-post header.wp-block-template-part,
    body.single-post footer.wp-block-template-part {
        height: auto !important;
        min-height: 0 !important;
        margin-block: 0 !important;
        padding-block: 4mm !important;
        break-inside: avoid;
    }

    body.single-post header.wp-block-template-part .wp-block-group,
    body.single-post footer.wp-block-template-part .wp-block-group {
        height: auto !important;
        min-height: 0 !important;
        padding-block: 0 !important;
        margin-block: 0 !important;
    }

    body.single-post header.wp-block-template-part .wp-block-spacer,
    body.single-post footer.wp-block-template-part .wp-block-spacer {
        display: none !important;
    }

    body.single-post footer.wp-block-template-part {
        break-before: auto;
        color: #111 !important;
        background: #fff !important;
    }

    body.single-post footer.wp-block-template-part .wp-block-group {
        color: #111 !important;
        background: #fff !important;
    }

    body.single-post .lci-article-print-recipient {
        display: block !important;
        margin: 3mm 0;
        font-size: 10pt;
        text-align: center;
        break-inside: avoid;
    }
}
