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

/* Self-hosted Inter (OFL) — vendored in app/assets/fonts so we don't depend
   on fonts.googleapis.com/gstatic.com at runtime, keeping the CSP at 'self'
   and avoiding a third-party request on every page load. These are the
   variable woff2 files Google Fonts serves for Inter v20 (wght axis 100–900),
   split by the latin and latin-ext Unicode subsets — all the en and fr
   locales need. Propshaft rewrites these url()s to digested asset paths. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-latin-1f021a24.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-latin-ext-65edaaef.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 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;
}
