/* =====================================================================
   E-paper front-end — standalone document (header band, menu bar,
   sidebar, page viewer, large article pop-up, footer)
   ===================================================================== */

.wbp-ep-doc { background: #eef2f3; color: #333; font-size: 14px; line-height: 1.42857; }
.wbp-ep-doc .wbp-ep-latin { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.wbp-ep-center { width: 1150px; max-width: 100%; margin: 0 auto; }

/* ---------- Title band ---------- */
.wbp-ep-header { background: #d82924; height: 120px; padding: 35px 16px 0; }
.wbp-ep-header__title { margin: 0; font-family: SolaimanLipi, var(--font-bn); font-size: 48px; font-weight: 500; line-height: 1.1; text-align: center; }
.wbp-ep-header__title a { color: #fff; }
.wbp-ep-header__title a:hover { color: #fff; opacity: .92; }

/* ---------- Grey menu bar ---------- */
.wbp-ep-topbar { background: #d6d6d6; margin-bottom: 30px; }
.wbp-ep-topbar__inner { display: flex; align-items: flex-start; height: 40px; font-size: 16px; font-family: SolaimanLipi, var(--font-bn); }
.wbp-ep-topbar__inner > * { padding: 10px 0 0 10px; height: 38px; }
.wbp-ep-topbar__inner > a { flex: 0 0 130px; color: #337ab7; }
.wbp-ep-topbar__inner > a:hover { color: #23527c; text-decoration: underline; }
.wbp-ep-topbar__edition { flex: 0 0 545px; color: #333; }
.wbp-ep-topbar__edition b { font-weight: 700; }

/* ---------- Layout: sidebar + paper ---------- */
.wbp-ep-main { display: flex; align-items: flex-start; }
.wbp-ep-left { flex: 0 0 190px; padding-right: 10px; }
.wbp-ep-right { flex: 0 0 950px; min-width: 0; }
.wbp-ep-left__menu { margin-bottom: 20px; }
.wbp-ep-left__title { margin: 0 0 10px; padding: 5px; background: var(--wbp-red); color: #fff; text-align: center; font-size: 18px; line-height: 1.42857; font-family: SolaimanLipi, var(--font-bn); border-bottom: 1px solid #9c27b0; }
.wbp-ep-search { display: flex; flex-direction: column; gap: 15px; }
.wbp-ep-search input::-webkit-calendar-picker-indicator { opacity: .5; cursor: pointer; }
.wbp-ep-search input { width: 100%; height: 34px; padding: 6px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; background: #fff; box-shadow: inset 0 1px 1px rgba(0,0,0,.075); color: #555; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.wbp-ep-search input:focus { border-color: #66afe9; outline: 0; box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6); }
.wbp-ep-search button { height: 34px; border: 1px solid #46b8da; border-radius: 4px; background: #5bc0de; color: #fff; padding: 6px 12px; font-family: var(--font-bn); font-size: 14px; line-height: 1.42857; cursor: pointer; }
.wbp-ep-search button:hover { background: #31b0d5; border-color: #269abc; }
.wbp-ep-empty { background: #fff; padding: 60px 24px; text-align: center; color: #555; font-size: 17px; margin: 0; }

/* ---------- Page tabs ---------- */
.wbp-epv__tabs { display: flex; align-items: stretch; height: 35px; gap: 3px; }
.wbp-epv__tabs-arrow { flex: 0 0 26px; border: 1px solid #000; background: #fff; color: #000; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 34px; line-height: 26px; cursor: pointer; padding: 0 0 4px; }
.wbp-epv__tabs-arrow:hover { background: #f2f2f2; }
.wbp-epv__tabs-list { flex: 1 1 auto; display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; position: relative; }
.wbp-epv__tabs-list::-webkit-scrollbar { display: none; }
.wbp-epv__tab { flex: 0 0 auto; height: 35px; min-width: 34px; padding: 7px 12px; border: 0; background: #2d2d2d; color: #fff; font-family: "Helvetica Neue", Helvetica, Arial, var(--font-bn), sans-serif; font-size: 14px; line-height: 20px; cursor: pointer; }
.wbp-epv__tab:hover, .wbp-epv__tab.is-active { background: #ff0101; color: #fff; }

/* ---------- Paper ---------- */
.wbp-epv__paper { position: relative; background: #fff; margin-top: 10px; min-height: 400px; }
.wbp-epv__page { display: none; position: relative; line-height: 0; }
.wbp-epv__page.is-active { display: block; }
.wbp-epv__page > img { display: block; width: 100%; height: auto; }
.wbp-epv__spot { position: absolute; z-index: 2; display: block; cursor: pointer; background: transparent; transition: background .12s; }
.wbp-epv__spot:hover, .wbp-epv__spot:focus-visible { background: rgba(204,204,204,.3); outline: 0; }

/* All pages grid */
.wbp-epv__all { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; background: #fff; margin-top: 10px; padding: 10px; }
.wbp-epv__all[hidden] { display: none; }
.wbp-epv__all-page { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 5px; border: 1px solid #ccc; background: #fff; color: #696969; font-family: var(--font-bn); font-size: 15px; cursor: pointer; }
.wbp-epv__all-page img { display: block; width: 100%; height: auto; }
.wbp-epv__all-page:hover { border-color: var(--wbp-red); color: var(--wbp-red); }

/* Previous / next */
.wbp-epv__bottom { display: flex; justify-content: space-between; margin-top: 10px; }
.wbp-epv__step { width: 60px; height: 35px; padding: 7px; border: 0; background: #000; color: #fff; font-family: var(--font-bn); font-size: 14px; line-height: 20px; cursor: pointer; }
.wbp-epv__step:hover:not(:disabled) { background: #ff0101; }
.wbp-epv__step:disabled { background: #bbb; cursor: default; }

/* ---------- Large article pop-up ---------- */
.wbp-epv__modal { position: fixed; inset: 0; z-index: 100060; display: none; overflow-y: auto; background: rgba(0,0,0,.5); padding: 30px 1% 30px; }
.wbp-epv__modal.is-open { display: block; }
body.wbp-ep-modal-open { overflow: hidden; }
.wbp-epv__dialog { position: relative; width: 30%; max-width: 98%; margin: 0 auto; transition: width .4s ease; background: #fff; border-radius: 6px; box-shadow: 0 5px 15px rgba(0,0,0,.5); }
.wbp-epv__dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 15px; }
.wbp-epv__dialog-logo { width: 100px; height: auto; display: block; }
.wbp-epv__dialog-name { font-family: var(--font-head); font-size: 20px; color: var(--wbp-navy); }
.wbp-epv__dialog-close { position: absolute; top: -18px; right: -12px; width: 38px; height: 38px; border: 1px solid #000; border-radius: 50%; background: #fff; color: #000; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.wbp-epv__dialog-close:hover { background: var(--wbp-red); border-color: var(--wbp-red); color: #fff; }
.wbp-epv__dialog-body { position: relative; padding: 0 15px 15px; min-height: 160px; text-align: center; }

.wbp-epv__loader { display: none; width: 46px; height: 46px; margin: 50px auto; border-radius: 50%; border: 5px solid #e3e3e3; border-top-color: #777; animation: wbp-epv-spin .8s linear infinite; }
.wbp-epv__loader.is-on { display: block; }
@keyframes wbp-epv-spin { to { transform: rotate(360deg); } }

.wbp-epv__clip { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.wbp-epv__clip[hidden] { display: none; }
.wbp-epv__clip img { display: block; max-width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.wbp-epv__mark { position: absolute; inset: 0; pointer-events: none; background: center / min(40%, 360px) auto no-repeat; opacity: .14; mix-blend-mode: multiply; }

.wbp-epv__post { max-width: 860px; margin: 0 auto; text-align: left; }
.wbp-epv__post[hidden] { display: none; }
.wbp-epv__post-title { font-size: 32px; line-height: 1.3; color: var(--wbp-ink); text-align: center; margin: 0 0 8px; }
.wbp-epv__post-title:empty, .wbp-epv__post-meta:empty { display: none; }
.wbp-epv__post-meta { text-align: center; color: var(--wbp-muted); font-size: 14px; margin-bottom: 16px; }
.wbp-epv__post-img { margin: 0 0 18px; }
.wbp-epv__post-img[hidden], .wbp-epv__post-error[hidden] { display: none; }
.wbp-epv__post-img img { width: 100%; height: auto; display: block; }
.wbp-epv__post-content img { max-width: 100%; height: auto; }
.wbp-epv__post-error { text-align: center; color: #555; }

.wbp-epv__dialog-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 10px 15px 12px; border-top: 1px solid #e5e5e5; }
.wbp-epv__part-btn { width: 150px; height: 30px; margin: 2px; border: 1px solid #ccc; border-left: 2px solid #578d47; border-right: 2px solid #578d47; border-radius: 3px; background: #fff; color: #333; font-family: var(--font-bn); font-size: 14px; cursor: pointer; }
.wbp-epv__part-btn:hover:not(:disabled) { background: #578d47; color: #fff; }
.wbp-epv__part-btn:disabled { opacity: .45; cursor: default; }
.wbp-epv__part-info { margin-left: 8px; color: #666; font-size: 14px; }
.wbp-epv__dialog-share { margin-left: auto; display: flex; gap: 4px; }
.wbp-epv__dialog-share a, .wbp-epv__dialog-share button { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 32px; border: 0; border-radius: 3px; color: #fff; cursor: pointer; }
.wbp-epv__dialog-share [data-ep-share="twitter"] { background: #55acee; }
.wbp-epv__dialog-share [data-ep-share="facebook"] { background: #3b5998; }
.wbp-epv__dialog-share [data-ep-print] { background: #000; }
.wbp-epv__dialog-share a:hover, .wbp-epv__dialog-share button:hover { opacity: .7; color: #fff; }

/* ---------- Footer ---------- */
.wbp-ep-footer { background: #dedede; margin-top: 20px; padding: 10px 0; }
.wbp-ep-footer__inner { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 12px; min-height: 40px; padding: 0 15px; }
.wbp-ep-footer__inner p { margin: 0; font-size: 14px; }
.wbp-ep-footer__copy { text-align: center; }
.wbp-ep-footer__social { text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.wbp-ep-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 40px; border-radius: 6px; background: #060606; color: #fff; }
.wbp-ep-footer__social a:hover { background: var(--wbp-red); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.wbp-ep-main { padding: 0 12px; }
	.wbp-ep-right { flex: 1 1 auto; }
}
@media (max-width: 782px) {
	.wbp-ep-header { height: auto; min-height: 80px; padding: 18px 14px; }
	.wbp-ep-header__title { font-size: 30px; }
	.wbp-ep-topbar { margin-bottom: 14px; }
	.wbp-ep-topbar__inner { flex-wrap: wrap; font-size: 15px; padding: 4px 6px; }
	.wbp-ep-topbar__inner { height: auto; }
	.wbp-ep-topbar__inner > * { height: auto; padding: 6px 10px; }
	.wbp-ep-topbar__inner > a { flex: 0 0 auto; }
	.wbp-ep-topbar__edition { order: 5; flex-basis: 100%; padding-top: 0 !important; }
	.wbp-ep-main { flex-direction: column; align-items: stretch; }
	.wbp-ep-left { flex: 0 0 auto; display: flex; gap: 10px; padding-right: 0; }
	.wbp-ep-left__menu { flex: 1; margin-bottom: 4px; }
	.wbp-ep-left__menu:first-child { display: none; }
	.wbp-ep-search { flex-direction: row; gap: 8px; }
	.wbp-ep-search input { flex: 1; }
	.wbp-ep-search button { padding: 0 18px; }
	.wbp-epv__all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wbp-epv__modal { padding: 26px 8px; }
	.wbp-epv__dialog { width: 100% !important; }
	.wbp-epv__dialog-close { top: -14px; right: -4px; }
	.wbp-epv__part-btn { width: auto; flex: 1; }
	.wbp-epv__dialog-share { margin-left: 0; width: 100%; justify-content: flex-end; }
	.wbp-epv__post-title { font-size: 24px; }
	.wbp-ep-footer__inner { grid-template-columns: 1fr; text-align: center; }
	.wbp-ep-footer__inner > span { display: none; }
	.wbp-ep-footer__social { justify-content: center; }
}
