/* ---------- Who it's for: two team sheets in the scoreboard language ---------- */
.roster {
  background: #fff;
  overflow: hidden; overflow: clip;
}
.roster__head { display: grid; gap: 10px; }
.roster h2 { margin: 0; }

/* every sport, set large; the script slides it with the scroll */
.roster__strip {
  display: flex; gap: .42em; width: max-content;
  margin: clamp(18px, 3vw, 34px) 0 clamp(22px, 3.4vw, 44px);
  font: 900 italic clamp(2.4rem, 7vw, 5.6rem)/1 var(--font-display); font-stretch: 112%;
  text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap;
  transform: translateX(calc(-4% + var(--x, 0%)));
  will-change: transform;
}
.roster__strip span { display: inline-flex; gap: .42em; color: var(--side-ink); transition: color .4s var(--ease); }
.roster__strip span:nth-child(even) { color: var(--navy); }
html[data-side="clear"] .roster__strip span:nth-child(even) { color: var(--forest); }
.roster__strip span::after { content: "/"; color: var(--accent); transition: color .4s var(--ease); }

/* the two cards */
.sheets { display: grid; gap: 28px; }
.sheet {
  position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0;
  border-radius: var(--radius); overflow: hidden;
  background: var(--board); color: #fff; --focus: #fff;
  box-shadow: 0 0 0 3px var(--board-edge), 8px 10px 0 var(--side);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.sheet::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.6px) 0 0 / 7px 7px; }

.sheet__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 16px 8px; background: rgba(255,255,255,.07);
  font-weight: 800; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.75);
}
.sheet__bar span:last-child { font-style: italic; font-weight: 900; color: var(--accent); transition: color .4s var(--ease); }

/* one photo each, cropped in the frame (the athlete frame keeps to the runners) */
.sheet__photo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.sheet__photo img { position: absolute; max-width: none; }
.sheet__photo--athlete img { width: 205%; height: auto; left: 0; top: -19%; }   /* the race pack's bibs and numbers; the studio rider stays out of frame */
.sheet__photo--team img { width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 50% 40%; }
.sheet__photo::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--board)); pointer-events: none; }

.sheet__body { display: flex; flex-direction: column; flex: 1; padding: 4px 16px 20px; }
.sheet h3 {
  position: relative; margin-top: -.62em;
  font: 900 italic clamp(1.65rem, 6.6vw, 2.35rem)/.98 var(--font-display); font-stretch: 108%;
  text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
.sheet__lede { margin-top: 10px; color: rgba(255,255,255,.86); font-size: 1rem; line-height: 1.5; max-width: 44ch; }

/* roster rows: number / sport / what goes in the wash */
.sheet__cols, .sheet__list li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 12px; align-items: baseline; }
.sheet__cols { margin-top: 20px; padding: 0 0 6px; border-bottom: 2px solid rgba(255,255,255,.24); font-weight: 800; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.sheet__cols span:nth-child(3) { display: none; }
.sheet__list li { padding: 9px 0 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sheet__no {
  grid-row: 1 / 3; align-self: center;
  font-weight: 900; font-style: italic; font-stretch: 62%; font-size: 1.9rem; line-height: .9; font-variant-numeric: tabular-nums;
  color: var(--accent); transition: color .4s var(--ease);
}
.sheet__list b { font: 900 italic 1.0625rem/1.15 var(--font-display); font-stretch: 108%; text-transform: uppercase; letter-spacing: .01em; }
.sheet__list b + span { grid-column: 2; font-size: .875rem; line-height: 1.35; color: rgba(255,255,255,.74); }

/* per-card next step */
.sheet__list { margin-bottom: 18px; }
.sheet__go { display: grid; margin-top: auto; padding-top: 18px; }
.sheet__go .btn { width: 100%; }
/* rows light up down the sheet as it arrives (reveal script adds .in; reduced motion gets it at once) */
.js .sheet.rv .sheet__list li { opacity: .18; transition: opacity .45s var(--ease); transition-delay: calc(.35s + var(--i) * .09s); }
.js .sheet.rv.in .sheet__list li { opacity: 1; }


@media (min-width: 700px) {
  .sheets { gap: 36px; }
  .sheet__bar { padding: 10px 24px 9px; font-size: .75rem; }
  .sheet__body { padding: 4px 24px 26px; }
  .sheet__lede { font-size: 1.0625rem; }
  .sheet__cols, .sheet__list li { grid-template-columns: 3rem minmax(0, auto) minmax(0, 1fr); }
  .sheet__cols span:nth-child(3) { display: block; text-align: right; }
  .sheet__no { grid-row: auto; }
  .sheet__list b + span { grid-column: 3; text-align: right; }
}
@media (min-width: 980px) {
  .sheets { grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
  .sheet h3 { font-size: clamp(2rem, 2.7vw, 2.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .roster__strip { transform: translateX(-4%); }
  .js .sheet.rv .sheet__list li { opacity: 1; transition: none; }
}

/* one dose readout for both sheets: the label's small and large loads */
.dose-board {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin-top: clamp(22px, 3vw, 36px); padding: 14px 18px; border-radius: var(--radius);
  background: var(--board); color: #fff; box-shadow: 0 0 0 3px var(--board-edge);
}
.dose-board__k { flex-basis: 100%; white-space: nowrap; font-weight: 900; font-style: italic; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); transition: color .4s var(--ease); }
.dose-board__v { display: inline-flex; align-items: baseline; gap: 6px; }
.dose-board .led { font-size: 2.6rem; line-height: 1; color: #7dffb2; text-shadow: 0 0 14px rgba(125,255,178,.55); }
.dose-board__v i, .dose-board__v small { font-weight: 900; font-style: italic; font-size: .95rem; text-transform: uppercase; color: #7dffb2; }
.dose-board__item { display: inline-flex; align-items: baseline; gap: 10px; margin-right: 12px; }
.dose-board__n { white-space: nowrap; font-size: .9375rem; color: rgba(255,255,255,.86); }
.dose-board__he { flex-basis: 100%; white-space: nowrap; font-weight: 800; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); }
@media (min-width: 820px) {
  .dose-board { flex-wrap: nowrap; padding: 16px 26px; gap: 14px 18px; }
  .dose-board__k { flex-basis: auto; margin-right: 10px; }
  .dose-board__he { flex-basis: auto; margin-left: auto; }
}
