/* The SFP Cup page (sfpcup.php). Everything is scoped to the body class p-sfpcup and uses the tokens in sfp.css.
   Mobile first; the two-column layout starts at 1000px, and W / D / L columns appear from 700px. */

.p-sfpcup .sc { display: flex; flex-direction: column; gap: 22px; }
.p-sfpcup .sc-h1 { display: flex; align-items: center; gap: 10px; margin: 0 4px; font-size: 26px; font-weight: 600; }
.p-sfpcup .sc-icon { flex: none; width: 40px; height: 40px; }
.p-sfpcup .sc-tag { padding: 2px 8px; border: 1px solid var(--gold); border-radius: 99px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.p-sfpcup .sc-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 4px 0; }
.p-sfpcup .sc-pill { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid var(--hair); border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: normal; color: var(--ink-soft); }
.p-sfpcup .sc-pill.done { border-color: var(--up); color: var(--up); }
.p-sfpcup .sc-pill.prov { border-color: var(--accent-2); color: var(--accent-2); }
.p-sfpcup .sc-pill.wait { border-color: var(--gold); color: var(--gold); }
.p-sfpcup .sc-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 4px 0; }
.p-sfpcup .sc-btn { display: inline-block; padding: 10px 16px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.p-sfpcup .sc-btn.sc-o { background: transparent; border-color: var(--accent-2); color: var(--accent-2); }
.p-sfpcup .sc-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.p-sfpcup .sc-seasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 4px 0; }
.p-sfpcup .sc-seasons a { padding: 4px 12px; border: 1px solid var(--hair); border-radius: 99px; color: var(--ink-soft); font-size: 13px; font-weight: 600; text-decoration: none; }
.p-sfpcup .sc-seasons a.on { border-color: var(--accent); background: var(--accent); color: #fff; }

.p-sfpcup .sc-empty { padding: 14px 16px; }
.p-sfpcup .sc-empty p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.p-sfpcup .sc-empty p:last-child { margin-bottom: 0; }
.p-sfpcup .sc-sched { margin: 8px 0 0; padding: 0; list-style: none; }
.p-sfpcup .sc-sched li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.p-sfpcup .sc-sched b { font-weight: 600; }
.p-sfpcup .sc-sched span { color: var(--ink-faint); text-align: right; }

.p-sfpcup .sc-win { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-color: var(--gold); background: linear-gradient(90deg, rgba(255,200,80,.18), rgba(255,255,255,.04)); }
.p-sfpcup .sc-win img { flex: none; width: 54px; height: 54px; }
.p-sfpcup .sc-wk { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.p-sfpcup .sc-wn { margin-top: 2px; font-size: 24px; font-weight: 700; line-height: 1.1; }
.p-sfpcup .sc-ws { margin-top: 4px; font-size: 13px; color: var(--ink-soft); }

.p-sfpcup .sc-sec { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 4px 10px; }
.p-sfpcup .sc-sec h2 { margin: 0; font-size: 22px; font-weight: 600; }
.p-sfpcup .sc-sec small { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); text-align: right; }

/* the road to the final */
.p-sfpcup .sc-stages { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.p-sfpcup .sc-st { position: relative; min-width: 0; padding: 10px; border: 1px solid var(--hair); border-radius: 12px; background: rgba(255,255,255,.05); }
.p-sfpcup .sc-st b { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.p-sfpcup .sc-st span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-faint); }
.p-sfpcup .sc-st i { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--up); color: #0a0a40; font-size: 11px; font-weight: 800; font-style: normal; }
.p-sfpcup .sc-st.on { border-color: var(--accent-2); background: rgba(102,229,246,.12); }
.p-sfpcup .sc-st.todo { opacity: .75; }

/* layout of two cards side by side */
.p-sfpcup .sc-cols { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }

/* group tables */
.p-sfpcup .sc-tcard { padding: 12px 14px; }
.p-sfpcup .sc-tcard h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.p-sfpcup .sc-tr { display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px 28px 28px 34px 34px; gap: 0 2px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--hair); text-align: right; font-size: 15px; }
.p-sfpcup .sc-wdl { display: none; }
.p-sfpcup .sc-tr .sc-rk, .p-sfpcup .sc-tr .sc-tmc, .p-sfpcup .sc-tr .sc-tmh { text-align: left; }
.p-sfpcup .sc-tr .sc-rk { color: var(--ink-faint); }
.p-sfpcup .sc-tr.q .sc-rk { padding-left: 4px; margin-left: -4px; color: var(--ink); font-weight: 700; box-shadow: -4px 0 0 var(--accent); }
.p-sfpcup .sc-tr .sc-pts { font-weight: 700; }
.p-sfpcup .sc-th { border-top: 0; padding: 2px 4px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.p-sfpcup .sc-tm { display: inline-flex; align-items: center; gap: 8px; min-width: 0; min-height: 24px; font-weight: 600; }
.p-sfpcup .sc-tm .badge { margin: 0; flex: none; }
.p-sfpcup .sc-tm > span { min-width: 0; overflow-wrap: anywhere; }
.p-sfpcup .sc-note { margin: 8px 4px 0; font-size: 13px; line-height: 1.45; color: var(--ink-faint); }

/* knockouts: stacked on a phone, a bracket from 1000px */
.p-sfpcup .sc-ko { display: flex; flex-direction: column; gap: 10px; }
.p-sfpcup .sc-kh { margin: 8px 4px 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.p-sfpcup .sc-kh.qf { order: 1; margin-top: 0; }
.p-sfpcup .sc-tie.qf1, .p-sfpcup .sc-tie.qf2, .p-sfpcup .sc-tie.qf3, .p-sfpcup .sc-tie.qf4 { order: 2; }
.p-sfpcup .sc-kh.sf { order: 3; }
.p-sfpcup .sc-tie.sf1, .p-sfpcup .sc-tie.sf2 { order: 4; }
.p-sfpcup .sc-kh.fn { order: 5; }
.p-sfpcup .sc-tie.fin { order: 6; }
.p-sfpcup .sc-tie { padding: 8px 10px; border: 1px solid var(--card-border); border-radius: 12px; background: rgba(255,255,255,.05); }
.p-sfpcup .sc-tl, .p-sfpcup .sc-tr2 { display: grid; grid-template-columns: minmax(0, 1fr) 24px 24px 30px; gap: 4px; align-items: center; text-align: center; }
.p-sfpcup .sc-tl { padding-bottom: 2px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.p-sfpcup .sc-tr2 { padding: 4px 0; font-size: 14px; }
.p-sfpcup .sc-tr2 .sc-tm { text-align: left; }
.p-sfpcup .sc-tr2 > span:not(.sc-tm) { color: var(--ink-soft); }
.p-sfpcup .sc-tr2 b { font-weight: 800; }
.p-sfpcup .sc-tr2.w .sc-tm { color: #fff; }
.p-sfpcup .sc-tr2.w b { color: var(--accent-2); }
.p-sfpcup .sc-tr2.l { opacity: .62; }
.p-sfpcup .sc-final { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(255,200,80,.25); }
.p-sfpcup .sc-final .sc-tr2 { grid-template-columns: minmax(0, 1fr) 36px; }
.p-sfpcup .sc-final .sc-tr2 b { font-size: 20px; }
.p-sfpcup .sc-fl { margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); text-align: left; }

/* results by round */
.p-sfpcup .sc-acc { margin-bottom: 8px; border: 1px solid var(--card-border); border-radius: 12px; background: rgba(255,255,255,.05); }
.p-sfpcup .sc-acc[open] { border-color: var(--accent-2); }
.p-sfpcup .sc-acc > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.p-sfpcup .sc-acc > summary::-webkit-details-marker { display: none; }
.p-sfpcup .sc-acc > summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 12px; }
.p-sfpcup .sc-acc > summary small { margin-left: 8px; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--ink-faint); }
.p-sfpcup .sc-acc > summary svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.p-sfpcup .sc-acc[open] > summary svg { transform: rotate(180deg); }
.p-sfpcup .sc-rb { padding: 2px 14px 12px; }
.p-sfpcup .sc-grp { margin: 10px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.p-sfpcup .sc-fx { padding: 8px 0; border-top: 1px solid var(--hair); }
.p-sfpcup .sc-fl2 { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; font-size: 15px; font-weight: 600; }
.p-sfpcup .sc-fh { display: flex; align-items: center; justify-content: flex-end; gap: 8px; text-align: right; min-width: 0; }
.p-sfpcup .sc-fa { display: flex; align-items: center; gap: 8px; min-width: 0; }
.p-sfpcup .sc-fh .badge, .p-sfpcup .sc-fa .badge { margin: 0; flex: none; }
.p-sfpcup .sc-fh > span, .p-sfpcup .sc-fa > span { min-width: 0; overflow-wrap: anywhere; }
.p-sfpcup .sc-sc { font-size: 18px; font-weight: 700; white-space: nowrap; }
.p-sfpcup .sc-fg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; font-size: 12.5px; color: var(--ink-soft); }
.p-sfpcup .sc-fg span:first-child { text-align: right; }
.p-sfpcup .sc-mut { color: var(--ink-faint); }
.p-sfpcup .sc-free { display: flex; align-items: center; gap: 8px; font-size: 14px; font-style: italic; color: var(--ink-faint); }
.p-sfpcup .sc-free span:last-child { font-style: italic; }

/* previous winners and the rules */
.p-sfpcup .sc-pw { padding: 6px 14px; }
.p-sfpcup .sc-pw ul { margin: 0; padding: 0; list-style: none; }
.p-sfpcup .sc-pw li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--hair); font-size: 15px; }
.p-sfpcup .sc-pw li:first-child { border-top: 0; }
.p-sfpcup .sc-pw b { color: var(--accent-2); font-weight: 700; text-align: right; }
.p-sfpcup .sc-more { border-top: 1px solid var(--hair); }
.p-sfpcup .sc-more summary { padding: 9px 0; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent-2); }
.p-sfpcup .sc-rules { margin: 0; padding: 0 14px 12px 32px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.p-sfpcup .sc-rules li { margin: 6px 0; }
.p-sfpcup .sc-how { margin: 0; padding: 0 14px 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.p-sfpcup .sc-bottom { align-items: start; row-gap: 22px; }

@media (min-width: 700px) {
  .p-sfpcup .sc-stages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .p-sfpcup .sc-tr { grid-template-columns: 26px minmax(0, 1fr) 26px 26px 26px 26px 30px 30px 34px 36px; }
  .p-sfpcup .sc-wdl { display: block; }
  .p-sfpcup .sc-rb.sc-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (min-width: 1000px) {
  .p-sfpcup .page { max-width: 1320px; }
  .p-sfpcup .sc-cols { grid-template-columns: 1fr 1fr; }
  .p-sfpcup .sc-ko { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(8, auto); column-gap: 34px; row-gap: 0; }
  .p-sfpcup .sc-kh { margin: 0 4px 8px; }
  .p-sfpcup .sc-kh.qf { grid-column: 1; grid-row: 1; }
  .p-sfpcup .sc-kh.sf { grid-column: 2; grid-row: 1; }
  .p-sfpcup .sc-kh.fn { grid-column: 3; grid-row: 1; }
  .p-sfpcup .sc-tie { align-self: center; width: 100%; box-sizing: border-box; margin: 5px 0; }
  .p-sfpcup .sc-tie.qf1 { grid-column: 1; grid-row: 2 / span 2; }
  .p-sfpcup .sc-tie.qf2 { grid-column: 1; grid-row: 4 / span 2; }
  .p-sfpcup .sc-tie.qf3 { grid-column: 1; grid-row: 6 / span 2; }
  .p-sfpcup .sc-tie.qf4 { grid-column: 1; grid-row: 8 / span 2; }
  .p-sfpcup .sc-tie.sf1 { grid-column: 2; grid-row: 2 / span 4; }
  .p-sfpcup .sc-tie.sf2 { grid-column: 2; grid-row: 6 / span 4; }
  .p-sfpcup .sc-tie.fin { grid-column: 3; grid-row: 2 / span 8; }
}

@media (prefers-reduced-motion: reduce) {
  .p-sfpcup .sc-acc > summary svg { transition: none; }
}

/* one compact season selector, in the pills row (replaces the row of season links and the two buttons: Live and Pick a team are tabs now) */
.p-sfpcup .sc-seasonform { margin: 0; }
.p-sfpcup .sc-seasonform select { appearance: none; -webkit-appearance: none; padding: 4px 28px 4px 10px; border: 1px solid var(--hair); border-radius: 99px; background: rgba(255,255,255,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfd3ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 12px; color: var(--ink-soft); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: normal; cursor: pointer; }
.p-sfpcup .sc-seasonform select option { color: #000; text-transform: none; letter-spacing: 0; }
.p-sfpcup .sc-seasonform select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.p-sfpcup .sc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 430px) {
  .p-sfpcup .sc-pills { gap: 6px; }
  .p-sfpcup .sc-of { display: none; }          /* "Round 2 of 7" reads "Round 2" on a phone, so the pills fit on one row */
  .p-sfpcup .sc-pill { padding: 4px 8px; letter-spacing: .04em; }
  .p-sfpcup .sc-seasonform select { padding: 4px 24px 4px 8px; letter-spacing: .04em; }
}

/* The draw video: a 16:9 YouTube player in a card, with the title and a link out underneath */
.p-sfpcup .sc-video { padding: 0; overflow: hidden; }
.p-sfpcup .sc-vframe { position: relative; width: 100%; padding-top: 56.25%; background: #000; }
.p-sfpcup .sc-vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p-sfpcup .sc-vcap { padding: 12px 16px 14px; }
.p-sfpcup .sc-vcap b { display: block; font-size: 16px; font-weight: 600; }
.p-sfpcup .sc-vcap span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-soft); }
.p-sfpcup .sc-vcap a { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--accent-2); text-decoration: none; text-transform: uppercase; }
.p-sfpcup .sc-vcap a:hover { text-decoration: underline; }
.p-sfpcup .sc-vcap a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* the draw video beside the road-to-the-final tracker on desktop (below it on a phone) */
.p-sfpcup .sc-roadrow { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .p-sfpcup .sc-roadrow { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .p-sfpcup .sc-roadrow .sc-stages { grid-template-columns: 1fr 1fr; }
}
