
/* ==========================================================
   N5TG V59 — Read More full-screen top sheet
   Only affects the existing .rn-bottom-sheet article reader.
========================================================== */

.rn-overlay {
    z-index: 2147483400 !important;
}

.rn-bottom-sheet {
    position: fixed !important;
    top: 0 !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;

    width: min(760px, 100vw) !important;
    max-width: 760px !important;

    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;

    margin: 0 !important;
    padding: 0 18px 46px !important;

    border-radius: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;

    box-sizing: border-box !important;

    transform: translate(-50%, 104%) !important;
    transition: transform .22s ease-out !important;

    z-index: 2147483410 !important;

    box-shadow:
        0 0 0 1px rgba(255,255,255,.06),
        0 24px 80px rgba(0,0,0,.48) !important;
}

.rn-bottom-sheet.active {
    top: 0 !important;
    bottom: auto !important;
    transform: translate(-50%, 0) !important;
}

/*
 * Fixed to the viewport, not the scrollable article.
 * It therefore remains visible even after scrolling far down.
 */
.rn-bottom-sheet .rn-sheet-close {
    position: fixed !important;
    top: max(12px, env(safe-area-inset-top)) !important;
    right: max(14px, calc((100vw - 760px) / 2 + 14px)) !important;

    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid rgba(255,255,255,.26) !important;
    border-radius: 50% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #e4002b !important;
    color: #fff !important;

    font-size: 30px !important;
    line-height: 1 !important;
    font-weight: 700 !important;

    box-shadow: 0 10px 28px rgba(0,0,0,.32) !important;

    cursor: pointer !important;
    z-index: 2147483420 !important;

    transform: none !important;
}

.rn-bottom-sheet .rn-sheet-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;

    margin: 0 0 18px !important;

    border-radius: 0 0 22px 22px !important;

    object-fit: cover !important;
    background: #0d0f14 !important;
}

.rn-bottom-sheet .rn-sheet-title {
    width: 100% !important;
    margin: 20px 0 10px !important;
    padding: 0 4px !important;

    font-size: clamp(25px, 4vw, 38px) !important;
    line-height: 1.16 !important;
    font-weight: 950 !important;
    letter-spacing: -.55px !important;

    box-sizing: border-box !important;
}

.rn-bottom-sheet .rn-sheet-meta {
    width: 100% !important;
    margin: 0 0 22px !important;
    padding: 0 4px 16px !important;

    border-bottom: 1px solid rgba(127,127,127,.22) !important;

    font-size: 13px !important;
    line-height: 1.55 !important;

    box-sizing: border-box !important;
}

.rn-bottom-sheet .rn-sheet-content {
    width: 100% !important;
    max-width: none !important;

    padding: 0 4px !important;

    font-size: clamp(16px, 2.6vw, 19px) !important;
    line-height: 1.82 !important;

    overflow: visible !important;

    box-sizing: border-box !important;
}

.rn-bottom-sheet .rn-sheet-content p {
    margin: 0 0 1.15em !important;
}

.rn-bottom-sheet hr {
    margin: 30px 4px 20px !important;
    opacity: .24 !important;
}

.rn-bottom-sheet > h3,
.rn-bottom-sheet .rn-related-news {
    margin-left: 4px !important;
    margin-right: 4px !important;
}

@media (max-width: 780px) {
    .rn-bottom-sheet {
        width: 100vw !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: calc(42px + env(safe-area-inset-bottom)) !important;
    }

    .rn-bottom-sheet .rn-sheet-close {
        right: 12px !important;
        top: max(12px, env(safe-area-inset-top)) !important;
    }

    .rn-bottom-sheet .rn-sheet-image {
        width: 100% !important;
        border-radius: 0 0 22px 22px !important;
    }

    .rn-bottom-sheet .rn-sheet-title,
    .rn-bottom-sheet .rn-sheet-meta,
    .rn-bottom-sheet .rn-sheet-content,
    .rn-bottom-sheet > h3,
    .rn-bottom-sheet .rn-related-news {
        margin-left: 18px !important;
        margin-right: 18px !important;
        width: auto !important;
    }

    .rn-bottom-sheet .rn-sheet-title {
        margin-top: 20px !important;
    }
}
