/* ==========================================================================
   Status grid — participation view
   Element-specific cell + header rules. Composes with .table, .table--compact,
   .table--sticky. See:
     docs/superpowers/specs/2026-05-14-status-element-conversion-design.md §5
   ========================================================================== */

.status__swap-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background: var(--surface-base);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.status__swap-btn:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}
.status__swap-btn .material-symbols-rounded {
  font-size: 16px;
}

/* === Summary band === */
.status__summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
@media (min-width: 768px) {
  .status__summary--three { grid-template-columns: repeat(3, 1fr); }
  .status__summary--four  { grid-template-columns: repeat(4, 1fr); }
}
.status__summary .card__label-row {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
  color: var(--text-secondary);
}
.status__summary .card__label-row .material-symbols-rounded {
  font-size: 16px;
  color: var(--accent-primary);
}

/* === Grid step label cell === */
.status__step-label {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 220px;
}
.status__step-label .week {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status__step-label .name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  white-space: normal;
}

/* === Grid cell === */
.status__cell {
  text-align: center;
  white-space: nowrap;
}
.status__cell .material-symbols-rounded {
  font-size: 18px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  color: var(--status-success);
  vertical-align: middle;
}
.status__cell--incomplete .material-symbols-rounded {
  color: var(--text-tertiary);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.status__cell--none {
  color: var(--text-tertiary);
}
.status__cell .pts {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.status__cell .date {
  font-size: 11px;
  color: var(--text-secondary);
  vertical-align: middle;
}
.status__cell .date--incomplete {
  color: var(--text-tertiary);
}

/* === Team header (when participants_level == Teams) === */
/* Specificity bump (th.<class>) needed to override .table th's text-align: left. */
.table th.status__team-header {
  text-align: center;
}
.status__team-header .material-symbols-rounded {
  font-size: 14px;
  color: var(--accent-primary);
  vertical-align: -2px;
  margin-right: 4px;
}
.status__team-header strong {
  color: var(--accent-primary);
  font-size: var(--text-xs);
}

/* === Member header (column header in content_members axis) === */
/* Specificity bump (th.<class>) needed to override .table th's text-align: left. */
.table th.status__member-header {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-primary);
  white-space: nowrap;
  font-weight: var(--weight-semibold);
}

/* === Member cell (row label in transposed axis) === */
.status__member-row-label {
  font-size: var(--text-sm);
  color: var(--text-primary);
  white-space: nowrap;
}
.status__member-row-label .team {
  display: block;
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--weight-semibold);
  margin-bottom: 1px;
}

/* === Vertical step column headers (transposed axis only) ===
   sideways-lr reads bottom-to-top with naturally-oriented characters
   (tilt head left to read). The earlier combo of vertical-rl + rotate(180deg)
   inverted the characters along with the box, producing upside-down text. */
.status__step-col-header {
  font-size: 10px;
  color: var(--text-secondary);
  writing-mode: sideways-lr;
  padding: var(--space-2) var(--space-1);
  text-align: left;
  min-height: 80px;
  vertical-align: bottom;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
}
.status__step-col-header__week {
  color: var(--text-tertiary);
  font-weight: var(--weight-bold);
}

/* === Totals row tweaks === */
.status__totals-row td:first-child {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}
