/* Shared print layout. Loaded after Bootstrap and the screen styles. */
@media print {
    @page { margin: 15mm; }

    html, body { height: auto !important; overflow: visible !important; }
    body { margin: 0; background: #fff; }
    .portal, .portal.guide-portal {
        width: 100%;
        max-width: none;
        min-height: 0;
        margin: 0;
    }
    .main { padding: 0; }

    /* Navigation, employee tools and interactive actions have no paper equivalent. */
    .skip, .masthead, .navigation, .site-footer,
    .section-navigation, .custom-breadcrumb, .existing-archive-link,
    .custom-section-pages, .custom-page-actions, .page-edit-actions,
    .custom-manager-links, .guide-sidebar, .guide-breadcrumb, .guide-pagination,
    .guide-heading > a, .guide-toolbar, .guide-editor-actions,
    .text-toolbar, .text-editor-dialog, .text-editor-status,
    .page-toolbar-host, .page-save-actions, .editor-contact-form,
    .promo-controls, .media-library-pagination, .alert-success,
    form, button, .btn, .editor-link-button,
    a[href^="javascript:"], .arrow {
        display: none !important;
    }

    /* Retain useful linked words, without Bootstrap's appended URL or button arrows. */
    a, a:visited { color: inherit !important; text-decoration: none !important; }
    a::after, a[href]::after, abbr[title]::after {
        content: none !important;
        display: none !important;
    }
    summary { list-style: none; }
    summary::before, summary::after, summary::-webkit-details-marker {
        display: none !important;
    }

    /* Release the guide's screen columns and scrolling containers for the paper width. */
    .guide-workspace { display: block; }
    .guide-reading, .article-content, .text-content {
        max-height: none !important;
        overflow: visible !important;
    }
    .article-content img, .text-content img { max-width: 100% !important; height: auto; }
    .article-content table, .text-content table { max-width: 100%; }
    h1, h2, h3, h4 { break-after: avoid; }
}
