/* ═══════════════════════════════════════════════════════════════════════════
   Premium P7 — Flat editorial homepage (public Home view only)

   APPEND-ONLY, VISUAL-ONLY. Loaded last by index.html, after premium-p6.
   Every selector is scoped under .hp-home (the wrapper js/views/home.js renders
   and that exists on no other view), so no other page, the admin, the shared
   shell, or the P3/P6 top navigation (.hp-nav, shared by every public route)
   is touched. No HTML, JS, ID, class, data-attribute or displayed-text change.
   No !important. Same-specificity overrides win by source order (this file
   loads last), so P1–P6 stay byte-identical and removing this file's <link>
   fully reverts P7.

   What changes
     · cards, panels, borders, radii and drop shadows give way to hairline rules
     · Schedule  → flat scoreboard cells with thin dividers, kept in P3's
                   horizontal strip (arrows + swipe unchanged)
     · Standings → two ruled tables, rank numerals instead of ringed badges
     · Participants → one continuous team strip with a team-colour rule
     · Season tiles / League Info → continuous ruled information bands
     · Section titles → rule-led (P3's top rule), no repeated skewed bar
     · page / season / section background gradients → one flat dark canvas
   What stays
     · hero, draft-live strip, season title, champion plate (gold highlight)
     · every score, status, logo, link, arrow button and responsive strip
     · type scale (no size increases) and the P3 breakpoints
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. One flat canvas ───────────────────────────────────────────────────── */
.hp-home { background: rgba(13, 15, 20, 0.88); }
.hp-home .hp-season { background: rgba(10, 12, 17, 0.86); padding-bottom: clamp(28px, 4vw, 48px); }
.hp-home .hp-schedule,
.hp-home .hp-info { background: none; }

/* Containers: no fills, borders, radii. Info-panel spacing is set in §6. */
.hp-home .hp-panel {
  background: none;
  border: 0;
  border-radius: 0;
}

/* ── 2. Section rhythm: rule first, title directly under it ───────────────── */
.hp-home .hp-section { margin-top: clamp(28px, 4vw, 48px); padding-block: 16px 0; }
.hp-home .hp-season + .hp-section { margin-top: 0; }
.hp-home .hp-schedule { padding-bottom: 0; }
.hp-home .hp-section-head { margin-bottom: 10px; }
.hp-home .hp-section-title { padding-left: 0; }
.hp-home .hp-section-title::before { content: none; }

/* ── 3. Season: ruled stat band + champion plate ──────────────────────────── */
.hp-home .hp-tile { padding: 16px 14px 14px; }
.hp-home .hp-tile-label { white-space: normal; letter-spacing: 0.1em; line-height: 1.3; }
@media (min-width: 901px) and (max-width: 1100px) {
  /* the champion plate leaves ~520px for up to six tiles: wrap the band to 3 + 3
     (same divider logic P3 uses for its 2-column phone layout) */
  .hp-home .hp-tiles { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-home .hp-tile:nth-child(3n + 1) { border-left: 0; }
  .hp-home .hp-tile:nth-child(n + 4) { border-top: 1px solid var(--hp-hairline); }
}

/* The champion plate stays the one boxed, gold-framed object on the page; it only
   loses the soft drop shadow and the SaaS-round corners. */
.hp-home .hp-plate {
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.08);
}

