/* Full-width breakout so plugin fills the page even inside a themed container.
   Uses the calc trick — safer on mobile (no horizontal scroll from scrollbar width). */
.bepaper-fullbleed { width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); background:#fcfbf8; overflow-x:hidden; }
.bepaper { max-width:1400px; margin:0 auto; padding:24px 28px; background:#fcfbf8; color:#111; font-family: 'Noto Serif Bengali', Georgia, serif; box-sizing:border-box; }
.bepaper *, .bepaper *::before, .bepaper *::after { box-sizing:border-box; }
.bepaper-header { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; font-size:13px; color:#555; padding-bottom:8px; border-bottom:1px solid #ddd; }
.bepaper-masthead { text-align:center; font-size:56px; font-weight:800; margin:16px 0 4px; letter-spacing:-1px; }
.bepaper-tagline { text-align:center; color:#666; margin:0 0 12px; }
.bepaper-logo-wrap { text-align:center; margin:16px 0 12px; }
.bepaper-logo { max-height:110px; max-width:100%; height:auto; width:auto; display:inline-block; }
.bepaper-rule { border:0; border-top:2px solid #111; margin:8px 0 24px; }
.bepaper-hero { display:grid; grid-template-columns:1fr 1fr; gap:24px; background:#fff; border:1px solid #eee; border-radius:6px; padding:20px; text-decoration:none; color:inherit; margin-bottom:24px; cursor:pointer; }
.bepaper-hero img { width:100%; height:100%; object-fit:cover; border-radius:4px; max-height:420px; }
.bepaper-hero h2 { font-size:32px; margin:8px 0; line-height:1.25; }
.bepaper-cat { color:#b12c2c; font-size:13px; font-weight:600; text-transform:uppercase; }
.bepaper-section-title { font-size:20px; border-bottom:1px solid #333; padding-bottom:6px; margin:24px 0 12px; }
.bepaper-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.bepaper-card-item { background:#fff; border:1px solid #eee; border-radius:6px; padding:12px; text-decoration:none; color:inherit; display:block; cursor:pointer; transition:box-shadow .15s; }
.bepaper-card-item:hover { box-shadow:0 4px 12px rgba(0,0,0,.08); }
.bepaper-card-item img { width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:4px; }
.bepaper-card-item h4 { font-size:17px; margin:8px 0 4px; line-height:1.3; }
.bepaper-card-item p { font-size:13px; color:#555; margin:0; }
@page { size: A4 portrait; margin: 8mm; }
@media print {
  html, body { background:#fff !important; }
  .bepaper-fullbleed { width:100% !important; margin:0 !important; padding:0 !important; }
  .bepaper { background:#fff !important; padding:0 !important; margin:0 auto !important; max-width:none !important; transform-origin: top left; }
  a { color:inherit; text-decoration:none; }
  .bepaper-modal { display:none !important; }
  .bepaper-toolbar, .bepaper-ad { display:none !important; }
  .bepaper-hero, .bepaper-card-item, .bepaper-section, .bepaper-grid { break-inside: avoid; page-break-inside: avoid; }
  .bepaper-hero img, .bepaper-card-item img { max-height:180px !important; }
}

@media (max-width:768px) {
  .bepaper { padding:16px 14px; }
  .bepaper-hero { grid-template-columns:1fr; padding:14px; gap:14px; }
  .bepaper-masthead { font-size:32px; }
  .bepaper-hero h2 { font-size:22px; }
  .bepaper-grid { grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; }
  .bepaper-card-item h4 { font-size:15px; }
}

/* Ad slots */
.bepaper-ad { margin:20px 0; text-align:center; }
.bepaper-ad img { max-width:100%; height:auto; display:inline-block; }
.bepaper-ad.bepaper-ad-top { margin:0 0 16px; }
.bepaper-ad.bepaper-ad-footer { margin:32px 0 8px; }
.bepaper-ad-label { display:block; font-size:10px; text-transform:uppercase; letter-spacing:.08em; color:#94a3b8; margin-bottom:4px; }

/* ---------- Classic broadsheet modal ---------- */
.bepaper-modal { position:fixed; inset:0; background:rgba(0,0,0,.65); display:none; z-index:99999; }
.bepaper-modal.is-open { display:block; }
.bepaper-modal-scroll { position:absolute; inset:0; overflow-y:auto; overflow-x:hidden; padding:20px 12px; -webkit-overflow-scrolling:touch; }
.bepaper-modal-dialog { max-width:900px; width:100%; margin:0 auto; background:#fdfbf7; border:2px solid #000; box-shadow:0 20px 60px rgba(0,0,0,.45); position:relative; }
.bepaper-modal-close { position:absolute; top:8px; right:10px; background:#fff; border:1px solid #000; border-radius:4px; width:32px; height:32px; font-size:20px; line-height:1; cursor:pointer; z-index:2; }
.bepaper-modal-close:hover { background:#000; color:#fff; }
.bepaper-modal-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 14px 8px 14px; padding-right:52px; border-bottom:1px solid #000; background:#f3f3ee; font-family:'Noto Serif Bengali',Georgia,serif; }
.bepaper-modal-brand { font-size:11px; text-transform:uppercase; letter-spacing:.18em; color:#555; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bepaper-modal-btns { display:flex; gap:6px; }
.bepaper-modal-actions button { border:1px solid #000; background:#fff; padding:6px 12px; font-size:12px; font-weight:700; letter-spacing:.03em; cursor:pointer; border-radius:3px; transition:all .15s; font-family:inherit; }
.bepaper-modal-actions button:hover:not(:disabled) { background:#000; color:#fff; }
.bepaper-modal-actions button:disabled { opacity:.6; cursor:wait; }
.bepaper-modal-body { background:#e2e2d5; padding:14px; }
.bepaper-article { background:#fdfbf7; border:1px solid rgba(0,0,0,.7); padding:22px 22px 20px; font-family:'Noto Serif Bengali',Georgia,serif; color:#111; max-width:820px; margin:0 auto; }
.bepaper-article .np { text-align:center; border-top:3px double #000; border-bottom:3px double #000; padding:8px 0; margin-bottom:14px; }
.bepaper-article .np .n { font-size:26px; font-weight:800; letter-spacing:-.5px; line-height:1; }
.bepaper-article .np .d { font-size:10px; letter-spacing:.28em; text-transform:uppercase; color:#444; margin-top:6px; }
.bepaper-article .kicker { display:inline-block; border-bottom:2px solid #000; padding-bottom:2px; margin-bottom:8px; font-size:11px; letter-spacing:.2em; text-transform:uppercase; font-weight:700; }
.bepaper-article h1.title { font-size:28px; line-height:1.15; font-weight:800; margin:0 0 8px; }
.bepaper-article .lede { border-left:2px solid #000; padding:2px 0 2px 12px; font-style:italic; color:#222; margin:0 0 10px; font-size:15px; }
.bepaper-article .meta { display:flex; flex-wrap:wrap; gap:4px 16px; border-top:1px solid #000; border-bottom:1px solid #000; padding:6px 0; font-size:11px; color:#444; margin-bottom:14px; }
.bepaper-article figure { margin:0 0 14px; border:1px solid rgba(0,0,0,.2); }
.bepaper-article figure img { width:100%; display:block; }
.bepaper-article figure figcaption { font-size:11px; font-style:italic; color:#666; padding:4px 8px; border-top:1px solid rgba(0,0,0,.1); }
.bepaper-article .content { font-size:15px; line-height:1.85; text-align:justify; column-count:3; column-gap:26px; column-rule:1px solid rgba(0,0,0,.25); hyphens:auto; }
.bepaper-article .content > p:first-of-type::first-letter { float:left; font-size:58px; line-height:.9; font-weight:800; padding:4px 8px 0 0; font-family:'Noto Serif Bengali',Georgia,serif; color:#111; }
.bepaper-article .content p { margin:0 0 12px; break-inside:avoid-column; }
.bepaper-article .content h1,.bepaper-article .content h2,.bepaper-article .content h3,.bepaper-article .content figure,.bepaper-article .content blockquote { break-inside:avoid-column; }
.bepaper-article .content img { max-width:100%; height:auto; }
@media (max-width:900px){ .bepaper-article .content { column-count:2; column-gap:18px; } }
@media (max-width:600px){ .bepaper-article .content { column-count:1; } }
.bepaper-article .foot { margin-top:16px; padding-top:8px; border-top:3px double #000; text-align:center; font-size:11px; letter-spacing:.15em; text-transform:uppercase; color:#444; }
.bepaper-article .permalink { display:block; text-align:center; margin-top:10px; font-size:12px; color:#b12c2c; text-decoration:none; }
.bepaper-article .permalink:hover { text-decoration:underline; }
body.bepaper-modal-open { overflow:hidden; }
@media (max-width:640px) {
  .bepaper-modal-scroll { padding:8px 6px; }
  .bepaper-modal-body { padding:8px; }
  .bepaper-article { padding:16px 14px; }
  .bepaper-article h1.title { font-size:22px; }
  .bepaper-article .np .n { font-size:20px; }
  .bepaper-modal-actions { padding:8px 10px 8px 10px; padding-right:48px; }
  .bepaper-modal-brand { font-size:10px; letter-spacing:.12em; }
}
