/*
 Theme Name:   FMM-2026
 Theme URI:    https://generatepress.com
 Description:  2026 Child theme for Flaherty Machine & Manufacturing LLC. Add features list:
 Author:       Jason Berardi
 Author URI:   https://flahertymachine.com
 Template:     generatepress
 Version:      1.2
 Text Domain: generatepress-child
*/

/* =========================================================
   FMM Design System Tokens (Light default)
   Put data-gcm-theme on <html> or :root (preferred: <html>)
   ========================================================= */

/* =========================================================
   PRINT STYLES
   ========================================================= */
@media print {
    /* 1. Hide the sharing bar and any other non-essential UI */
    .news-share-bar,
    .site-header,
    .gcm-header,
    .site-footer,
    .sidebar,
    .comments-area,
    .ad-slot,
    .ad-container,
    .gcmad-container,
    .news-toc-accordion,
    #aje_gcm_billboard,
    .nav-links,
    .gcm-btt,
     #gcm-floating-video,
     .gcm-floating-ad,
     #aje_gcm_adhesion,
     #aje_gcm_mobile_adhesion,
     #video-lightbox,
     #right-sidebar,
     .video-js-wrapper,
     #gcm_nui_video_config,
     .gcm-sidebar,
     .related-posts-section,
     .GCM-20-BASE,
     .gcm-wallpaper,
     .inside-right-sidebar,
     #gcm-scroll-sentinel,
     .gcm-related-carousel,
     .gcm-multimedia-related {
        display: none !important;
    }

    /* 2. Ensure the main content takes up the full width */
    .site-content,
    .entry-content,
    article {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 3. Improve readability for paper */
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
    }

    /* 4. Force links to show their URL next to the text (optional but helpful) */
    .entry-content a:after {
        content: " (" attr(href) ")";
        font-size: 90%;
        color: #333;
    }
}

@media print {
    /* Hide the sharing bar and PDF button in the final PDF */
    .news-share-bar, .ad-slot, .nav-links, .comment-respond {
        display: none !important;
    }

    /* Force background colors/images to show in PDF (Optional) */
    body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Add a small "Source" link at the bottom of the PDF */
    article:after {
        content: "Source: " attr(data-url);
        display: block;
        font-size: 10pt;
        margin-top: 20px;
        color: #666;
    }
}


/* --- Hide the print header on the screen --- */
.gcm-print-header {
    display: none;
}

/* --- Print Stylesheet Logic --- */
@media print {
    /* 1. Show the logo at the top of the page */
    .gcm-print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 30px;
        border-bottom: 2px solid #333;
        padding-bottom: 20px;
    }

    .gcm-print-header img {
        max-width: 250px; /* Adjust based on your logo shape */
        height: auto;
    }

    /* 2. Hide things that shouldn't be on paper */
    .gcm-meta-social-share, 
    .gcm_cp-ad-container, 
    .gcm-sidebar, 
    .news-share-bar,
    #gcm-back-to-top,
    header.site-header, 
    footer.site-footer {
        display: none !important;
    }

    .gcm_cp-ad-container.parallax-injection {
        display: block !important;
    }

    /* 3. Optimize text for paper (Core Web Vitals for Print) */
    body {
        font-family: serif; /* Serifs are easier to read on physical paper */
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .gcm-single-wrapper {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}


