/* ============================================
   Wiki Rote Ndao — Print Stylesheet
   ============================================ */

@media print {
    /* Hide interactive elements */
    .site-header,
    .sidebar,
    .site-footer,
    .share-buttons,
    .related-entries,
    .breadcrumb,
    .toc,
    .search-form,
    .header-actions,
    .dm-btn,
    .mobile-menu-toggle,
    .pagination,
    nav,
    .entry-tags,
    .hero-infographic,
    .stats-row,
    .cta-section,
    .about-grid,
    .category-grid,
    .entry-list,
    .section:not(:first-of-type) {
        display: none !important;
    }
    
    /* Layout cleanup */
    .main-wrap {
        display: block !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .content-area {
        max-width: 100% !important;
    }
    
    /* Entry card cleanup */
    .entry {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        background: none !important;
        backdrop-filter: none !important;
    }
    
    .entry-header h1 {
        font-size: 24pt !important;
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
        border-bottom: 2px solid #000 !important;
    }
    
    .category-badge {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Content typography for print */
    .entry-content {
        font-size: 12pt !important;
        line-height: 1.7 !important;
        color: #000 !important;
    }
    
    .entry-content h2 {
        font-size: 18pt !important;
        color: #000 !important;
        border-bottom: 1px solid #ccc !important;
    }
    
    .entry-content h3 {
        font-size: 14pt !important;
        color: #333 !important;
    }
    
    .entry-content p {
        text-align: justify !important;
        orphans: 3;
        widows: 3;
    }
    
    /* Tables */
    .entry-content table {
        font-size: 10pt !important;
        box-shadow: none !important;
        page-break-inside: auto;
    }
    
    .entry-content thead,
    .entry-content th {
        background: #333 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .entry-content tr {
        page-break-inside: avoid;
    }
    
    .entry-content td {
        border-bottom: 1px solid #ddd !important;
        background: #fff !important;
    }
    
    /* Links */
    .entry-content a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    .entry-content a::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }
    
    /* Blockquotes */
    .entry-content blockquote {
        border-left: 3px solid #999 !important;
        background: none !important;
        color: #333 !important;
    }
    
    /* Code */
    .entry-content code {
        background: #f5f5f5 !important;
        color: #333 !important;
        border: 1px solid #ddd !important;
    }
    
    .entry-content pre {
        background: #f9f9f9 !important;
        color: #333 !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        white-space: pre-wrap;
    }
    
    /* Images */
    .entry-content img {
        max-width: 100% !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    /* Source info */
    .source-info,
    .updated-info {
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Page setup */
    @page {
        margin: 2cm 2.5cm;
        @top-right {
            content: "Wiki Rote Ndao";
            font-size: 9pt;
            color: #999;
        }
        @bottom-center {
            content: counter(page);
            font-size: 9pt;
            color: #999;
        }
    }
    
    /* Avoid page breaks in bad places */
    h1, h2, h3, h4 {
        page-break-after: avoid;
    }
    
    .entry-content img {
        page-break-inside: avoid;
    }
}
