/**
 * NFL Power Ratings — public front-end styles. Builds on the nfl-lines design tokens
 * (colors, spacing, type, tap targets). Namespace: .nfl-pr-*.
 */

/* v0.46.15.1 §P15a — REGISTER C1. This rule used to set
   max-width: var(--nfl-container-max), and --nfl-container-max had EXACTLY ONE
   occurrence in the whole tree: this line. The token was never defined and
   there was no fallback, so the declaration was ALWAYS dropped and the element
   shrink-wrapped inside GeneratePress's flex content area — the narrow column
   with the huge gutter, on /ratings/, /predictions/ AND /nfl-team/ at once.
   The wrapper is now a real <main> carrying .nfl-ds-main, and .nfl-ds-container
   owns the width. THIS RULE IS PAINT ONLY.
   overflow-x:hidden is gone with it: it CLIPPED a wide table instead of
   letting it scroll (2a.2). */
.nfl-pr-wrap {
  padding: var(--nfl-space-3);
  box-sizing: border-box;
  color: var(--nfl-color-text);
  background: var(--nfl-color-bg);
}

.nfl-pr-container {
  display: block;
}

.nfl-pr-breadcrumbs {
  margin: 0 0 var(--nfl-space-3);
  font-size: var(--nfl-font-sm);
  color: var(--nfl-color-text-muted);
}
.nfl-pr-breadcrumbs__link {
  color: var(--nfl-color-accent);
  text-decoration: none;
}
.nfl-pr-breadcrumbs__link:hover,
.nfl-pr-breadcrumbs__link:focus {
  text-decoration: underline;
}
.nfl-pr-breadcrumbs__sep {
  margin: 0 var(--nfl-space-1);
  color: var(--nfl-color-disabled);
}
.nfl-pr-breadcrumbs__current {
  color: var(--nfl-color-text);
  font-weight: 600;
}

.nfl-pr-title {
  margin: 0 0 var(--nfl-space-2);
  font-size: var(--nfl-font-2xl);
  line-height: var(--nfl-line-tight);
}
.nfl-pr-title-sub {
  color: var(--nfl-color-text-muted);
  font-weight: 400;
  font-size: 0.85em;
}
.nfl-pr-subtitle {
  margin: var(--nfl-space-5) 0 var(--nfl-space-3);
  font-size: var(--nfl-font-xl);
}
.nfl-pr-desc {
  margin: 0 0 var(--nfl-space-4);
  color: var(--nfl-color-text-muted);
  max-width: 60ch;
}
.nfl-pr-meta {
  margin: 0 0 var(--nfl-space-3);
  color: var(--nfl-color-text-muted);
  font-size: var(--nfl-font-sm);
}

/* Algorithm selector */
.nfl-pr-algo-selector {
  margin: 0 0 var(--nfl-space-4);
  display: flex;
  gap: var(--nfl-space-2);
  align-items: end;
  flex-wrap: wrap;
}
.nfl-pr-algo-selector__label {
  display: flex;
  flex-direction: column;
  gap: var(--nfl-space-1);
  font-size: var(--nfl-font-sm);
  color: var(--nfl-color-text-muted);
}
.nfl-pr-select {
  font-size: var(--nfl-font-base);        /* >=16px: no iOS zoom on focus */
  min-height: var(--nfl-touch-min);
  padding: var(--nfl-space-2) var(--nfl-space-3);
  border: 1px solid var(--nfl-color-border);
  border-radius: var(--nfl-radius-sm);
  background: var(--nfl-color-bg);
  color: var(--nfl-color-text);
  box-sizing: border-box;
}

/* Week navigator for /predictions/ */
.nfl-pr-week-nav {
  display: flex;
  gap: var(--nfl-space-2);
  margin: 0 0 var(--nfl-space-4);
  flex-wrap: wrap;
}

/* Empty state */
.nfl-pr-empty {
  background: var(--nfl-color-bg-subtle);
  border: 1px solid var(--nfl-color-border-soft);
  border-radius: var(--nfl-radius-md);
  padding: var(--nfl-space-5);
  margin-bottom: var(--nfl-space-4);
}
.nfl-pr-empty__title {
  margin: 0 0 var(--nfl-space-2);
  font-size: var(--nfl-font-lg);
  font-weight: 600;
}
.nfl-pr-empty__body {
  margin: 0 0 var(--nfl-space-3);
  color: var(--nfl-color-text-muted);
  max-width: 60ch;
}

/* Tables — mobile-first (stack into cards below 600px via grid tricks), */
/* table layout on tablet+. Because sports tables rarely look good on phones, */
/* we give the table horizontal scroll on mobile instead of redesigning. */
.nfl-pr-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--nfl-space-5);
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}
@media (min-width: 600px) {
  .nfl-pr-table {
    display: table;
    white-space: normal;
  }
}
.nfl-pr-table thead th {
  background: var(--nfl-color-bg-subtle);
  border-bottom: 2px solid var(--nfl-color-border);
  padding: var(--nfl-space-2) var(--nfl-space-3);
  text-align: left;
  font-size: var(--nfl-font-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nfl-color-text-muted);
  font-weight: 600;
}
.nfl-pr-table td {
  padding: var(--nfl-space-2) var(--nfl-space-3);
  border-bottom: 1px solid var(--nfl-color-border-soft);
  font-size: var(--nfl-font-sm);
}
.nfl-pr-table tbody tr:hover {
  background: var(--nfl-color-bg-subtle);
}
.nfl-pr-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Team link inside ratings table */
.nfl-pr-team-link {
  color: var(--nfl-color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: var(--nfl-space-2);
}
.nfl-pr-team-link:hover,
.nfl-pr-team-link:focus {
  color: var(--nfl-color-accent);
  text-decoration: underline;
}
.nfl-pr-team-abbr {
  font-weight: 700;
  font-family: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Liberation Mono", monospace;
  letter-spacing: 0.02em;
  background: var(--nfl-color-bg-subtle);
  padding: var(--nfl-space-1) var(--nfl-space-2);
  border-radius: var(--nfl-radius-sm);
  font-size: var(--nfl-font-xs);
}
.nfl-pr-team-name {
  color: var(--nfl-color-text-muted);
  font-size: var(--nfl-font-sm);
}

.nfl-pr-matchup {
  font-family: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Liberation Mono", monospace;
}

/* Team placeholder block */
.nfl-pr-team-placeholders {
  margin: var(--nfl-space-4) 0;
}
