/* Liturgy Alive - Print Stylesheet */

/* This file is loaded only when the user prints the page. */

@media print {

    /* Hide theme elements that are not needed for printing */
    body.admin-bar,
    #wpadminbar,
    header,
    footer,
    nav,
    aside,
    .sidebar,
    #comments,
    .comment-form,
    .post-navigation,
    .la-footer /* Hide the social share buttons */ {
        display: none !important;
    }

    /* Reset body and main content styles for better printing */
    body, html {
        background-color: #fff !important;
        color: #000 !important;
        font-size: 12pt; /* A standard font size for printed documents */
        line-height: 1.4;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Ensure the main content takes up the full width */
    .la-container,
    .la-entry,
    #primary,
    #main,
    article {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Style links to show the URL after them (optional but helpful) */
    a[href]:after {
        /* content: " (" attr(href) ")"; */ /* Uncomment this line if you want to show URLs */
        content: "" !important; /* This line prevents URLs from showing */
    }
    
    /* Ensure links are a readable color */
    a, a:visited {
        color: #555 !important;
        text-decoration: underline;
    }

    /* Prevent page breaks inside important sections */
    .la-section,
    .bible-passage-shortcode {
        page-break-inside: avoid;
    }

    /* Make headings stand out clearly */
    h1, h2, h3 {
        page-break-after: avoid;
    }

    /* Style the cycle info box for print */
    .la-cycle-info {
        border: 1px solid #ccc;
        color: #000 !important; /* Force black text for readability */
        background-color: #f9f9f9 !important; /* Light grey background */
    }
}
