/* TND Magazine Flipbook */
.tndmf{width:100%;font-family:inherit;color:inherit;}
.tndmf *{box-sizing:border-box;}

/* Current issue title (optional) */
.tndmf-now{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;margin:0 0 14px;padding:0 16px;}
.tndmf-now-title{font-size:26px;font-weight:700;line-height:1.2;}
.tndmf-now-sub{font-size:14px;opacity:.65;}
.tndmf-now-sub:empty{display:none;}

/* Reader */
.tndmf-book{width:100%;height:var(--tndmf-h,88vh);min-height:480px;background:var(--tndmf-reader-bg,#f2f2f2);}
.tndmf-frame{display:block;width:100%;height:100%;border:0;}

/* Past issues — responsive grid */
.tndmf-strip-title{max-width:1200px;margin:34px auto 16px;padding:0 20px;font-size:24px;line-height:1.3;}
.tndmf-strip-wrap{max-width:1200px;margin:0 auto 40px;padding:0 20px;}
.tndmf-strip{display:grid;grid-template-columns:repeat(var(--tndmf-cols,6),minmax(0,1fr));gap:28px 22px;}

.tndmf-item{display:block;width:100%;background:none !important;border:0 !important;padding:0 !important;margin:0;
  cursor:pointer;text-align:left;font:inherit;color:inherit !important;box-shadow:none !important;}
.tndmf-cover{display:block;width:100%;aspect-ratio:3/4;border-radius:5px;overflow:hidden;background:#e9e9e9;
  border:3px solid transparent;box-shadow:0 5px 14px rgba(0,0,0,.14);transition:transform .25s,border-color .25s,box-shadow .25s;}
.tndmf-cover img{width:100%;height:100%;object-fit:cover;display:block;}
.tndmf-nocover{display:flex;align-items:center;justify-content:center;height:100%;padding:10px;text-align:center;font-size:13px;font-weight:600;}
.tndmf-item:hover .tndmf-cover,.tndmf-item:focus-visible .tndmf-cover{transform:translateY(-5px);box-shadow:0 12px 24px rgba(0,0,0,.2);}
.tndmf-item.is-active .tndmf-cover{border-color:var(--tndmf-accent,#c8102e);}
.tndmf-name{display:block;margin-top:10px;font-size:14px;font-weight:600;line-height:1.3;}
.tndmf-item.is-active .tndmf-name{color:var(--tndmf-accent,#c8102e);}
.tndmf-sub{display:block;font-size:12px;opacity:.6;margin-top:2px;}

.tndmf-empty{padding:30px;text-align:center;border:2px dashed #ccc;border-radius:8px;}

/* Tablet */
@media (max-width:1024px){
  .tndmf-strip{grid-template-columns:repeat(var(--tndmf-cols-t,4),minmax(0,1fr));gap:24px 18px;}
}
/* Mobile */
@media (max-width:767px){
  .tndmf-book{height:var(--tndmf-mh,75vh);min-height:400px;}
  .tndmf-now-title{font-size:20px;}
  .tndmf-strip-title{padding:0 14px;font-size:20px;margin-top:24px;}
  .tndmf-strip-wrap{padding:0 14px;}
  .tndmf-strip{grid-template-columns:repeat(var(--tndmf-cols-m,2),minmax(0,1fr));gap:22px 14px;}
  .tndmf-name{font-size:13px;}
}
