/* The Postseason band (js/postseason.js): the bracket, then one matchup
   profile at a time. A stock band between Last Night (night) and This
   Season (paper); the profile is a paper card on it. */

.post { background: var(--hb-stock); border-bottom: 1px solid var(--hb-hair); }

/* ---- the bracket ---- */
.ps-lgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; margin-bottom: 26px; }
@media (max-width: 900px) { .ps-lgs { grid-template-columns: 1fr; } }
.ps-lgh { font: 700 10.5px/1 var(--hb-font-text); letter-spacing: .13em; text-transform: uppercase; color: var(--hb-accent); margin: 10px 0 2px; }
.ps-row { display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr); align-items: center; margin-top: 8px; }
.ps-row.ps-rh { margin-top: 6px; }
.ps-rh span { font: 500 10.5px/1 var(--hb-font-mono); color: var(--hb-muted); padding-left: 2px; }
.ps-arr { position: relative; height: 1px; background: var(--hb-hair-2); }
.ps-arr::after { content: ''; position: absolute; right: 0; top: -4px; border-left: 6px solid var(--hb-hair-2); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.ps-chip { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 9px 11px 10px; background: var(--hb-paper); border: 1px solid var(--hb-hair); border-radius: 10px;
  text-align: left; color: var(--hb-text); cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.ps-chip:hover { border-color: var(--hb-ink); }
.ps-chip[aria-pressed="true"] { border-color: var(--hb-ink); box-shadow: inset 0 0 0 1px var(--hb-ink); }
.ps-chip:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 2px; }
.ps-chip.is-bye { background: transparent; border-style: dashed; border-color: var(--hb-hair-2); }
.ps-chip.is-bye[aria-pressed="true"], .ps-chip.is-bye:hover { border-style: solid; border-color: var(--hb-ink); background: var(--hb-paper); }
.ps-ck { font: 500 10.5px/1 var(--hb-font-mono); color: var(--hb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-cl { display: grid; grid-template-columns: 14px 20px minmax(0, 1fr) auto; gap: 7px; align-items: center; min-width: 0; font-size: 13.5px; line-height: 1.2; }
.ps-cl i { font: 600 10.5px/1 var(--hb-font-mono); font-style: normal; color: var(--hb-muted); text-align: right; }
.ps-cl img { width: 20px; height: 20px; object-fit: contain; }
.ps-cl b { font-weight: 700; color: var(--hb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-cl em { font: 500 11.5px/1 var(--hb-font-mono); font-style: normal; color: var(--hb-muted); }
.ps-cl.is-tbd { grid-template-columns: 14px 32px minmax(0, 1fr); }
.ps-cl.is-tbd b { font-weight: 500; color: var(--hb-muted); }
.ps-cl .two { display: flex; }
.ps-cl .two img { width: 18px; height: 18px; }
.ps-cl .two img + img { margin-left: -4px; }
.ps-cl .sh { display: none; }
/* series scores: a club's wins on the right once its series starts; the
   club that's out fades, and a finished series reads in ink */
.ps-cl.has-w { grid-template-columns: 14px 20px minmax(0, 1fr) auto 18px; }
.ps-cl strong { font: 800 16px/1 var(--hb-font-display); color: var(--hb-ink); text-align: right; }
.ps-cl.is-out { opacity: .42; }
.ps-chip.is-done .ps-ck { color: var(--hb-ink); font-weight: 600; }
@media (max-width: 560px) { .ps-cl .lf { display: none; } .ps-cl .sh { display: inline; }
  .ps-cl.has-w { grid-template-columns: 12px 18px minmax(0, 1fr) auto; } .ps-cl.has-w em { display: none; } .ps-ck .nx { display: none; } }

/* ---- the profile ---- */
.ps-mu { container-type: inline-size; background: var(--hb-paper); border: 1px solid var(--hb-hair); border-radius: 14px; padding: 22px 24px 20px; }
.ps-kick { font: 700 10.5px/1.3 var(--hb-font-text); letter-spacing: .13em; text-transform: uppercase; color: var(--hb-accent); }
.ps-tl { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; margin: 8px 0 8px; }
.ps-tl h3 { margin: 0; font: 900 32px/1.05 var(--hb-font-display); letter-spacing: -.02em; color: var(--hb-ink); }
.ps-tl h3 span { box-shadow: inset 0 -.14em 0 color-mix(in srgb, var(--tb) 55%, transparent); }
.ps-tl h3 span + span { box-shadow: inset 0 -.14em 0 color-mix(in srgb, var(--ta) 55%, transparent); }
.ps-opp { margin-left: auto; }
.ps-dek { margin: 0; max-width: 78ch; font-size: 14.5px; line-height: 1.55; color: var(--hb-text-2); text-wrap: pretty; }
.ps-sched { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ps-sched li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; padding: 7px 11px; border-radius: 8px; background: var(--hb-well); font-size: 12.5px; color: var(--hb-text-2); }
.ps-sched li b { font-weight: 700; color: var(--hb-ink); }
.ps-sched li .pp { color: var(--hb-ink); }
.ps-sched li .pp span { border-bottom: 1px dotted var(--hb-muted); cursor: default; }
.ps-sched li em { font: 500 10.5px/1 var(--hb-font-mono); font-style: normal; color: var(--hb-muted); }
.ps-sched li.is-if { background: transparent; border: 1px dashed var(--hb-hair-2); }
.ps-sched li.is-final { background: transparent; border: 1px solid var(--hb-hair); }
.ps-sched li.is-final .pp strong { font-weight: 700; }
.ps-body { margin-top: 22px; }

/* the tale of the tape */
.ps-tape { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2.3fr) minmax(150px, 1fr); gap: 20px; align-items: start; }
.ps-side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; padding-top: 6px; }
.ps-side .lg { width: 96px; height: 96px; object-fit: contain; margin-bottom: 4px; }
.ps-side .nm { font: 800 18px/1.15 var(--hb-font-display); color: var(--hb-ink); text-wrap: balance; }
.ps-side .sd { font-size: 12.5px; color: var(--hb-muted); }
.ps-side .rc { margin-top: 4px; font: 900 34px/1 var(--hb-font-display); letter-spacing: -.02em; color: var(--hb-ink); }
.ps-side .fr { font: 500 11px/1.4 var(--hb-font-mono); color: var(--hb-muted); max-width: 22ch; }
.ps-mid { min-width: 0; }
.ps-tt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ps-tt th { padding: 8px 6px; font: 500 12.5px/1.25 var(--hb-font-text); color: var(--hb-muted); text-align: center; white-space: nowrap; }
.ps-tt td { width: 36%; padding: 7px 2px; white-space: nowrap; }
.ps-tt td.vl { text-align: right; } .ps-tt td.vr { text-align: left; }
.ps-tt td b { display: inline-block; padding: 2px 3px 3px; font: 500 15px/1.15 var(--hb-font-text); color: var(--hb-text-2); }
.ps-tt td small { display: inline-block; min-width: 3.4em; font: 500 10.5px/1 var(--hb-font-mono); color: var(--hb-muted); }
.ps-tt td.vl small { text-align: left; } .ps-tt td.vr small { text-align: right; }
.ps-tt tr + tr > * { border-top: 1px solid var(--hb-hair); }
.ps-tt tr.gh > * { padding: 18px 0 6px; border-top: 0; }
.ps-tt tr.gh > th { font: 700 10.5px/1 var(--hb-font-text); letter-spacing: .13em; text-transform: uppercase; color: var(--hb-accent); }
.ps-tt tr.gh:first-child > * { padding-top: 0; }
.ps-tt tr.gh + tr > * { border-top: 0; }
.ps-tt th .lab { display: inline-block; }
.ps-tt th .lab[data-tip] { cursor: default; text-decoration: underline dotted var(--hb-hair-2); text-underline-offset: 3px; }
/* each row leans toward the club that won it: that club's number in ink
   and weight on a tint of its color, the other number quiet, and the
   category name pointing the winner's way in its color */
.ps-tt td.win b { font-weight: 800; color: var(--hb-ink); }
.ps-tt td.lose b { color: #9d9585; }
.ps-tt td.lose small { opacity: .5; }
.ps-tt tr.to-l > td.vl { background: linear-gradient(to left, color-mix(in srgb, var(--tl) 13%, transparent), transparent 75%); }
.ps-tt tr.to-r > td.vr { background: linear-gradient(to right, color-mix(in srgb, var(--tr) 13%, transparent), transparent 75%); }
.ps-tt tr.to-l th .lab { color: color-mix(in srgb, var(--tl) 80%, var(--hb-ink)); font-weight: 600; }
.ps-tt tr.to-r th .lab { color: color-mix(in srgb, var(--tr) 80%, var(--hb-ink)); font-weight: 600; }
.ps-tt tr.to-l th .lab::before { content: '◀'; font-size: 9px; margin-right: 6px; vertical-align: 1px; }
.ps-tt tr.to-r th .lab::after { content: '▶'; font-size: 9px; margin-left: 6px; vertical-align: 1px; }

/* ---- shared footer ---- */
.ps-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr); gap: 22px 28px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hb-hair); }
@media (max-width: 980px) { .ps-foot { grid-template-columns: 1fr; } }
.ps-foot h4 { margin: 0 0 10px; font: 700 10.5px/1 var(--hb-font-text); letter-spacing: .13em; text-transform: uppercase; color: var(--hb-muted); }
.ps-fl { margin: 0 0 9px; font-size: 13px; line-height: 1.45; color: var(--hb-text-2); }
.ps-fn { margin: 9px 0 0; font-size: 12px; line-height: 1.45; color: var(--hb-muted); }
/* the season series: a tile per game in the winner's color */
.ss-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 9px; font: 600 11.5px/1 var(--hb-font-text); color: var(--hb-text-2); }
.ss-key i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -.5px; }
.ss-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 4px; }
.ss-tiles .t { position: relative; display: grid; place-items: center; aspect-ratio: 1.2; border-radius: 5px; background: var(--tc); color: var(--on); font: 700 11.5px/1 var(--hb-font-mono); cursor: default; }
.ss-tiles .t sup { position: absolute; top: 3px; right: 4px; font-size: 8px; line-height: 1; opacity: .8; }
.ps-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 520px) { .ps-teams { grid-template-columns: 1fr; } }
.ps-tn { display: flex; align-items: center; gap: 7px; font: 700 13px/1 var(--hb-font-text); color: var(--hb-ink); padding-bottom: 7px; border-bottom: 2px solid var(--tc); margin-bottom: 4px; }
.ps-tn img { width: 18px; height: 18px; object-fit: contain; }
.ps-p { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 9px; align-items: center; padding: 6px 0; }
.ps-p img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--hb-fill); }
.ps-p b { display: block; font: 700 13px/1.25 var(--hb-font-text); color: var(--hb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-p span { display: block; font: 500 12px/1.35 var(--hb-font-text); font-variant-numeric: tabular-nums; color: var(--hb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-p > div { min-width: 0; cursor: default; }
.ps-oct { list-style: none; margin: 0; padding: 0; }
.ps-oct li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 6px 0 6px 9px; border-left: 3px solid var(--tc); font-size: 12.5px; color: var(--hb-text-2); }
.ps-oct li + li { margin-top: 3px; }
.ps-oct li b { font: 600 11.5px/1 var(--hb-font-mono); color: var(--hb-ink); }
.ps-oct li em { font-style: normal; font-weight: 700; color: var(--hb-ink); white-space: nowrap; }

/* phones: the profile's type steps down before anything wraps */
@container (max-width: 640px) {
  .ps-tape { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .ps-tape .ps-side.l { grid-row: 1; grid-column: 1; }
  .ps-tape .ps-side.r { grid-row: 1; grid-column: 2; }
  .ps-tape .ps-mid { grid-row: 2; grid-column: 1 / -1; }
  .ps-side .lg { width: 60px; height: 60px; }
  .ps-side .nm { font-size: 15px; }
  .ps-side .rc { font-size: 26px; }
  .ps-tl h3 { font-size: 24px; }
  .ps-tt th { font-size: 11px; padding: 7px 3px; }
  .ps-tt td b { font-size: 13px; }
  .ps-tt td small { min-width: 2.9em; font-size: 9.5px; }
}
@container (max-width: 400px) {
  .ps-mu { padding: 16px 14px; }
  .ps-tt th { font-size: 10.5px; }
  .ps-tt td b { font-size: 12px; padding: 2px 1px 3px; }
  .ps-tt td small { min-width: 2.6em; }
}
@media (max-width: 560px) { .ps-mu { padding: 16px 14px 16px; } .ps-row { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); } .ps-chip { padding: 8px 8px 9px; } .ps-cl { grid-template-columns: 12px 18px minmax(0, 1fr) auto; gap: 5px; font-size: 12.5px; } }
