/* The same row serves the Cup card and the season list. Its container controls
   when the date and status move above the teams. */
.cup-panel {
  border-color: var(--gold-edge);
  border-top-color: var(--forest);
  box-shadow:
    0 4px 0 var(--gold-paper),
    0 9px 20px rgb(48 39 14 / 7%);
}
.cup-panel-head {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-16) var(--panel-pad);
  margin: calc(-1 * var(--panel-pad)) calc(-1 * var(--panel-pad)) 0;
  background: var(--forest);
}
.cup-panel-head img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.cup-panel-head h3,
.cup-panel-head .panel-sub {
  color: var(--paper);
}
.fixture-group {
  margin-block-start: var(--space-24);
}
.fixture-group h4 {
  font: 700 var(--type-body) / 1.4 var(--body);
  margin: 0 0 var(--space-8);
  color: var(--forest);
}
.fixture-list {
  list-style: none;
  container-type: inline-size;
}
.fixture-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-top: 1px solid var(--gold-edge);
}
.fixture-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-12) var(--space-4);
  line-height: 1.3;
  font-size: var(--type-small);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: background-color 160ms;
}
.fixture-row:has(.fixture-status) {
  grid-template-columns: 5rem minmax(0, 1fr) auto minmax(0, 1fr) minmax(
      6rem,
      0.55fr
    );
}
.fixture-entry .fixture-row:only-child {
  grid-column: 1/-1;
}
.fixture-team {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  overflow-wrap: anywhere;
}
.fixture-team img {
  width: 26px;
  height: 26px;
  flex: none;
  object-fit: contain;
}
.fixture-home .fixture-team {
  flex-direction: row-reverse;
  text-align: right;
}
.fixture-row time,
.fixture-status {
  color: var(--muted);
  font-size: var(--type-caption);
}
.fixture-status {
  text-align: right;
}
.fixture-row time small {
  font: inherit;
}
.score-chip {
  display: inline-grid;
  place-items: center;
  min-width: 3.1em;
  min-height: 32px;
  padding: 2px var(--space-4);
  border: 1px solid var(--gold-edge);
  border-radius: var(--radius);
  background: var(--gold-paper);
  color: var(--forest);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    background-color 160ms,
    color 160ms;
}
.fixture-row:is(:focus-visible, :active) {
  background: var(--gold-paper);
}
.fixture-row:is(:focus-visible, :active) .score-chip {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest);
}
@media (hover: hover) {
  .fixture-row:hover {
    background: var(--gold-paper);
  }
  .fixture-row:hover .score-chip {
    background: var(--forest);
    color: var(--paper);
    border-color: var(--forest);
  }
}
.fixture-row:focus-visible {
  outline-offset: -2px;
  outline-color: var(--green);
}
.fixture-rosters {
  margin: var(--space-4) 0 var(--space-4) var(--space-8);
}
.data-stamp,
.cup-source {
  color: var(--muted);
  font-size: var(--type-caption);
}
.data-stamp {
  margin: var(--space-16) 0 0;
}
@container (max-width: 42rem) {
  .fixture-row:has(.fixture-status) {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .fixture-row:has(.fixture-status) time {
    grid-column: 1/3;
    grid-row: 1;
  }
  .fixture-row time small {
    display: inline;
    margin-left: var(--space-8);
  }
  .fixture-status {
    grid-column: 3;
    grid-row: 1;
  }
}
@container (max-width: 30rem) {
  .fixture-entry {
    grid-template-columns: minmax(0, 1fr);
  }
  .fixture-row {
    grid-template-columns: 3rem minmax(0, 1fr) auto minmax(0, 1fr);
    gap: var(--space-4);
  }
  .fixture-team,
  .fixture-home .fixture-team {
    flex-direction: column;
    text-align: center;
  }
  .fixture-team img {
    width: 24px;
    height: 24px;
  }
  .fixture-rosters {
    justify-self: end;
  }
}
