/* =====================================================================
   GAME STORY -- web/js/gamestory.js's five F-2 panels (starters, bullpen,
   lineups, travel & rest, conditions), placed between the price panel and
   the SPOTLIGHT on the one-game route. New file per this lane's
   architecture rule: web/css/screens.css is not touched, and every class
   below is scoped to the gs- prefix so it can never collide with
   screens.css's gqv-/gav- rules for the same page. Reuses tokens.css's
   --v-* palette and the global .panel/.chamfer/.pv-chip primitives rather
   than inventing new colors or a new chip tone.
   ===================================================================== */

.gs-story {
  margin-bottom: var(--sp-8);
}

.gs-story__head {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--v-t4);
  margin: 0 0 var(--sp-8);
  text-transform: uppercase;
}

.gs-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.gs-panel {
  padding: var(--sp-10) var(--sp-11);
}

.gs-panel__eyebrow {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--v-t5);
  margin-bottom: var(--sp-8);
  text-transform: uppercase;
}

/* ---- two-column side-by-side layout, shared by starters/bullpen/
   lineups/travel ------------------------------------------------------ */
.gs-cols {
  display: flex;
  gap: var(--sp-9);
  flex-wrap: wrap;
}

.gs-col {
  flex: 1 1 260px;
  min-width: 240px;
}

.gs-col__head {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--v-t2);
  margin-bottom: var(--sp-5);
}

.gs-col__absent {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--v-t5);
}

/* ---- stat grid (STARTERS / CONDITIONS) ------------------------------- */
.gs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.gs-stat {
  padding: 10px 12px;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  --r: var(--r-badge);
}

.gs-stat__label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  color: var(--v-t6);
  margin-bottom: var(--sp-3);
}

.gs-stat__value {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--v-t1);
}

.gs-stat__n {
  margin-top: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--v-t7);
}

/* ---- single label/value fact row (days rest, miles, window, ...) ---- */
.gs-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.gs-fact:first-of-type {
  border-top: none;
}

.gs-fact__label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  color: var(--v-t6);
}

.gs-fact__value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--v-t2);
  text-align: right;
}

.gs-fact__reason {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--v-t5);
}

/* ---- free-text note lines (recent form, empty-bullpen sentence,
   forecast timing, travel reason) -------------------------------------- */
.gs-note {
  margin: var(--sp-4) 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--v-t4);
}

/* ---- starter home/away difference row -------------------------------- */
.gs-diffrow {
  margin-top: var(--sp-8);
  padding-top: var(--sp-7);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.gs-diffrow__label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  color: var(--v-t6);
  margin-bottom: var(--sp-4);
}

.gs-diffrow__chips {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.gs-diffchip {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  color: var(--v-t2);
  --r: var(--r-chip);
  clip-path: polygon(var(--r) 0, 100% 0, 100% calc(100% - var(--r)), calc(100% - var(--r)) 100%, 0 100%, 0 var(--r));
}

/* ---- generic flag-chip row (LONG TRIP / DENSE STRETCH) --------------- */
.gs-chips {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-5);
}

/* ---- bullpen reliever rows -------------------------------------------- */
.gs-reliever-list {
  margin-top: var(--sp-3);
}

.gs-reliever {
  padding: var(--sp-3) 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gs-reliever:first-child {
  border-top: none;
}

.gs-reliever__name {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--v-t1);
}

.gs-reliever__meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--v-t6);
}

/* ---- lineup batting order --------------------------------------------- */
.gs-lineup {
  display: flex;
  flex-direction: column;
}

.gs-lineup__row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  padding: 5px 0;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.gs-lineup__row:first-child {
  border-top: none;
}

.gs-lineup__order {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--v-t6);
  width: 1.4em;
  flex: none;
}

.gs-lineup__name {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--v-t2);
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.gs-lineup__pos {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--v-t6);
  flex: none;
}

/* ---- 899px and below: single column, matching the GAME QUICK V2 /
   GAME ADVANCED V2 breakpoint already used elsewhere on this route ---- */
@media (max-width: 899px) {
  .gs-panel { padding: var(--sp-8); }
  .gs-cols { flex-direction: column; gap: var(--sp-7); }
  .gs-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Reliever availability -- rendered from the observed row shape
   (2026-09-07). The chip is the enum said in words; the reason is the
   payload's own sentence. Anything not "available" takes the warn tone
   so a taxed arm is visible at a glance, never buried in a meta line. */
.gs-reliever__avail { display: inline-block; margin-left: 8px; padding: 2px 7px;
  font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: .12em;
  color: var(--v-win-label, var(--v-t3)); background: rgba(46, 204, 113, .12);
  box-shadow: inset 0 0 0 1px rgba(46, 204, 113, .35); vertical-align: middle; }
.gs-reliever__avail--warn { color: var(--v-warn-label, #FFB020); background: rgba(255, 176, 32, .13);
  box-shadow: inset 0 0 0 1px rgba(255, 176, 32, .4); }
.gs-reliever__why { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--v-t5); }
