/* =========================================================================
   NN Pager - the numbered strip under a grid.
   One row: an arrow, the page numbers, an arrow. The page being read is
   ink; the others are stone and darken under the pointer. No boxes and no
   fills, so the row reads as part of the page rather than as a toolbar.
   House tokens only. The grid that draws the pager owns its own spacing.
   ========================================================================= */

.nn-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  font-family: var(--font-body, Manrope, sans-serif);
  font-size: var(--type-body-md-size, 14px);
  font-weight: 600;
  line-height: 1;
  color: var(--color-charcoal, #20201F);
}

/* The arrow: one square target on both sides, so the row is centred on the
   numbers and the two ends never jump about from page to page. */
.nn-pager__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-charcoal, #20201F);
  text-decoration: none !important;
}

.nn-pager__arrow {
  display: block;
  width: 16px;
  height: 16px;
}

.nn-pager__step:hover,
.nn-pager__step:focus-visible {
  color: var(--color-stone, #8A8378);
}

.nn-pager__step:focus-visible {
  outline: 2px solid var(--color-charcoal, #20201F);
  outline-offset: 2px;
}

/* The end of the run: the arrow stays where it is, quiet and unpressable,
   so the numbers do not slide sideways when a reader steps to page two. */
.nn-pager__step.is-off {
  color: var(--color-border, #DDD6CA);
  pointer-events: none;
}

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

.nn-pager__list > li {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nn-pager__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  color: var(--color-stone, #8A8378);
  text-decoration: none !important;
  font-variant-numeric: tabular-nums;
}

.nn-pager__list > li > a.nn-pager__num:hover,
.nn-pager__list > li > a.nn-pager__num:focus-visible {
  color: var(--color-charcoal, #20201F);
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.nn-pager__list > li > a.nn-pager__num:focus-visible {
  outline: 2px solid var(--color-charcoal, #20201F);
  outline-offset: 2px;
}

/* The page being read: ink, and it does not pretend to be pressable. */
.nn-pager__num.is-current {
  color: var(--color-charcoal, #20201F);
  cursor: default;
}

.nn-pager__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 36px;
  color: var(--color-stone, #8A8378);
}

@media (max-width: 767px) {
  .nn-pager {
    gap: 2px 2px;
  }

  .nn-pager__step,
  .nn-pager__num {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
  }
}
