/* খবর ডেইলি ই-পেপার: পাঠক ও অ্যাডমিন দুই দিকের স্টাইল */
@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@400;500;600;800&family=Noto+Serif+Bengali:wght@500;700;800&family=Poppins:wght@500;600&display=swap');

/* Layout: sticky app bar + live-score strip, then a reader (page rail + newspaper page) or an admin console with four tabs. */
:root{
  --bg:#F3F6F4; --surface:#FFFFFF; --ink:#16211B; --mut:#5B6B62; --line:#D8E2DB;
  --g:#00552D; --gd:#003D20; --gl:#E3EFE7; --on-g:#FFFFFF;
  --live:#C62828; --warn:#8A5A00; --warn-bg:#FFF1D6;
  --paper:#FFFFFF; --paper-ink:#171717; --paper-mut:#5a5f5c; --paper-line:#cfd6d1;
  --hd:'Noto Serif Bengali','Anek Bangla',serif; --bd:'Anek Bangla','Poppins',sans-serif; --num:'Poppins','Anek Bangla',sans-serif;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0E1511; --surface:#16201A; --ink:#E6EEE9; --mut:#9DB0A5; --line:#28372E;
  --g:#3FBF7F; --gd:#2E9A63; --gl:#1D3326; --on-g:#06180E; --live:#FF6B6B; --warn:#F0C26B; --warn-bg:#3A2E10; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0E1511; --surface:#16201A; --ink:#E6EEE9; --mut:#9DB0A5; --line:#28372E;
  --g:#3FBF7F; --gd:#2E9A63; --gl:#1D3326; --on-g:#06180E; --live:#FF6B6B; --warn:#F0C26B; --warn-bg:#3A2E10; color-scheme:dark}
[hidden]{display:none!important}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--bd);font-size:15px;line-height:1.55;padding-block:0;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
button,input,select,textarea{font:inherit;color:inherit}
.wrap{max-width:1240px;margin:0 auto}
/* app bar */
.bar{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:var(--surface);border-bottom:1px solid var(--line);margin:0 calc(-1*max(16px,env(safe-area-inset-left,0px)));padding:0 max(16px,env(safe-area-inset-left,0px))}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:30;background:var(--surface)}
.bar .in{max-width:1240px;margin:0 auto;display:flex;align-items:center;gap:14px;height:58px;flex-wrap:wrap}
.logo{display:flex;align-items:center;gap:9px;text-decoration:none;color:inherit}
.logo .ic{width:34px;height:34px;border-radius:8px;background:var(--g);position:relative;flex:none}
.logo .ic span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--on-g);font-weight:800;font-size:22px;line-height:1;padding-top:5px;padding-right:3px}
.logo .ic svg{position:absolute;inset:0}
.logo b{font-weight:800;font-size:22px;color:var(--g);line-height:1}
.logo i{font-style:normal;font-family:var(--num);font-weight:600;font-size:16px;margin-left:5px;color:var(--ink)}
.logo small{display:block;font-size:11px;color:var(--mut);letter-spacing:.04em;margin-top:2px;font-family:var(--bd)}
.tabs{margin-left:auto;display:flex;gap:4px;background:var(--bg);padding:3px;border-radius:10px}
.tabs button{border:0;background:none;padding:6px 14px;border-radius:8px;cursor:pointer;color:var(--mut);font-weight:600}
.tabs button[aria-selected=true]{background:var(--surface);color:var(--g);box-shadow:0 1px 3px rgba(0,0,0,.12)}
:focus-visible{outline:2px solid var(--g);outline-offset:2px}
/* live ticker */
.ticker{display:flex;align-items:center;gap:0;overflow-x:auto;border-bottom:1px solid var(--line);margin:0 calc(-1*max(16px,env(safe-area-inset-left,0px)));padding:0 max(16px,env(safe-area-inset-left,0px));background:var(--gl);scrollbar-width:none}
.ticker::-webkit-scrollbar{display:none}
.ticker .in{max-width:1240px;margin:0 auto;display:flex;gap:0;width:100%}
.tk{display:flex;align-items:center;gap:9px;padding:7px 16px 7px 0;margin-right:16px;border-right:1px solid var(--line);white-space:nowrap;font-size:13px;cursor:default}
.tk:last-child{border-right:0}
.tk .lv{font-family:var(--num);font-size:10.5px;font-weight:600;letter-spacing:.06em;color:#fff;background:var(--live);border-radius:4px;padding:1px 6px;display:inline-flex;align-items:center;gap:4px}
.tk .lv:before{content:"";width:6px;height:6px;border-radius:50%;background:#fff;animation:pl 1.2s infinite}
@keyframes pl{50%{opacity:.25}}
.tk .st{font-size:11.5px;color:var(--mut)}
.tk .sc{font-family:var(--num);font-weight:600;font-size:14px;color:var(--ink)}
.tk .lg{font-size:11.5px;color:var(--mut)}
.tkhead{font-weight:800;color:var(--g);padding:7px 14px 7px 0;white-space:nowrap;font-size:13px}
/* reader toolbar */
.tool{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:14px 0}
.tool .grp{display:flex;align-items:center;gap:6px}
.btn{border:1px solid var(--line);background:var(--surface);border-radius:9px;padding:6px 12px;cursor:pointer;font-weight:600;color:var(--ink);display:inline-flex;align-items:center;gap:6px;line-height:1.3}
.btn:hover{border-color:var(--g)}
.btn.pri{background:var(--g);border-color:var(--g);color:var(--on-g)}
.btn.sm{padding:3px 9px;font-size:13px}
.btn.dng{color:var(--live)}
.btn[disabled]{opacity:.45;cursor:default}
.date{display:flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:2px}
.date input{border:0;background:none;padding:5px 6px;font-family:var(--num)}
.seg{display:inline-flex;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--surface)}
.seg button{border:0;background:none;padding:6px 12px;cursor:pointer;font-weight:600;color:var(--mut)}
.seg button[aria-pressed=true]{background:var(--g);color:var(--on-g)}
.edn{margin-left:auto;font-size:13px;color:var(--mut)}
.demo{background:var(--warn-bg);color:var(--warn);border-radius:10px;padding:8px 12px;font-size:13px;margin-bottom:12px}
/* reader layout */
.reader{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;align-items:start;padding-bottom:40px}
.rail{position:sticky;top:calc(70px + env(safe-area-inset-top,0px));display:flex;flex-direction:column;gap:7px;max-height:calc(100vh - 110px);overflow:auto;padding-right:3px}
.th{border:1.5px solid var(--line);background:var(--surface);border-radius:10px;padding:7px 9px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:1px}
.th b{font-family:var(--num);font-size:12px;color:var(--mut);font-weight:600}
.th span{font-size:13.5px;font-weight:600;line-height:1.25}
.th[aria-current=true]{border-color:var(--g);background:var(--gl)}
.th .ad{font-size:11px;color:var(--warn);font-weight:600}
.stage{min-width:0;overflow-x:auto;padding-bottom:6px}
.paperwrap{display:flex;justify-content:center}
.paper{--z:1;font-size:calc(var(--z)*14px);width:54em;background:var(--paper);color:var(--paper-ink);box-shadow:0 2px 6px rgba(0,0,0,.12),0 12px 34px rgba(0,0,0,.14);padding:1.1em 1.3em 1em;font-family:var(--bd);line-height:1.5;flex:none;border-radius:2px}
.pnav{display:flex;align-items:center;justify-content:center;gap:12px;margin:14px 0 0}
.pnav .n{font-family:var(--num);font-weight:600;font-size:14px}
/* masthead */
.mast{display:flex;align-items:flex-end;justify-content:space-between;gap:1em;border-bottom:.2em solid #00552D;padding-bottom:.55em}
.mast .lg{display:flex;align-items:center;gap:.6em}
.mast .ic{width:3.4em;height:3.4em;background:#00552D;border-radius:.8em;position:relative;flex:none}
.mast .ic span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:2.2em;line-height:1;padding-top:.17em;padding-right:.09em}
.mast .ic svg{position:absolute;inset:0;width:100%;height:100%}
.mast h1{margin:0;font-size:3.4em;line-height:1;font-weight:800;color:#00552D;font-family:var(--bd)}
.mast h1 i{font-style:normal;font-family:var(--num);font-weight:600;font-size:.754em;color:#1b1b1b;margin-left:.12em}
.mast .tag{font-size:.9em;color:var(--paper-mut);margin-top:.2em}
.mast .meta{text-align:right;font-size:.86em;color:var(--paper-mut);line-height:1.5}
.mast .meta b{color:#00552D;font-size:1.15em}
.pbar{display:flex;justify-content:space-between;align-items:center;background:#00552D;color:#fff;margin:.6em 0;padding:.3em .8em;font-weight:800;font-size:1.15em;border-radius:.2em}
.pbar span{font-family:var(--num);font-size:.8em;font-weight:500}
.paper .ear{display:flex;gap:.6em;margin:.55em 0 0}
.paper .ear>*{flex:1}
/* grid */
.pg{display:grid;grid-template-columns:repeat(4,1fr);gap:.9em;margin:.7em 0}
.cell{min-width:0}
.s1{grid-column:span 4}.s2{grid-column:span 2}.s3{grid-column:span 3}
.cat{font-size:.74em;font-weight:600;color:#00552D;letter-spacing:.02em}
.art{cursor:pointer;border-radius:.2em}
.art:hover h2,.art:hover h3{color:#00552D}
.art:focus-visible{outline:2px solid #00552D;outline-offset:3px}
.art h2{font-family:var(--hd);font-weight:800;font-size:2em;line-height:1.28;margin:.15em 0 .3em}
.art h3{font-family:var(--hd);font-weight:700;font-size:1.12em;line-height:1.35;margin:.1em 0 .25em}
.art p{margin:0;font-size:.92em;color:#2c312e;line-height:1.6}
.art .by{font-size:.74em;color:var(--paper-mut);margin-top:.35em}
.img{aspect-ratio:16/10;border-radius:.2em;background:linear-gradient(135deg,#BFD8C7,#7FB495);position:relative;overflow:hidden;margin-bottom:.4em}
.img:after{content:"";position:absolute;right:-2em;bottom:-2em;width:9em;height:9em;border-radius:50%;border:.5em solid rgba(255,255,255,.35);box-shadow:0 0 0 1.1em rgba(255,255,255,.18)}
.img.t{aspect-ratio:16/9}
.img.l{aspect-ratio:2.3/1}
.rule{border-top:1px solid var(--paper-line);margin:.2em 0}
.col{border-left:1px solid var(--paper-line);padding-left:.9em}
.pfoot{display:flex;justify-content:space-between;border-top:1px solid var(--paper-line);padding-top:.5em;margin-top:.8em;font-size:.78em;color:var(--paper-mut)}
.pfoot b{font-family:var(--num)}
/* ads on paper */
.adbox{position:relative;border:1px solid #b9c7be;border-radius:.25em;overflow:hidden;display:flex;flex-direction:column;justify-content:center;text-decoration:none;color:inherit;background:#fff}
.adbox:before{content:"বিজ্ঞাপন";position:absolute;right:.4em;top:.25em;font-size:.62em;color:#7b867f;letter-spacing:.04em}
.adbox img{width:100%;height:100%;object-fit:cover;display:block}
.adbox.green{background:linear-gradient(135deg,#00552D,#003D20);color:#fff;border-color:#00552D}
.adbox.green:before{color:rgba(255,255,255,.7)}
.adbox.light{background:#E8F3EC}
.adbox.dark{background:#1b1b1b;color:#fff;border-color:#1b1b1b}
.adbox .h{font-weight:800;line-height:1.25}
.adbox .s{opacity:.88;line-height:1.4}
.adbox .p{font-family:var(--num);font-weight:600;margin-top:.3em}
.ad-top,.ad-bottom{width:100%;height:5.6em;padding:.5em 1.2em;gap:.1em}
.ad-top .h,.ad-bottom .h{font-size:1.5em}.ad-top .s,.ad-bottom .s{font-size:.92em}
.ad-ear{height:4.6em;padding:.5em .8em}.ad-ear .h{font-size:1.02em}.ad-ear .s{font-size:.76em}
.ad-side{min-height:16em;padding:1em .9em;text-align:center}
.ad-side .h{font-size:1.3em}.ad-side .s{font-size:.86em;margin-top:.35em}
.ad-fullpage{min-height:70em;padding:2em;text-align:center;align-items:center}
.ad-fullpage .h{font-size:3.2em}.ad-fullpage .s{font-size:1.3em;margin-top:.6em}.ad-fullpage .p{font-size:1.5em}
.adbox.ad-full{width:100%}
.adbox.ad-half{width:50%}
.adbox.ad-third{width:33.333%}
.adbox.ad-half,.adbox.ad-third{margin-left:auto;margin-right:auto}
.adslot{border:1.5px dashed #9fb3a6;border-radius:.25em;color:#6d7c73;font-size:.8em;display:flex;align-items:center;justify-content:center;text-align:center;padding:.5em}
/* article modal */
.mod{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:50;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:max(20px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 40px max(16px,env(safe-area-inset-left,0px))}
.mod .card{background:var(--paper);color:var(--paper-ink);border-radius:10px;max-width:680px;width:100%;padding:24px 26px 28px;position:relative;margin-top:20px}
.mod h2{font-family:var(--hd);font-weight:800;font-size:28px;line-height:1.3;margin:6px 0 10px}
.mod .x{position:absolute;right:12px;top:10px}
.mod p{font-size:16.5px;line-height:1.85;margin:0 0 14px;color:#2a2f2c}
.mod .meta{font-size:13px;color:var(--paper-mut)}
/* text view */
.tv{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.tv .art{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px 16px}
.tv .art h3{font-size:19px;color:var(--ink)}
.tv .art p{color:var(--mut);font-size:14.5px}
.tv .cat{color:var(--g)}
/* admin */
.adm{padding:18px 0 50px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:16px}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 14px}
.stat b{display:block;font-family:var(--num);font-size:24px;line-height:1.2;color:var(--g)}
.stat span{font-size:13px;color:var(--mut)}
.sub{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.sub button{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:5px 14px;cursor:pointer;font-weight:600;color:var(--mut)}
.sub button[aria-selected=true]{background:var(--g);border-color:var(--g);color:var(--on-g)}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px}
.panel h3{margin:0 0 4px;font-size:18px}
.panel .lead{margin:0 0 12px;color:var(--mut);font-size:14px}
.two{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px;align-items:start}
.tbl{overflow-x:auto}
table{border-collapse:collapse;width:100%;min-width:560px}
th{text-align:left;font-size:12.5px;color:var(--mut);padding:6px 8px;border-bottom:1px solid var(--line);font-weight:600;white-space:nowrap}
td{padding:8px;border-bottom:1px solid var(--line);vertical-align:middle;font-size:14px}
td.num{font-family:var(--num);font-variant-numeric:tabular-nums}
.pill{display:inline-block;border-radius:999px;padding:0 9px;font-size:12px;font-weight:600;background:var(--gl);color:var(--g)}
.pill.off{background:var(--bg);color:var(--mut)}
.pill.w{background:var(--warn-bg);color:var(--warn)}
.pill.lv{background:var(--live);color:#fff}
.fm{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.fm label{display:flex;flex-direction:column;gap:3px;font-size:13px;color:var(--mut);min-width:0}
.fm .full{grid-column:1/-1}
.fm input,.fm select,.fm textarea{border:1px solid var(--line);background:var(--bg);border-radius:8px;padding:7px 9px;color:var(--ink);min-width:0;width:100%}
.fm .row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.chk{display:flex;align-items:center;gap:7px;flex-direction:row!important;color:var(--ink)!important;font-size:14px!important}
.chk input{width:auto}
.pv{background:var(--bg);border:1px dashed var(--line);border-radius:10px;padding:12px;margin-top:10px}
.pv .paper{--z:.62;box-shadow:none;padding:.8em;border:1px solid var(--paper-line);width:auto}
.hint{font-size:12.5px;color:var(--mut)}
.map{display:grid;grid-template-columns:34px minmax(0,1.3fr) minmax(0,1fr) 90px auto;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid var(--line)}
.map input,.map select{border:1px solid var(--line);background:var(--bg);border-radius:8px;padding:6px 8px;width:100%;color:var(--ink);min-width:0}
.dev{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.dev .c{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:var(--bg)}
.dev h4{margin:0 0 5px;font-size:15px;color:var(--g)}
.dev ul{margin:0;padding-left:18px;font-size:13.5px}
.dev code{font-family:ui-monospace,Menlo,monospace;font-size:12.5px;background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:0 4px}
.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:8px 16px;border-radius:999px;font-size:14px;z-index:60}
@media (max-width:860px){
  .reader{grid-template-columns:1fr}
  .rail{position:static;flex-direction:row;overflow-x:auto;max-height:none;padding-bottom:6px}
  .th{min-width:108px}
  .two{grid-template-columns:1fr}
  .map{grid-template-columns:30px 1fr 1fr}
  .map .m4,.map .m5{grid-column:2/-1}
}
@media (max-width:520px){.fm{grid-template-columns:1fr}.edn{margin-left:0;width:100%}.tabs{margin-left:0}.logo small{display:none}}
@media (prefers-reduced-motion:reduce){.tk .lv:before{animation:none}}

.pnav a.btn{text-decoration:none}.pnav .btn.is-off{opacity:.45;pointer-events:none}
.th{text-decoration:none;color:inherit}
.flash{background:var(--gl);color:var(--g);border-radius:10px;padding:8px 12px;margin-bottom:12px;font-weight:600}
.err{color:var(--live);font-size:13px}
.pgsel{min-height:110px}
form.inline{display:inline}

/* ---- e-paper redesign 2026-11-16: A3 paper, logo image, day/night toggle, ad sizes, print ---- */
/* White (light) is the default. The old prefers-color-scheme rule above is neutralised here: only an explicit data-theme="dark" (day/night toggle) turns the reader dark. */
@media (prefers-color-scheme: dark){:root:not([data-theme="dark"]){--bg:#F3F6F4;--surface:#FFFFFF;--ink:#16211B;--mut:#5B6B62;--line:#D8E2DB;--g:#00552D;--gd:#003D20;--gl:#E3EFE7;--on-g:#FFFFFF;--live:#C62828;--warn:#8A5A00;--warn-bg:#FFF1D6;--paper:#FFFFFF;--paper-ink:#171717;--paper-mut:#5a5f5c;--paper-line:#cfd6d1;color-scheme:light}}
/* A3-ratio printed paper page (297 x 420 mm ratio). A page with more content grows taller. */
.paper{width:70em;aspect-ratio:297/420}
/* Original logo image (settings logo_path, same image as the main site) in the top bar and in the masthead. */
.logo img.imglogo{height:34px;width:auto;display:block}
.mast img.imglogo{height:3.2em;width:auto;display:block}
.mast .lg{gap:.8em}
/* Teaser strip (Prothom Alo style) + continuation line on the front page */
.teasers{border-top:2px solid #111;border-bottom:1px solid var(--paper-line);margin:.6em 0 .2em;padding:.35em 0}
.teasers .th2{font-size:.78em;font-weight:800;letter-spacing:.05em;color:#00552D;margin-bottom:.3em}
.teasers a{display:flex;gap:.6em;align-items:baseline;text-decoration:none;color:var(--paper-ink);padding:.18em 0;border-top:1px dotted var(--paper-line);font-size:.95em}
.teasers a:first-of-type{border-top:0}
.teasers .ti{font-family:var(--hd);font-weight:700}
.teasers .sec{color:#00552D;font-size:.8em;font-weight:700;white-space:nowrap}
.teasers .pgn{margin-left:auto;font-family:var(--num);font-size:.8em;color:var(--paper-mut);white-space:nowrap}
.cont-line{font-weight:700;color:#00552D;font-size:.92em;margin-top:.35em}
.cont-line a{color:#00552D}
.front-lead{border-bottom:2px solid #111;padding-bottom:.6em;margin-bottom:.2em}
/* Ad sizes (selectable in the ad form): full page, half page, one-third page */
.adbox.sz-full{grid-column:1/-1;min-height:34em}
.adbox.sz-half{grid-column:span 2;min-height:16em}
.adbox.sz-third{min-height:12em}
.adbox.sz-full .h{font-size:2.6em}.adbox.sz-half .h{font-size:1.5em}
/* Ads around the paper: top / bottom leaderboards and left / right rails (main-site style ads) */
.around{display:flex;align-items:flex-start;justify-content:center;gap:16px}
.around .stage{flex:0 1 auto;min-width:0}
.around-rail{flex:0 0 170px;width:170px;position:sticky;top:76px;display:flex;flex-direction:column;gap:12px}
.around-rail .adbox{min-height:220px}
.around-rail .rail-ad img{width:100%;display:block;border-radius:6px}
.around-top,.around-bottom{max-width:1120px;margin:10px auto;display:flex;justify-content:center}
.around-top .adbox,.around-bottom .adbox{width:100%}
.around-top img,.around-bottom img{width:100%;display:block;border-radius:6px}
@media (max-width:1420px){.around-rail{display:none}}
/* Page-index drawer: the left page list is a slide-in panel (three-dot toggle).
   Default hidden, so the paper gets the full width and the rail no longer pushes it. */
.reader{grid-template-columns:minmax(0,1fr)}
.rail{position:fixed;left:0;top:0;bottom:0;width:min(300px,86vw);max-height:none;overflow-y:auto;flex-direction:column;z-index:90;background:var(--surface);border-right:1.5px solid var(--line);box-shadow:6px 0 24px rgba(0,0,0,.25);padding:14px 12px;transform:translateX(-105%);transition:transform .25s ease;pointer-events:none}
body.rail-open .rail{transform:none;pointer-events:auto}
#railScrim{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:89;border:0;padding:0;margin:0;cursor:pointer}
#railScrim[hidden]{display:none}
/* Around ads sit inside the paper column, so they share its exact centre. */
.stage .around-top,.stage .around-bottom{width:100%;max-width:none;margin:10px 0}
.stage .around-top .rail-ad,.stage .around-bottom .rail-ad{width:100%}
.stage .around-top .rail-ad a,.stage .around-bottom .rail-ad a{display:block;width:100%}
/* Print header (logo + date/time) - hidden on screen, repeated on every printed page */
.print-head{display:none}
@media print{
*{-webkit-print-color-adjust:exact;print-color-adjust:exact}
body{background:#fff !important}
.bar,.tool,.ticker,.pnav,.rail,.around-rail,.around-top,.around-bottom,#railScrim,.no-print{display:none !important}
.reader{grid-template-columns:1fr}
.stage{overflow:visible;padding:0}
.paperwrap{justify-content:flex-start}
.paper{transform:none !important;width:100% !important;max-width:none;box-shadow:none;border:1px solid #999;margin:0;break-after:page;page-break-after:always}
.paper:last-child{break-after:auto;page-break-after:auto}
.print-head{display:flex !important;position:fixed;top:0;left:0;right:0;align-items:center;gap:10px;background:#fff;padding:2mm 0;border-bottom:2px solid #00552D;z-index:5}
.print-head img{height:9mm;width:auto}
.print-head .pt{font-size:11pt;font-weight:700;color:#00552D}
.print-head .pd{margin-left:auto;font-size:9pt;color:#333;text-align:right}
body.print-single .stage,body.print-single .paperwrap,body.print-single #viewT{display:none !important}
body.print-single #modal{display:block !important;position:static;background:none}
body.print-single #modal .card{box-shadow:none;border:0;max-width:none;width:100%;padding-top:14mm}
body.print-single #modal .x{display:none !important}
@page{size:A3;margin:12mm}
}

/* Fit fix 2026-11-16: keep the paper inside its stage at 100% zoom - centre only when it fits, otherwise left-align so the left edge is never clipped. */
.paperwrap{justify-content:safe center}
.paper{width:66em}

.wrap{max-width:1520px}
.bar .in{max-width:1520px}
.ticker .in{max-width:1520px}
.tool .btn,.tool .seg button{font-size:14px;line-height:1.3;padding:7px 13px;border-radius:9px;min-height:36px}
.tool .seg{border:0;background:none;overflow:visible;gap:6px}
.tool .seg button{border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.tool .seg button[aria-pressed=true]{background:var(--g);color:var(--on-g)}
.mast{flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:.35em}
.mast img.imglogo{height:6em}
.around-top,.around-bottom{max-width:none;width:100%;margin:12px 0;display:flex;justify-content:center;align-items:center;text-align:center}
.rail-ad .adlbl{display:block;text-align:center;font-size:11px;color:#8a8a8a;letter-spacing:.06em;margin-bottom:5px}
.around-rail{flex-basis:160px;width:160px;min-height:600px}
.teasers{display:grid;grid-template-columns:repeat(3,1fr);gap:1em}
.teasers .th2{grid-column:1/-1}
.teasers a{display:block;border-top:0;padding:0}
.teasers .timg{width:100%;height:96px;object-fit:cover;border-radius:4px;display:block;margin-bottom:.4em}
.teasers .sec,.teasers .ti,.teasers .pgn{display:block;margin:0}
@media print{.print-single .print-head .pt{display:none !important}}
@media print{.print-single #modal .card{overflow:visible !important}}
@media print{.print-single #modal .card img{display:block !important;max-width:100% !important;height:auto !important;page-break-inside:avoid}}
@media print{.print-single #modal .card #mprint,.print-single #modal .card a.btn{display:none !important}}
@media print{.paper p,.paper .cell p,.print-single #modal .card p{text-align:justify;text-justify:inter-word}}
.btn svg{width:15px;height:15px;flex:none}
;
/* ---- FIX 2026-11-16: print masthead + story modal (owner feedback 16 Nov) ---- */
/* PRINT LOGO - cause found: (1) .print-head img was only 9mm tall; (2) the header sat at
   top:0 (the very page edge) with position:fixed; (3) body::before is a fixed white strip
   (z-index:30, above the header's z-index:5) that covers the top of the header on phones;
   (4) print font-size followed the phone screen zoom (var(--z)), so print could come out
   tiny. Fix: hide body::before in print, move the header 2mm off the edge, enlarge and
   centre it, reset print font-size to 14px, let .paper size naturally (aspect-ratio:auto)
   with top padding so the header never covers the masthead. @page stays A3 (full paper) /
   A4 (single news, switched by printMode() in epaper.js). NOTE: Android Chrome's print
   dialog still defaults to Letter - the owner must pick A3 in the dialog; the site cannot
   force the dialog's paper size. */
@media print{
body::before{display:none !important}
.print-head{position:fixed !important;top:2mm !important;left:12mm !important;right:12mm !important;display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:center !important;text-align:center !important;gap:1mm;padding:2mm 0;background:#fff;border-bottom:2.5px solid #00552D;z-index:5}
.print-head img{height:16mm !important;width:auto}
.print-head .pt{font-size:16pt !important;font-weight:800 !important;color:#00552D;line-height:1.15}
.print-head .pd{margin-left:0 !important;font-size:10pt !important;color:#333;text-align:center}
.paper{font-size:14px !important;aspect-ratio:auto !important;padding-top:26mm !important}
.mast img.imglogo[style]{height:4.5em !important}
body.print-single #modal .card{padding-top:26mm !important}
}
/* MODAL CLOSE (X) - cause found: the X is <button class="btn sm x" style="color:#171717">.
   In dark mode .btn paints background var(--surface) = dark #16201A, so the dark #171717 X
   sat on a dark button (black-on-black, invisible). Fix: explicit white circle + dark X,
   the same in both modes (the modal card itself is white in both modes). */
.mod .x{position:absolute;right:12px;top:10px;width:38px;height:38px;min-height:38px;padding:0;border-radius:50%;background:#ffffff;color:#171717;border:1.5px solid #9aa8a0;display:inline-flex;align-items:center;justify-content:center;font-size:19px;font-weight:700;line-height:1;box-shadow:0 1px 4px rgba(0,0,0,.30);cursor:pointer}
:root[data-theme="dark"] .mod .x{background:#ffffff;color:#171717;border-color:#9aa8a0}
/* MODAL BUTTONS, IDENTICAL SHAPE - cause found: print button is .btn.sm (padding 3px 9px,
   13px) while "read full" is .btn.pri (padding 6px 12px) - different boxes. Fix: one shared
   box for both (same min-height, padding, radius, border thickness); only colour differs. */
.mod .card p:has(> #mprint){display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 0;text-align:left}
.mod .card #mprint,.mod .card a.btn.pri{flex:1 1 0;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:11px 14px;border-radius:10px;border:1.5px solid #00552D;font-size:15px;font-weight:700;line-height:1.3;text-align:center;box-sizing:border-box;text-decoration:none}
.mod .card #mprint{background:#fff;color:#00552D}
.mod .card a.btn.pri{background:#00552D;border-color:#00552D;color:#fff}
/* MODAL TEXT JUSTIFIED (same as print): even left and right edges, no ragged lines. */
.mod .card p{text-align:justify;text-justify:inter-word}
/* ---- FIX 2026-11-16 (2): one newspaper page = one printed sheet (owner request 16 Nov ~20:27) ---- */
/* WHY: a newspaper page is about 1.7 A3 sheets tall at natural size, so it spilled onto a
   second sheet with content cut mid-page. The 18:44 fix also left only about 1mm between the
   fixed print header (bottom about 37mm from the sheet top) and the masthead (top 12mm @page
   margin + 26mm paper padding = 38mm), and the fixed header repeats on every spill sheet,
   covering content there. The owner's 20:21 screenshot still shows the old single-row header,
   i.e. his phone printed with the old ?v=20261116epaper9 CSS from a tab loaded before the
   18:44 fix, so the phone needs a fresh load too (see the task report).
   FIX: (1) the print header is in normal flow now (position:static), so it can never cover
   the masthead or any continuation content; it prints once, at the top of the sheet, and the
   paper needs only 8mm top padding. (2) the paper is scaled to fit exactly one sheet:
   epaper.js measures it at print width/font and sets --printfit (<= 1); the width is widened
   by 1/s first so the zoomed paper still fills the printable width. Short pages print at
   100% (s = 1, no shrinking). Justified text and the print header (logo + date/time) are
   unchanged. Single-story (A4) printing is unchanged. */
/* Screen-only measuring state, used by fitPrintPage() in epaper.js: it mirrors the two
   print rules that change the paper's height, so the measurement matches the printout. */
body.print-fit-measure .paper .teasers timg,body.print-fit-measure .paper .teasers img.timg{display:none !important}
body.print-fit-measure .mast img.imglogo[style]{height:4.5em !important}
@media print{
body{padding-left:0 !important;padding-right:0 !important}
.print-head{position:static !important;top:auto !important;left:auto !important;right:auto !important}
.paper{padding-top:8mm !important}
body.print-single #modal .card{padding-top:8mm !important}
.paper .teasers timg,.paper .teasers img.timg{display:none !important}
.paper{zoom:var(--printfit,1) !important;width:calc(100% / var(--printfit,1)) !important}
}

/* ---- FIX 2026-11-17: print = exactly one A3 sheet, masthead first (owner request 17 Nov) ---- */
/* WHY IT STILL SPILLED (16 Nov fix worked on desktop only): fitPrintPage() measured .paper.offsetHeight at the on-screen zoom (--z, clamped to 0.45 on a phone), so on a phone it measured a paper about half its real height, computed --printfit >= 1 (no shrink), and the paper printed at natural size (about 430mm) plus the in-flow .print-head (about 24mm) - over the 396mm printable height of an A3 sheet with 12mm @page margins, so a strip spilled onto a blank second sheet. FIX: (1) the small .print-head strip is hidden in print altogether - the big centred masthead inside .paper is the first thing on the sheet; (2) the paper is no longer forced to min-height 420mm (which alone exceeds the 396mm printable height); (3) epaper.js now re-measures the paper at print width/font and recomputes --printfit with the header gone. Masthead logo stays 16mm in print (before the --printfit zoom), centred, at the top of the paper. */
@media print{
.print-head{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important}
body.print-single #modal .card .print-head{display:none!important}
.paper{min-height:0!important;max-height:none!important;height:auto!important;padding-top:2mm!important}
body.print-single #modal .card{padding-top:2mm!important}
.mast{flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important}
.mast img.imglogo,.mast img.imglogo[style]{height:16mm!important;width:auto!important}
}
