/*
 * 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.
 */

/* Tabular numerals — equal-width digit glyphs for clean column alignment.
   Applied globally so timestamps, counts, and severity ratings align in tables
   and lists without per-element classes. Override with `proportional-nums` if
   proportional figures are needed in a specific context. */
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
}

/* Pagy pagination nav */
nav.series-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1rem;
}

nav.series-nav a {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  color: #4b5563;
  text-decoration: none;
  border-radius: 0.25rem;
}

nav.series-nav a:hover:not([aria-disabled]) {
  color: #111827;
}

nav.series-nav a[aria-current="page"] {
  font-weight: 500;
  color: #111827;
  background-color: #f3f4f6;
}

nav.series-nav a[aria-disabled="true"] {
  color: #9ca3af;
  cursor: default;
  pointer-events: none;
}

/* WCAG 2.2 — visible focus indicators for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 2px;
}
