/**
 * Soran AI Studio — Print stylesheet.
 * Loaded via <link media="print"> in the header.
 * Converts the dark theme to a clean, ink-friendly layout.
 */

@media print {

    /* ---- Reset background / colours to white / black ---- */
    *,
    *::before,
    *::after {
        background: #fff !important;
        color:      #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* ---- Hide non-content elements ---- */
    .nav,
    .mobile-menu,
    .footer,
    .tweaks-fab,
    .tweaks-panel,
    .bg-fx,
    .hero-visual,
    .hero-stats,
    .hero-cta,
    .trust,
    .scroll-prog,
    .read-progress,
    [id="soran-contact-root"],
    [id="soran-tweaks-root"],
    [id="soran-faq-root"],
    [id="soran-tech-root"],
    [id="soran-process-root"],
    button:not([type="submit"]),
    .btn-ghost,
    video,
    audio,
    iframe,
    object,
    embed,
    .no-print {
        display: none !important;
    }

    /* ---- Page layout ---- */
    body {
        font-family: Georgia, "Times New Roman", Times, serif;
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
        background: #fff;
    }

    .container {
        max-width: 100%;
        padding-inline: 0;
    }

    main {
        padding-top: 0 !important;
    }

    /* ---- Typography ---- */
    h1 { font-size: 24pt; page-break-after: avoid; }
    h2 { font-size: 18pt; page-break-after: avoid; }
    h3 { font-size: 14pt; page-break-after: avoid; }
    h4 { font-size: 12pt; page-break-after: avoid; }

    p, li, blockquote { orphans: 3; widows: 3; }

    /* ---- Links — show URL after link text ---- */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #555;
    }

    a[href^="#"]::after,
    a[href^="mailto:"]::after,
    a[href^="tel:"]::after {
        content: "";
    }

    /* ---- Cards / surfaces — flat borders ---- */
    .card,
    .sys-panel,
    .cta-band {
        border: 1px solid #ccc !important;
        border-radius: 4px !important;
        break-inside: avoid;
    }

    /* ---- Case study thumbnails ---- */
    .cs-thumb {
        height: 80px !important;
        background: #f5f5f5 !important;
    }

    /* ---- Code blocks ---- */
    pre,
    code {
        border: 1px solid #ccc;
        font-family: "Courier New", Courier, monospace;
        font-size: 10pt;
        page-break-inside: avoid;
    }

    /* ---- Images ---- */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    /* ---- Article prose ---- */
    .prose {
        font-size: 11pt;
        line-height: 1.7;
    }

    /* ---- Page breaks ---- */
    .section,
    .section-sm,
    article {
        page-break-before: auto;
    }

    .page-break {
        page-break-after: always;
    }
}
