.mld-recipe-template .mld-print-recipe:focus-visible {
    outline: 3px solid #075592;
    outline-offset: 4px;
}

@media print {
    @page {
        margin: 15mm;
    }

    html:has(body.mld-recipe-post) {
        margin-top: 0 !important;
    }

    body.mld-recipe-post {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt;
        line-height: 1.45;
    }

    .mld-recipe-post #top-header,
    .mld-recipe-post #main-header,
    .mld-recipe-post #main-footer,
    .mld-recipe-post .et-l--header,
    .mld-recipe-post .et-l--footer,
    .mld-recipe-post #wpadminbar,
    .mld-recipe-post .cookie-policy,
    .mld-recipe-post .et_bloom_optin,
    .mld-recipe-post .wpautoterms-footer,
    .mld-recipe-post .et_pb_scroll_top,
    .mld-recipe-post .mld-print-recipe {
        display: none !important;
    }

    .mld-recipe-post #page-container,
    .mld-recipe-post #et-main-area,
    .mld-recipe-post #main-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
        overflow: visible !important;
    }

    .mld-recipe-post .mld-recipe-template,
    .mld-recipe-post .mld-recipe-template * {
        color: #000 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .mld-recipe-post .mld-recipe-template,
    .mld-recipe-post .mld-recipe-template .et_pb_section,
    .mld-recipe-post .mld-recipe-template .et_pb_row,
    .mld-recipe-post .mld-recipe-template .et_pb_column,
    .mld-recipe-post .mld-recipe-template .et_pb_post_content {
        /* 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;
        overflow: visible !important;
    }

    /* Keep this recipe row in two columns, including at print's narrow width. */
    .mld-recipe-post .mld-recipe-template .et_pb_row:has(> #column-recipe-image):has(> #column-recipe-ingredients) {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-start;
        column-gap: 6mm;
        width: 100% !important;
    }

    /* Divi's clearfix must not become an extra flex item. */
    .mld-recipe-post .mld-recipe-template .et_pb_row:has(> #column-recipe-image):has(> #column-recipe-ingredients)::after {
        display: none !important;
    }

    .mld-recipe-post .mld-recipe-template #column-recipe-image {
        flex: 0 0 40%;
        width: 40% !important;
        min-width: 0;

        img {
            width: 100%;
        }
    }

    .mld-recipe-post .mld-recipe-template #column-recipe-ingredients {
        flex: 1 1 0;
        width: auto !important;
        min-width: 0;
    }


    .mld-recipe-post .mld-recipe-template .et_pb_button_module_wrapper {
        display: none !important;
    }

    .mld-recipe-post .mld-recipe-template .et_pb_text,
    .mld-recipe-post .mld-recipe-template li,
    .mld-recipe-post .mld-recipe-template p {
        font-size: 11pt !important;
        line-height: 1.45 !important;
    }

    .mld-recipe-post .mld-recipe-template h1 {
        font-size: 22pt !important;
    }

    .mld-recipe-post .mld-recipe-template h2 {
        font-size: 16pt !important;
        margin-top: 14pt;
    }

    .mld-recipe-post .mld-recipe-template h1,
    .mld-recipe-post .mld-recipe-template h2,
    .mld-recipe-post .mld-recipe-template h3 {
        break-after: avoid;
    }

    .mld-recipe-post .mld-recipe-template li {
        break-inside: avoid;
        orphans: 3;
        widows: 3;
    }

    .mld-recipe-post .directions .et_pb_text_inner {
        column-count: 2;
        column-gap: 6mm;
        column-fill: balance;
    }

    .mld-recipe-post .directions ol>li {
        margin-bottom: 8pt;
    }

    /* Keep the Directions heading above both columns. */
    .mld-recipe-post .directions h2 {
        column-span: all;
    }

    /* Keep each subheading with the following content. */
    .mld-recipe-post .directions .directions-subhead {
        break-after: avoid;
    }

    .mld-recipe-post .mld-recipe-template .et_pb_image {
        margin: 10pt 0 !important;
        text-align: left;
    }

    .mld-recipe-post .mld-recipe-template a {
        text-decoration: none !important;
    }
}