﻿/* REMOVE height and overflow during PDF generation */

.articlebody {
    padding: 20px 80px !important;
    height: calc(100vh - 49px) !important;
    overflow: auto;
    font-family: "Georgia", "Times New Roman", "Times", serif;
}

    .articlebody:focus-visible {
        padding: 10px 20px;
        height: calc(100vh - 84px);
        overflow: auto;
        outline: 0;
    }

    .articlebody h1 {
        font-weight: 700;
        margin-bottom: 20px;
    }

    .articlebody h2 {
        font-weight: 700;
        margin-bottom: 20px;
    }

    .articlebody h3 {
        font-weight: 600;
        margin-bottom: 17px;
    }

    .articlebody h4 {
        font-weight: 600;
        margin-bottom: 14px;
    }

    .articlebody h5 {
        font-weight: 600;
        margin-bottom: 14px;
    }

    .articlebody p {
        font-size: 1.4rem;
    }

    .articlebody ul {
        font-size: 1.4rem;
    }

    .articlebody q {
        font-style: italic;
        font-size: 1.2rem;
    }

    .articlebody cite {
        display: block;
        font-weight: bold;
        text-align: right;
        margin-top: 10px;
    }

    .articlebody div {
        margin-bottom: 20px;
    }

    /* Prevent breaking inside important elements */
    .articlebody h1,
    .articlebody h2,
    .articlebody h3,
    .articlebody p,
    .articlebody ul {
        page-break-inside: avoid;
    }

/* Optional: add manual page breaks */
.page-break {
    page-break-before: always;
}


@media print {
    .articlebody p,
    .articlebody ul {
        font-size: 1rem; /* ~16px */
    }
}
@media print {
    .articlebody {
        padding: 0 !important;
        width: 800px;
        max-width: 100%;
        margin: 0 auto;
    }
}