/* প্রিন্ট সংস্করণ ও ই-পেপার — পুরনো কাগজের পত্রিকার মতো পাতা */
:root { --accent: #d7141a; --ink: #1b1b1b; --paper: #fbf8f1; --rule: #cfc8b8; --muted: #6f6a60; }
* { box-sizing: border-box; }
body { margin: 0; background: #d9d6cf; color: var(--ink); font: 16px/1.7 "Noto Serif Bengali", "Hind Siliguri", serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* উপরের বোতামের সারি (ছাপায় আসে না) */
.toolbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 10px 16px; background: #1d1f24; color: #e7e7e7; font: 600 14.5px "Hind Siliguri", sans-serif; }
.toolbar a:hover { color: #fff; text-decoration: underline; }
.toolbar .grow { flex: 1; }
.pbtn { border: 1px solid #555; background: transparent; color: #fff; font: inherit; padding: 6px 14px; border-radius: 6px; cursor: pointer; }
.pbtn.main { background: var(--accent); border-color: var(--accent); }
.datepick input { font: inherit; padding: 4px 8px; border-radius: 5px; border: 0; }
.pages-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; max-width: 1040px; margin: 0 auto; font: 600 14px "Hind Siliguri", sans-serif; }
.pages-nav a { background: #fff; border-radius: 14px; padding: 3px 12px; white-space: nowrap; }
.pages-nav a:hover { background: var(--accent); color: #fff; }

/* কাগজের পাতা */
.sheet { max-width: 1000px; margin: 18px auto 28px; background: var(--paper); padding: 34px 44px 26px; box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 12px 30px rgba(0,0,0,.12);
  background-image: radial-gradient(rgba(120,100,60,.05) 1px, transparent 1px); background-size: 4px 4px; }
.sheet.clip { max-width: 820px; }

/* নামফলক */
.mast { text-align: center; border-bottom: 4px double var(--ink); padding-bottom: 10px; margin-bottom: 14px; }
.mast-line { display: flex; justify-content: space-between; font: 600 13.5px "Hind Siliguri", sans-serif; color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: 6px; margin-bottom: 10px; }
.mast-name { display: inline-block; }
.mast-name b { font: 800 60px/1.15 "Noto Serif Bengali", serif; color: var(--accent); letter-spacing: -1px; }
.mast-name img { max-height: 84px; width: auto; margin: 0 auto; }
.mast-tag { margin: 4px 0 0; font-size: 14px; color: var(--muted); font-style: italic; }
.strip { display: flex; justify-content: space-between; gap: 10px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 4px 0; margin-bottom: 18px; font: 700 13.5px "Hind Siliguri", sans-serif; }
.strip .sec { color: var(--accent); font-size: 18px; font-family: "Noto Serif Bengali", serif; }
.sheet:not(.front) .strip { margin-top: 0; }

/* প্রিন্ট সংস্করণের খবর */
.kicker { display: flex; gap: 10px; align-items: center; font: 700 14.5px "Hind Siliguri", sans-serif; margin: 6px 0 8px; }
.kicker .cat { background: var(--accent); color: #fff; padding: 1px 10px; }
.kicker span + span { color: var(--accent); }
.clip h1 { font-size: 40px; line-height: 1.3; margin: 0 0 10px; font-weight: 800; }
.deck { font-size: 19px; margin: 0 0 12px; color: #333; }
.by { font: 14.5px "Hind Siliguri", sans-serif; color: var(--muted); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 6px 0; margin: 0 0 16px; }
.by b { color: var(--ink); }
.photo { margin: 0 0 16px; }
.photo img { width: 100%; filter: saturate(.92) contrast(1.02); }
.photo figcaption { font: 13.5px "Hind Siliguri", sans-serif; color: var(--muted); padding: 5px 0; border-bottom: 1px solid var(--rule); }
.cols { column-count: 2; column-gap: 34px; column-rule: 1px solid var(--rule); font-size: 17px; line-height: 1.8; text-align: justify; hyphens: auto; }
.cols > p:first-child::first-letter { float: left; font-size: 3.4em; line-height: .9; font-weight: 800; color: var(--accent); margin: 6px 8px 0 0; }
.cols p { margin: 0 0 .9em; }
.cols h2, .cols h3 { column-span: none; font-size: 19px; margin: .6em 0 .3em; break-after: avoid; }
.cols blockquote { margin: .8em 0; padding: 6px 12px; border-left: 3px solid var(--accent); font-weight: 600; break-inside: avoid; }
.cols figure { margin: .6em 0; break-inside: avoid; }
.cols figcaption { font-size: 13px; color: var(--muted); }
.cols img { break-inside: avoid; }
.cols a { text-decoration: underline; }
.cols .vid { font-style: italic; color: var(--muted); }
.cols table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cols td, .cols th { border: 1px solid var(--rule); padding: 3px 6px; }
.source { font: 13px "Hind Siliguri", sans-serif; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 8px; margin: 18px 0 0; word-break: break-all; }
.imprint { margin-top: 22px; border-top: 3px double var(--ink); padding-top: 8px; text-align: center; font: 12.5px/1.6 "Hind Siliguri", sans-serif; color: var(--muted); }
.none { text-align: center; padding: 50px 0; font-family: "Hind Siliguri", sans-serif; }
.none a { color: var(--accent); font-weight: 700; }

/* ই-পেপারের খবর */
.st h3 { margin: 0; font-weight: 800; line-height: 1.32; }
.st a:hover h3 { color: var(--accent); }
.st p { margin: 6px 0 0; font-size: 15px; line-height: 1.7; text-align: justify; }
.st .sh { display: block; color: var(--accent); font: 700 13.5px "Hind Siliguri", sans-serif; margin-bottom: 2px; }
.st .cont { color: var(--accent); font: 700 13px "Hind Siliguri", sans-serif; white-space: nowrap; }
.st img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 8px; filter: saturate(.9); }
.front-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 0 26px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; }
.st.lead h3 { font-size: 34px; }
.st.lead p { font-size: 16.5px; column-count: 2; column-gap: 22px; column-rule: 1px solid var(--rule); }
.st.lead img { aspect-ratio: 16 / 9; }
.front-side { border-left: 1px solid var(--rule); padding-left: 22px; }
.st.side { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--rule); }
.st.side:last-child { border-bottom: 0; margin-bottom: 0; }
.st.side h3 { font-size: 20px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 36px; }
.news-grid .st { position: relative; }
.news-grid .st::before { content: ""; position: absolute; left: -18px; top: 0; bottom: 0; border-left: 1px solid var(--rule); }
.news-grid .st:nth-child(3n + 1)::before { display: none; }
.news-grid .st h3 { font-size: 19px; }

@media (max-width: 760px) {
  .sheet { padding: 20px 16px 18px; margin: 10px 0 16px; }
  .mast-name b { font-size: 40px; }
  .mast-line { font-size: 12px; }
  .clip h1 { font-size: 28px; }
  .cols, .st.lead p { column-count: 1; }
  .front-grid { grid-template-columns: minmax(0, 1fr); }
  .front-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 14px; }
  .st.lead h3 { font-size: 26px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .news-grid .st::before, .news-grid .st:nth-child(3n + 1)::before { display: block; left: -10px; }
  .news-grid .st:nth-child(2n + 1)::before { display: none; }
  .toolbar { font-size: 13.5px; }
}

/* ছাপার সময়: শুধু পাতা, প্রতিটি পাতা আলাদা কাগজে */
@page { size: A4; margin: 12mm; }
@media print {
  body { background: #fff; }
  .toolbar, .pages-nav, .pc-modal { display: none !important; }
  .sheet { box-shadow: none; margin: 0; max-width: none; padding: 0; background: #fff; break-after: page; }
  .sheet:last-of-type { break-after: auto; }
  .st, .photo { break-inside: avoid; }
  a { color: inherit; }
}

/* ফটোকার্ডের জানালা (প্রিন্ট পাতা থেকেও খোলে) */
.pc-modal { position: fixed; inset: 0; background: rgba(10,12,16,.72); z-index: 100; display: grid; place-items: center; padding: 16px; }
.pc-modal[hidden] { display: none; }
.pc-box { background: #fff; border-radius: 12px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 16px 18px 14px; font-family: "Hind Siliguri", sans-serif; color: #16181d; }
.pc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 18px; }
.pc-x { border: 0; background: #f1f2f4; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.pc-designs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pc-designs button { border: 1px solid #dfe2e7; background: #fff; border-radius: 16px; padding: 4px 13px; font: 600 14px "Hind Siliguri", sans-serif; cursor: pointer; }
.pc-designs button.on { background: #16181d; color: #fff; border-color: #16181d; }
.pc-stage { position: relative; background: #f1f2f4; border-radius: 8px; overflow: hidden; }
.pc-stage canvas { display: block; width: 100%; height: auto; }
.pc-status { position: absolute; inset: 0; display: grid; place-items: center; color: #6b717c; pointer-events: none; }
.pc-status:empty { display: none; }
.pc-actions { display: flex; gap: 8px; margin-top: 12px; }
.pc-actions .btn { flex: 1; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: 700 15.5px "Hind Siliguri", sans-serif; padding: 10px; border-radius: 7px; cursor: pointer; }
.pc-actions .btn.ghost { background: #fff; color: #16181d; border-color: #d5d9e0; }
.pc-note { font-size: 12.5px; color: #6b717c; margin: 10px 0 0; text-align: center; }
