/* print.css - Custom print styles for MkDocs colocation agreement */

@media print {
    /* Page setup */
    @page {
        size: A4;
        margin: 2cm;
    }
    
    /* Force page breaks where needed */
    .page-break, .print-page-break {
        display: block;
        page-break-after: always;
        page-break-inside: avoid;
        height: 0;
        margin: 0;
        border: none;
    }
    
    /* Avoid breaks in important sections */
    h1, h2, h3, h4 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    /* Keep content together */
    p, ul, ol {
        orphans: 3;
        widows: 3;
    }
    
    /* Keep these elements from breaking */
    table {
        page-break-inside: avoid;
    }
    
    .admonition {
        page-break-inside: avoid;
        border: 1px solid #ddd;
        padding: 10px;
        margin: 10px 0;
    }
    
    /* Signature blocks stay together */
    .signature-block {
        page-break-inside: avoid;
        min-height: 200px;
    }
    
    /* Hide navigation and non-content elements */
    .md-header, .md-nav, .md-footer, .md-sidebar {
        display: none !important;
    }
    
    /* Better print formatting */
    body {
        font-size: 11pt;
        line-height: 1.5;
        color: #000;
        background: white;
    }
    
    /* Tables */
    table {
        border-collapse: collapse;
        width: 100%;
        font-size: 10pt;
    }
    
    th, td {
        border: 1px solid #000;
        padding: 5px;
    }
    
    th {
        background-color: #f0f0f0 !important;
        font-weight: bold;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    /* Links as plain text */
    a {
        text-decoration: none;
        color: #000;
    }
    
    /* Code blocks */
    pre {
        border: 1px solid #ccc;
        background-color: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    /* Admonition styles for print */
    .admonition.info {
        background-color: #e3f2fd !important;
        -webkit-print-color-adjust: exact;
    }
    
    .admonition.warning {
        background-color: #fff3cd !important;
        -webkit-print-color-adjust: exact;
    }
    
    .admonition.danger {
        background-color: #ffebee !important;
        -webkit-print-color-adjust: exact;
    }
}