/* Хуудаслалт (partials/pagination.ejs) */
.nh-pg { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.nh-pg-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nh-pg-num, .nh-pg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem; border-radius: .75rem;
  font-size: .875rem; font-weight: 700; color: #475569; background: #fff; border: 1px solid #e2e8f0;
  text-decoration: none; transition: border-color .15s, color .15s, background .15s, transform .15s;
}
.nh-pg-num:hover, .nh-pg-btn:hover { border-color: #003A8C; color: #003A8C; }
.nh-pg-num.is-cur { background: #003A8C; border-color: #003A8C; color: #fff; box-shadow: 0 6px 16px -6px rgba(0, 58, 140, .5); }
.nh-pg-btn.is-off { opacity: .4; pointer-events: none; }
.nh-pg-dots { min-width: 1.5rem; text-align: center; color: #94a3b8; font-weight: 700; letter-spacing: .1em; }
.nh-pg-info { font-size: .75rem; color: #94a3b8; font-variant-numeric: tabular-nums; margin: 0 .25rem; }
@media (max-width: 640px) {
  .nh-pg { gap: .375rem; flex-wrap: nowrap; }
  .nh-pg-list { gap: .2rem; }
  .nh-pg-num, .nh-pg-btn { min-width: 2.25rem; height: 2.25rem; padding: 0 .4rem; font-size: .8rem; border-radius: .625rem; }
  .nh-pg-btn span { display: none; }
  .nh-pg-btn { padding: 0; }
  .nh-pg-dots { min-width: 1rem; }
  .nh-pg-far { display: none; }
  .nh-pg-info { display: none; }
}
@media (max-width: 420px) {
  .nh-pg { padding-right: 3.25rem; } /* баруун талын хүртээмжийн самбар */
  .nh-pg-edge, .nh-pg-dots { display: none; }
}

/* Жилийн шүүлтүүр (мэдээний жагсаалт) */
.nh-years { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 0 .5rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nh-years::-webkit-scrollbar { display: none; }
.nh-year {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; height: 2.25rem; padding: 0 .9rem; border-radius: 999px;
  font-size: .8125rem; font-weight: 700; color: #334155; background: #fff; border: 1px solid #e2e8f0; text-decoration: none; white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
}
.nh-year:hover { border-color: #003A8C; color: #003A8C; }
.nh-year.is-on { background: #003A8C; border-color: #003A8C; color: #fff; }
.nh-year small { font-weight: 600; opacity: .7; font-size: .7rem; }

/* Сарын шүүлтүүр — жил сонгосон үед; доод зураас нь тухайн сарын мэдээний харьцангуй тоо */
.nh-months { display: flex; gap: .375rem; overflow-x: auto; padding: 0 0 .75rem; margin: -.5rem 0 1.5rem; scrollbar-width: none; }
.nh-months::-webkit-scrollbar { display: none; }
.nh-month {
  position: relative; flex: 0 0 auto; display: flex; flex-direction: column; gap: .15rem; min-width: 4.6rem; padding: .5rem .7rem .6rem; border-radius: .75rem;
  background: #fff; border: 1px solid #e2e8f0; color: #334155; text-decoration: none; overflow: hidden; transition: border-color .15s, color .15s, background .15s, transform .15s;
}
.nh-month span { font-size: .78rem; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.nh-month small { font-size: .68rem; font-weight: 600; color: #94a3b8; font-variant-numeric: tabular-nums; }
.nh-month i { position: absolute; left: 0; bottom: 0; height: 3px; background: #4c9fe8; border-radius: 0 2px 2px 0; transition: width .3s; }
.nh-month:hover { border-color: #003A8C; color: #003A8C; transform: translateY(-1px); }
.nh-month.is-on { background: #003A8C; border-color: #003A8C; color: #fff; }
.nh-month.is-on small { color: rgba(255,255,255,.7); }
.nh-month.is-on i { background: #4c9fe8; }
.nh-month.is-empty { opacity: .45; cursor: default; }
.nh-month-all { justify-content: center; }
.nh-month-all span { font-size: .8rem; }

/* Жагсаалт доторх сарын заагч */
.nh-month-divider { display: flex; align-items: center; gap: .9rem; margin: .5rem 0 -.25rem; }
.nh-month-divider[data-first] { margin-top: 0; }
.nh-month-divider a { font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #003A8C; text-decoration: none; white-space: nowrap; }
.nh-month-divider a:hover { text-decoration: underline; }
.nh-month-divider span { flex: 1; height: 1px; background: linear-gradient(90deg, #cbd5e1, transparent); }
