/* Seasons archive — extends styles.css's tokens (--ink, --accent, fonts) with the
   handful of components this page needs that the live board doesn't: season pills,
   a data-table, and a "computed" column style so users can see at a glance which
   numbers they type and which the app derives. */

.brand__name--static{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  padding: 1px 6px;
  margin-left: -6px;
}

.seasonnav{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 20;
  overflow-x: auto;
}

.season-pills{ display: flex; gap: 6px; flex: 1; min-width: 0; }

.season-pill{
  appearance: none;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 7px 8px 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.season-pill:hover{ border-color: var(--text-faint); color: var(--text); }
.season-pill.is-active{ background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.season-pill:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }

.season-pill__edit{
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  opacity: .6;
  width: 22px; height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.season-pill__edit:hover{ opacity: 1; background: #00000022; }

.season-main{ max-width: 1100px; margin: 0 auto; padding: 32px 28px 80px; display: flex; flex-direction: column; gap: 44px; }

.season-section__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.season-section__head h2{ font-family: var(--font-display); font-size: 24px; color: var(--text); }

.season-hint{ font-size: 12.5px; color: var(--text-faint); margin: 0 0 14px; }

.table-scroll{ overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }

table.stat-table{ width: 100%; border-collapse: collapse; min-width: 640px; }
table.stat-table th{
  /* Centered on both th and td: unlike left/right alignment, a centered
     column's midpoint is the same regardless of each cell's text width, so
     header and values land on the same axis without needing matching widths. */
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-faint);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--panel);
}
table.stat-table th.formula{ color: var(--accent); }
table.stat-table th[data-sort]{ cursor: pointer; user-select: none; }
table.stat-table th[data-sort]:hover{ color: var(--text); }
table.stat-table th[data-sort-dir]{ color: var(--text); }
table.stat-table th[data-sort-dir]::after{ font-size: 9px; margin-left: 3px; }
table.stat-table th[data-sort-dir="desc"]::after{ content: "▼"; }
table.stat-table th[data-sort-dir="asc"]::after{ content: "▲"; }
table.stat-table td{
  text-align: center;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
  white-space: nowrap;
  cursor: pointer;
}
table.stat-table tbody tr:last-child td{ border-bottom: none; }
table.stat-table tbody tr:hover{ background: var(--panel-2); }
table.stat-table td.num{ font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
table.stat-table td.formula{ color: var(--accent); font-weight: 600; }
table.stat-table td.rank-cell{ font-family: var(--font-mono); color: var(--text-faint); }
table.stat-table td.team-cell{ font-weight: 600; }
table.stat-table td.team-cell .team-kuerzel{ font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-left: 6px; font-weight: 500; }

.rd-pos{ color: #3ddc84; }
.rd-neg{ color: var(--accent); }

.empty-row td{ text-align: center; color: var(--text-faint); padding: 24px 12px; cursor: default; }
.empty-row td:hover{ background: transparent; }

.teams-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.teams-grid .team-card{ cursor: pointer; }
.teams-grid .team-card:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
