/* Reorganized from wwwroot/css/responsive/ref.css. */
@media (max-width: 768px) {
    .ref-page {
        min-height: auto;
        padding: 0 0 58px;
    }

    .ref-background {
        min-height: auto;
        padding-top: 56px;
        padding-bottom: 82px;
        background-size: auto 112px, auto 112px;
    }

    .ref-content {
        padding: 26px 20px 30px;
    }

    .ref-symbol-strip {
        width: min(300px, 100%);
        margin-bottom: 36px;
    }

    .ref-content h1 {
        font-size: 2rem;
        line-height: 1.16;
    }

    .ref-page-khmer .ref-content h1 {
        font-size: 1.8rem;
        line-height: 1.7;
    }

    .ref-copy p {
        font-size: 1rem;
        line-height: 1.72;
    }

    .ref-document-link {
        width: 100%;
        justify-content: flex-start;
        padding: 13px 16px;
    }

    .ref-pdf-modal {
        padding: 0 !important;
        background: #fff;
    }

    .ref-pdf-modal .modal-dialog {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 100dvh;
        min-height: 100dvh;
        margin: 0 !important;
    }

    .ref-pdf-modal .modal-content {
        width: 100%;
        min-width: 100%;
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        box-shadow: none;
    }

    .ref-pdf-modal .modal-header,
    .ref-pdf-modal .modal-footer {
        flex: 0 0 auto;
        padding: 12px 14px;
    }

    .ref-pdf-modal .modal-title {
        font-size: 1rem;
    }

    .ref-pdf-modal .btn-close {
        width: 46px;
        height: 46px;
    }

    .ref-pdf-modal .modal-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
    }

    .ref-pdf-viewer {
        gap: 14px;
        padding: 10px;
    }

    .ref-pdf-page {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .ref-pdf-modal .modal-dialog {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 100dvh;
        min-height: 100dvh;
    }

    .ref-pdf-modal .modal-content {
        height: 100dvh;
        min-height: 100dvh;
    }

    .ref-pdf-viewer {
        padding: 8px;
    }
}

@media (max-width: 420px) {
    .ref-symbol-strip {
        width: min(260px, 100%);
        margin-bottom: 30px;
    }

    .ref-content h1 {
        font-size: 1.72rem;
    }

    .ref-page-khmer .ref-content h1 {
        font-size: 1.46rem;
    }

    .ref-eyebrow {
        font-size: 0.82rem;
    }
}
