    /* Hide everything except the #print-wrap div */
    #top-bar, #left-sidebar {
        display: none;
    }

    .print-only {
        display: block;
    }

    #print-wrap {
        display: block !important;
        background: white !important;
        color: black !important;
        padding: 20px; /* Add some padding for better readability */
        font-size: 14px; /* Adjust font size for print */
        overflow: visible !important; /* Ensure content is fully visible */
    }

    /* Add page breaks for long content */
    /* Avoid breaking inside individual elements */
    /* #print-wrap > * {
        page-break-inside: avoid; 
    } */

    /* Force page breaks after specific elements if needed */
         /* Start new pages for headings */
    /* h1:not(.print-only), h2, h3 {
        page-break-before: always; 
    } */

    hr {
        page-break-before: always;
    }
    
    /* Ensure links are visible and underlined */
    #print-wrap a {
        color: black !important;
        text-decoration: underline !important;
    }

    /* Remove any unnecessary borders or shadows */
    #print-wrap img {
        max-width: 49%; /* Ensure images fit within the printable area */
        page-break-inside: avoid;
    }

    /* Remove any background images or colors */
    body {
        font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
        background: none !important;
        overflow: visible !important;
        height: auto !important;
    }

    .subject-details {
        span { 
            margin-right: .5rem;
        }
        .code {
            color: #999;
        }
        .focusarea {
            color: #666 !important;
            font-style: italic;
        }
    }