/* tour — a date list, not a table: it has to read on a phone. */

.s-tour__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-space-2); }

.s-tour__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "date where" "status status";
  align-items: center;
  gap: var(--s-space-2) var(--s-space-4);
  padding: var(--s-space-3) 0;
  border-bottom: var(--s-border-w) var(--s-rule-style) var(--s-border);
}
.s-tour__row.is-cancelled { opacity: .55; }
.s-tour__row.is-cancelled .s-tour__venue { text-decoration: line-through; }

.s-tour__date {
  grid-area: date;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  padding: var(--s-space-2) 0;
  background: var(--s-bg-sunken);
  border: var(--s-border-w) var(--s-rule-style) var(--s-border);
  border-radius: var(--s-radius-sm);
  font-family: var(--s-font-mono);
  line-height: 1.1;
}
.s-tour__mon { font-size: var(--s-text-xs); letter-spacing: var(--s-tracking-wide); color: var(--s-accent); }
.s-tour__day { font-size: var(--s-text-lg); font-weight: var(--s-weight-bold); color: var(--s-fg); }

.s-tour__where { grid-area: where; display: flex; flex-direction: column; gap: var(--s-space-1); min-width: 0; }
.s-tour__venue { font-weight: var(--s-weight-medium); }
.s-tour__city { font-size: var(--s-text-sm); color: var(--s-fg-muted); }
.s-tour__support { font-size: var(--s-text-xs); color: var(--s-fg-faint); }

.s-tour__status { grid-area: status; justify-self: start; }
.s-tour__tickets { grid-area: status; justify-self: end; }

.s-tour__year { font-family: var(--s-font-mono); font-size: var(--s-text-xs); color: var(--s-fg-faint); }

.s-tour__empty { padding: var(--s-space-5) 0; }

.s-tour__past { margin-top: var(--s-space-6); }
.s-tour__past-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-space-2);
  cursor: pointer;
  font-family: var(--s-font-mono);
  font-size: var(--s-text-xs);
  letter-spacing: var(--s-tracking-wide);
  text-transform: uppercase;
  color: var(--s-fg-muted);
  list-style: none;
}
.s-tour__past-toggle::-webkit-details-marker { display: none; }
.s-tour__past[open] .s-tour__past-toggle svg { transform: rotate(180deg); }
.s-tour__list--past { margin-top: var(--s-space-4); opacity: .75; }

@container (min-width: 40rem) {
  .s-tour__row {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "date where status tickets";
    gap: var(--s-space-4);
  }
  .s-tour__tickets { grid-area: tickets; }
}
