/* Home, for someone logged in (docs/adr/0038). */
.dashboard__section + .dashboard__section {
  margin-top: 2.5rem;
}

/*
 * Wide screens: what's coming up on the left, your teams beside it, not
 * 2,000 pixels down under ten cards (docs/adr/0112).
 */
@media (min-width: 64rem) {
  .dashboard {
    display: grid;
    grid-template-columns: minmax(0, 40rem) minmax(0, 1fr);
    gap: 2.5rem 3rem;
    align-items: start;
  }

  .dashboard__section + .dashboard__section {
    margin-top: 0;
  }
}

.dashboard__section h2 {
  margin-bottom: 0.75rem;
}

.dashboard__section .events__list {
  max-width: 40rem;
}

/* What's coming up, a week at a time (docs/adr/0118). */
.dashboard__week + .dashboard__week {
  margin-top: 1.25rem;
}

.dashboard__week-heading {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dashboard__add-event {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.dashboard__empty {
  max-width: 40rem;
}

.dashboard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Someone on no team: starting one, or joining one (docs/adr/0117). */
.dashboard__ways {
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
  margin-top: 1rem;
}

.dashboard__ways li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border: 0.125rem solid var(--black);
  border-radius: 0.5rem;
  background-color: var(--white);
}

.dashboard__ways h3 {
  font-size: 1.125rem;
}

/* Teams as cards (components/team-card.html.twig), here and on Your teams. */
.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}

.team-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 0.125rem 0.875rem;
  height: 100%;
  padding: 1rem 1.25rem;
  border: 0.125rem solid var(--black);
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  background-color: var(--white);
  color: var(--black);
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.team-card:hover,
.team-card:focus-visible {
  transform: translate(-0.125rem, -0.125rem);
  box-shadow: 0.375rem 0.375rem var(--black);
}

.team-card:focus-visible {
  outline: 0.2rem solid var(--black);
  outline-offset: 0.2rem;
}

/* The badge on the left, the words beside it. */
.team-card .team-badge {
  grid-row: span 3;
}

.team-card > :not(.team-badge) {
  grid-column: 2;
}

.team-card__name {
  font-size: 1.125rem;
  font-weight: 700;
}

.team-card__meta,
.team-card__roles {
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
  .team-card {
    transition: none;
  }
}
