@media print {
    /* Hide href for all links.
       Uncommented deliberately, as on Ladd's DMS site. The platform's print
       stylesheet appends every link's href after it, so a quote's team page
       printed each person's LinkedIn URL wrapped over two lines under them.
       vstone_quoteView has the same rule in its own stylesheet, but this is the
       one that is certain to apply: it is document-level, so it does not depend
       on whether the component's styles reach across a shadow boundary. */
    a[href]:after {
        content: none !important;
    }

    /* Ported from Ladd's DMS site print.css (BEAM_LADD_SETUP.md pass 11).

       The quote viewer (vstone_quoteView, on the Quote page) sits inside
       community_layout-section > community_layout-column, and both of those
       lay their children out with flex. On screen the column has a definite
       width (the grid gives it one) and everything is fine. On paper it has
       none, so it sizes to its content — and a shrink-to-fit box is exactly
       where a child that declares `container-type: inline-size` measures zero,
       because inline-size containment means its contents no longer count toward
       its width. On Ladd's site the column collapsed to 0px and a sixteen-page
       proposal printed as 330 sheets of one letter a line.

       The viewer's own stylesheet states its printed width, which is the fix
       that reaches the client. This is the same fix one level out, where the
       collapsing box actually lives: on paper these wrappers are plain blocks
       the width of the sheet, so nothing below them has to survive being
       measured inside a box with no width of its own. Print-only, and only the
       wrappers.

       Site-wide on purpose, as on the DMS site: these are Salesforce's generic
       LWR layout elements, so a printed page anywhere on this site stacks its
       columns rather than laying them side by side. */
    community_layout-section,
    community_layout-column,
    community_layout-section > div,
    community_layout-column > div {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: none !important;
    }

    /* Example: hides header and footer for Customer Service template */
    /* #header, #footer {
        display: none !important
    } */

    /* Example: hides header for Customer Account and Partner Central template */
    /* .cHeaderWrapper, .cFooterPanel {
        display: none !important;
    } */

    /* Example: hides header and footer for Help Center template */
    /* .header, .footer {
        display: none !important;
    } */

    /* Example: hides header and footer for Build Your Own (Aura) template */
    /* .comm-content-header, .comm-content-footer {
        display: none !important;
    } */

    /* Example: hides header and footer for LWR templates */
    /* header, footer {
        display: none !important;
    } */

    /* Example: hides the aura Navigation Menu component */
    /* .forceCommunityGlobalNavigation {
        display: none !important;
    } */
}
