@media print {

    /* Hide everything except the recipe container */
    body * {
        visibility: hidden !important;
    }

    .container.mt-4,
    .container.mt-4 * {
        visibility: visible !important;
    }

    /* Remove header, footer, nav, buttons */
    header, footer, nav, .btn, a.btn {
        display: none !important;
    }

    /* Expand recipe content to full width */
    .container.mt-4 {
        position: absolute;
        left: 0;
        top: 0;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 20px !important;
    }

    /* KEEP colours */
    body {
        background: white !important;
        color: inherit !important;
    }

    /* KEEP borders — do NOT remove them */
    .recipe-box {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    /* Make the image print cleanly */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}
