/* Team page: the held lineup photograph and the eight-count strip. Order: layout, type, colour, motion. */

/* ================= LAYOUT ================= */

.threshold .first-line { max-width: 44rem; }
.lineup-hall { padding: 0.75rem var(--tda-edge) 1.5rem; }
.lineup img {
  transform: scale(var(--tda-near, 1));
  transform-origin: var(--tda-across, 50%) var(--tda-down, 50%);
}
.lineup-hall .callsheet { grid-template-columns: minmax(6rem, 8rem) 1fr; gap: 0.4rem 1rem; margin-top: 1.25rem; }
.studio > .scene:first-child { padding-top: 0.75rem; }

.tally-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem 0.5rem; }
.tally-row li { min-width: 0; }
.tally {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  padding: 0.4rem;
  text-align: left;
  border: var(--tda-tread) solid transparent;
  cursor: pointer;
}
.tally-tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: var(--tda-tread) solid;
}
.tally-late .tally-tile::after {
  content: "";
  position: absolute;
  right: 0.3rem;
  bottom: 0.3rem;
  width: 0.9rem;
  height: 0.45rem;
}
.tally-whole { margin-top: 1.25rem; }
.pledge { padding: 1rem 1.25rem; border: var(--tda-tread) solid; }
.bow-way > span:first-child { min-width: 0; }
.bow-tile { flex: none; width: 2.25rem; aspect-ratio: 16 / 9; }

@media (max-width: 48rem) {
  .tally-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lineup-hall .callsheet { grid-template-columns: 1fr; gap: 0; }
  .lineup-hall .callsheet dd { margin-bottom: 0.6rem; }
  .studio > .scene:first-child { padding-top: 1.5rem; }
  .pledge { padding: 0.9rem 1rem; }
}

/* ================= TYPE ================= */

.tally { font-family: var(--tda-counting); font-size: 0.9rem; line-height: 1.45; }
.tally-tile { font-family: var(--tda-voice); font-weight: 650; font-size: 1.75rem; line-height: 1; }
.tally-whole { font-size: 0.9375rem; }
.pledge p { font-size: 1.0625rem; }
.bow-way { overflow-wrap: anywhere; }

@media (max-width: 48rem) {
  .pledge p { font-size: 1rem; }
}

/* ================= COLOUR ================= */

.tally { background: none; color: inherit; }
.tally:hover { border-color: var(--tda-bark); }
.tally-tile { background: var(--tda-straw); border-color: var(--tda-bark); }
.tally-late .tally-tile::after { background: var(--tda-blue); }
.tally[aria-pressed="true"] { border-color: var(--tda-blue); }
.tally[aria-pressed="true"] .tally-tile { background: var(--tda-blue); color: var(--tda-straw); border-color: var(--tda-blue); }
.tally-late[aria-pressed="true"] .tally-tile::after { background: var(--tda-straw); }
.pledge { background: var(--tda-straw); border-color: var(--tda-bark); }
.bow-way-email { background: var(--tda-blue); color: var(--tda-straw); border-color: var(--tda-blue); }
.bow-way-email:hover { background: var(--tda-bark); border-color: var(--tda-bark); color: var(--tda-straw); }
.bow-tile { background: currentColor; }

/* ================= MOTION ================= */

.lineup img { transition: transform 200ms ease-out, transform-origin 200ms ease-out; }
.tally, .tally-tile { transition: border-color 150ms linear, background-color 150ms linear, color 150ms linear; }

@media (prefers-reduced-motion: reduce) {
  .lineup img, .tally, .tally-tile { transition: none !important; }
}
