/* ---------------------------------------------------------------------------
   start-sit-compare.css — the "compare up to four" panel on start-sit.html.

   Visual encoding follows the emphasis pattern rather than a categorical one:
   the recommended starter wears the lime accent, everyone else wears the
   de-emphasis gray. That is deliberate — with at most four rows, categorical
   hues would make four equally-loud bars and bury the actual answer. One hue
   plus gray keeps the recommendation the loudest thing on screen.

   Marks follow the house spec: bars capped at 10px, 4px rounded ends, a 2px
   surface-coloured ring on the mean tick where it sits inside the range fill,
   hairline recessive track. Text always wears text tokens, never the data
   colour — identity comes from the coloured mark beside it.
   --------------------------------------------------------------------------- */

.ss-compare { margin-bottom: 34px; }

.ss-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.ss-picker { display: flex; flex-direction: column; gap: 12px; }
.ss-picker .field { width: 100%; }
.ss-picker-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.ss-picker-head .ss-count { font-size: 12px; color: var(--mute); letter-spacing: .04em; }

.ss-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-chips:empty { display: none; }
.ss-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--raised); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 6px 6px 6px 12px;
}
.ss-chip .ss-chip-name { font-weight: 650; font-size: 13px; }
.ss-chip .ss-chip-meta { font-size: 11px; color: var(--mute); }
.ss-chip .ss-x {
  all: unset; cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  color: var(--mute); transition: color .12s, background .12s;
}
.ss-chip .ss-x:hover { color: var(--white); background: rgba(255,255,255,.08); }
.ss-chip .ss-x:focus-visible { outline: 2px solid var(--lime-ring); outline-offset: 2px; }

