@media print {
    .header,
    .sidebar,
    .menu-overlay,
    .menu-toggle,
    .copy-btn,
    .code-expand-btn,
    .code-fade {
        display: none !important;
    }
    body {
        padding-top: 0;
        background: #fff;
        color: #000;
    }
    .content {
        max-width: 100%;
    }
    .highlight {
        background: #f4f4f4;
        border: 1px solid #ddd;
    }
    .highlight .kn,
    .highlight .k,
    .highlight .nc,
    .highlight .nf,
    .highlight .nd {
        color: #000 !important;
    }
    .highlight .s,
    .highlight .sh {
        color: #333 !important;
    }
    .highlight .c1 {
        color: #666 !important;
    }
}