/**
 * Local Print Stylesheet
 *
 * Applied via wp_enqueue_style by the local-modified PrintFriendly plugin.
 * When the user clicks the print button, window.print() opens the browser's
 * print dialog. The user can then choose "Save as PDF" to obtain the PDF.
 * This stylesheet hides theme chrome so the PDF contains only the article
 * content.
 *
 * Tune the selectors at the bottom (Site-specific overrides) to match the
 * actual element class names / IDs used by your theme.
 */

@media print {
    /* PrintFriendly button itself */
    .printfriendly,
    .pf-button,
    .pf-button-content,
    .pf-button-excerpt {
        display: none !important;
    }

    /* WordPress admin bar */
    #wpadminbar {
        display: none !important;
    }

    /* Common WordPress theme chrome */
    header[role="banner"],
    .site-header,
    #masthead,
    #header,
    nav,
    .site-navigation,
    .main-navigation,
    .menu-main-container,
    .menu,
    .global-nav,
    .gnav,
    .header-nav,
    aside,
    .sidebar,
    #sidebar,
    .widget-area,
    .secondary,
    footer[role="contentinfo"],
    .site-footer,
    #colophon,
    #footer,
    .breadcrumbs,
    .breadcrumb,
    .post-navigation,
    .nav-links,
    .comments-area,
    #comments,
    #respond,
    .related-posts,
    .share-buttons,
    .social-share,
    .sns,
    .skip-link,
    .screen-reader-text {
        display: none !important;
    }

    /* Expand the main content area to full width */
    html,
    body,
    #page,
    .site,
    main,
    #main,
    .content-area,
    .site-content,
    .site-main,
    .entry-content,
    article,
    .post,
    .page,
    .container,
    .wrap,
    .wrapper {
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
    }

    /* Make sure images don't bleed off the page */
    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }

    /* Page-break hints */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    table,
    figure,
    pre,
    blockquote {
        page-break-inside: avoid;
    }

    /* Plain link rendering (no URL after text, since modern browsers
       handle that themselves and the duplication looks noisy in PDF) */
    a,
    a:visited {
        color: #000 !important;
        text-decoration: underline;
    }
    a[href]:after {
        content: "";
    }

    /* Hide form controls that have no meaning in print */
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    button {
        display: none !important;
    }

    /* ---------------------------------------------------------------
     * Site-specific overrides for e-souzokutouki.com
     * ---------------------------------------------------------------
     * If the print/PDF output still contains unwanted elements
     * (e.g., a custom header, a fixed banner, a chatbot widget),
     * inspect the page with DevTools, copy the class/id of that
     * element, and add it here as `.your-class { display: none !important; }`.
     * --------------------------------------------------------------- */

    /* Example placeholders — uncomment and adjust as needed:
    .top-banner,
    .global-header,
    .global-footer,
    .floating-cta,
    .chatbot-widget {
        display: none !important;
    }
    */
}
