/* Biliton v20.4.24 — clean browser print/PDF output.
   Screen rendering is intentionally unaffected. */
@media print {
    @page {
        margin: 12mm 10mm 14mm;
    }

    html,
    body {
        background: #fff !important;
        color: #10212a !important;
        overflow: visible !important;
        height: auto !important;
        min-height: 0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Interactive-only UI must never appear in printed/PDF copies. */
    .skip-link,
    .sales-tools,
    .wa-fab,
    .chat-fab,
    .chat-panel,
    .ai-sales-assistant,
    .ai-sales-assistant-dock,
    .biliton-back-to-top,
    .v3-topbar,
    .v3-menu-toggle,
    .v3-nav,
    .v3-slider-controls,
    .v3-hero-progress {
        display: none !important;
    }

    /* Keep the brand header, but remove sticky/browser UI behaviour. */
    .v3-header {
        position: static !important;
        height: auto !important;
        min-height: 0 !important;
        border-bottom: 1px solid #dfe6e8 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    .v3-header-inner {
        height: auto !important;
        min-height: 64px !important;
        padding: 8px 0 !important;
    }

    .v3-brand img {
        width: 155px !important;
        max-height: 52px !important;
    }

    main,
    main > section,
    section {
        overflow: visible !important;
        break-before: auto !important;
        break-after: auto !important;
        page-break-before: auto !important;
        page-break-after: auto !important;
    }

    /* Avoid print engines reserving screen-only hero/section heights. */
    .v3-hero,
    .rfq24-hero,
    .g20-hero,
    .news25-hero,
    .about23-hero,
    .contact21-hero,
    .quality19-hero,
    .industries17-hero {
        min-height: 0 !important;
        height: auto !important;
    }

    .v3-section,
    .rfq-section,
    .rfq24-next {
        min-height: 0 !important;
        height: auto !important;
    }

    /* Keep logical cards together where practical without forcing whole sections
       onto a new blank page. */
    article,
    .rfq-request-option,
    .rfq-step,
    .v3-product-card,
    .v3-benefit,
    .v3-process-grid article,
    .final-footer-values > div {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    /* Allow large grids/sections to split naturally across pages. */
    .v3-product-grid,
    .v3-why-grid,
    .v3-process-grid,
    .rfq-grid,
    .rfq-card,
    .final-footer-grid {
        break-inside: auto !important;
        page-break-inside: auto !important;
    }

    /* Footer legal links need visible separation in PDF output. */
    .final-footer-legal {
        display: inline-flex !important;
        flex-wrap: wrap !important;
        gap: 0 12px !important;
    }

    .final-footer-legal a {
        display: inline-block !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    /* Remove hover/transitions and screen shadows from printed documents. */
    * {
        animation: none !important;
        transition: none !important;
        text-shadow: none !important;
    }

    .v3-product-card,
    .rfq-card,
    .g20-card,
    .final-footer {
        box-shadow: none !important;
    }
}
