/**
 * Print styles for FreedomQuest theme
 *
 * This file contains styles that are applied when printing the website.
 */

@media print {
    /* Hide unnecessary elements when printing */
    header,
    footer,
    .wp-block-navigation,
    .wp-block-social-links,
    .wp-block-button,
    .wp-block-search,
    .wp-block-post-comments,
    .wp-block-post-navigation-link,
    .wp-block-query-pagination {
        display: none !important;
    }

    /* Basic print styling */
    body {
        font-family: serif;
        font-size: 12pt;
        line-height: 1.5;
        background: #fff !important;
        color: #000 !important;
    }

    /* Ensure content is not cut off */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    img, table, figure {
        page-break-inside: avoid;
        max-width: 100% !important;
    }

    p, blockquote, ul, ol, dl {
        orphans: 3;
        widows: 3;
    }

    /* Show URLs after links */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 90%;
        color: #333;
    }

    /* Don't show URLs for internal links */
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    /* Improve table printing */
    table {
        border-collapse: collapse !important;
    }

    table td,
    table th {
        background-color: #fff !important;
        border: 1px solid #ddd !important;
    }
}
