.rotation-report {
  margin-block: 14px;
}

.rotation-report > summary {
  min-height: 38px;
  align-content: center;
}

.rotation-report-body {
  display: grid;
  gap: 16px;
  padding: clamp(9px, 2vw, 20px);
}

.rotation-report-story {
  max-width: 70ch;
  border-left: 3px solid var(--teal);
  padding-left: clamp(10px, 2vw, 20px);
}

.rotation-report-story h3 {
  margin-bottom: 7px;
  font: 850 clamp(1.55rem, 3.3vw, 2.4rem)/1.05 var(--display);
}

.rotation-report-story p + p {
  margin-top: 7px;
}

.rotation-report-leaders h3 {
  margin-bottom: 8px;
}

.rotation-report-leaders > div,
.rotation-report-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 18px);
}

.rotation-report-leaders section {
  min-width: 0;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--mint);
}

.rotation-report-leaders h4 {
  margin: 0 0 5px;
  font-size: .83rem;
  color: var(--teal);
}

.rotation-report-leaders ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink);
}

.rotation-report-leaders li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.rotation-report-leaders li strong {
  white-space: nowrap;
}

.rotation-report table {
  width: 100%;
  height: max-content;
  border-collapse: collapse;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
  font-size: .85rem;
  overflow-wrap: anywhere;
}

.rotation-report :is(th,td) {
  padding: 6px 9px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.rotation-report th:first-child {
  text-align: left;
}

.rotation-report thead th {
  color: var(--teal);
  background: var(--mint);
}

.rotation-report tbody th {
  font-weight: 650;
}

.rotation-report-periods tbody tr:last-child {
  font-weight: 800;
  background: var(--paper);
}

.rotation-archive-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.rotation-archive-stats > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--paper);
}

.rotation-archive-stats dt {
  font-size: .78rem;
  color: var(--muted);
}

.rotation-archive-stats dd {
  font-weight: 780;
}

.rotation-archive-matches,
.rotation-archive-roster ul {
  list-style: none;
  padding: 0;
}

.rotation-archive-matches {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
}

.rotation-archive-matches .rotation-report,
.rotation-archive-matches .rotation-report > summary {
  margin: 0;
}

.rotation-archive-score {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}

.rotation-archive-score strong {
  white-space: nowrap;
}

.rotation-archive-roster ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.rotation-archive-roster li {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--mint);
}

@media (max-width: 660px) {
  .rotation-report-tables {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 450px) {
  .rotation-report-leaders > div {
    grid-template-columns: 1fr;
  }
}
