/* Generic, site-neutral pager for any [data-paginate] container. Loaded
   alongside list-pagination.js. Uses CSS custom properties when present
   (sheriff.css / law.css / cgj_base.css) and falls back to neutral grays. */
.list-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--so-border, #e5e7eb);
  font-family: var(--so-font-body, inherit);
  font-size: 0.9rem;
}
.list-pager__btn {
  appearance: none;
  background: var(--so-bg-elevated, #fff);
  color: var(--so-text, #1f2937);
  border: 1px solid var(--so-border, #e5e7eb);
  border-radius: 4px;
  padding: 0.3rem 0.65rem;
  font: inherit;
  cursor: pointer;
  min-width: 2.2rem;
  text-align: center;
  line-height: 1.2;
}
.list-pager__btn:hover:not(:disabled) {
  background: var(--so-bg-muted, #f3f4f6);
}
.list-pager__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.list-pager__btn--active {
  background: var(--so-accent, #3a4a5c);
  color: #fff;
  border-color: var(--so-accent, #3a4a5c);
  font-weight: 600;
}
.list-pager__btn--active:hover:not(:disabled) {
  background: var(--so-accent, #3a4a5c);
}
.list-pager__btn--toggle {
  margin-left: 0.5rem;
  font-weight: 500;
}
.list-pager__ellipsis {
  color: var(--so-text-muted, #6b7280);
  padding: 0 0.2rem;
  user-select: none;
}
.list-pager__info {
  margin-left: auto;
  color: var(--so-text-muted, #6b7280);
  font-family: var(--so-font-mono, ui-monospace, "SFMono-Regular", "Menlo", monospace);
  font-size: 0.8rem;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .list-pager__info {
    margin-left: 0;
    flex-basis: 100%;
    text-align: center;
  }
}
