/* Moved from app/views/tournaments/standings.html.erb in B2, scoped to .ctx-public. Rebuilt in its own phase. */
.ctx-public .standings-page {
    padding: var(--space-lg) 0 var(--space-xxl);
  }
.ctx-public .standings-nav {
    margin-bottom: var(--space-lg);
  }
.ctx-public .standings-nav__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
  }
.ctx-public .standings-nav__back:hover {
    color: var(--primary);
  }
.ctx-public .standings-header {
    text-align: center;
    margin-bottom: var(--space-xl);
  }
.ctx-public .standings-title {
    font-family: var(--font);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: var(--space-xs);
  }
.ctx-public .standings-subtitle {
    font-size: 14px;
    color: var(--muted-foreground);
  }
.ctx-public .standings-table {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
  }
.ctx-public .standings-table__header {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted-foreground);
  }
.ctx-public .standings-table__body {
    display: flex;
    flex-direction: column;
  }
.ctx-public .standings-row {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--card);
    border-bottom: 1px solid var(--border);
    transition: background 0.1s ease;
  }
.ctx-public .standings-row:last-child {
    border-bottom: none;
  }
.ctx-public .standings-row:hover {
    background: var(--muted);
  }
.ctx-public .standings-row--champion {
    background: none;
  }
.ctx-public .standings-row--champion:hover {
    background: none;
  }
.ctx-public .standings-col--rank {
    min-width: 56px;
    text-align: center;
    flex-shrink: 0;
  }
.ctx-public .standings-col--team {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    padding: 0 var(--space-md);
  }
.ctx-public .standings-col--status {
    flex-shrink: 0;
  }
.ctx-public .rank-number {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    color: var(--foreground);
  }
.ctx-public .rank-champion {
    font-size: 22px;
  }
.ctx-public .standings-team-name {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
.ctx-public .standings-ironman {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink);
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
  }
.ctx-public .standings-row--champion .standings-team-name {
    color: var(--ink-2);
    font-size: 15px;
  }
.ctx-public .standings-team-members {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
.ctx-public .status-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
  }
.ctx-public .status-pill--champion {
    background: var(--surface-2);
    color: var(--ink-2);
  }
.ctx-public .standings-group {
    margin: 0; padding: var(--space-md) var(--space-md) var(--space-xs);
    font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted-foreground);
  }
.ctx-public .status-pill--eliminated {
    background: var(--muted);
    color: var(--muted-foreground);
  }
.ctx-public .status-pill--active {
    background: var(--surface-2);
    color: var(--win);
  }
.ctx-public .status-pill--pending {
    background: var(--muted);
    color: var(--muted-foreground);
    opacity: 0.7;
  }
.ctx-public .standings-footer {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
  }
@media (max-width: 640px) {
.ctx-public .standings-col--rank {
      min-width: 44px;
    }
.ctx-public .standings-col--team {
      padding: 0 var(--space-sm);
    }
.ctx-public .standings-footer {
      flex-direction: column;
    }
.ctx-public .standings-footer .btn {
      width: 100%;
      text-align: center;
    }
}
