/* INSIDE THE 20 (drives.js, ch. 15 D-37): your drives about to score. The
   panel is the board's own; one row per scorer, one line per league he moves.
   At 320 the name sits over its leagues; from 768 they share a line. Every
   name is an API string: the league truncates (team-first labels keep the
   distinguishing token inside the ellipsis, D-22), a player name wraps. */

.drives .drive + .drive {
  margin-top: 8px;
}
.drive-head {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
}
.drive-head b {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-right: 2px;
}
.drive-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.drive-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 6px 0;
  border-top: 1px solid var(--line-soft);
}
.drive-name {
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.drive-td {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 5px;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--sub);
  vertical-align: 1px;
  white-space: nowrap;
}
.drive-legs {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.drive-leg {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.drive-league {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: var(--sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drive-odds {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .drive-row {
    grid-template-columns: minmax(0, 11em) minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
  }
}

/* The fold (D-39): the scorers past the cap, named on one closed line. The
   summary is the whole 44px target, open or closed (never below the floor);
   the names truncate, the count does not. */
.drive-more {
  border-top: 1px solid var(--line-soft);
}
.drive-more > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 13px;
  color: var(--sub);
  cursor: pointer;
  list-style: none;
}
.drive-more > summary::-webkit-details-marker {
  display: none;
}
.drive-more > summary b {
  flex: 0 0 auto;
  color: var(--text);
  font-weight: 700;
}
.drive-more-names {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* The pcard's own glyph: what says "this opens", without a word. */
.drive-more > summary::after {
  content: '\25be';
  margin-left: auto;
  color: var(--sub);
  font-size: 16px;
  flex: 0 0 auto;
}
.drive-more[open] > summary::after {
  content: '\25b4';
}
/* A folded name in its touchdown's ink: the field's up/down colour, at the
   summary's size and weight rather than the percentage's. */
.drive-more-names .field-pct {
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0;
}
