.ax-html-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.ax-html-pages[hidden] {
  display: none;
}

.ax-html-pages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #625849;
  border-radius: 8px;
  color: var(--ink, #f4f2ee);
  background: var(--card, #201e1c);
  text-decoration: none;
}

.ax-html-pages a:hover {
  border-color: var(--gold, #cfaf72);
  background: var(--card-2, #292623);
}

.ax-html-pages a[aria-current="page"] {
  border-color: var(--gold, #cfaf72);
  background: var(--gold, #cfaf72);
  color: #1b1710;
  font-weight: 600;
}

.ax-html-pages a:focus-visible {
  outline: 2px solid var(--gold, #cfaf72);
  outline-offset: 2px;
}

@media (forced-colors: active) {
  .ax-html-pages a[aria-current="page"] {
    outline: 2px solid Highlight;
    outline-offset: -3px;
  }
}

/* Error state when the import catalog cannot load its client-side data. */
body.ax-dark.import-redesign #ax-retry.btn {
  border-color: var(--gold, #cfaf72);
  background: var(--gold, #cfaf72);
  color: #1b1710;
}

body.ax-dark.import-redesign #ax-retry.btn:focus-visible {
  outline: 2px solid var(--gold, #cfaf72);
  outline-offset: 3px;
}
