/**
 * PSiRA Print Stylesheet
 * Applied when users print any page
 */

@media print {

    /* ---- Reset & base ---- */
    *, *::before, *::after {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-family: Georgia, serif;
        font-size: 11pt;
        line-height: 1.5;
        margin: 0;
        padding: 0;
    }

    /* ---- Hide non-content elements ---- */
    .site-header,
    .utility-bar,
    .main-nav,
    .site-footer,
    .cookie-banner,
    .back-to-top,
    .font-size-controls,
    .page-hero .page-hero-bg,
    .filter-chips,
    .pagination,
    .sidebar-widget,
    aside,
    .btn,
    button,
    input,
    select,
    textarea,
    form,
    .media-type-nav,
    .search-overlay,
    .mobile-menu-btn,
    .skip-link,
    #wpadminbar {
        display: none !important;
    }

    /* ---- Page hero: minimal header band ---- */
    .page-hero {
        background: #1C1C2E !important;
        color: #fff !important;
        padding: 16pt 0 12pt !important;
        min-height: auto !important;
        page-break-inside: avoid;
    }
    .page-hero * { color: #fff !important; }
    .page-hero .page-hero-bg { display: none !important; }
    .page-section-title { font-size: 18pt !important; }
    .title-underline { background: #C8860A !important; width: 40pt !important; }
    .breadcrumb { font-size: 8pt !important; }

    /* ---- Container ---- */
    .container {
        max-width: 100% !important;
        padding: 0 12pt !important;
    }

    /* ---- Links: show URL ---- */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #555 !important;
        word-break: break-all;
    }
    a[href^="#"]::after,
    a[href^="javascript"]::after,
    .btn::after,
    .tag::after,
    nav a::after {
        content: "" !important;
    }

    /* ---- Single-column layout ---- */
    .single-tender-layout,
    .single-career-layout,
    .single-pub-layout,
    .single-event-layout,
    .initiative-layout,
    .service-layout,
    .legislation-layout,
    .contact-layout,
    .news-grid {
        display: block !important;
        grid-template-columns: none !important;
    }

    /* ---- Cards: no hover, simple border ---- */
    .tender-section-box,
    .tender-summary-card,
    .tender-timeline-card,
    .initiative-section-box,
    .initiative-summary-card,
    .article-meta-bar,
    .pub-detail-card,
    .event-detail-card {
        border: 1pt solid #ccc !important;
        border-radius: 0 !important;
        padding: 8pt 10pt !important;
        margin-bottom: 10pt !important;
        page-break-inside: avoid;
    }

    /* ---- Documents list ---- */
    .tender-doc-item,
    .initiative-doc-item,
    .pub-doc-row {
        border: 1pt solid #ccc !important;
        padding: 4pt 6pt !important;
        margin-bottom: 4pt !important;
    }

    /* ---- Timeline ---- */
    .tender-timeline::before,
    .initiative-progress-timeline::before {
        background: #999 !important;
    }
    .tender-timeline-dot,
    .initiative-progress-dot {
        background: #333 !important;
        border-color: #fff !important;
        box-shadow: none !important;
    }

    /* ---- Images ---- */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    .article-featured-img { max-height: 200pt !important; }

    /* ---- Page breaks ---- */
    h1, h2, h3 { page-break-after: avoid; }
    table, figure, blockquote, .initiative-progress-item { page-break-inside: avoid; }

    /* ---- Footer print note ---- */
    body::after {
        content: "Printed from psira.co.za — Private Security Industry Regulatory Authority";
        display: block;
        margin-top: 20pt;
        padding-top: 8pt;
        border-top: 1pt solid #ccc;
        font-size: 8pt;
        color: #666 !important;
        text-align: center;
    }

    /* ---- Status tags ---- */
    .tag {
        border: 1pt solid #999 !important;
        border-radius: 2pt !important;
        padding: 1pt 4pt !important;
        font-size: 8pt !important;
    }

}
