/* Pager — accessible, horizontal, centered. Generic, applies to any .pager. */

.pager {
  margin: 1.5rem 0 0;
  padding: 0;
}

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

.pager__item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pager__item a,
.pager__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #0A0A0A;
  transition: background-color 0.15s, color 0.15s;
}

.pager__item a:hover {
  background: #F3F3F5;
  color: #0A0A0A;
}

.pager__item a:focus-visible {
  outline: 2px solid var(--color-primary, #155DFC);
  outline-offset: 2px;
}

/* Current/active page */
.pager__item.is-active a,
.pager__item.is-active span,
.pager__item--active a,
.pager__item--active span {
  background: var(--color-primary, #155DFC);
  color: var(--color-primary-contrast, #fff);
  font-weight: 600;
}

.pager__item.is-active a:hover,
.pager__item--active a:hover {
  background: var(--color-button-dark, #1244B8);
  color: var(--color-button-contrast, #fff);
}

/* Ellipsis */
.pager__item--ellipsis span {
  color: #90A1B9;
  cursor: default;
}

/* Previous/Next/First/Last */
.pager__item--previous a,
.pager__item--next a,
.pager__item--first a,
.pager__item--last a {
  font-weight: 500;
  color: var(--color-primary, #155DFC);
  padding: 0 12px;
}

.pager__item--previous a:hover,
.pager__item--next a:hover,
.pager__item--first a:hover,
.pager__item--last a:hover {
  background: var(--color-primary, #155DFC);
  color: var(--color-primary-contrast, #fff);
}

/* Disabled state */
.pager__item--disabled span {
  color: #CAD5E2;
  cursor: not-allowed;
}

/* Hide RSS feed-icon links — feed endpoints don't work and aren't part of the UX. */
.feed-icon,
a.feed-icon {
  display: none !important;
}
