/* ==========================================================================
   Print Styles — Cascade CMS Knowledge Base
   Single-column layout, no interactive elements.
   ========================================================================== */

@media print {
    .hh-header,
    .hh-sidebar,
    .hh-toc,
    .hh-toc-toggle,
    .hh-sidebar-overlay,
    .hh-search-overlay,
    .hh-theme-toggle,
    .hh-skip-link,
    .hh-content-pagination,
    .hh-code-block-copy,
    .hh-code-block-tabs,
    .hh-accordion-chevron {
        display: none !important;
    }

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

    .hh-docs-layout {
        display: block;
        margin-top: 0;
    }

    .hh-main {
        padding: 0;
        max-width: 100%;
    }

    .hh-content {
        max-width: 100%;
    }

    .hh-content-body a {
        color: #000;
        text-decoration: underline;
    }

    .hh-content-body a[href^="http"]::after {
        content: ' (' attr(href) ')';
        font-size: 0.8em;
        color: #666;
    }

    .hh-code-block {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .hh-code-block-header {
        background: #f5f5f5;
    }

    .hh-callout {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    details.hh-accordion > summary {
        list-style: none;
    }

    details.hh-accordion > summary::-webkit-details-marker {
        display: none;
    }

    details.hh-accordion > *:not(summary) {
        display: block !important;
        max-height: none !important;
    }

    .hh-accordion-panel,
    .hh-accordion-panel[hidden] {
        max-height: none !important;
        display: block !important;
    }

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

    pre {
        white-space: pre-wrap;
        word-wrap: break-word;
    }
}
