/*
 * Perpetual awards (the founders' feedback of 1 November 2026): the club
 * admin's series page, and the Past winners section under a Troph-e on the
 * player surface.
 *
 * Layout only. Every colour and size is a token; depth is the wash stack, never
 * a shadow.
 */

/* --- The club admin's series page --------------------------------------- */

.perpetual-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* A year is four digits; a full-width field for it reads as a sentence. The
   input narrows, never the field, so its helper keeps the line. */
.perpetual-form__year .ui-input,
.perpetual-winner-form__year .ui-input {
  max-width: calc(var(--thumb-md) * 2);
}

.perpetual-roll__winner {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.perpetual-roll__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Year, name and team on one line where there is room, stacked on a phone. The
   button sits under them, never stretched (Ui::ActionsComponent). */
.perpetual-winner-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}

@media (min-width: 768px) {
  .perpetual-winner-form {
    grid-template-columns: auto minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
  }

  .perpetual-winner-form > .ui-actions {
    grid-column: 1 / -1;
  }
}

/* --- The player's Past winners -------------------------------------------- */

/* Below the troph-e and quieter than it, as the comments are: a 16px title
   (the flat hierarchy), the names on one card wash split by hairlines. Nothing
   here is gold — it is the club's history, not the moment. */
.past-winners {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.past-winners__title {
  margin: 0;
  font-size: var(--type-body-lg-size);
  line-height: var(--type-body-lg-leading);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.past-winners__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 var(--space-4);
  list-style: none;
  background: var(--surface-1);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-md);
}

.past-winners__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-3) 0;
}

.past-winners__item + .past-winners__item {
  border-top: var(--border-width) solid var(--divider);
}

.past-winners__year {
  flex: none;
  min-width: var(--space-10);
  font-variant-numeric: tabular-nums;
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-leading);
  color: var(--text-tertiary);
}

.past-winners__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.past-winners__name {
  font-size: var(--type-body-size);
  line-height: var(--type-body-leading);
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.past-winners__team,
.past-winners__more {
  margin: 0;
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-leading);
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
