/* E-Paper viewer — Daily Morning Times v1.8.1.
   Matches the Maruf News Template: white background, red #ED1C24 accent,
   Playfair Display headings, Source Sans 3 body. Scoped to .epaper-page
   so it never leaks into the rest of the theme. */

.epaper-page{max-width:980px;margin:0 auto;padding:8px 0 32px}
.epaper-page .s-title{font-family:var(--serif);font-size:clamp(26px,4vw,36px);margin:0 0 4px}
.epaper-date{color:var(--mid);font-size:15px;margin:0 0 18px}
.epaper-date a{color:var(--red);font-weight:600}
.epaper-date a:hover{text-decoration:underline}

/* The viewer HTML generated by build_epaper.py brings its own inline
   styles; these rules only make it sit well inside the theme wrap. */
.epaper-viewer .epaper{max-width:100%;padding:0}
.epaper-viewer .epaper header h1{font-family:var(--serif)}
.epaper-viewer .ep-masthead h1{font-family:var(--serif)}
.epaper-viewer .allpages button.active{border-color:var(--red)}
.epaper-viewer .pagenav button{background:var(--red)}
.epaper-viewer .pagenav button.active{background:var(--red-d)}
.epaper-viewer .pagenav .nextpage{background:var(--ink)}
.epaper-viewer .ep-tools .btn{background:var(--ink)}
.epaper-viewer .ep-tools .btn.active{background:var(--red)}
.epaper-viewer .modal .actions button,.epaper-viewer .modal .actions a{background:var(--red)}
.epaper-viewer .modal .actions .cont{background:var(--red-d)}
.epaper-viewer .modal h2{font-family:var(--serif)}

.epaper-empty{border:1px solid var(--line);background:var(--soft);padding:22px;border-radius:6px}
.epaper-empty p{margin:0 0 8px}
.epaper-empty a{color:var(--red);font-weight:600}

/* Archive list */
.epaper-archive{list-style:none;margin:0 0 8px;padding:0;border-top:1px solid var(--line)}
.epaper-archive li{border-bottom:1px solid var(--line)}
.epaper-archive li a{display:flex;gap:14px;align-items:baseline;padding:12px 4px}
.epaper-archive li a:hover .epaper-archive-title{color:var(--red)}
.epaper-archive-date{flex:0 0 auto;font-weight:600;font-size:15px;color:var(--mid);min-width:170px}
.epaper-archive-title{font-family:var(--serif);font-weight:700;font-size:18px}
.epaper-archive li.current{background:var(--soft)}
.epaper-archive li.current .epaper-archive-title{color:var(--red)}
.epaper-archive li.current .epaper-archive-title::after{content:" — reading now";font-family:var(--sans);font-size:13px;font-weight:600;color:var(--mid)}

/* Header E-Paper link (mobile, next to Home) is styled in main.css
   next to .nav-home, so it shows on every page, not just this one. */
@media (max-width:680px){
  .epaper-archive li a{flex-direction:column;gap:2px}
  .epaper-archive-date{min-width:0}
  .epaper-page{padding:4px 0 24px}
}
