/* Public templates only. Screen presentation is unaffected by this print sheet. */
@page {
    size: A4 portrait;
    margin: 18mm;
}

@media print {
    html,
    html body,
    html body .container,
    html body .container-fluid,
    html body .pblc-wrap {
        min-width: 0 !important;
        width: auto !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    html body {
        font-family: Arial, sans-serif !important;
        font-size: 11pt !important;
        line-height: 1.45 !important;
        color: #000 !important;
        background: #fff !important;
    }

    html body #wrapper,
    html body #page-content-wrapper {
        position: static !important;
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        transform: none !important;
    }

    html body .pblc-header,
    html body header[data-block-id="header"],
    html body .pblc-footer,
    html body [data-ppt-blocktype="footer"] {
        position: static !important;
        color: #000 !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    html body .pblc-header-inner,
    html body .pblc-hero-grid,
    html body .pblc-listing-grid,
    html body .pblc-footer-grid,
    html body .pblc-values,
    html body .row {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    html body .row > [class*="col-"] {
        flex: none !important;
        width: auto !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #wpadminbar,
    #pblc-navigation,
    .pblc-menu-toggle,
    .pblc-header-actions,
    .pblc-search,
    .pblc-hero-art,
    .pblc-floating,
    .pblc-stamp,
    .pblc-card-bottom,
    .pblc-footer nav,
    header[data-block-id="header"] .menu-toggle,
    header[data-block-id="header"] .sellspace-live,
    .elementor_submenu,
    #sidebar-wrapper,
    #pblc-seo-directory nav,
    #pblc-seo-directory > div > details,
    [data-ppt-blocktype="footer"] .links-vertical,
    [data-ppt-blocktype="footer"] [data-ppt-footer-menutitle1],
    [data-ppt-blocktype="footer"] [data-ppt-footer-menutitle2],
    button,
    input[type="submit"],
    input[type="reset"] {
        display: none !important;
    }

    html body h1,
    html body h2,
    html body h3,
    html body h4,
    html body h5,
    html body h6 {
        break-after: avoid;
        page-break-after: avoid;
        color: #000 !important;
        text-shadow: none !important;
    }

    html body p,
    html body li,
    html body dt,
    html body dd,
    html body label,
    html body summary,
    html body .pblc-brand,
    html body .textlogo,
    html body [data-ppt-blocktype="footer"] * {
        color: #000 !important;
        background: transparent !important;
        text-shadow: none !important;
        orphans: 3;
        widows: 3;
    }

    html body h1 { font-size: 24pt !important; }
    html body h2 { font-size: 18pt !important; }
    html body h3 { font-size: 14pt !important; }

    html body a {
        color: #000 !important;
        text-decoration: underline !important;
        overflow-wrap: anywhere;
    }

    /* Bootstrap appends every href, including account/nonces. Only append the
       public external destinations prepared by the scoped print handler. */
    html body a[href]::after {
        content: none !important;
    }
    html body a[data-pblc-print-url]::after {
        content: " (" attr(data-pblc-print-url) ")" !important;
        font-size: 8.5pt;
        font-weight: normal;
        overflow-wrap: anywhere;
    }

    html body img,
    html body svg,
    html body video {
        max-width: 100% !important;
        height: auto !important;
    }

    html body .pblc-card,
    html body figure,
    html body tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    html body table {
        width: 100% !important;
        max-width: 100% !important;
        border-collapse: collapse;
    }
    html body thead { display: table-header-group; }
    html body tfoot { display: table-footer-group; }
    html body th,
    html body td {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    html body pre,
    html body code {
        white-space: pre-wrap !important;
        overflow-wrap: anywhere;
    }

    html body #pblc-seo-directory,
    html body #pblc-seo-directory > div,
    html body #pblc-seo-directory ul {
        break-inside: auto;
        page-break-inside: auto;
    }

    html body .pblc-footer,
    html body [data-ppt-blocktype="footer"] {
        margin-top: 8mm !important;
        border-top: 1px solid #777;
        padding-top: 3mm !important;
    }

    html body #pblc-qa-contact .form-control {
        color: #000 !important;
        background: #fff !important;
        max-width: 100% !important;
    }

    html body #pblc-qa-contact textarea[data-pblc-print-mirrored="true"] {
        display: none !important;
    }
    html body #pblc-qa-contact .pblc-qa-print-message[hidden] {
        display: block !important;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        color: #000 !important;
        background: #fff !important;
        font: 11pt/1.45 Arial, sans-serif;
        border: 1px solid #777;
        padding: 3mm;
        break-inside: auto;
        page-break-inside: auto;
    }
}
