/* "Where do you stand?" (public/js/views/player/stance.js, v2.0.0): one slim row of five positions between two poles, on the card where a
   tension bites. It sits in the dock beside Back and Next (so a card keeps its height), or under the card's header on the one-page view.
   Once the team can see it, each position shows the seats that stand on it. Colour follows CLAUDE.md principle 1: a team that differs is not
   in trouble, it has something to talk about, so the row stays neutral (ink on soft tints), never amber or red. */
.deck-stance { margin: 0 0 6px; }
/* In the dock the row shares the line with Back, More and Next. It asks for room for its scale and the start of its note, grows to what it
   needs, and is never narrower than its content (min-width: min-content): when the line is too short the note wraps, or the row takes a
   line of its own, instead of one part sitting under another. */
.deck-foot-stance { flex: 1 1 430px; min-width: min-content; max-width: max-content; }
.deck-foot-stance + .grow { display: none; }
.deck-foot-stance ~ .btn-primary { margin-left: auto; }
.deck-foot-stance .stance { flex-wrap: nowrap; }
.deck-foot-stance .stance-label { flex: 1 1 auto; max-width: none; min-width: 0; }
.deck-foot-stance .stance-scale { flex: none; }
/* The Build cards are narrower (the plan sits beside them) and scroll anyway: the row takes a line of its own above Back and Next. */
.build-foot-stance { flex: 0 0 100%; order: -1; min-width: 0; }
.build-foot-stance .stance { display: inline-flex; max-width: 100%; }
.stance { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 3px 8px; border-radius: 12px; background: var(--band); border: 1px solid var(--hairline); }
.stance.is-shown.is-differ { background: var(--tint); border-color: var(--border); }
.stance-label { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; max-width: 240px; }
.stance-q { font-weight: var(--fw-heavy); color: var(--ink); font-size: var(--fs-sm); white-space: nowrap; }
.stance-note { color: var(--muted-on-tint, var(--muted)); font-size: var(--fs-xs); line-height: 1.25; }
.stance-note.is-talk { font-weight: var(--fw-bold); color: var(--ink); }
.stance-tag { font-style: normal; font-weight: var(--fw-bold); letter-spacing: .05em; text-transform: uppercase; margin-right: 6px; padding: 0 6px; border-radius: 999px; background: var(--band-2); color: var(--ink); }
.stance-scale { display: flex; align-items: center; gap: 6px; }
.stance-pole { display: flex; flex-direction: column; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--ink); cursor: help; }
.stance-pole.is-a { align-items: flex-end; text-align: right; }
.stance-pole.is-b { align-items: flex-start; text-align: left; }
.stance-pole-word { white-space: nowrap; }
/* What a pole means, as text where there is a line for it: Build, the one-page view and a phone (elsewhere it is the tooltip). */
.stance-pole-long { display: none; max-width: 150px; font-weight: var(--fw-regular, 400); font-size: var(--fs-xs); line-height: 1.25; color: var(--muted); }
.build-foot-stance .stance-pole-long, .deck-stance .stance-pole-long { display: block; }
.stance-slots { display: flex; gap: 3px; position: relative; }
/* The line the positions stand on: a thin rule behind the buttons. */
.stance-slots::before { content: ''; position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; background: var(--border); z-index: 0; }
.stance-slot { position: relative; z-index: 1; min-width: 28px; height: 30px; padding: 0 2px; border-radius: 15px; border: 2px solid var(--border-strong); background: var(--surface); color: var(--ink-2); font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-bold); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 3px; transition: background .15s var(--ease), border-color .15s var(--ease); }
.stance-slot:hover { border-color: var(--border-strong); background: var(--tint); }
.stance-slot:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.stance-slot.is-mine { background: var(--tint); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.stance-slot.has-chips { border-color: var(--steel-deep); background: var(--surface); }
.stance-slot.is-mine.has-chips { background: var(--tint); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stance-chip .role-chip { font-size: 10px; gap: 3px; letter-spacing: .03em; }
.stance-chip.is-me .role-chip { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) { .stance-label { max-width: none; } }
/* On a phone the row takes the whole line: the question and its note on top, the two poles at the ends of a line above the five positions. */
@media (max-width: 720px) {
  .deck-foot-stance { flex: 1 1 100%; max-width: none; }
  .deck-foot-stance .stance, .build-foot-stance .stance { flex-wrap: wrap; width: 100%; }
  .deck-foot-stance .stance-label { flex: 1 1 100%; }
  .stance-scale { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; width: 100%; }
  .deck-foot-stance .stance-scale { flex: 1 1 100%; }
  .stance-pole.is-a { grid-column: 1; grid-row: 1; align-items: flex-start; text-align: left; }
  .stance-pole.is-b { grid-column: 2; grid-row: 1; align-items: flex-end; text-align: right; }
  .stance-slots { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .stance-pole-long { display: block; max-width: none; }
}

/* The debrief, behind the strategy card: where the team stood apart. Last in the card, and said without blame. */
.stance-apart { display: flex; flex-direction: column; gap: 8px; }
.stance-apart-lede { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.stance-apart-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding: 6px 10px; border-radius: 12px; background: var(--band); border: 1px solid var(--hairline); }
.stance-apart-name { font-weight: var(--fw-heavy); color: var(--ink); font-size: var(--fs-sm); }
.stance-apart-row .stance-slot { cursor: default; }
.stance-apart-row .stance-slot:hover { background: var(--surface); border-color: var(--border-strong); }
.stance-apart-row .stance-slot.has-chips:hover { border-color: var(--steel-deep); }
