/* Hindi ePaper Pro – reader */
.hep-app{--hep-c:#c4161c;--hep-bar:#ffffff;--hep-ink:#1d1f23;--hep-mute:#6b6f76;--hep-stage:#3b3e44;--hep-side:#26282c;--hep-line:#e4e4e7;
	position:relative;display:flex;flex-direction:column;overflow:hidden;background:var(--hep-stage);color:var(--hep-ink);
	font-family:"Noto Sans Devanagari","Mukta",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;line-height:1.4;
	-webkit-tap-highlight-color:transparent;text-align:left}
.hep-app *,.hep-app *::before,.hep-app *::after{box-sizing:border-box}
.hep-app button,.hep-app a.hep-tb,.hep-app select{margin:0;font:inherit;color:inherit;background:none;border:0;box-shadow:none;text-transform:none;letter-spacing:normal;min-height:0;min-width:0;width:auto;height:auto;line-height:1.2;cursor:pointer;text-decoration:none;border-radius:0;padding:0}
.hep-app button:disabled{opacity:.35;cursor:default}
.hep-app button:focus-visible,.hep-app a:focus-visible,.hep-app select:focus-visible{outline:2px solid var(--hep-c);outline-offset:2px}
.hep-app img{max-width:none;border:0;box-shadow:none;margin:0}
.hep-app svg{display:block;flex:none}

