/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

nav.pagy {
  display: inline-flex;
  gap: 0;
}

nav.pagy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  border: 1px solid hsl(var(--b3, var(--b2)) / 1);
  background-color: hsl(var(--b1) / 1);
  color: hsl(var(--bc) / 1);
  text-decoration: none;
  cursor: pointer;
}

nav.pagy a:hover {
  background-color: hsl(var(--b2) / 1);
}

nav.pagy a:first-child {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}

nav.pagy a:last-child {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

nav.pagy a + a {
  border-left: 0;
}

nav.pagy a[aria-current="page"] {
  background-color: hsl(var(--p) / 1);
  color: hsl(var(--pc) / 1);
  border-color: hsl(var(--p) / 1);
}

nav.pagy a[aria-disabled="true"] {
  color: hsl(var(--bc) / 0.4);
  cursor: default;
  pointer-events: none;
}
