/* Match cards respond to the available results area, including the sidebar. */
.agenda-group {
  container-name: results;
  container-type: inline-size;
}
.agenda-match-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  align-items: stretch;
  max-width: 1440px;
  margin-inline: auto;
}
.agenda-match-grid > .agenda-match {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 480px;
  min-width: 0;
  min-height: 114px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.agenda-match-grid > .agenda-match:last-child { border-bottom: 1px solid var(--line); }
.agenda-match-grid > .agenda-match:hover { border-color: var(--line-strong); background: var(--surface-2); }
.agenda-match-grid > .agenda-match > .star-button {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 24px;
  height: 24px;
}
.agenda-match-grid > .agenda-match > .star-button .icon { width: 14px; height: 14px; }
.agenda-match-grid .agenda-time {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  min-height: 20px;
  padding-right: 26px;
  flex-wrap: wrap;
}
.agenda-match-grid .agenda-time > strong { font-size: 11px; font-weight: 650; }
.agenda-match-grid .agenda-time > time,
.agenda-match-grid .agenda-time > small { font-size: 9px; }
.agenda-match-grid .agenda-time .status { font-size: 9px; text-transform: none; padding: 2px 5px; }
.agenda-match-grid .agenda-fixture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  grid-template-rows: 24px 24px auto;
  gap: 4px 8px;
  margin-top: 6px;
  padding: 0;
  width: 100%;
  min-width: 0;
}
.agenda-match-grid .fixture-team { font-size: 12px; gap: 7px; line-height: 1.4; }
.agenda-match-grid .fixture-team.home { grid-column: 1; grid-row: 1; }
.agenda-match-grid .fixture-team.away { grid-column: 1; grid-row: 2; }
.agenda-match-grid .fixture-team > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-match-grid .agenda-club-crest,
.agenda-match-grid .pending-participant-mark { width: 22px; height: 22px; min-width: 22px; padding: 2px; border-radius: 4px; flex-shrink: 0; }
.agenda-match-grid .fixture-result {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  grid-template-rows: 24px 24px;
  gap: 4px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}
.agenda-match-grid .fixture-result b { line-height: 24px; }
.agenda-match-grid .fixture-result i { display: none; }
.agenda-match-grid .fixture-meta {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 9px;
  line-height: 1.5;
  padding-top: 3px;
  min-width: 0;
}
.agenda-match-grid .fixture-meta > span:not(.fixture-note) {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agenda-match-grid .fixture-meta .icon { width: 10px; height: 10px; vertical-align: -1px; }
.agenda-match-grid .fixture-detail { display: none; }
.agenda-match-grid .agenda-fixture:focus-visible,
.agenda-match-grid .star-button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }
@container results (min-width: 650px) {
  .agenda-match-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container results (min-width: 990px) {
  .agenda-match-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
  body[data-route="agenda"] .dashboard { grid-template-columns: minmax(0, 1fr); }
  body[data-route="agenda"] .agenda-rail { display: none; }
}
@media (max-width: 600px) {
  .agenda-match-grid { padding: 9px; gap: 8px; }
  .agenda-match-grid > .agenda-match { padding: 9px 10px; min-height: 110px; }
  .agenda-match-grid .fixture-team { font-size: 11px; }
}