/* ── 4. Schedule: flat scoreboard cells in the horizontal strip ───────────── */
.hp-home .hp-game,
.hp-home .hp-game.is-scheduled {
  gap: 14px;
  padding: 4px 20px 8px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.hp-home .hp-game + .hp-game { border-left: 1px solid var(--hp-hairline); }
.hp-home .hp-game:first-child { padding-left: 0; }
.hp-home .hp-game-top { padding-bottom: 0; border-bottom: 0; }
.hp-home .hp-game-chip { padding: 0; background: none; border-radius: 0; color: var(--nb-text-dim); }
.hp-home .hp-game .team-logo-img-lg,
.hp-home .hp-game .team-badge-lg { width: 48px; height: 48px; }
.hp-home .hp-game .team-badge-lg { border-radius: 8px; }
.hp-home .hp-vs { width: auto; height: auto; background: none; border: 0; border-radius: 0; font-size: 0.8125rem; }
.hp-home .hp-score b.is-winner { text-shadow: none; }
/* winner = bright score + name (P3), loser dimmed (P3); the green logo ring goes */
.hp-home .hp-game.is-final .hp-side.is-winner .team-logo-img,
.hp-home .hp-game.is-final .hp-side.is-winner .team-badge { box-shadow: none; }

/* ── 5. Standings: two ruled tables ───────────────────────────────────────── */
@media (min-width: 1024px) {
  .hp-home .hp-standings-grid { column-gap: clamp(32px, 5vw, 64px); }
}
.hp-home .hp-st-row { min-height: 46px; padding-inline: 0; }
.hp-home .hp-st-head { background: none; border-top: 0; border-bottom: 1px solid var(--nb-surface-border); }
.hp-home .hp-st-row.is-leader { background: none; }
/* rank = numeral, not a ringed badge; gold marks the top four (1 included) */
.hp-home .hp-rank {
  width: auto;
  height: auto;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  background: none;
}
.hp-home .hp-rank.is-top4,
.hp-home .hp-rank.is-first { background: none; border: 0; color: var(--nb-gold-on-dark, var(--nb-gold)); }
@media (max-width: 640px) {
  /* rows sit on the page gutter instead of bleeding to the screen edge */
  .hp-home .hp-standings-grid { margin-inline: 0; }
}

/* ── 6. Participants: one team strip ──────────────────────────────────────── */
.hp-home .hp-participant-strip { gap: 0; }
.hp-home .hp-pcard {
  background: none;
  border: 0;
  border-top: 2px solid color-mix(in srgb, var(--_t) 65%, transparent);
  border-radius: 0;
  box-shadow: none;
  transition: background-color var(--nb-dur-fast) var(--nb-ease-standard);
}
.hp-home .hp-pcard + .hp-pcard { border-left: 1px solid var(--hp-hairline); }
.hp-home .hp-pcard:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--_t) 65%, transparent);
  background: color-mix(in srgb, var(--_t) 9%, transparent);
}
.hp-home .hp-pcard + .hp-pcard:hover { border-left-color: var(--hp-hairline); }
.hp-home .hp-pcard-logo { width: 68px; height: 68px; background: none; }

/* ── 7. League info: ruled band + open blocks ─────────────────────────────── */
/* Each cell paints its own left/top hairline; the band clips the outer ones, so
   the dividers stay correct however the grid wraps. */
.hp-home .hp-intel {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-block: 1px solid var(--hp-hairline);
}
.hp-home .hp-intel-item {
  padding: 16px 18px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: -1px -1px 0 0 var(--hp-hairline);
}
.hp-home .hp-info-grid { gap: 20px clamp(32px, 5vw, 64px); margin-top: 28px; }
.hp-home .hp-info-grid > .hp-panel { padding: 14px 0 0; border-top: 1px solid var(--hp-hairline); }
.hp-home .hp-champion-banner { border-radius: 4px; }
.hp-home .hp-seasons { gap: 0; }
.hp-home .hp-season-row { padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--hp-hairline); border-radius: 0; }
.hp-home .hp-season-row:last-child { border-bottom: 0; }
.hp-home .hp-season-row.is-active { padding-left: 12px; }

