/* /live, on top of play.css (the bar, buttons, crests, commentary lines). Sizes and colours are /ui.css's custom
   properties from data/ui.yaml; live.js sets the one-up and four-across classes from data/live.yaml's widths. */
.live-tag { font-size: var(--small); font-weight: 700; color: var(--gold-ink); background: var(--gold);
  padding: 0 calc(var(--gap) / 2); border-radius: calc(var(--radius) / 2); }
.pace { display: flex; align-items: center; gap: calc(var(--gap) / 2); }
.pace-label { color: var(--dim); font-size: var(--small); }
.pace-buttons { display: flex; gap: calc(var(--gap) / 3); }
.btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }

/* The four pitches fill the window under the bar (above the tab strip on a phone); Standings floats over them. */
.live-main { max-width: none; display: flex; flex-direction: column; gap: var(--gap); height: calc(100dvh - var(--bar-h, 0px)); }
.tn-panels-narrow .live-main { height: calc(100dvh - var(--bar-h, 0px) - var(--tn-panels-strip, 0px)); }
.tagline { max-width: var(--text-max); }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr);
  flex: 1 1 auto; min-height: 0; }
.grid.four-across { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.embed { grid-template-columns: minmax(0, 1fr); }
.grid.one-up { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.grid.one-up::-webkit-scrollbar { display: none; }
.grid.one-up .match-panel { flex: 0 0 100%; scroll-snap-align: start; }

.match-panel { display: flex; flex-direction: column; gap: calc(var(--gap) / 2); min-width: 0; padding: calc(var(--pad) / 2); }
.live-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center;
  gap: calc(var(--gap) / 2); }
.live-board .team { min-width: 0; }
.live-board .short { white-space: nowrap; }
.live-board .name { min-width: 0; }
.live-board .team.away .name { text-align: right; }
/* On a phone a full club name next to its crest breaks mid-word, so before kickoff the crest sits above the name. */
.grid.one-up .live-board .team:has(.name) { flex-direction: column; justify-content: flex-start; align-self: start; text-align: center; }
.grid.one-up .live-board .team.away .name { text-align: center; }
.live-board .score { font-size: var(--title); text-align: center; }
.live-pitch { height: auto; flex: 1 1 0; min-height: var(--pitch-min-h); }
.status { color: var(--gold); font-weight: 700; text-align: center; }
.live-lines { max-height: none; overflow: hidden; }

.dots { display: none; justify-content: center; gap: calc(var(--gap) / 3); }
.dots.on { display: flex; }
.dot { min-height: var(--tap); min-width: var(--tap); background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; }
.dot::before { content: ""; display: block; width: var(--gap); height: var(--gap); border-radius: 50%; background: var(--edge); }
.dot[aria-current="true"]::before { background: var(--gold); }

:root:not(.tn-panels-narrow) #standings { width: var(--side); }
/* live.js sets this while the Standings panel sits open at its dock: the pitches stop short of its column. */
.live-main.standings-room { padding-right: calc(var(--side) + 2 * var(--gap)); }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: var(--small); }
.table th, .table td { padding: calc(var(--gap) / 3) calc(var(--gap) / 2); text-align: right; border-bottom: 1px solid var(--edge); }
.table th { color: var(--dim); font-weight: 600; }
.table .club { text-align: left; }
.table .club .short { display: none; }
.note-small { font-size: var(--small); margin-top: calc(var(--gap) / 2); }
.grid.one-up ~ .standings .table .club .full { display: none; }
.grid.one-up ~ .standings .table .club .short { display: inline; }

.resting { display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap); max-width: var(--dialog-max); }

/* A phone: the pace buttons fill the row under the title, so the house bar takes a row of its own below them. */
@media (max-width: 480px) {
  .live .nav-host { flex: 1 0 100%; justify-content: flex-end; }
}

/* The standings' floating panel in the game's own colours and type (the tenshin_panels drop-in places, folds and saves
   it); /play's windows are kit windows and no longer need these. */
.tn-panel { --tn-panel-bg: color-mix(in srgb, var(--panel) 94%, transparent); color: var(--ink); border-color: var(--edge);
  font: var(--font)/1.45 var(--font-stack); }
.tn-panel-badge { background: var(--gold); color: var(--gold-ink); font: 600 var(--small)/1 var(--font-stack); }
.tn-panels-narrow .tn-panel { --tn-panel-bg: var(--panel); }

/* Full time's depth under the status line */
.facts p { margin: 0; }
.facts .potm { color: var(--gold); font-weight: 600; }
