.epaper-crop-selection {
            position: absolute; z-index: 20; border: 2px dashed #fff; outline: 1px solid #b90000;
            background: rgba(30, 120, 255, .16); pointer-events: none; display: none;
        }
        .epaper-toolbar .epaper-crop-share { background: #176b43; color: #fff; }
        .epaper-main.epaper-crop-mode { cursor: crosshair !important; touch-action: none !important; }
        .epaper-wrapper {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            box-sizing: border-box;
            overflow: visible;
        }

        .epaper-wrapper *,
        .epaper-wrapper *::before,
        .epaper-wrapper *::after {
            box-sizing: border-box;
        }

        .epaper-archive-box {
            position: relative;
            z-index: 50;
            width: 100%;
            margin-bottom: 8px;
        }

        .epaper-archive-controls {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .epaper-archive-inline,
        .epaper-toolbar button,
        .epaper-download {
            border: 0;
            background: #444;
            color: #fff;
            padding: 8px 12px;
            border-radius: 5px;
            cursor: pointer;
            text-decoration: none;
            font-size: 14px;
            line-height: 1.2;
            white-space: nowrap;
            min-height: 36px;
        }

        .epaper-archive-inline:hover,
        .epaper-toolbar button:hover,
        .epaper-download:hover {
            background: #666;
            color: #fff;
        }

        /* Compact archive/date controls in the viewer toolbar. */
        .epaper-toolbar-date-wrap {
            display: inline-flex;
            align-items: center;
            flex: 0 0 auto;
            margin: 0;
        }
        .epaper-toolbar .epaper-toolbar-date {
            box-sizing: border-box;
            width: 132px;
            max-width: 132px;
            height: 34px;
            padding: 0 5px;
            border: 1px solid #d5d5d5;
            border-radius: 4px;
            background: #fff;
            color: #222;
            font-size: 12px;
            line-height: 1;
        }
        .epaper-toolbar button:disabled {
            opacity: .45;
            cursor: not-allowed;
        }

        .epaper-calendar-panel {
            width: min(340px, calc(100vw - 20px));
            max-width: calc(100vw - 20px);
            position: absolute;
            left: 0;
            top: calc(100% + 6px);
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            box-shadow: 0 7px 24px rgba(0,0,0,.16);
            padding: 12px;
        }

        .epaper-calendar-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 9px;
        }

        .epaper-calendar-head button {
            border: 0;
            background: #f1f1f1;
            border-radius: 5px;
            width: 36px;
            height: 34px;
            font-size: 20px;
            cursor: pointer;
            flex: 0 0 36px;
        }

        .epaper-calendar-month {
            text-align: center;
            flex: 1;
        }

        .epaper-weekdays,
        .epaper-calendar-days {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 4px;
        }

        .epaper-weekdays span {
            text-align: center;
            font-size: 11px;
            color: #777;
            padding: 3px 0;
        }

        .epaper-calendar-day {
            border: 0;
            background: #f4f4f4;
            min-height: 38px;
            border-radius: 5px;
            font-size: 12px;
            cursor: default;
            color: #999;
            width: 100%;
        }

        .epaper-calendar-day.has-edition {
            background: #222;
            color: #fff;
            cursor: pointer;
        }

        .epaper-calendar-day.has-edition:hover {
            background: #555;
        }

        .epaper-calendar-day.selected {
            outline: 2px solid #0073aa;
            outline-offset: 1px;
        }

        .epaper-calendar-day.empty {
            background: transparent;
        }

        .epaper-calendar-note {
            font-size: 11px;
            color: #777;
            text-align: center;
            margin-top: 10px;
        }

        .epaper-pdf-viewer {
            margin-top: 0 !important;
            padding-top: 0 !important;
            width: 100%;
            max-width: 100%;
            background: #f1f1f1;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
        }

        .epaper-toolbar {
            margin-top: 0 !important;
            display: flex;
            align-items: center;
            gap: 4px;
            flex-wrap: nowrap;
            overflow-x: auto;
            padding: 7px;
            background: #f7f7f7;
            color: #222;
            border-bottom: 1px solid #ddd;
            scrollbar-width: thin;
        }
        .epaper-toolbar .epaper-online-version {
            background: #55b45b;
            color: #fff;
            white-space: nowrap;
        }
        .epaper-toolbar .epaper-online-version { display: none !important; }
        .epaper-toolbar .epaper-toolbar-archive { display: inline-flex !important; }
        .epaper-toolbar .epaper-first,
        .epaper-toolbar .epaper-last,
        .epaper-toolbar .epaper-prev,
        .epaper-toolbar .epaper-next,
        .epaper-toolbar .epaper-page-jump {
            background: #fff;
            color: #1766b1;
            border: 1px solid #d5d5d5;
            border-radius: 0;
            min-width: 32px;
            padding: 7px 8px;
        }
        .epaper-toolbar .epaper-page-jump-wrap { margin: 0; }
        .epaper-toolbar .epaper-page-jump { height: 34px; padding: 0 4px; }
        .epaper-toolbar .epaper-page-info { color: #333; }
        .epaper-toolbar .epaper-location-select-wrap { display: inline-flex; margin: 0; flex: 0 0 auto; }
        .epaper-toolbar .epaper-location-select { max-width: 150px; min-width: 112px; height: 34px; padding: 0 7px; border: 1px solid #b90000; border-radius: 4px; background: #c90000; color: #fff; font-size: 12px; }
        .epaper-toolbar .epaper-download { background: #c90000; color: #fff; white-space: nowrap; }
        /* Archive date selector lives in the toolbar, not above the viewer. */
        .epaper-toolbar > .epaper-archive-box {
            position: relative;
            z-index: 20;
            width: auto;
            max-width: 240px;
            margin: 0;
            flex: 0 0 auto;
            background: transparent;
            border: 0;
            box-shadow: none;
            padding: 0;
        }
        .epaper-toolbar > .epaper-archive-box .epaper-archive-controls { gap: 0; flex-wrap: nowrap; }
        .epaper-toolbar > .epaper-archive-box .epaper-archive-inline { display: none !important; }

        .epaper-toolbar .epaper-zoom-in,
        .epaper-toolbar .epaper-zoom-out,
        .epaper-toolbar .epaper-zoom-reset { white-space: nowrap; }



        /* Keep archive controls in the viewer toolbar; eliminate the old top row. */
        .epaper-wrapper > .epaper-archive-box {
            position: static;
            height: 0;
            min-height: 0;
            margin: 0;
            padding: 0;
            border: 0;
            box-shadow: none;
            background: transparent;
        }
        .epaper-wrapper > .epaper-archive-box > .epaper-archive-controls {
            display: none !important;
        }
        .epaper-wrapper > .epaper-archive-box > .epaper-calendar-panel {
            position: fixed;
            left: 10px;
            top: 72px;
            z-index: 999999;
        }
        .epaper-toolbar .epaper-toolbar-archive {
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            min-width: 58px;
            padding: 6px 8px;
            background: #444;
            color: #fff;
            font-size: 12px;
        }
        .epaper-page-info {
            margin: 0 6px;
            font-size: 14px;
            white-space: nowrap;
        }

        .epaper-body {
            display: flex;
            width: 100%;
            min-height: 650px;
            min-width: 0;
        }

        .epaper-thumbnails {
            width: 170px;
            min-width: 170px;
            background: #ddd;
            padding: 10px;
            overflow-y: auto;
            max-height: 800px;
        }

        .epaper-thumb-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .epaper-thumb {
            position: relative;
            background: #fff;
            padding: 4px;
            border: 3px solid transparent;
            cursor: pointer;
            border-radius: 4px;
            box-shadow: 0 1px 3px rgba(0,0,0,.2);
        }

        .epaper-thumb:hover {
            border-color: #888;
        }

        .epaper-thumb.active {
            border-color: #0073aa;
        }

        .epaper-thumb canvas {
            width: 100%;
            height: auto;
            display: block;
            background: #fff;
        }

        .epaper-thumb-number {
            text-align: center;
            font-size: 12px;
            color: #333;
            padding: 4px 0 2px;
        }

        .epaper-main {
            flex: 1;
            min-width: 0;
            min-height: 650px;
            background: #777;
            overflow: auto;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            cursor: grab;
            position: relative;
            user-select: none;
            -webkit-user-select: none;
            touch-action: none;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
        }

        .epaper-main.is-dragging {
            cursor: grabbing;
        }

        .epaper-main.is-zoomed {
            justify-content: flex-start;
        }

        .epaper-canvas-wrapper {
            touch-action: none;
            background: #fff;
            box-shadow: 0 2px 10px rgba(0,0,0,.35);
            display: inline-block;
            flex: 0 0 auto;
            transform-origin: top left;
        }

        .epaper-main-canvas {
            display: block;
            max-width: none;
            height: auto;
        }

        .epaper-loading,
        .epaper-main-loading {
            color: #555;
            text-align: center;
            padding: 20px 5px;
        }

        .epaper-main-loading {
            color: #fff;
            position: absolute;
            margin-top: 30px;
            z-index: 2;
        }

        .epaper-no-editions {
            padding: 20px;
            background: #f7f7f7;
            border: 1px solid #ddd;
            border-radius: 6px;
            text-align: center;
        }

        .epaper-mobile-help {
            display: none;
            background: #222;
            color: #ddd;
            text-align: center;
            font-size: 11px;
            padding: 6px;
        }

        /* Mobile thumbnail modes */
        @media (max-width: 700px) {
            .epaper-wrapper {
                width: 100%;
                max-width: 100%;
                margin: 0 auto;
                overflow: visible;
            }

            .epaper-archive-controls {
                width: 100%;
            }

            .epaper-archive-inline {
                flex: 0 0 auto;
            }

            .epaper-calendar-panel {
                width: calc(100vw - 20px);
                max-width: calc(100vw - 20px);
                left: 50%;
                right: auto;
                transform: translateX(-50%);
            }

            .epaper-calendar-day {
                min-height: 40px;
            }

            .epaper-pdf-viewer {
                border-radius: 6px;
            }

            .epaper-toolbar {
                position: relative;
                z-index: 10;
                display: flex;
                justify-content: flex-start;
                gap: 4px;
                padding: 6px;
                background: #5278ee;
                color: #fff;
                border-radius: 0;
                min-height: 42px;
                overflow-x: auto;
                flex-wrap: nowrap;
                -webkit-overflow-scrolling: touch;
            }
            .epaper-toolbar .epaper-online-version,
            .epaper-toolbar .epaper-toolbar-archive,
            .epaper-toolbar .epaper-first,
            .epaper-toolbar .epaper-last { display: none !important; }
            .epaper-toolbar .epaper-location-select-wrap { order: 7; }
            .epaper-toolbar .epaper-prev { order: 2; min-width: 34px !important; }
            .epaper-toolbar .epaper-page-jump-wrap { display: inline-flex !important; order: 3; }
            .epaper-toolbar .epaper-page-jump { min-width: 48px; }
            .epaper-toolbar .epaper-page-info { display: none !important; }
            .epaper-toolbar .epaper-next { order: 4; min-width: 34px !important; }
            .epaper-toolbar .epaper-zoom-out { order: 5; }
            .epaper-toolbar .epaper-zoom-in { display: none !important; }
            .epaper-toolbar .epaper-zoom-reset { order: 6; }
            .epaper-toolbar .epaper-download { order: 8; }
            .epaper-toolbar .epaper-location-select { max-width: 126px; min-width: 100px; height: 34px; }

            .epaper-toolbar .epaper-page-info {
                color: #fff;
                font-weight: 600;
            }

            /* Mobile keeps the essential archive/date picker and PDF download.
             * Desktop-only zoom/page thumbnail controls stay hidden. */
            .epaper-toolbar .epaper-thumbnails-toggle {
                display: none !important;
            }

            .epaper-archive-box {
                display: block !important;
                margin-bottom: 6px;
            }

            .epaper-toolbar .epaper-download {
                display: inline-flex !important;
                align-items: center;
                justify-content: center;
            }

            .epaper-toolbar button,
            .epaper-download {
                padding: 7px 9px;
                min-height: 34px;
                font-size: 12px;
            }
            .epaper-page-info {
                order: 0;
                width: auto;
                text-align: center;
                font-size: 12px;
                margin: 0 6px;
                flex: 0 0 auto;
            }

            .epaper-toolbar .epaper-prev,
            .epaper-toolbar .epaper-next {
                min-width: 72px;
            }

            .epaper-body {
                display: flex;
                flex-direction: column;
                min-height: 0;
            }

            .epaper-thumbnails {
                width: 100%;
                min-width: 100%;
                max-width: 100%;
                max-height: 105px;
                overflow-x: auto;
                overflow-y: hidden;
                padding: 6px;
                flex: 0 0 auto;
            }

            .epaper-thumb-list {
                flex-direction: row;
                align-items: flex-start;
                gap: 6px;
            }

            .epaper-thumb {
                width: 62px;
                min-width: 62px;
                padding: 2px;
                border-width: 2px;
            }

            .epaper-thumb-number {
                font-size: 10px;
                padding: 2px 0;
            }

            .epaper-main {
                width: 100%;
                min-width: 0;
                min-height: 420px;
                height: min(78dvh, 900px);
                max-height: calc(100dvh - 120px);
                padding: 0;
                overflow: auto;
                display: block;
                background: #202020;
                cursor: default;
                user-select: none;
                -webkit-user-select: none;
                touch-action: none;
                overscroll-behavior: contain;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }

            .epaper-main::-webkit-scrollbar {
                width: 0;
                height: 0;
            }

            .epaper-canvas-wrapper {
                width: 100% !important;
                max-width: 100% !important;
                margin: 0 auto !important;
                box-shadow: none;
                background: #fff;
                transform-origin: top left;
            }

            .epaper-main.is-zoomed .epaper-canvas-wrapper {
                width: auto !important;
                max-width: none !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }

            .epaper-main-canvas {
                display: block;
                width: auto !important;
                max-width: none !important;
                height: auto !important;
            }

            .epaper-main:not(.is-zoomed) .epaper-canvas-wrapper,
            .epaper-main:not(.is-zoomed) .epaper-main-canvas {
                width: 100% !important;
                max-width: 100% !important;
            }

            .epaper-mobile-help {
                display: none !important;
            }

            .epaper-thumbnails,
            .epaper-mobile-thumbnails-hidden .epaper-thumbnails,
            .epaper-mobile-thumbnails-off .epaper-thumbnails,
            .epaper-mobile-thumbnails-visible .epaper-thumbnails {
                display: none !important;
            }

            .epaper-main.is-zoomed {
                height: min(82dvh, 920px);
                max-height: calc(100dvh - 120px);
                overflow: auto;
                touch-action: none;
                overscroll-behavior: contain;
                -webkit-overflow-scrolling: touch;
            }

            .epaper-main.is-fit .epaper-canvas-wrapper {
                min-height: 100%;
            }

            .epaper-main.is-pinch-preview .epaper-canvas-wrapper {
                will-change: transform;
            }

        }

        @media (min-width: 701px) {
            .epaper-thumbnails-toggle {
                display: none;
            }
        }

        @media (max-width: 380px) {
            .epaper-toolbar button,
            .epaper-download {
                padding-left: 7px;
                padding-right: 7px;
                font-size: 11px;
            }

            .epaper-calendar-panel {
                padding: 9px;
            }
        }

        /* CSG mobile reader polish */
        @media (max-width: 700px) {
            .epaper-wrapper {
                margin: 10px auto;
                padding: 0 8px;
            }
            .epaper-archive-controls {
                display: grid;
                grid-template-columns: auto minmax(0, 1fr);
                gap: 8px;
                align-items: center;
                padding: 9px;
                background: #fff;
                border: 1px solid #e6e8ec;
                border-radius: 12px;
                box-shadow: 0 3px 12px rgba(20, 30, 50, .06);
            }
            .epaper-archive-inline {
                border: 0;
                border-radius: 8px;
                padding: 9px 11px;
                background: #8a1c1c;
                color: #fff;
                font-weight: 700;
            }
            .epaper-pdf-viewer {
                border: 1px solid #dfe3e8;
                border-radius: 12px;
                overflow: hidden;
                background: #17191d;
                box-shadow: 0 8px 24px rgba(18, 24, 35, .12);
            }
            .epaper-toolbar {
                display: flex;
                align-items: center;
                gap: 4px;
                padding: 6px;
                background: #5278ee;
                overflow-x: auto;
                flex-wrap: nowrap;
            }
            .epaper-toolbar .epaper-prev,
            .epaper-toolbar .epaper-next {
                min-width: 0;
                width: 100%;
                min-height: 40px;
                border: 1px solid rgba(255,255,255,.18);
                border-radius: 9px;
                background: #303640;
                color: #fff;
                font-size: 12px;
                font-weight: 650;
            }
            .epaper-toolbar .epaper-page-info {
                margin: 0;
                padding: 7px 9px;
                border-radius: 8px;
                background: rgba(255,255,255,.1);
                font-size: 12px;
                white-space: nowrap;
            }
            .epaper-toolbar .epaper-crop-share { flex: 0 0 auto !important; min-width: max-content; min-height: 40px; white-space: nowrap; }
            .epaper-toolbar .epaper-download {
                flex: 0 0 auto !important;
                width: auto !important;
                min-width: max-content;
                min-height: 40px;
                margin-top: 0;
                border-radius: 9px;
                background: #a82424;
                color: #fff;
                text-decoration: none;
                font-size: 13px;
                font-weight: 700;
                white-space: nowrap;
            }
            /* Keep the mobile toolbar on one horizontal, swipe-scrollable row. */
            .epaper-toolbar {
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: nowrap !important;
                justify-content: flex-start !important;
                align-items: center !important;
                gap: 4px !important;
                width: 100%;
                max-width: 100%;
                overflow-x: auto !important;
                overflow-y: hidden !important;
                white-space: nowrap !important;
                touch-action: pan-x pan-y;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: thin;
            }
            .epaper-toolbar > *,
            .epaper-toolbar button,
            .epaper-toolbar select,
            .epaper-toolbar a,
            .epaper-toolbar .epaper-archive-box,
            .epaper-toolbar .epaper-location-select-wrap,
            .epaper-toolbar .epaper-page-jump-wrap {
                flex: 0 0 auto !important;
                width: auto;
                max-width: none;
                white-space: nowrap !important;
            }
            .epaper-toolbar .epaper-location-select {
                min-width: 112px;
                max-width: 140px;
            }
            .epaper-main {
                background: #343840;
                height: min(74dvh, 820px);
                min-height: 360px;
                max-height: calc(100dvh - 170px);
                overscroll-behavior: contain;
            }
            .epaper-main.is-page-swiping .epaper-canvas-wrapper {
                transition: transform .12s ease-out;
            }
            .epaper-main-loading {
                color: #f3f4f6;
                font-size: 14px;
            }
            .epaper-mobile-help {
                display: block !important;
                padding: 8px 10px;
                color: #cbd0d8;
                background: #17191d;
                text-align: center;
                font-size: 11px;
                letter-spacing: .1px;
            }
        }
    
        @media (max-width: 767px) {
            .epaper-wrapper {
                margin-top: 0 !important;
                padding-top: 0 !important;
            }
            .epaper-wrapper > .epaper-archive-box {
                margin: 0 !important;
                padding: 0 !important;
            }
            .epaper-pdf-viewer {
                margin-top: 0 !important;
                border-radius: 5px;
            }
            .epaper-toolbar {
                display: flex !important;
                flex-wrap: nowrap !important;
                align-items: center;
                gap: 3px !important;
                padding: 4px !important;
                margin: 0 !important;
                overflow-x: auto !important;
                overflow-y: hidden !important;
                -webkit-overflow-scrolling: touch;
                white-space: nowrap;
                scrollbar-width: thin;
                min-height: 0 !important;
            }
            .epaper-toolbar > * {
                flex: 0 0 auto !important;
                margin-top: 0 !important;
                margin-bottom: 0 !important;
            }
            .epaper-toolbar button,
            .epaper-toolbar .epaper-download {
                min-height: 30px !important;
                height: 30px !important;
                padding: 4px 7px !important;
                font-size: 12px !important;
                line-height: 1 !important;
                border-radius: 4px !important;
            }
            .epaper-toolbar .epaper-toolbar-archive {
                min-width: 54px !important;
                padding: 4px 6px !important;
            }
            .epaper-toolbar .epaper-toolbar-date {
                width: 38px !important;
                max-width: 38px !important;
                height: 30px !important;
                padding: 0 !important;
                color: transparent !important;
                background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E") center / 17px 17px no-repeat !important;
                border: 1px solid #ccc !important;
                font-size: 0 !important;
            }
            .epaper-toolbar .epaper-first,
            .epaper-toolbar .epaper-last,
            .epaper-toolbar .epaper-zoom-in {
                display: none !important;
            }
            .epaper-toolbar .epaper-prev,
            .epaper-toolbar .epaper-next,
            .epaper-toolbar .epaper-zoom-out,
            .epaper-toolbar .epaper-zoom-reset {
                min-width: 30px !important;
                width: auto !important;
            }
            .epaper-toolbar .epaper-page-jump {
                min-width: 42px !important;
                width: 42px !important;
                height: 30px !important;
                font-size: 12px !important;
            }
            .epaper-toolbar .epaper-page-info {
                font-size: 11px !important;
                margin: 0 2px !important;
            }
            .epaper-toolbar .epaper-location-select {
                min-width: 95px !important;
                max-width: 112px !important;
                width: 112px !important;
                height: 30px !important;
                padding: 0 4px !important;
                font-size: 11px !important;
            }
            .epaper-toolbar .epaper-download {
                padding: 4px 7px !important;
            }
            .epaper-body {
                margin-top: 0 !important;
            }
        }

        /* v3.8.2: remove the empty Gutenberg/Classic-editor code paragraph
           that appears immediately before the shortcode viewer. */
        /* Remove the empty paragraph immediately before this shortcode viewer.
           Scope it to the viewer's previous sibling so other code examples remain untouched. */
        .entry-content > p:has(+ .epaper-wrapper),
        .entry-content > p:has(+ div.epaper-wrapper) {
            display: none !important;
            height: 0 !important;
            min-height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
            border: 0 !important;
            line-height: 0 !important;
        }

        /* v3.8.1: hard reset the unwanted blank strip above the toolbar. */
        .epaper-wrapper,
        .epaper-wrapper.epaper-mobile-thumbnails-hidden,
        .epaper-wrapper.epaper-mobile-thumbnails-visible,
        .epaper-wrapper.epaper-mobile-thumbnails-off {
            margin-block: 0 !important;
            padding-block: 0 !important;
            border-block: 0 !important;
        }
        .epaper-wrapper > .epaper-archive-box {
            display: none !important;
            height: 0 !important;
            min-height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
            border: 0 !important;
        }
        .epaper-pdf-viewer {
            display: flex !important;
            flex-direction: column !important;
            margin: 0 !important;
            padding: 0 !important;
            position: relative !important;
            inset-block-start: 0 !important;
        }
        .epaper-pdf-viewer::before,
        .epaper-pdf-viewer::after,
        .epaper-toolbar::before,
        .epaper-toolbar::after {
            content: none !important;
            display: none !important;
        }
        .epaper-main,
        .epaper-main.is-zoomed {
            overflow: auto !important;
            overscroll-behavior: auto !important;
            cursor: grab;
        }
        .epaper-main.is-dragging { cursor: grabbing; }

        /* v3.8.3: keep the reading viewport bounded on desktop too.
           Otherwise the main area grows with the zoomed canvas and has no vertical scroll range. */
        .epaper-main.is-zoomed {
            height: min(82vh, 920px) !important;
            max-height: calc(100vh - 120px) !important;
            min-height: 280px !important;
            overflow: auto !important;
            align-items: flex-start !important;
            justify-content: flex-start !important;
            overscroll-behavior: auto !important;
            touch-action: none !important;
            -webkit-overflow-scrolling: touch;
        }
        .epaper-main.is-zoomed .epaper-canvas-wrapper {
            flex: 0 0 auto !important;
            max-width: none !important;
        }

        .epaper-pdf-viewer > .epaper-toolbar {
            order: 0 !important;
            position: relative !important;
            inset-block-start: 0 !important;
            transform: none !important;
            margin-block-start: 0 !important;
            padding-block-start: 7px !important;
        }
        /* The edition dropdown is intentionally removed; the date picker remains. */
        .epaper-edition-select-wrap,
        .epaper-toolbar .epaper-edition-select,
        .epaper-toolbar .epaper-edition-select-wrap {
            display: none !important;
            visibility: hidden !important;
            width: 0 !important;
            max-width: 0 !important;
            min-width: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
        }

.epaper-latest-cover{max-width:360px;margin:0 auto}.epaper-latest-cover-link{display:block;position:relative;color:inherit;text-decoration:none;background:#f2f2f2;border:1px solid #ddd;box-shadow:0 3px 14px #00000018;overflow:hidden}.epaper-latest-cover-canvas{display:block;width:100%;height:auto;min-height:120px}.epaper-latest-cover-title,.epaper-latest-cover-date{display:block;padding:7px 10px;text-align:center;font-weight:700}.epaper-latest-cover-date{font-size:12px;font-weight:400}

.epaper-archive-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 10px;
        }

        .epaper-archive-list-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 12px 14px;
            border: 1px solid #ddd;
            border-radius: 6px;
            text-decoration: none;
            background: #fff;
            color: #222;
        }

        .epaper-archive-list-item:hover {
            background: #f7f7f7;
        }

        .epaper-archive-list-item small {
            display: block;
            margin-top: 3px;
            color: #777;
            font-size: 11px;
        }

        .epaper-archive-list-item > span:last-child {
            font-size: 12px;
            color: #666;
            white-space: nowrap;
        }

        @media (max-width: 600px) {
            .epaper-archive-list {
                grid-template-columns: 1fr;
            }
        }
