@media print {
    nav, footer {
        display: none;
    }
    
    html { 
        overflow: initial !important;
    }
    
    dt {
        break-after: avoid;
    }
    
    pre code {
        break-inside: avoid;
    }
    
    #main, section {
        float: none;
        width: 100%;
        border: none !important;
    }  
    
    body {
        background-image: none;
        background-color: transparent !important;
    }  
    
    header {
        display: none;
    }
    
    article {
        display: block;  
    }
}