.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 16px;
  flex-wrap: wrap;
}

.paginationButton {
  min-width: 32px;
  padding: 4px 8px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: var(--button-text-decoration);
  color: var(--button-desktop-text-color);
  background: transparent;
  border: 1px solid var(--border-color, #ccc);
  border-radius: 4px;
}

.paginationButton:hover:not(:disabled) {
  color: var(--button-desktop-text-color-hover);
  cursor: pointer;
}

.paginationButton:disabled,
.paginationButton.disabled,
.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pageButtonActive {
  font-weight: bold;
  color: var(--button-desktop-text-color-hover);
}

.pagelist {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 0.25em;
  margin: 0;
  padding: 3px 7px !important;
  overflow: hidden;
  list-style: none;
  background-color: var(--pagelist-background-color);
  border-right: 1px solid var(--pagelist-item-border-color);
  border-bottom: 1px solid var(--pagelist-item-border-color);
}

.footerPageItem {
  display: inline-flex;
  align-items: center;
}

.footerPageBracket {
  color: var(--boardsbar-separator-color);
}

/* Restore native button appearance (footer.module.css applies all: unset to .footerRow button) */
.pagelist button.pagelistNavButton {
  all: revert;
}

.footerNavPlain {
  font: inherit;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.footerNavPlain:hover {
  text-decoration: none;
}

.footerNavPlainDisabled {
  font: inherit;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  opacity: 0.5;
  cursor: default;
  color: inherit;
}

.footerPageLink,
.footerPageCurrent {
  font-size: 13px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  list-style: none;
  overflow: hidden;
  color: var(--button-desktop-text-color);
}

.footerPageLink {
  all: unset;
  display: inline-block;
  font-size: 13px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--button-desktop-text-color);
  text-transform: capitalize;
  cursor: pointer;
  text-decoration: var(--button-text-decoration);
}

.footerPageLink:hover {
  color: var(--button-desktop-text-color-hover);
}

.pagelistSeparatorLink {
  composes: footerPageLink;
  border-left: 1px solid var(--pagelist-item-border-color);
  padding-left: 12px;
  margin-left: 7px;
}

.footerPageCurrent {
  composes: footerPageLink;
  font-weight: bold;
}
