/* Shared site pagination: catalogue, search, articles, downloads and orders. */
body.sh-theme :is(.pagination, .smarthoff-downloads__pagination, .sh-orders-pagination) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  clear: both;
  gap: 8px;
  width: auto;
  min-height: 44px;
  margin: 32px 0;
  padding: 0;
  float: none;
}
/* Keep the gap outside native catalogue nav wrappers, without doubled margins. */
body.sh-theme nav:has(> .pagination) {
  display: flow-root;
  clear: both;
  margin: 32px 0;
}
body.sh-theme nav > .pagination { margin: 0; }
body.sh-theme .pagination > a:empty { display: none; }
body.sh-theme .pagination > :is(.pagination__link, .pagination__current),
body.sh-theme .smarthoff-downloads__pagination > .smarthoff-downloads__page,
body.sh-theme .sh-orders-pagination > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface-card);
  color: var(--action);
  font: 650 .875rem/1 "Manrope Variable", Manrope, Arial, sans-serif;
  text-decoration: none;
  box-shadow: none;
}
body.sh-theme .pagination > .pagination__current,
body.sh-theme .smarthoff-downloads__pagination > .is-current,
body.sh-theme .sh-orders-pagination > .is-current {
  background: var(--action);
  border-color: var(--action);
  color: var(--on-brand);
}
body.sh-theme .pagination > a.pagination__link:hover,
body.sh-theme .smarthoff-downloads__pagination > a:not(.is-current):hover,
body.sh-theme .sh-orders-pagination > a:not(.is-current):hover {
  background: var(--surface-interactive);
  border-color: var(--action);
  color: var(--action);
}
/* Legacy search/article links put an underline and cyan hover on inner spans. */
body.sh-theme .pagination > .pagination__link span {
  color: inherit;
  border: 0;
}
body.sh-theme :is(.pagination, .smarthoff-downloads__pagination, .sh-orders-pagination) > a:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
}
body.sh-theme .smarthoff-downloads__page-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-600);
}
@media (max-width: 480px) {
  body.sh-theme :is(.pagination, .smarthoff-downloads__pagination, .sh-orders-pagination) {
    gap: 4px;
    margin-block: 24px;
  }
  body.sh-theme nav:has(> .pagination) { margin-block: 24px; }
  body.sh-theme nav > .pagination { margin: 0; }
}
