/* Webflow-style pagination overrides for Include/_PaginationPartial.
   Kept minimal and scoped to the `.mwd-pagination` class so it won't affect other lists. */

.mwd-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.mwd-pagination__item {
  display: inline-flex;
}

.mwd-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.875rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--colors--grey, #7B7B7B);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mwd-pagination__link:hover {
  background: transparent;
  border-color: transparent;
  color: var(--colors--black, #0a0d14);
}

.mwd-pagination__link:focus-visible {
  outline: 2px solid var(--colors--blue, #3388ff);
  outline-offset: 2px;
}

.mwd-pagination__item.is-active .mwd-pagination__link {
  background: transparent;
  border: none;
  color: var(--colors--blue, #3388FF);
}

/* Disabled arrows should stay muted */
.mwd-pagination__item.is-disabled .mwd-pagination__link {
  opacity: 0.45;
  pointer-events: none;
}

.mwd-pagination__icon {
  display: block;
}

.mwd-pagination__link svg path {
  stroke: currentColor;
}

/* Use homepage slider arrow icon sizing inside pagination links */
.mwd-pagination__link .slider-arrow-icon {
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mwd-pagination__link .slider-arrow-icon svg {
  width: 100%;
  height: 100%;
}

/* Pagination arrows should not have any border */
.mwd-pagination__item:first-child .mwd-pagination__link,
.mwd-pagination__item:last-child .mwd-pagination__link {
  border: none;
  background: transparent;
  min-width: auto;
  padding: 0.5rem;
}

.mwd-pagination__item:first-child .mwd-pagination__link:hover,
.mwd-pagination__item:last-child .mwd-pagination__link:hover {
  background: transparent;
  border: none;
}
