/* Team page - matches site/variants/mix/index.html (docs/SECOND_LOOK_MIX_LOCK.md).
   Grok layout (masthead, giant pick, why) + Fable card chrome (injuries/result/season)
   + Dark/Paper toggle. One template for all 32 teams - team color comes from
   --team-primary/--team-secondary/--team-accent (site/js/team-page.js, teams.json).
   Shared chrome (.wrap, .panel, nav, .tag, .empty-state) stays in site.css. */

html[data-tone="paper"] {
  --bg: #f3eee4;
  --panel: #fbf7f0;
  --panel-border: #d7cfc233;
  --panel-border-solid: #d7cfc2;
  --text: #0b162a;
  --text-dim: #3a4558;
  --text-faint: #6d7380;
}

body {
  border-left: 10px solid var(--team-accent);
}

.serif {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

/* Kicker: brand + Dark/Paper toggle */
.kicker {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.kicker b {
  color: var(--team-accent);
  font-weight: 700;
}

.tone {
  display: flex;
  gap: 8px;
  letter-spacing: 0.1em;
}

.tone a {
  color: var(--text-faint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}

.tone a.active {
  color: var(--text);
  border-bottom-color: var(--team-accent);
}

/* Masthead */
.mast {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--text);
}

.who {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 38px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 400;
}

.who em {
  font-style: italic;
  font-weight: 400;
  color: var(--text-dim);
}

.codes {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.chip {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border: 1px solid var(--text);
}

.chip.opp {
  background: transparent;
}

.when {
  text-align: right;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

.when .lab {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Status pills - published review state / locked / flagged / badges only */
.status {
  display: flex;
  gap: 8px;
  margin: 0 0 28px;
  flex-wrap: wrap;
}

.pill {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 8px;
  border: 1px solid var(--panel-border-solid);
  color: var(--text-dim);
}

.pill.warn {
  border-color: var(--team-accent);
  color: var(--team-accent);
}

/* Two-column first look: pick left, why right */
.grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: start;
}

.pick-block .lab,
.why .lab {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.pick-code {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 88px;
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: var(--team-accent);
  margin: 0 0 6px;
}

.sure {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sure span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0;
}

.compare {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--panel-border-solid);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.metric .n {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.metric .n.quiet {
  color: var(--text-dim);
}

.verdict {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 14px;
  color: var(--text);
}

.note {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--text-faint);
}

.why p {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 22px;
}

.factor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.factor-table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  padding: 0 12px 8px 0;
  border-bottom: 1px solid var(--panel-border-solid);
}

.factor-table td {
  padding: 10px 12px 10px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--panel-border-solid);
}

.factor-row.shadow-row td {
  color: var(--text-faint);
}

.shadow-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--panel-border-solid);
  padding: 1px 5px;
  color: var(--text-faint);
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* Champion pane - stills only, same chrome for all 32 teams. Full width, between
   the pick/why grid and the injuries/result/season modules. Team accent edges the
   pane; the character itself is never painted in team-kit colors. */
.champion-pane {
  margin-top: 36px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--panel-border-solid);
  border-left: 3px solid var(--team-accent);
  border-radius: 10px;
}

.champion-pane > .lab {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.champion-name {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 20px;
  margin-bottom: 14px;
}

.champion-well {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c1f24;
  border: 1px solid var(--panel-border-solid);
  border-radius: 8px;
  overflow: hidden;
}

html[data-tone="paper"] .champion-well {
  background: #d7d2c6;
}

.champion-img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

.champion-empty {
  border: 1px dashed var(--panel-border-solid);
  border-radius: 6px;
  padding: 18px 28px;
}

.champion-states {
  display: none;
}

.champion-state-btn {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--panel-border-solid);
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
}

.champion-state-btn:hover {
  color: var(--text);
}

.champion-state-btn.active {
  color: var(--team-accent);
  border-color: var(--team-accent);
}

/* Fable-style module chrome, three-slot row. Injuries / last result / season so far only. */
.modules {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.hole {
  min-height: 132px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--panel-border-solid);
  border-radius: 10px;
}

.hole h3 {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
}

.hole p {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

.hole p.empty-state {
  font-style: italic;
  color: var(--text-faint);
}

/* No-game empty state (team has a bye or JSON missing the matchup for the selected week) */
.no-game {
  margin-bottom: 16px;
}

/* Footer */
.stale {
  margin-top: 28px;
  font-size: 11px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}
