/* Sakar Bharat e-paper — easy-reading layer (2026-09-14). Loaded after the existing reader/issue styles; additive. */

/* ---------- reader: big page navigation bar, fixed at the bottom of the screen ---------- */
.ep-easynav{
  position:fixed;left:50%;bottom:max(10px, env(safe-area-inset-bottom));transform:translateX(-50%);z-index:70;
  box-sizing:border-box;width:min(640px, calc(100% - 16px));
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:stretch;
  padding:8px;background:rgba(255,255,255,.97);border:1px solid #dbe1ea;border-radius:16px;
  box-shadow:0 10px 30px rgba(15,23,42,.22);
}
body.ep-reader-page{padding-bottom:96px}
.ep-easynav__btn{
  display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:54px;padding:6px 14px;
  border-radius:12px;background:#d31121;color:#fff !important;text-decoration:none !important;
  font-weight:800;font-size:16px;line-height:1.2;cursor:pointer;
}
.ep-easynav__btn--prev{align-items:flex-start;background:#0f172a}
.ep-easynav__btn--next{align-items:flex-end;text-align:right}
.ep-easynav__btn span{white-space:nowrap}
.ep-easynav__btn small{font-size:12px;font-weight:600;opacity:.85;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ep-easynav__btn small:empty{display:none}
.ep-easynav__btn.is-off{background:#eef1f5;color:#94a3b8 !important;pointer-events:none}
.ep-easynav__page{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.ep-easynav__page label{margin:0;font-size:11px;font-weight:800;line-height:1;color:#64748b}
.ep-easynav__page select{
  min-height:38px;padding:0 8px;border:2px solid #0f172a;border-radius:10px;background:#fff;
  color:#0f172a;font-size:16px;font-weight:800;cursor:pointer;
}
.ep-easynav__issue{margin:12px 0 0;text-align:center;font-size:14px;font-weight:700}
.ep-easynav__issue a{color:#0f172a;text-decoration:underline}
body.ep-cutting .ep-easynav,
body.ep-fs .ep-easynav{display:none}
/* the old small prev / home / next row is replaced by the bar */
body.ep-reader-page .nb-bottom{display:none !important}

@media (max-width:760px){
  .ep-easynav{gap:6px;padding:6px;border-radius:14px}
  .ep-easynav__btn{min-height:50px;padding:6px 10px;font-size:15px}
  /* phones: the bar replaces the small numbered pager in the top toolbar */
  body.ep-reader-page .nb-tools-center{display:none !important}
}

/* swipe hint: a small note above the bar — no dark screen over the page, and it closes by itself */
.ep-hint.is-open{background:transparent !important;pointer-events:none;padding-bottom:96px !important}
.ep-hint.is-open .ep-hint__card{pointer-events:auto}

/* sponsored products: a product image that fails to load must not print its title over the card */
.vgp__thumb img{color:transparent;font-size:0}

/* ---------- issue overview ---------- */
.ep-home-btn{box-sizing:border-box;max-width:100%}
.ep-home-btn--big{min-height:54px;padding:0 26px;font-size:18px}
.ep-home-btn--wa{color:#128c3a !important;border-color:rgba(18,140,58,.4) !important}
.ep-issue-hero__meta{margin:6px 0 0 !important;font-weight:700;color:#475569 !important}
.ep-issue-nav{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(0,1fr);gap:8px;margin-top:18px}
.ep-issue-nav__btn{
  display:flex;flex-direction:column;justify-content:center;gap:1px;min-width:0;min-height:54px;padding:6px 12px;
  border:1px solid #dbe1ea;border-radius:12px;background:#fff;color:#0f172a;text-decoration:none;font-weight:800;font-size:15px;
}
.ep-issue-nav__btn small{font-size:12px;font-weight:600;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ep-issue-nav__btn--next{align-items:flex-end;text-align:right}
.ep-issue-nav__btn.is-off{opacity:.45}
.ep-issue-nav__date{display:flex;flex-direction:column;gap:3px;margin:0;font-size:12px;font-weight:800;color:#64748b}
.ep-issue-nav__date input{
  box-sizing:border-box;width:100%;min-height:40px;padding:0 8px;border:2px solid #0f172a;border-radius:10px;
  background:#fff;color:#0f172a;font-size:15px;font-weight:700;
}
.ep-issue-hero__links{margin:12px 0 0 !important;font-size:14px}
.ep-issue-hero__links a{font-weight:700;text-decoration:underline}
.ep-issue-hero--easy .ep-issue-hero__cover a{display:block}

@media (max-width:767px){
  .ep-issue-hero__actions .ep-home-btn{width:100%}
  .ep-issue-nav{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .ep-issue-nav__date{grid-column:1 / -1;order:-1}
  .ep-issue-hero__cover img{max-height:70vh;object-fit:contain;background:#f1f5f9}
  .ep-issue-page-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important}
  .ep-issue-page-card__meta{padding:8px 10px !important}
  .ep-issue-page-card__meta span{display:none !important}
}