@media (max-width: 900px) {
  .hp-home .hp-intel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hp-home .hp-intel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 8. Public rosters: one ruled league ledger, no nested cards ──────────── */
.all-rosters-view {
  width: 100%;
  min-width: 0;
  gap: clamp(22px, 3vw, 36px);
  padding: clamp(16px, 2vw, 28px) clamp(14px, 2vw, 28px) 40px;
  background: rgba(13, 15, 20, 0.88);
}
.all-rosters-view .all-rosters-header {
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid var(--nb-surface-border);
  border-radius: 0;
  box-shadow: none;
  background: none;
}
.all-rosters-view .all-rosters-title {
  font-family: var(--nb-font-condensed, "Barlow Condensed", sans-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.all-rosters-view .all-rosters-cap-note,
.all-rosters-view .all-rosters-old-season-badge {
  border-radius: 0;
  box-shadow: none;
}
.all-rosters-view .roster-card-grid {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  padding-top: 12px;
  gap: clamp(18px, 2vw, 28px) clamp(16px, 1.6vw, 24px);
}
.all-rosters-view .roster-card {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  padding: 14px 12px 16px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--nb-surface-border);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.all-rosters-view .roster-card-head {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 4px 8px;
  padding: 0;
  white-space: nowrap;
}
.all-rosters-view .roster-card-name {
  min-width: 0;
  font-family: var(--nb-font-condensed, "Barlow Condensed", sans-serif);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.all-rosters-view .roster-card-count {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: var(--nb-fs-xs);
}
.all-rosters-view .roster-card-team {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-width: 0;
  padding: 0;
}
.all-rosters-view .roster-card-team .team-logo-img-lg,
.all-rosters-view .roster-card-team .team-badge-lg { width: 30px; height: 30px; }
.all-rosters-view .roster-card-team .team-identity { gap: 8px; min-width: 0; max-width: 100%; }
.all-rosters-view .roster-card-team .team-identity-name {
  min-width: 0;
  color: var(--nb-text);
  font-size: var(--nb-fs-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.all-rosters-view .roster-card-cap {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 0;
  border: 0;
  background: none;
}
.all-rosters-view .roster-card-cap-labels { gap: 8px; margin: 0; }
.all-rosters-view .roster-card-ovr-total { font-size: var(--nb-fs-sm); color: var(--nb-gold-on-dark, var(--nb-gold)); }
.all-rosters-view .roster-card-cap-value { font-size: var(--nb-fs-xs); }
.all-rosters-view .cap-bar-track { width: clamp(56px, 6vw, 88px); height: 4px; }
.all-rosters-view .roster-card-remaining { margin: 0; white-space: normal; }
.all-rosters-view .roster-card .table-scroll,
.all-rosters-view .empty-roster { grid-column: 1 / -1; min-width: 0; }
.all-rosters-view .roster-card .table-scroll {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.all-rosters-view .roster-card-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-radius: 0;
}
.all-rosters-view .roster-card-table th:not(:nth-child(2)):nth-child(1),
.all-rosters-view .roster-card-table td:nth-child(1) { width: 8%; }
.all-rosters-view .roster-card-table th:nth-child(2),
.all-rosters-view .roster-card-table td:nth-child(2) { width: 34%; }
.all-rosters-view .roster-card-table th:not(:nth-child(2)):nth-child(3),
.all-rosters-view .roster-card-table td:nth-child(3) { width: 15%; }
.all-rosters-view .roster-card-table th:not(:nth-child(2)):nth-child(4),
.all-rosters-view .roster-card-table td:nth-child(4) { width: 15%; }
.all-rosters-view .roster-card-table th:not(:nth-child(2)):nth-child(5),
.all-rosters-view .roster-card-table td:nth-child(5) { width: 8%; }
.all-rosters-view .roster-card-table th:not(:nth-child(2)):nth-child(6),
.all-rosters-view .roster-card-table td:nth-child(6) { width: 8%; }
.all-rosters-view .roster-card-table th:not(:nth-child(2)):nth-child(7),
.all-rosters-view .roster-card-table td:nth-child(7) { width: 12%; }
.all-rosters-view .roster-card-table th {
  font-family: var(--nb-font-condensed, "Barlow Condensed", sans-serif);
  font-size: var(--nb-fs-xs);
  font-weight: var(--nb-fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: normal;
}
.all-rosters-view .roster-card-table td {
  padding: 0.42rem 0.2rem;
  background: transparent;
  overflow-wrap: anywhere;
}
.all-rosters-view .roster-card-table td:nth-child(2) {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.all-rosters-view .roster-card-table td.ovr {
  padding-right: 0.2rem;
  font-size: var(--nb-fs-xs);
  line-height: var(--nb-lh-table);
}
.all-rosters-view .roster-card-table td:nth-child(3),
.all-rosters-view .roster-card-table td:nth-child(4),
.all-rosters-view .roster-card-table td:nth-child(5),
.all-rosters-view .roster-card-table td:nth-child(6),
.all-rosters-view .roster-card-table td:nth-child(7) {
  white-space: normal;
}
.all-rosters-view .roster-card-table .pick-color-badge {
  padding-inline: 0.22rem;
  font-size: 0.65rem;
  letter-spacing: 0;
}
.all-rosters-view .roster-card-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.all-rosters-view .roster-row-empty td { background: transparent; }
.all-rosters-view .empty-roster { padding: 14px 0 0; text-align: left; }

@media (max-width: 1199px) {
  .all-rosters-view .roster-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .all-rosters-view .roster-card-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .all-rosters-view .roster-card { grid-template-columns: minmax(0, 1fr); }
  .all-rosters-view .roster-card-team { grid-column: 1; grid-row: 2; }
  .all-rosters-view .roster-card-cap { grid-row: 3; }
  .all-rosters-view .roster-card { padding-inline: 8px; }
  .all-rosters-view .roster-card-table th,
  .all-rosters-view .roster-card-table td { padding-inline: 0.12rem; }
}

/* ── 9. Reduced motion: P3 already drops the card lift; the hover tint stays
      a plain colour change, which needs no extra rule. ───────────────────── */
