/* Tournament forecasts (js/pages/tournaments.js): the College Football Playoff and the college basketball tournament.
   Tokens in styles.css; the odds table is PS.table (table.css) with heat-tinted probability chips. */
.tn-tabs { margin: -6px 0 22px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tn-tabs::-webkit-scrollbar { display: none; }
.tn-tabs > a { min-height: 36px; padding: 0 14px; }
.tn-stats { margin-bottom: 20px; }
.tn-status { background: var(--brand-2-soft); border: 1px solid color-mix(in oklab, var(--brand-2) 45%, var(--border)); border-radius: var(--radius);
  padding: 12px 16px; color: var(--text-2); font-size: 14px; }
.tn-status b { color: var(--text); }
.tn-foot { margin: 16px 0 0; line-height: 1.55; font-size: 13px; color: var(--muted); max-width: 95ch; }

/* ---------- probability chips (odds table + bracket) ---------- */
.tn-p, .bk-p { display: inline-block; min-width: 46px; padding: 3px 7px; border-radius: 6px; text-align: right; font-variant-numeric: tabular-nums;
  color: var(--text); line-height: 1.35; }
.tn-p0 { color: var(--muted); }
.ps-table td .tn-p { margin: -3px 0; }

/* team cell in the odds table */
.tn-tlink { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: var(--text); text-decoration: none; }
.tn-tlink .logo { width: 22px; height: 22px; }
.tn-tname { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.tn-tname b { font-weight: 650; white-space: nowrap; }
.tn-tname small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.tn-tlink:hover b { color: var(--accent); text-decoration: underline; }
.tn-odds .t-scroll { max-height: min(76vh, 860px); }

/* ---------- bracket ---------- */
.tn-regions { margin-bottom: 16px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tn-regions::-webkit-scrollbar { display: none; }
.tn-regions button { min-height: 34px; }
.bk { display: grid; gap: 16px; align-items: stretch; }
.cfp-bk, .mm-bk { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, .9fr); }
.bk-col { display: flex; flex-direction: column; min-width: 0; }
.bk-round { font: 700 11px/1.3 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.bk-games { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.bk-game { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.bk-site { font-size: 11px; color: var(--muted); padding: 4px 9px; background: var(--surface-2); border-bottom: 1px solid var(--border);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-team { display: grid; grid-template-columns: 18px 18px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 4px 6px 4px 8px; min-height: 32px;
  font-size: 13.5px; color: var(--text-2); }
.bk-team + .bk-team { border-top: 1px solid var(--grid); }
.bk-team.fav { color: var(--text); font-weight: 650; box-shadow: inset 3px 0 0 var(--accent); }
.bk-team.tbd { color: var(--muted); }
.bk-ff { grid-template-columns: 18px minmax(0, 1fr) auto; }
.bk-seed { color: var(--muted); font-size: 11px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.bk-logo { width: 18px; height: 18px; }
.bk-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-abbr { display: none; }
.bk-p { font-size: 12.5px; min-width: 42px; padding: 2px 6px; font-weight: 600; }
.bk-champ { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-top: 3px solid var(--brand-2); border-radius: var(--radius); }
.bk-champ b { font: 750 18px/1.2 var(--font-display); color: var(--text); letter-spacing: -0.01em; }
.bk-champ span { font-size: 12.5px; color: var(--text-2); }
.bk-champ em { font-style: normal; font-weight: 650; color: var(--text); }
.bk-champ .bk-champ-all { font-size: 11.5px; color: var(--muted); max-width: 22ch; line-height: 1.35; }
.bk-champ-logo { width: 52px; height: 52px; }
.bk-champ-col .bk-games { justify-content: center; }

@media (max-width: 1100px) {
  .bk-long { display: none; }
  .bk-abbr { display: inline; }
}
@media (max-width: 760px) {
  .cfp-bk, .mm-bk { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bk-long { display: inline; }
  .bk-abbr { display: none; }
  .bk-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bk-champ-col .bk-games { display: flex; }
  .bk-team { grid-template-columns: 16px 18px minmax(0, 1fr) auto; gap: 5px; padding: 5px 5px 5px 7px; font-size: 13px; min-height: 36px; }
  .bk-ff { grid-template-columns: 16px minmax(0, 1fr) auto; }
  .bk-p { min-width: 38px; padding: 2px 4px; font-size: 12px; }
}
@media (max-width: 420px) {
  .bk-long { display: none; }
  .bk-abbr { display: inline; }
}

/* CFP field list */
.tn-details { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 12px; }
.tn-details summary { cursor: pointer; font: 650 14px/1.4 var(--font-text); color: var(--text-2); padding: 6px 0; }
.tn-details summary:hover { color: var(--text); }
.cfp-field { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 16px; }
.cfp-field li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; min-height: 32px; }
.cfp-field a { color: var(--text); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfp-field a:hover { text-decoration: underline; }
.cfp-field .bk-seed { width: 18px; flex: none; }
.cfp-field .logo { width: 22px; height: 22px; }
.tn-pill-bye { background: var(--accent-soft); color: var(--accent); }

/* college basketball tournament extras */
.mm-f4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1fr); gap: 14px; align-items: center; }
.mm-ff { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.tn-bubble { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.tn-bubble .chips { margin-bottom: 4px; }
.tn-bub { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; }
.tn-bub .logo { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .mm-f4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-ff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn-bubble { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .mm-f4, .mm-ff { grid-template-columns: minmax(0, 1fr); } }

/* ---------- conference races (CFP) ---------- */
.tn-races { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tn-race { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.tn-race-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.tn-race-head b { font: 700 15px/1.2 var(--font-display); }
.tn-race-head .hint { font-size: 12px; }
.tn-race-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 70px 42px; align-items: center; gap: 8px; font-size: 13.5px; padding: 4px 0; }
.tn-race-row .logo { width: 20px; height: 20px; }
.tn-race-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-race-bar { height: 6px; border-radius: 999px; background: var(--grid); overflow: hidden; }
.tn-race-bar i { display: block; height: 100%; background: var(--heat-good); border-radius: 999px; }
.tn-race-p { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 600; }
@media (max-width: 640px) {
  .tn-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .tn-tabs > a { justify-content: center; text-align: center; white-space: normal; line-height: 1.2; min-height: 40px; padding: 4px 8px; }
  .tn-regions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; }
  .tn-regions button { justify-content: center; text-align: center; white-space: normal; line-height: 1.15; padding: 4px 4px; min-height: 40px; font-size: 12.5px; }
}
