/**
 * Print styles (loaded with media="print").
 * Articles print as clean black-on-white pages with link URLs visible.
 */
@page {
    margin: 2cm;
}

html,
body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.5;
}

.site-header,
.menu-overlay,
.reading-progress,
.skip-link,
.share-buttons,
.toc,
.post-nav,
.related-posts,
.related-faq,
.comments-area,
.footer-faq,
.footer-widgets,
.footer-navigation,
.install-app,
.modal-overlay,
#showNotification,
.code-copy,
.glossary-tip,
.breadcrumbs,
.wcpg-add-btn {
    display: none !important;
}

.site-main {
    margin: 0 !important;
}

.container,
.container--with-rail,
.single-main__content-column {
    display: block !important;
    max-width: none !important;
    width: auto !important;
    padding: 0 !important;
}

.single-article,
.author-bio,
.key-takeaways {
    background: none !important;
    box-shadow: none !important;
    border-color: #999 !important;
}

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

img,
figure,
pre,
blockquote,
table,
.key-takeaways {
    break-inside: avoid;
    page-break-inside: avoid;
}

img {
    max-width: 100% !important;
}

a {
    color: #000 !important;
    text-decoration: underline;
}

.entry-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
}

pre,
code {
    white-space: pre-wrap !important;
    background: #f5f5f5 !important;
    color: #000 !important;
}

.site-footer {
    border-top: 1px solid #999;
    margin-top: 1cm;
    font-size: 9pt;
}

/* ==========================================================================
   Shop pages: order confirmations, invoices and the cart print cleanly.
   ========================================================================== */
.woocommerce-product-gallery__trigger,
.single_add_to_cart_button,
.wcpg-add-btn,
.quantity,
.woocommerce-message .button,
.woocommerce-tabs .tabs,
.related.products,
.up-sells,
.cross-sells,
.woocommerce-cart-form__cart-item .product-remove,
.wc-proceed-to-checkout,
.checkout-button,
.woocommerce-form-coupon-toggle,
.coupon,
.woocommerce-MyAccount-navigation,
.wc-block-components-quantity-selector,
.wp-block-woocommerce-cart-cross-sells-block {
    display: none !important;
}

.woocommerce table.shop_table,
.woocommerce-order-details table,
.woocommerce-table--order-details {
    width: 100% !important;
    border-collapse: collapse;
    font-size: 11pt;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    border: 1px solid #999 !important;
    padding: 6pt !important;
    background: none !important;
    color: #000 !important;
}

.woocommerce-order,
.woocommerce-MyAccount-content,
.woocommerce-order-details,
.woocommerce-customer-details {
    break-inside: avoid;
    page-break-inside: avoid;
}

.woocommerce-order-overview {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12pt;
}

.woocommerce-product-gallery {
    max-width: 8cm;
}
