/*
 * print-cv.css — Print styles for the CV page
 *
 * What it does:
 *   Optimises the CV page for printing / PDF export. Sets A4 page size,
 *   hides header/footer/navigation, resets colours to black-on-white,
 *   prevents page breaks inside sections, and appends URLs to links.
 *
 * Used by: cv.html
 *
 * Dependencies: None
 */

@media print {
    @page {
        margin: 1cm;
        size: A4;
    }

    body {
        background: white !important;
        color: black !important;
    }

    header,
    .no-print {
        display: none !important;
    }

    .print-container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .cv-section {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .cv-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 20px !important;
        margin-top: 16px !important;
    }

    h3 {
        font-size: 16px !important;
    }

    p,
    li {
        font-size: 12px !important;
    }

    .bg-light-card,
    .dark\:bg-dark-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    a {
        color: black !important;
        text-decoration: none !important;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10px;
    }
}
