@page {
    size: A4;
    margin: 16mm 14mm 18mm;
}

.print-page {
    background: #f5f5f5;
    min-height: 100vh;
    padding: 1.5rem;
}

.print-document {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    color: #111;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 2.25rem 2rem 2.75rem;
}

.print-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.875rem;
}

.print-meta {
    font-size: 0.9rem;
    color: #555;
}

.print-prose {
    line-height: 1.65;
    font-size: 11.5pt;
}

.print-prose h1,
.print-prose h2,
.print-prose h3,
.print-prose h4,
.print-prose h5,
.print-prose h6 {
    break-after: avoid-page;
    page-break-after: avoid;
    break-inside: avoid-page;
    page-break-inside: avoid;
    margin-top: 1.4em;
    margin-bottom: 0.55em;
}

.print-prose p,
.print-prose li,
.print-prose blockquote {
    orphans: 3;
    widows: 3;
}

.print-prose table,
.print-prose figure,
.print-prose blockquote,
.print-prose pre,
.print-prose code,
.print-prose img,
.print-avoid-break {
    break-inside: avoid-page;
    page-break-inside: avoid;
}

.print-prose pre,
.print-prose code,
.print-prose blockquote,
.print-prose table {
    overflow: visible;
}

.print-prose img {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.print-featured-image {
    display: block;
    width: 100%;
    height: 100mm;
    max-height: 100mm;
    object-fit: cover;
    object-position: center center;
}

.print-footer {
    margin-top: 2rem;
    border-top: 1px solid #ddd;
    padding-top: 0.625rem;
    font-size: 0.8rem;
    color: #666;
}

@media print {
    html,
    body {
        margin: 0;
        padding: 0;
        background: #fff;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .no-print,
    button,
    nav,
    [role="navigation"],
    .print-hide {
        display: none !important;
    }

    .print-page,
    .print-document {
        max-width: none;
        width: auto;
        margin: 0;
        padding: 0;
        box-shadow: none;
        background: #fff;
    }

    a {
        text-decoration: none;
        color: inherit;
    }
}
