/* ==========================================================================
   AIny Theme — Print Stylesheet
   ========================================================================== */

@media print {
    /* Hide non-essential elements */
    .ainy-header,
    .ainy-footer,
    .ainy-mobile-nav,
    .ainy-nav-toggle,
    .ainy-wa-widget,
    .ainy-social-share,
    .ainy-related-posts,
    .ainy-comments__form-wrap,
    .ainy-pagination,
    .ainy-breadcrumbs,
    .ainy-btn,
    #comments,
    nav,
    aside,
    .screen-reader-text {
        display: none !important;
    }

    /* Basic print styles */
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        font-family: Georgia, serif;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }

    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "";
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

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

    .ainy-article,
    .ainy-page {
        max-width: 100%;
        padding: 0;
    }

    .entry-content img {
        max-width: 80%;
    }

    /* Show URL for all links in content */
    .entry-content a[href]::after {
        content: " (" attr(href) ")";
    }

    table {
        border-collapse: collapse;
    }

    th, td {
        border: 1px solid #ddd;
    }
}
