/**
 * Print Stylesheet — The Anderson Chronicles
 *
 * Optimized for clean article printing.
 */

@media print {
    /* Hide non-essential elements */
    header,
    footer,
    nav,
    aside,
    #ac-cookie-consent,
    #ac-mobile-drawer,
    .ac-skip-link,
    .ac-paywall-overlay,
    .ac-social-share,
    .ac-ad-zone,
    .ac-breaking-banner,
    .animate-pulse,
    .comment-respond,
    .comment-navigation,
    [style*="ac-cookie-consent"],
    button,
    form {
        display: none !important;
    }

    /* Reset backgrounds and colors */
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
        line-height: 1.5;
        margin: 0;
        padding: 0;
    }

    /* Full width layout */
    main {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0.5in !important;
    }

    article {
        display: block !important;
        max-width: 100% !important;
    }

    /* Grid reset for single column */
    .grid {
        display: block !important;
    }

    .lg\:col-span-8,
    .lg\:col-span-4 {
        width: 100% !important;
    }

    /* Typography */
    h1 {
        font-size: 24pt !important;
        line-height: 1.1 !important;
        margin-bottom: 8pt !important;
    }

    h2 {
        font-size: 18pt !important;
        margin-top: 16pt !important;
    }

    h3 {
        font-size: 14pt !important;
    }

    p {
        font-size: 11pt !important;
        line-height: 1.6 !important;
        orphans: 3;
        widows: 3;
    }

    /* Masthead for print */
    body::before {
        content: "The Anderson Chronicles";
        display: block;
        font-family: serif;
        font-size: 18pt;
        font-weight: 900;
        text-align: center;
        padding-bottom: 8pt;
        margin-bottom: 12pt;
        border-bottom: 2pt solid #000;
    }

    /* Links — show URL */
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
        word-break: break-all;
    }

    /* Don't show URL for internal nav links */
    nav a::after,
    .comment-reply-link::after {
        content: none !important;
    }

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

    figure {
        page-break-inside: avoid;
        margin: 12pt 0 !important;
    }

    figcaption {
        font-size: 9pt !important;
        font-style: italic;
    }

    /* Blockquotes */
    blockquote {
        border-left: 2pt solid #000 !important;
        padding-left: 12pt !important;
        font-style: italic;
        page-break-inside: avoid;
    }

    /* Page breaks */
    h1, h2, h3 {
        page-break-after: avoid;
    }

    /* Footer info */
    body::after {
        content: "Printed from andersonchronicles.local";
        display: block;
        font-size: 8pt;
        color: #999;
        text-align: center;
        margin-top: 24pt;
        padding-top: 8pt;
        border-top: 1pt solid #ccc;
    }
}