.ss-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- result ---------- */
.ss-result { margin-top: 20px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.ss-result:empty { display: none; }

.ss-headline { margin-bottom: 18px; }
.ss-headline .ss-kicker {
  display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 6px;
}
.ss-headline .ss-verdict {
  font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; line-height: 1.1; margin: 0;
}
.ss-headline .ss-verdict .ss-hl { color:var(--lime-text); }
.ss-headline .ss-sub { margin: 8px 0 0; color: var(--mute); font-size: 13px; max-width: 62ch; }
/* The confidence label rides on the verdict rather than under it, so "start
   him" and "but only just" are read as one sentence. */
.ss-headline .ss-tag {
  display: inline-flex; align-items: center; vertical-align: middle;
  margin-left: 12px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(138,90,0,.30); background: rgba(138,90,0,.07);
  color: var(--warn); font-size: 11px; font-weight: 750;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}

.ss-rows { display: flex; flex-direction: column; gap: 2px; }

/* rail | rank | who | state. Four columns, because a row answers exactly one
   question — start or sit — and every number that used to live here moved
   behind "Why". */
.ss-row {
  display: grid;
  grid-template-columns: 3px 22px 1fr auto;
  align-items: center; gap: 12px;
  padding: 12px 12px 12px 0; border-radius: 10px;
  background: transparent; transition: background .12s;
}
.ss-row + .ss-row { border-top: 1px solid var(--line-soft); }
.ss-row:hover { background: var(--zebra); }
.ss-row.is-top { background: var(--lime-dim); }
.ss-row.is-bye { opacity: .62; }
/* A thin-edge call is still a call, so the winner is still crowned — just at a
   lower volume, which is the honest visual equivalent of "too close to split". */
.ss-rows.is-thin .ss-row.is-top { background: var(--zebra); }

/* The board tier, as a colour, carried down the left edge of the row. It is the
   analyst's call rendered as an object, not a score the model produced. */
.ss-rail {
  align-self: stretch; border-radius: 999px; min-height: 28px;
  background: var(--line); margin-left: 0;
}
.ss-rail.is-lock { background: var(--tier-1); }
.ss-rail.is-must { background: var(--tier-2); }
.ss-rail.is-green { background: var(--tier-5); }
.ss-rail.is-temper { background: var(--warn); }
.ss-rail.is-flex { background: var(--tier-3); }
.ss-rail.is-stream { background: var(--tier-4); }
.ss-rail.is-desperate { background: var(--tier-6); }
.ss-rail.is-avoid { background: var(--avoid); }
.ss-rail.is-injured { background: var(--injured); }

.ss-rank {
  font-size: 13px; font-weight: 800; color: var(--mute-dim);
  font-variant-numeric: tabular-nums; text-align: center;
}
.ss-row.is-top .ss-rank { color: var(--lime-text); }

.ss-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ss-who .team-logo { width: 24px; height: 24px; flex: 0 0 24px; }
.ss-who .team-logo img { width: 100%; height: 100%; object-fit: contain; }
.ss-who .logo-fallback { font-size: 9px; color: var(--mute); }
.ss-name-wrap { min-width: 0; }
.ss-name {
  display: block; font-weight: 700; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ss-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 11px; color: var(--mute); margin-top: 3px;
}
.ss-meta .ss-dot { opacity: .5; margin: 0 5px; }

/* The week's tier, spelled out. Same words as the board above it, so a reader
   can see the two agree without cross-referencing. */
.ss-tierchip {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 2px 8px; font-size: 10px; font-weight: 750;
  letter-spacing: .04em; color: var(--mute); white-space: nowrap;
}
.ss-tierchip.is-lock { border-color: var(--tier-1); color: var(--tier-1); }
.ss-tierchip.is-must { border-color: var(--tier-2); color: var(--tier-2); }
.ss-tierchip.is-green { border-color: var(--tier-5); color: var(--tier-5); }
.ss-tierchip.is-temper { border-color: var(--warn); color: var(--warn); }
.ss-tierchip.is-flex { border-color: var(--tier-3); color: var(--tier-3); }
.ss-tierchip.is-stream { border-color: var(--tier-4); color: var(--tier-4); }
.ss-tierchip.is-desperate { border-color: var(--tier-6); color: var(--tier-6); }
.ss-tierchip.is-injured { border-color: var(--injured); color: var(--injured); }
.ss-tierchip.is-avoid { border-color: var(--avoid); color: var(--avoid); }

/* The answer, as a word, at the end of the row. */
.ss-state {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 62px; padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap;
}
.ss-state.is-start { background: var(--lime); color: var(--on-lime); }
.ss-state.is-sit { background: var(--raised); color: var(--mute); }
.ss-state.is-out {
  background: rgba(158,27,20,.12); color: var(--avoid);
}
.ss-rows.is-thin .ss-state.is-start {
  background: var(--lime-dim); color: var(--lime-text);
  box-shadow: inset 0 0 0 1px var(--lime-line);
}

/* ---------- why ---------- */
.ss-why {
  margin-top: 16px; border: 1px solid var(--line-soft);
  border-radius: 10px; background: var(--raised);
}
.ss-why > summary {
  cursor: pointer; list-style: none; padding: 10px 13px;
  font-size: 12px; font-weight: 750; letter-spacing: .06em;
  text-transform: uppercase; color: var(--mute);
}
.ss-why > summary::-webkit-details-marker { display: none; }
.ss-why > summary::after {
  content: '+'; float: right; font-weight: 700; color: var(--mute-dim);
}
.ss-why[open] > summary::after { content: '\2212'; }
.ss-why > summary:hover { color: var(--white); }
.ss-why > summary:focus-visible { outline: 2px solid var(--lime-ring); outline-offset: 2px; }
.ss-why-body { padding: 0 13px 13px; }
.ss-wtable { display: flex; flex-direction: column; }
.ss-wrow {
  display: grid; grid-template-columns: 1fr 56px 68px 86px;
  gap: 10px; align-items: center; padding: 7px 0;
  border-top: 1px solid var(--line-soft); font-size: 12.5px;
}
.ss-wrow.is-head {
  border-top: 0; color: var(--mute-dim);
  font: 700 10.5px/1 'Barlow Condensed', sans-serif;
  letter-spacing: .08em; text-transform: uppercase;
}
.ss-wname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-wnum { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ss-wdim { color: var(--mute-dim); }
.ss-wfine { margin: 10px 0 0; font-size: 11.5px; color: var(--mute-dim); line-height: 1.5; }

.ss-notes { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ss-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--raised); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 10px 12px;
  font-size: 12.5px; color: var(--prose); line-height: 1.5;
}
.ss-note svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 2px; color: var(--mute); }
.ss-note.is-tie svg { color: var(--warn); }
.ss-note.is-cliff svg { color: var(--avoid); }
.ss-note.is-variance svg { color:var(--lime-text); }

.ss-foot {
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 11px; color: var(--mute-dim);
}

.ss-error {
  background: rgba(226,75,74,.08); border: 1px solid rgba(226,75,74,.28);
  color: #F2B6B5; border-radius: 10px; padding: 11px 13px; font-size: 13px;
}

@media (max-width: 760px) {
  .ss-panel { padding: 16px; }
  .ss-row {
    grid-template-columns: 3px 1fr auto;
    grid-template-areas: 'rail who state';
    column-gap: 10px;
  }
  .ss-rail { grid-area: rail; }
  .ss-rank { display: none; }
  .ss-who { grid-area: who; }
  .ss-state { grid-area: state; min-width: 0; padding: 4px 9px; }
  .ss-wrow { grid-template-columns: 1fr 46px 58px 60px; gap: 6px; font-size: 12px; }
  .ss-headline .ss-tag { margin-left: 0; margin-top: 10px; }
}

@media print {
  .ss-picker, .ss-actions { display: none; }
  .ss-panel { border-color: #999; }
}

/* A ruled-out player reuses the bye row exactly — same dimming, same tag shape.
   Only the colour differs, because "he isn't playing" and "he's hurt" are the
   same fact to the maths and a different fact to the reader. */
.ss-bye-tag.is-out {
  background: rgba(158, 27, 20, .10);
  border-color: rgba(158, 27, 20, .28);
  color: var(--avoid);
}

