/* 페이지 이동 공통 컴포넌트 (includes/pagination.html)
   상자 없이 숫자만 두고, 현재 페이지는 사이트 헤더의 짙은 회색(#595F6C) 굵은 글자 + 밑줄로 표시한다. */
.mchms-pager {
  --pager-accent: #595f6c;
  --pager-text: #555;
  --pager-muted: #aaa;
  display: flex;
  justify-content: center;
  margin: 18px 0 8px;
  font-family: "Noto Sans", sans-serif;
  font-size: 15px;
}

.mchms-pager__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mchms-pager__list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mchms-pager__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 34px;
  padding: 0 6px;
  box-sizing: border-box;
  color: var(--pager-text);
  line-height: 1;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color .15s;
}

a.mchms-pager__item:hover,
a.mchms-pager__item:focus-visible {
  color: var(--pager-accent);
  font-weight: 700;
  text-decoration: none;
  outline: none;
}

.mchms-pager__item.is-current {
  color: var(--pager-accent);
  font-weight: 700;
}

.mchms-pager__item.is-current::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 16px;
  height: 2px;
  margin-left: -8px;
  border-radius: 1px;
  background: var(--pager-accent);
}

/* 이전/다음 화살표 */
.mchms-pager__step {
  min-width: 24px;
  padding: 0 4px 2px;
  font-size: 22px;
}

.mchms-pager__step.is-disabled {
  color: #d0d3d8;
  cursor: default;
}

.mchms-pager__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 34px;
  color: var(--pager-muted);
}

@media (max-width: 640px) {
  .mchms-pager { font-size: 14px; }
  .mchms-pager__list { gap: 2px; }
  .mchms-pager__item { min-width: 26px; height: 30px; padding: 0 4px; }
  .mchms-pager__step { min-width: 20px; font-size: 20px; }
  .mchms-pager__gap { height: 30px; }
}
