.pager__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-1);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.pager__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-1);
  border-radius: 6px;
  /* Grey at 21.9% opacity over the button's white background is the
     closest match to the requested #DFE1E2 - solving for the opacity that
     minimizes the RGB distance rather than eyeballing it (lands within
     ~1 unit per channel: 224/225/226 vs the target 223/225/226). */
  border: 2px solid rgb(var(--color-grey) / 0.219);
  background-color: rgb(var(--color-white));
  color: rgb(var(--color-main-blue));
  font-family: var(--font-family-base);
  font-size: var(--font-size-button);
  font-weight: var(--font-weight-button);
  text-decoration: none;
  transition: background-color 0.15s ease-in-out;
}

.pager__item a:hover {
  background-color: rgb(var(--color-light));
}

.pager__item a:focus-visible {
  outline: 3px solid #2680EB;
  outline-offset: 2px;
}

.pager__item.is-active a {
  background-color: rgb(var(--color-main-blue-light));
  border-color: rgb(var(--color-main-blue-light));
  color: rgb(var(--color-white));
}

.pager__item--ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  color: rgb(var(--color-grey));
}

.pager__item--next a,
.pager__item--previous a {
  display: inline-flex;
  min-width: 0;
  height: auto;
  padding: 0;
  border: none;
  background-color: transparent;
  color: rgb(var(--color-main-blue));
  font-weight: var(--font-weight-link);
  gap: var(--space-1);
}

.pager__item--next a:hover,
.pager__item--previous a:hover {
  background-color: transparent;
  text-decoration: underline;
}

.pager__chevron {
  width: 5px;
  height: 9px;
  flex-shrink: 0;
}

.pager__chevron--previous {
  transform: scaleX(-1);
}

@media (max-width: 767px) {
  .pager__item--previous,
  .pager__item--next {
    display: none;
  }

  .pager__item--ellipsis {
    min-width: 12px;
    height: 40px;
  }
}
