.rat-reader {
    padding: 2.5rem 1rem;
    background: #edf1f5;
    color: #172c41;
}

.rat-scroll:focus-visible {
    outline: 3px solid #0084d1;
    outline-offset: 3px;
}

.rat-scroll {
    overflow-x: auto;
}

.rat-document {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.rat-page {
    margin-bottom: 1.5rem;
    background: #fff;
    box-shadow: 0 2px 8px #172c411a;
    scroll-margin-top: 110px;
}

.rat-page:last-child {
    margin-bottom: 0;
}

.rat-page svg {
    display: block;
    width: 100%;
    height: auto;
}

.rat-page text {
    white-space: pre;
    font-weight: 400;
    font-style: normal;
    font-synthesis: none;
    font-kerning: none;
    font-variant-ligatures: none;
    letter-spacing: 0;
    word-spacing: 0;
}

@media (max-width: 575px) {
    .rat-reader {
        padding: 1.5rem .5rem;
    }

    .rat-page {
        margin-bottom: .75rem;
    }
}

@page {
    size: A4;
    margin: 0;
}

@media print {
    body > :not(.rat-reader) {
        display: none !important;
    }

    .rat-reader,
    .rat-scroll {
        padding: 0;
        margin: 0;
        overflow: visible;
        background: #fff;
    }

    .rat-reader .rat-document {
        width: 210mm;
        max-width: none;
        margin: 0;
    }

    .rat-page {
        width: 210mm;
        height: 297mm;
        margin: 0;
        box-shadow: none;
        break-after: page;
        break-inside: avoid;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .rat-page:last-child {
        break-after: auto;
    }
}
