/* Loaded with media="print" on individual articles only. */
@page { margin: 15mm; }

html {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
}
body.single-post {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.55;
}

/* Site navigation, supplementary columns and article interaction controls. */
body.single-post .jn-chrome,
body.single-post header.header,
body.single-post #top-header,
body.single-post #main-header,
body.single-post #footer,
body.single-post #wpadminbar,
body.single-post .et_pb_extra_column_sidebar,
body.single-post #sidebar,
body.single-post .et_pb_scroll_top,
body.single-post .post-footer,
body.single-post .post-share,
body.single-post .sharedaddy,
body.single-post .jp-relatedposts,
body.single-post .author-box,
body.single-post .related-posts,
body.single-post #comments,
body.single-post .comment-respond,
body.single-post #main-content .et_pb_extra_column_main > article.type-post ~ * {
    display: none !important;
}

/* Remove the screen's sidebar allocation, fixed-header space and card styling. */
/* Include intermediate wrappers: a hidden sidebar can leave its outer grid track reserved. */
body.single-post #page-container :is(div, main, section):has(.et_pb_extra_column_main > article.type-post),
body.single-post #page-container,
body.single-post #et-main-area,
body.single-post #main-content,
body.single-post #main-content > .container,
body.single-post #main-content .et_pb_extra_row,
body.single-post #main-content .et_pb_extra_column_main,
body.single-post #main-content article.type-post,
body.single-post #main-content article.type-post .post-wrap,
body.single-post #main-content article.type-post .post-content,
body.single-post #main-content article.type-post .entry-content {
    display: block !important;
    position: static !important;
    float: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    inline-size: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: none !important;
    flex: none !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    columns: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    overflow: visible !important;
    transform: none !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
}
body.single-post #main-content > .container::before,
body.single-post #main-content .et_pb_extra_row::before { display: none !important; }

/* Divi article sections must flow across pages instead of retaining screen heights. */
body.single-post article.type-post :is(.et_pb_section, .et_pb_row, .et_pb_column) {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
}
body.single-post article.type-post :is(.post-header h1, .entry-title) {
    font-size: 20pt !important;
    line-height: 1.35 !important;
}
body.single-post article.type-post :is(h1, h2, h3, h4) { break-after: avoid; }
body.single-post article.type-post p { orphans: 3; widows: 3; }
body.single-post article.type-post a { color: #000 !important; overflow-wrap: anywhere; }
body.single-post article.type-post img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 220mm !important;
    object-fit: contain;
    break-inside: avoid;
}
body.single-post article.type-post :is(figure, .wp-caption) {
    max-width: 100% !important;
    break-inside: avoid;
}
body.single-post article.type-post :is(iframe, video, audio) { display: none !important; }
