/* Pagination. SITE STANDARD for any paged listing.
 * See parts/components/pagination.php.
 *
 * 44 square targets. Rest: navy label, hairline box. Hover: box goes navy.
 * Current: navy fill, white label (12.65:1). Prev and Next carry an arrow
 * that nudges like the button arrow.
 *
 * :root lifts the link rules over Uncode's a / a:hover without !important.
 */

.hlb-pagination {
  margin: 72px 0 0;
}

.hlb-pagination .hlb-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none !important;
}

.hlb-pagination .hlb-pagination__item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  text-indent: 0 !important;
}

.hlb-pagination .hlb-pagination__item::before,
.hlb-pagination .hlb-pagination__item::after {
  content: none !important;
  display: none !important;
}

:root .hlb-pagination .hlb-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--hlb-rule);
  font: 400 12px/1 var(--hlb-font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--hlb-navy);
  transition:
    background-color var(--hlb-speed) var(--hlb-ease),
    color var(--hlb-speed) var(--hlb-ease),
    box-shadow var(--hlb-speed) var(--hlb-ease);
}

/* Geometos sits high in its box, same correction as .hlb-button. */
.hlb-pagination__link > span {
  position: relative;
  top: 1px;
}

:root .hlb-pagination a.hlb-pagination__link:visited {
  color: var(--hlb-navy);
}

:root .hlb-pagination a.hlb-pagination__link:hover,
:root .hlb-pagination a.hlb-pagination__link:focus-visible {
  color: var(--hlb-navy);
  box-shadow: inset 0 0 0 1px var(--hlb-navy);
}

:root .hlb-pagination a.hlb-pagination__link:focus-visible {
  outline: 2px solid var(--hlb-navy);
  outline-offset: 2px;
}

:root .hlb-pagination .hlb-pagination__link.is-current {
  background-color: var(--hlb-navy);
  box-shadow: none;
  color: var(--hlb-white);
}

.hlb-pagination__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 44px;
  font: 400 12px/1 var(--hlb-font-display);
  color: var(--hlb-slate);
}

.hlb-pagination__arrow {
  flex: 0 0 auto;
  width: 20px;
  height: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
}

.hlb-pagination__step--next:hover .hlb-pagination__arrow,
.hlb-pagination__step--next:focus-visible .hlb-pagination__arrow {
  transform: translateX(3px);
}

.hlb-pagination__step--prev:hover .hlb-pagination__arrow,
.hlb-pagination__step--prev:focus-visible .hlb-pagination__arrow {
  transform: translateX(-3px);
}

@media (max-width: 699px) {
  .hlb-pagination {
    margin-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hlb-pagination__arrow {
    transition: none;
  }

  .hlb-pagination__step:hover .hlb-pagination__arrow,
  .hlb-pagination__step:focus-visible .hlb-pagination__arrow {
    transform: none;
  }
}
