@media print {
    .md-typeset {
        font-size: 11pt !important;
        line-height: 1.6 !important;
    }

    .md-typeset h1 { font-size: 22pt !important; }
    .md-typeset h2 { font-size: 17pt !important; }
    .md-typeset h3 { font-size: 14pt !important; }
    .md-typeset h4 { font-size: 12pt !important; }

    .md-typeset table {
        font-size: 8.5pt !important;
        width: 100% !important;
        table-layout: fixed !important;
        word-wrap: break-word !important;
        overflow: visible !important;
        page-break-inside: avoid !important;
    }

    .md-typeset table td,
    .md-typeset table th {
        padding: 4px 6px !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }

    .md-typeset table tr {
        page-break-inside: avoid !important;
    }

    .md-typeset .admonition,
    .md-typeset details,
    .md-typeset .admonition p,
    .md-typeset details p,
    .md-typeset .admonition li,
    .md-typeset details li {
        font-size: 11pt !important;
    }

    .md-typeset .admonition-title,
    .md-typeset summary {
        font-size: 12pt !important;
    }

    #doc-toc ul,
    #doc-toc li,
    #doc-toc a {
        font-size: 11pt !important;
        line-height: 1.8 !important;
    }

    .md-typeset code,
    .md-typeset pre code,
    .md-typeset .highlight code,
    .md-typeset .highlight pre {
        font-size: 9pt !important;
        line-height: 1.4 !important;
    }

    .md-typeset pre {
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
    }
}