/* modes */
.hep-full{position:fixed;inset:0;z-index:99990}
body.admin-bar .hep-full{top:32px}
@media (max-width:782px){body.admin-bar .hep-full{top:46px}}
body.hep-body-full{margin:0;overflow:hidden;background:#3b3e44}
.hep-embed{height:88vh;min-height:520px;border:1px solid #d4d4d8;border-radius:6px;margin:0 0 1.5em}
.hep-fakefs{position:fixed!important;inset:0!important;z-index:99999!important;height:auto!important;border-radius:0!important;margin:0!important}
.hep-app:fullscreen{height:100vh;border-radius:0}
.hep-boot,.hep-empty{display:flex;align-items:center;justify-content:center;flex:1;color:#ddd;padding:40px;text-align:center}
.hep-empty{background:#f4f4f5;color:#555;border-radius:6px}

/* top bar */
.hep-top{flex:none;display:flex;align-items:center;gap:14px;padding:8px 14px;background:var(--hep-bar);border-bottom:3px solid var(--hep-c);box-shadow:0 2px 6px rgba(0,0,0,.15);position:relative;z-index:5}
.hep-brand{display:flex;align-items:center;gap:10px;min-width:0}
.hep-logo{display:flex;align-items:center;color:var(--hep-ink)!important;text-decoration:none!important}
.hep-logo img{max-height:40px;width:auto;display:block}
.hep-logo b{font-size:21px;font-weight:700;white-space:nowrap}
.hep-tag{background:var(--hep-c);color:#fff;font-size:12px;font-weight:600;padding:3px 9px;border-radius:3px;white-space:nowrap}
.hep-ed{display:flex;align-items:center;gap:6px;margin:0 auto}
.hep-city{border:1px solid var(--hep-line)!important;border-radius:6px!important;padding:6px 10px!important;background:#fff!important;font-weight:600}
.hep-date-wrap{position:relative;display:flex;align-items:center;gap:8px;padding:6px 12px;border:1px solid var(--hep-line);border-radius:6px;cursor:pointer;font-weight:600;white-space:nowrap;background:#fff;user-select:none}
.hep-date-wrap svg{color:var(--hep-c)}
.hep-date-wrap:hover{border-color:var(--hep-c)}
.hep-date{position:absolute;inset:0;opacity:0;pointer-events:none;width:100%;border:0;padding:0}
.hep-date-native .hep-date{pointer-events:auto;cursor:pointer}
.hep-ib{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%!important;color:var(--hep-mute)}
.hep-ib:hover:not(:disabled){background:#f1f1f3;color:var(--hep-ink)}
.hep-tools{display:flex;align-items:center;gap:2px}
.hep-tools>*{flex:none}
.hep-tb{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 10px!important;border-radius:6px!important;color:#3a3d43!important;font-weight:600;font-size:14px;white-space:nowrap}
.hep-tb:hover{background:#f1f1f3}
.hep-zl{min-width:46px;text-align:center;font-size:13px;font-weight:600;color:var(--hep-mute);font-variant-numeric:tabular-nums}
.hep-sep{width:1px;height:22px;background:var(--hep-line);margin:0 6px}
.hep-clipbtn{color:#fff!important;background:var(--hep-c)!important;margin:0 4px!important}
.hep-clipbtn:hover{filter:brightness(1.08)}
.hep-clipping .hep-clipbtn{background:#1d1f23!important}

/* body */
.hep-main{flex:1;display:flex;min-height:0;position:relative}
.hep-side{flex:none;width:0;overflow:hidden;background:var(--hep-side);color:#e7e7ea;display:flex;flex-direction:column;transition:width .25s ease}
.hep-side-open .hep-side{width:178px}
.hep-side-head{display:flex;align-items:center;justify-content:space-between;padding:10px 8px 6px 14px;font-size:14px;white-space:nowrap}
.hep-side-head .hep-ib{color:#aaa}
.hep-side-head .hep-ib:hover{background:rgba(255,255,255,.08);color:#fff}
.hep-side-list{flex:1;overflow-y:auto;padding:4px 14px 18px;display:flex;flex-direction:column;gap:14px;scrollbar-width:thin}
.hep-th{display:block;width:100%!important;text-align:center;color:#c9c9ce!important;font-size:12px}
.hep-th img{width:100%;height:auto;display:block;background:#fff;border:3px solid transparent;border-radius:3px;transition:border-color .15s,transform .15s}
.hep-th span{display:block;margin-top:5px}
.hep-th:hover img{transform:translateY(-2px)}
.hep-th.on img{border-color:var(--hep-c)}
.hep-th.on span{color:#fff;font-weight:700}

.hep-stage{flex:1;position:relative;min-width:0;display:flex}
.hep-scroller{position:relative;flex:1;overflow:auto;padding:24px;touch-action:pan-x pan-y;overscroll-behavior:contain;scrollbar-color:#777 transparent}
.hep-zoomed .hep-scroller{cursor:grab}
.hep-panning .hep-scroller{cursor:grabbing;user-select:none}
.hep-sheet{position:relative;margin:0 auto;background:#fff;box-shadow:0 6px 28px rgba(0,0,0,.45)}
.hep-img{display:block;width:100%;height:100%;user-select:none;-webkit-user-drag:none;image-rendering:auto}
.hep-loader{position:absolute;top:14px;right:14px;width:26px;height:26px;border-radius:50%;border:3px solid rgba(0,0,0,.12);border-top-color:var(--hep-c);animation:hepSpin .8s linear infinite;opacity:0;transition:opacity .2s;pointer-events:none}
.hep-loading .hep-loader{opacity:1}
@keyframes hepSpin{to{transform:rotate(360deg)}}

.hep-nav{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:76px;display:flex!important;align-items:center;justify-content:center;background:rgba(20,20,22,.55)!important;color:#fff!important;z-index:3;transition:background .15s}
.hep-nav svg{width:30px;height:30px}
.hep-nav:hover:not(:disabled){background:var(--hep-c)!important}
.hep-nav:disabled{opacity:0!important;pointer-events:none}
.hep-prev{left:0;border-radius:0 8px 8px 0!important}
.hep-next{right:0;border-radius:8px 0 0 8px!important}
.hep-pager{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);display:flex;align-items:center;gap:4px;background:rgba(20,20,22,.82);color:#fff;border-radius:22px;padding:4px 6px;z-index:3;font-size:14px;font-weight:600;white-space:nowrap;box-shadow:0 2px 10px rgba(0,0,0,.3)}
.hep-pager button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%!important;color:#fff!important}
.hep-pager button:hover:not(:disabled){background:rgba(255,255,255,.15)}
.hep-pn{padding:0 6px}

/* clip tool */
.hep-layer{position:absolute;inset:0;display:none;overflow:hidden;cursor:crosshair;touch-action:none;z-index:2}
.hep-clipping .hep-layer{display:block}
.hep-clipping .hep-scroller{cursor:default}
.hep-box{position:absolute;display:none;border:2px dashed #fff;outline:2px solid var(--hep-c);box-shadow:0 0 0 9999px rgba(0,0,0,.5);cursor:move;touch-action:none}
.hep-h{position:absolute;width:18px;height:18px;background:#fff;border:3px solid var(--hep-c);border-radius:50%;z-index:2}
.hep-h[data-h=nw]{left:-10px;top:-10px;cursor:nwse-resize}
.hep-h[data-h=ne]{right:-10px;top:-10px;cursor:nesw-resize}
.hep-h[data-h=sw]{left:-10px;bottom:-10px;cursor:nesw-resize}
.hep-h[data-h=se]{right:-10px;bottom:-10px;cursor:nwse-resize}
@media (pointer:coarse){.hep-h{width:26px;height:26px}.hep-h[data-h=nw],.hep-h[data-h=sw]{left:-14px}.hep-h[data-h=ne],.hep-h[data-h=se]{right:-14px}.hep-h[data-h=nw],.hep-h[data-h=ne]{top:-14px}.hep-h[data-h=sw],.hep-h[data-h=se]{bottom:-14px}}
.hep-box-act{position:absolute;right:-2px;display:flex;gap:6px;white-space:nowrap;cursor:default}
.hep-box-act.below{top:calc(100% + 10px)}
.hep-box-act.above{bottom:calc(100% + 10px)}
.hep-box-act.inside{bottom:8px;right:8px}
.hep-mk{display:inline-flex!important;align-items:center;gap:6px;background:var(--hep-c)!important;color:#fff!important;padding:9px 14px!important;border-radius:6px!important;font-weight:700;font-size:14px;box-shadow:0 3px 10px rgba(0,0,0,.35)}
.hep-mk svg{width:18px;height:18px}
.hep-cx{display:inline-flex!important;align-items:center;justify-content:center;width:38px;background:#fff!important;color:#333!important;border-radius:6px!important;box-shadow:0 3px 10px rgba(0,0,0,.35)}
.hep-spin{width:14px;height:14px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:hepSpin .7s linear infinite;display:inline-block}
.hep-clipping .hep-nav,.hep-clipping .hep-pager{opacity:.25;pointer-events:none}

/* toast */
.hep-toast{position:absolute;left:50%;top:78px;transform:translate(-50%,-10px);background:#1d1f23;color:#fff;padding:10px 18px;border-radius:8px;font-size:14px;z-index:20;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:min(92%,560px);text-align:center;box-shadow:0 6px 20px rgba(0,0,0,.35)}
.hep-toast.on{opacity:1;transform:translate(-50%,0)}

/* modal */
.hep-modal{position:absolute;inset:0;background:rgba(10,10,12,.72);display:flex;align-items:center;justify-content:center;z-index:30;padding:16px;animation:hepFade .18s ease}
.hep-modal[hidden]{display:none}
@keyframes hepFade{from{opacity:0}}
.hep-mbox{background:#fff;border-radius:10px;width:min(720px,100%);max-height:100%;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.hep-mhead{display:flex;align-items:center;justify-content:space-between;padding:10px 10px 10px 18px;border-bottom:1px solid var(--hep-line);font-size:16px}
.hep-mbody{flex:1;overflow:auto;background:#eceae6;padding:16px}
.hep-paper{background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.15);margin:0 auto;max-width:100%;width:fit-content}
.hep-paper-brand{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-bottom:4px solid var(--hep-c)}
.hep-paper-brand img{max-height:34px;width:auto}
.hep-paper-brand b{font-size:18px}
.hep-paper-meta{font-size:12px;color:var(--hep-mute);text-align:right}
.hep-mimg{display:block;max-width:100%!important;max-height:58vh;width:auto;height:auto;margin:0 auto;padding:8px}
.hep-mfoot{display:flex;flex-wrap:wrap;gap:8px;padding:12px 14px;border-top:1px solid var(--hep-line)}
.hep-sh{flex:1 1 auto;display:inline-flex!important;align-items:center;justify-content:center;gap:7px;padding:10px 12px!important;border-radius:7px!important;font-weight:600;font-size:14px;color:#fff!important;text-decoration:none!important;white-space:nowrap}
.hep-sh[hidden]{display:none!important}
.hep-wa{background:#25d366!important}.hep-fb{background:#1877f2!important}.hep-x{background:#111!important}
.hep-copy{background:#eef0f3!important;color:#222!important}.hep-dl{background:#4b5058!important}.hep-native{background:var(--hep-c)!important}
.hep-sh:hover{filter:brightness(1.07)}

/* archive grid */
.hep-archive{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:18px;margin:0 0 1.5em}
.hep-arch-item{display:block;text-decoration:none!important;color:inherit!important;background:#fff;border:1px solid #e4e4e7;border-radius:6px;padding:8px;transition:box-shadow .15s,transform .15s}
.hep-arch-item:hover{box-shadow:0 6px 18px rgba(0,0,0,.12);transform:translateY(-2px)}
.hep-arch-img img{display:block;width:100%;height:auto;border:1px solid #eee}
.hep-arch-date{display:block;margin-top:8px;font-weight:600;font-size:14px;border-left:3px solid var(--hep-c);padding-left:7px}
.hep-arch-city{display:block;font-size:12px;color:#777;padding-left:10px}

/* tablet & mobile */
@media (max-width:1099px){
	.hep-side{position:absolute;left:0;top:0;bottom:0;z-index:8;box-shadow:6px 0 24px rgba(0,0,0,.4)}
	.hep-side-open .hep-side{width:170px}
}
@media (max-width:860px){
	.hep-top{flex-wrap:wrap;gap:6px 10px;padding:6px 10px}
	.hep-ed{margin:0 0 0 auto}
	.hep-tools{order:3;width:100%;overflow-x:auto;scrollbar-width:none;justify-content:space-between;border-top:1px solid var(--hep-line);padding-top:4px}
	.hep-tools::-webkit-scrollbar{display:none}
	.hep-date-wrap{padding:5px 9px;font-size:13px}
	.hep-date-wrap svg{width:16px;height:16px}
	.hep-logo img{max-height:32px}
	.hep-logo b{font-size:18px}
}
@media (max-width:767px){
	.hep-scroller{padding:8px}
	.hep-nav{display:none!important}
	.hep-tag{display:none}
	.hep-tb{padding:0 8px!important}
	.hep-tb span{font-size:13px}
	.hep-sep{display:none}
	.hep-zl{min-width:40px}
	.hep-embed{height:82vh;min-height:460px}
	.hep-dprev,.hep-dnext{width:28px;height:28px}
	.hep-toast{top:100px}
	.hep-mbody{padding:10px}
	.hep-sh span{font-size:13px}
	.hep-sh{flex:1 1 30%}
}
@media (max-width:480px){
	.hep-tb[data-act=fit],.hep-tb[data-act=thumbs] span,a.hep-tb span{display:none}
	.hep-tb{padding:0 7px!important}
}
@media (max-width:420px){
	.hep-city{max-width:110px}
	.hep-date-wrap span{max-width:150px;overflow:hidden;text-overflow:ellipsis}
}
@media print{.hep-top,.hep-side,.hep-nav,.hep-pager{display:none!important}.hep-full{position:static}}
