/* ==========================================================================
   Print Styles
   -------------------------------------------------------------------------- */

@media print {
    /* Reset */
    *, *::before, *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Hide non-content elements */
    .site-header,
    .site-bottom-header-navbar,
    .site-footer,
    .sidebar,
    .floating-actions,
    .reading-progress,
    .article-toc,
    .mobile-bottom-nav,
    .page-loader,
    .language-switcher,
    .breadcrumb,
    .post-navigation,
    .related-posts,
    .comments-area,
    .comment-respond,
    .pet-search-modal-wrap,
    .donate-modal,
    .modal,
    .toast,
    .pagination,
    .social-share,
    .header-search-form,
    .nav,
    .skip-to-content,
    .pet-ad-slot {
        display: none !important;
    }

    /* Layout */
    body {
        font-size: 12pt;
        line-height: 1.6;
        margin: 0;
        padding: 0;
    }

    .container,
    .content-area {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .row {
        display: block;
    }

    .col-lg-8 {
        width: 100% !important;
    }

    main.main-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Typography */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000 !important;
    }

    h1 {
        font-size: 24pt;
    }

    h2 {
        font-size: 20pt;
    }

    h3 {
        font-size: 16pt;
    }

    h4 {
        font-size: 14pt;
    }

    /* Links */
    a {
        text-decoration: underline;
        color: #000 !important;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        font-weight: normal;
        color: #555 !important;
    }

    a[href^="#"]::after,
    a[href^="javascript:"]::after,
    a[href^="mailto:"]::after,
    a.card-link::after,
    .post-card__cover-link::after {
        content: none;
    }

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

    .page-hero__bg {
        display: none;
    }

    .page-hero {
        background: none !important;
        padding: 0 0 1rem !important;
        min-height: auto !important;
    }

    .page-hero__title {
        color: #000 !important;
        font-size: 24pt;
    }

    .page-hero__overlay {
        display: none;
    }

    /* Code blocks */
    pre, code {
        border: 1px solid #ccc !important;
        background: #f5f5f5 !important;
    }

    /* Tables */
    table {
        border-collapse: collapse;
        width: 100%;
    }

    th, td {
        border: 1px solid #ccc;
        padding: 0.5em;
    }

    thead {
        display: table-header-group;
    }

    tr {
        page-break-inside: avoid;
    }

    /* Blockquote */
    blockquote {
        border: 1px solid #ccc;
        border-left: 4px solid #999;
        padding: 0.5em 1em;
        margin: 1em 0;
    }

    /* Card overrides */
    .card,
    .post-card,
    .product-card {
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }

    /* Ensure content is visible */
    .content {
        color: #000 !important;
    }

    /* Orphans/widows */
    p, li {
        orphans: 3;
        widows: 3;
    }

    /* Page breaks */
    .page-break-before {
        page-break-before: always;
    }

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