/* Season Championship (Tag Match) screens.
   docs/designs/season-championship.md, design review D-P1..D14.
   Hand-written; tokens only (DESIGN.md). Every class is prefixed ch- or cfg-champ
   so nothing here leaks onto other pages. */

/* ── Configure: Tag Match settings ─────────────────────────────────────── */
.cfg-champ .cfg-req { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--warning); text-transform: uppercase; margin-left: var(--s-1); }
.cfg-champ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: var(--s-3); margin: var(--s-4) 0; }
.cfg-champ select.input, .cfg-champ input.input { width: 100%; }

/* ── TD board (design review D-T1, mockup td-board-options.png option A) ── */
.ch-board { max-width: 720px; margin: 0 auto; padding: 0 var(--s-4) 7rem; }
.ch-phases { display: flex; gap: var(--s-1); overflow-x: auto; padding: var(--s-3) 0; }
.ch-phase { flex: 1 0 auto; text-align: center; font-size: 0.72rem; font-weight: 600; padding: var(--s-2) var(--s-2);
            border-radius: var(--r-sm); background: var(--bg-elevated); color: var(--text-subtle); white-space: nowrap; }
.ch-phase.is-done { background: var(--success-bg); color: var(--brand-mid); }
.ch-phase.is-on   { background: var(--brand-primary); color: var(--on-brand); }
/* Reached stages are links (2026-11-13): they look like tabs, so they act like them. */
a.ch-phase { text-decoration: none; cursor: pointer; }
a.ch-phase:hover { filter: brightness(0.95); }
a.ch-phase:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.ch-phase.is-viewing { box-shadow: inset 0 -3px 0 var(--brand-primary); }
.ch-head { padding: var(--s-3) 0; }
.ch-head h1 { margin: var(--s-1) 0 var(--s-3); }
.ch-head-actions, .ch-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ch-share-url { font-size: 0.78rem; color: var(--text-muted); margin-top: var(--s-2); overflow-wrap: break-word; }
.ch-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ch-counts { display: flex; flex-wrap: wrap; gap: var(--s-5); font-size: 0.85rem; color: var(--text-muted); margin: var(--s-2) 0 var(--s-4); }
.ch-counts b { font-family: var(--font-display); font-size: 1.25rem; color: var(--text); margin-right: var(--s-1); font-variant-numeric: tabular-nums; }
.ch-tabs { margin-bottom: var(--s-4); }
.ch-section { margin-bottom: var(--s-5); }
.ch-h2 { font: 600 0.72rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
         display: flex; justify-content: space-between; margin: 0 0 var(--s-2); cursor: default; }
.ch-h2.is-alert { color: var(--warning); }
details > summary.ch-h2 { cursor: pointer; list-style: none; min-height: 44px; align-items: center; }
.ch-steps { padding-left: 1.2rem; margin: var(--s-3) 0; line-height: 1.6; }
.ch-cta { width: 100%; min-height: 48px; }
.ch-why { font-size: 0.8rem; color: var(--text-muted); margin: var(--s-2) 0 0; }

.ch-match { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
            box-shadow: var(--shadow-sm); margin-bottom: var(--s-2); overflow: hidden; }
.ch-match.is-live { box-shadow: inset 3px 0 0 var(--brand-mid), var(--shadow-sm); }
.ch-match.is-need { border-color: var(--warning-border); box-shadow: inset 3px 0 0 var(--warning), var(--shadow-sm); }
.ch-match.is-decided { box-shadow: none; }
.ch-need-label { padding: var(--s-2) var(--s-3) 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em;
                 text-transform: uppercase; color: var(--warning); }
.ch-slot { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); min-height: 44px; }
.ch-slot + .ch-slot { border-top: 1px solid var(--border); }
.ch-seed { font: 500 0.75rem var(--font-mono); color: var(--text-subtle); width: 1.4rem; text-align: right; }
.ch-name { flex: 1; font-size: 0.95rem; }
.ch-slot.is-win .ch-name { font-weight: 700; }
.ch-slot.is-lose .ch-name { color: var(--text-subtle); }
.ch-chip { font-size: 0.72rem; font-weight: 700; border-radius: var(--r-full); padding: 2px var(--s-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-chip.is-up { color: var(--brand-mid); background: var(--success-bg); }
.ch-chip.is-as { color: var(--text-muted); background: var(--bg-elevated); }
.ch-chip.is-result { color: var(--brand-mid); background: transparent; }
.ch-foot { display: flex; justify-content: space-between; gap: var(--s-2); font-size: 0.75rem; color: var(--text-subtle);
           padding: var(--s-2) var(--s-3); background: var(--surface-elevated); border-top: 1px solid var(--border); }
.ch-match .ch-actions { padding: var(--s-2) var(--s-3) var(--s-3); }
.ch-match .ch-actions .btn { flex: 1; }

.ch-sticky { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--border);
             box-shadow: var(--shadow-md); padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom));
             margin: var(--s-5) calc(-1 * var(--s-4)) 0; z-index: 5; }
.ch-sticky .ch-why { text-align: center; }

.ch-form { display: grid; gap: var(--s-2); }
.ch-label { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); margin-top: var(--s-3); }
.ch-pick { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ch-pick-opt { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-3);
               border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); cursor: pointer; }
.ch-pick-big { flex: 1 1 10rem; font-weight: 600; padding: var(--s-3); }
.ch-pick-opt:has(input:checked) { border-color: var(--brand-primary); background: var(--success-bg); color: var(--brand-primary); }
.ch-pick-row { width: 100%; }
.ch-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3);
                  border-top: 1px solid var(--border); background: var(--surface-elevated); }
.ch-inline-form .input { width: auto; flex: 1 1 8rem; }
.ch-card-head { display: flex; justify-content: space-between; padding: var(--s-3); font-size: 0.85rem; }
.ch-card-match + .ch-card-match { border-top: 2px solid var(--border-strong); }
.ch-table { width: 100%; }
.ch-table tr.ch-muted td { color: var(--text-subtle); }
.ch-table tr.is-gold   { background: var(--gold-grad); }
.ch-table tr.is-silver { background: var(--silver-grad); }
.ch-table tr.is-bronze { background: var(--bronze-grad); }
.ch-sheet h1 { font-size: 1.4rem; }

/* ── Next season's tags sheet (design review D4-D6) ─────────────────────── */
.ch-warn { color: var(--warning); font-weight: 600; }
.ch-tagrow { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
             box-shadow: var(--shadow-sm); padding: var(--s-3); margin-bottom: var(--s-2); display: grid; gap: var(--s-2); }
.ch-tagrow.is-gold   { background: var(--gold-grad); }
.ch-tagrow.is-silver { background: var(--silver-grad); }
.ch-tagrow.is-bronze { background: var(--bronze-grad); }
.ch-tagrow.is-unpaid { border-color: var(--warning-border); box-shadow: inset 3px 0 0 var(--warning), var(--shadow-sm); }
.ch-tagrow-main { display: flex; align-items: center; gap: var(--s-3); }
.ch-tagrow-place { font: 600 0.85rem var(--font-body); color: var(--text-muted); width: 1.6rem; font-variant-numeric: tabular-nums; }
.ch-tagrow-name { flex: 1; font-weight: 600; }
.ch-tagrow-num { font: 600 1.5rem var(--font-display); font-variant-numeric: tabular-nums; color: var(--brand-primary);
                 transition: color var(--dur-med) var(--ease-out); }
.ch-tagrow.is-gold .ch-tagrow-num { color: var(--gold); }
.ch-tagrow.is-silver .ch-tagrow-num { color: var(--silver); }
.ch-tagrow.is-bronze .ch-tagrow-num { color: var(--bronze); }
.ch-chip.is-unpaid { color: var(--warning); background: var(--warning-bg); }
.ch-seg { flex-wrap: wrap; }
.ch-seg .seg { min-height: 44px; }
.ch-tagrow-tools { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ch-tagrow-tools:empty { display: none; }
.ch-inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.ch-inline .input { flex: 1 1 12rem; width: auto; }

/* ── Player status block (dashboard next-event box + registration page) ── */
.ch-status { border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: var(--r-md);
             background: var(--surface); padding: var(--s-3) var(--s-4); margin: var(--s-3) 0; }
.ch-status.is-live  { border-left-color: var(--brand-primary); }
.ch-status.is-out   { border-left-color: var(--text-muted); }
.ch-status.is-final { border-left-color: var(--bronze); }
.ch-status.is-gold  { border-left-color: var(--gold); }
.ch-status-eyebrow { font: 600 0.68rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.ch-status-head { font: 700 1rem var(--font-display); margin-top: var(--s-1); display: flex; align-items: center; gap: var(--s-2); }
.ch-status.is-gold .ch-status-head .ico { color: var(--gold); }
.ch-status-detail { font-size: 0.85rem; color: var(--text-muted); margin-top: var(--s-1); }
.ch-status-tag { font-size: 0.85rem; font-weight: 600; margin-top: var(--s-2); font-variant-numeric: tabular-nums; }
.ch-status-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-2); }
.ch-status-links:empty { display: none; }
.ch-status-watch { font-size: 0.85rem; font-weight: 600; }

/* ── Public Tag Match page (/clubs/{slug}/tag-match) — design D-P1..D-P3, D9, D10, D13, D14 ── */
.chp-head { margin-bottom: var(--s-4); }
.chp-title { margin: var(--s-1) 0 var(--s-2); }
.chp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
.chp-share { margin-left: auto; min-height: 44px; }
.chp-live { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 0.82rem; font-weight: 700;
            color: var(--error); background: var(--error-bg); border: 1px solid var(--error-border);
            border-radius: var(--r-full); padding: 2px var(--s-3); }
/* D11: red is a documented exception for the Live badge and dot only, always with the word. */
.chp-dot { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--error); display: inline-block; }
.chp-updated { font-size: 0.82rem; color: var(--text-muted); }
.chp-updated.is-stale { color: var(--warning); font-weight: 600; }
.chp-loading, .chp-empty { color: var(--text-muted); font-size: 0.9rem; }
.chp-eyebrow { font: 600 0.68rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.chp-num { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.chp-live[hidden], .chp-name[hidden] { display: none; }

.chp-counts { display: flex; gap: var(--s-6); margin: var(--s-2) 0 var(--s-4); }
.chp-counts b { display: block; font: 700 1.6rem var(--font-display); font-variant-numeric: tabular-nums; }
.chp-counts span { font: 600 0.68rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }

.chp-switch { position: sticky; top: 0; z-index: 5; background: var(--ground); padding: var(--s-2) 0; margin: 0 0 var(--s-2); }
.chp-switch .chp-tab, .chp-chip { min-height: 44px; min-width: 44px; border-radius: var(--r-full); border: 1px solid var(--border);
            background: var(--surface); color: var(--text); font: 600 0.88rem var(--font-body); padding: 0 var(--s-4); cursor: pointer; }
.chp-tabs, .chp-chips { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; }
.chp-switch .chp-tab { flex: none; padding: 0 var(--s-3); }
.chp-tab.is-on { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--on-brand); }
.chp-tab.is-live-tab { color: var(--error); border-color: var(--error-border); display: inline-flex; align-items: center; gap: var(--s-2); }
.chp-tab.is-live-tab.is-on { background: var(--error-bg); color: var(--error); }
.chp-chips { padding-top: var(--s-2); }
.chp-chip { flex: none; font-size: 0.8rem; }
.chp-chip.is-on { border: 2px solid var(--brand-primary); color: var(--brand-primary); }

.chp-h2 { display: flex; justify-content: space-between; font: 600 0.72rem var(--font-body); letter-spacing: 0.12em;
          text-transform: uppercase; color: var(--text-muted); margin: var(--s-5) 0 var(--s-2); }
.chp-match { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); margin-bottom: var(--s-3); overflow: hidden; }
.chp-match.is-live { border-left: 4px solid var(--brand-mid); }
.chp-side { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); min-height: 44px; }
.chp-side + .chp-side { border-top: 1px solid var(--border); }
.chp-seed { flex: none; min-width: 1.75rem; text-align: center; background: var(--bg-elevated); border-radius: var(--r-sm);
            padding: 2px var(--s-1); color: var(--text-muted); font: 700 0.75rem var(--font-body); font-variant-numeric: tabular-nums; }
.chp-seed:empty { background: none; }
.chp-name { flex: 1; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; min-height: 32px; cursor: pointer;
            text-decoration: underline dotted var(--border-strong); text-underline-offset: 4px; }
span.chp-name { cursor: default; text-decoration: none; }
.chp-name.is-won { font-weight: 700; }
/* The winner's row: the winning tint (DESIGN.md, tan is for winning). */
.chp-side.is-won { background: var(--winner-row-bg); }
.chp-match.is-bye .chp-side.is-won { background: none; }
.chp-name.is-tbd { color: var(--text-subtle); }
.chp-side.is-lost .chp-name { color: var(--text-muted); }
.chp-result, .chp-up { font-weight: 700; font-size: 0.85rem; color: var(--brand-mid); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chp-result { color: var(--accent-tan-dark); font-size: 0.9rem; white-space: normal; text-align: right; flex: 0 1 auto; max-width: 45%; margin-left: auto; }
.chp-side .chp-name { min-width: 0; }
.chp-side.is-won .chp-name { flex: 1 0 auto; max-width: 60%; }
.chp-up { background: var(--success-bg); border-radius: var(--r-full); padding: 1px var(--s-2); }
.chp-as { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); background: var(--row-alt); border-radius: var(--r-full); padding: 1px var(--s-2); }
.chp-result.is-bye { color: var(--text-muted); background: var(--row-alt); border-radius: var(--r-full); padding: 1px var(--s-2); font-weight: 600; }
.chp-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); font-size: 0.8rem; color: var(--text-muted);
            background: var(--bg-elevated); border-top: 1px solid var(--border); padding: 0 var(--s-4); min-height: 44px; }

.chp-champion { background: var(--gold-grad); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-4); margin-bottom: var(--s-4); }
.chp-champion-name { font: 700 1.8rem var(--font-display); color: var(--text); margin: var(--s-1) 0 var(--s-2); }
.chp-podium { list-style: none; margin: 0; padding: 0; }
.chp-podium li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; }
.chp-podium-place { width: 2.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.chp-podium li.is-gold .chp-podium-place { color: var(--gold); }
.chp-podium li.is-silver .chp-podium-place { color: var(--silver); }
.chp-podium li.is-bronze .chp-podium-place { color: var(--bronze); }

.chp-pi-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.chp-pi { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-4); min-height: 44px; }
.chp-pi + .chp-pi { border-top: 1px solid var(--border); }
.chp-pi.is-going { color: var(--text-muted); }
.chp-pi-rank { width: 2rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.chp-pi-thru { font-size: 0.78rem; color: var(--text-muted); }
.chp-pi-score { width: 3rem; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.chp-cut { list-style: none; border-top: 2px dashed var(--brand-mid); color: var(--brand-mid); font: 600 0.7rem var(--font-body);
           letter-spacing: 0.12em; text-transform: uppercase; padding: var(--s-1) var(--s-4); background: var(--success-bg); }

.chp-sheet { border: 0; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: var(--s-4) var(--s-5) var(--s-5); width: 100%; max-width: 560px;
             margin: auto auto 0; max-height: 85dvh; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
             padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom)); }
.chp-sheet::backdrop { background: color-mix(in srgb, var(--text) 45%, transparent); }
.chp-sheet-grip { width: 40px; height: 4px; border-radius: var(--r-full); background: var(--border-strong); margin: 0 auto var(--s-3); }
.chp-sheet-name { font: 700 1.4rem var(--font-display); margin: var(--s-1) 0; }
/* A match's / the Final Four's card in the sheet: THE scorecard (_SheetCard). */
.chp-sheet-card { margin: var(--s-3) 0 var(--s-2); }
/* A 9-hole scorecard needs ~640px; the sheet widens for it (phones scroll the table, as the play-in does). */
.chp-sheet:has(.chp-sheet-card) { max-width: 760px; }
.chp-sheet-card .v-deta-48 { margin-bottom: var(--s-2); }
.chp-sheet-card .v-deta-54 { margin-bottom: var(--s-3); }
.chp-sheet-note { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 var(--s-2); }
.chp-sheet-sub { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 var(--s-3); }
.chp-sheet-close { width: 100%; min-height: 44px; margin-top: var(--s-4); }
.chp-path { list-style: none; margin: 0; padding: 0 0 0 var(--s-5); border-left: 2px solid var(--border); }
.chp-path li { position: relative; padding: var(--s-2) 0 var(--s-3); }
.chp-path li::before { content: ""; position: absolute; left: calc(-1 * var(--s-5) - 6px); top: 14px; width: 10px; height: 10px;
                       border-radius: var(--r-full); background: var(--border-strong); }
.chp-path li.is-won::before { background: var(--brand-mid); }
.chp-path li.is-live::before { background: var(--error); }
.chp-path li.is-lost::before { background: var(--text-muted); }
.chp-path li.is-next { color: var(--text-muted); }

/* ≥1024px: the paper bracket, full-bleed (D-P2). */
@media (min-width: 1024px) {
    .chp { width: 100vw; margin-left: calc(50% - 50vw); padding: 0 4.5vw; }
    .chp-paper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 16rem) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
    .chp-col .chp-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
    .chp-col .chp-seed { min-width: 1.4rem; font-size: 0.7rem; }
    .chp-col .chp-result, .chp-col .chp-up { font-size: 0.72rem; }
    .chp-col .chp-match:not(.is-live) .chp-foot { display: none; }
    .chp-region + .chp-region { margin-top: var(--s-6); }
    .chp-cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--s-3); }
    .chp-col { display: flex; flex-direction: column; min-width: 0; }
    .chp-col-head { font: 600 0.68rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin: var(--s-2) 0; }
    .chp-col-body { display: flex; flex-direction: column; justify-content: space-around; flex: 1; }
    .chp-cols { align-items: stretch; }
    .chp-col .chp-match { margin-bottom: var(--s-2); font-size: 0.85rem; }
    .chp-col .chp-side { padding: var(--s-1) var(--s-2); min-height: 32px; gap: var(--s-2); }
    .chp-col .chp-foot { padding: 2px var(--s-2); min-height: 0; }
    .chp-center { position: sticky; top: var(--s-4); }
    .chp-center-head { text-align: center; margin-top: var(--s-2); }
    .chp-center .chp-counts { justify-content: center; }
    .chp-sheet { margin: auto; border-radius: var(--r-xl); }
}
/* ≥1600px: TV rules — larger type, nothing hover-dependent (D13). */
@media (min-width: 1600px) {
    .chp { font-size: 1.15rem; }
    .chp-title { font-size: 3rem; }
    .chp-col .chp-match { font-size: 1rem; }
    .chp-champion-name { font-size: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) {
    .chp * { transition: none !important; animation: none !important; }
}

/* Club page banner (A5). */
.ch-banner { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); min-height: 44px;
             padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); border-radius: var(--r-lg);
             background: var(--surface); border: 1px solid var(--border); font-weight: 700; color: var(--text); text-decoration: none; }
.ch-banner > span:first-child { display: inline-flex; align-items: center; gap: var(--s-2); }
.ch-banner.is-live { border-left: 4px solid var(--error); }
.ch-banner .ico { color: var(--gold); }

/* ── Player-built card screen (/events/{id}/build-card) ── */
.pc { max-width: 560px; }
.pc-title { margin: var(--s-1) 0 var(--s-4); }
.pc-why { font-size: 0.85rem; color: var(--text-muted); margin: var(--s-2) 0; }
.pc-list { list-style: none; margin: 0 0 var(--s-4); padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.pc-list li + li { border-top: 1px solid var(--border); }
.pc-row { display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: var(--s-2) var(--s-4); cursor: pointer; }
.pc-row input { width: 20px; height: 20px; accent-color: var(--brand-primary); }
.pc-row.is-fixed { cursor: default; background: var(--row-alt); border-radius: var(--r-md); margin-bottom: var(--s-2); }
.pc-hole { display: flex; flex-direction: column; gap: var(--s-1); margin-bottom: var(--s-4); font-weight: 600; font-size: 0.85rem; }
.pc-cta { width: 100%; min-height: 48px; }
.ch-chip.is-built { color: var(--text-muted); background: var(--row-alt); font-weight: 600; }

/* ── Match card sheet, play-in after the draw (2026-11-13) ─────────────── */
.chp-pi.is-out { opacity: 0.6; }
.chp-pi .chp-name { flex: 1; text-align: left; }
.chp-paper-playin { max-width: 560px; margin: var(--s-6) auto 0; }
.chp-card-btn { margin-left: auto; border: 0; background: none; padding: 0 0 0 var(--s-3);
    color: var(--brand-primary); font: 600 0.85rem var(--font-body); cursor: pointer; min-height: 44px; }
.chp-card-btn:hover, .chp-card-btn:focus-visible { text-decoration: underline; }
.chp-path-open { display: flex; align-items: center; gap: var(--s-2); width: 100%; border: 0; background: none;
    padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.chp-path-open > div:first-child, .chp-path-open > div { flex: 1; }
.chp-path-chev { flex: none; color: var(--text-muted); font-size: 1.2rem; }
.chp-back { border: 0; background: none; padding: 0 0 var(--s-2); color: var(--brand-primary);
    font: 600 0.85rem var(--font-body); cursor: pointer; min-height: 32px; }

/* Season Tag Championship on other pages (2026-11-13). Hand-written here, not
   in views.css, which carries a "generated, do not edit" header. */
[data-view="profile-seasondetail"] .sd-champ-row { color: inherit; text-decoration: none; }
[data-view="profile-seasondetail"] .sd-champ-row .sd-champ-place { color: var(--text); font-weight: 600; }
[data-view="profile-seasondetail"] .sd-champ-row.is-champion .sd-champ-place { color: var(--accent-tan); }
[data-view="events-detail"] .evc-champ { margin-top: var(--s-4); }
[data-view="events-detail"] .evc-champ-lede { color: var(--text-muted); margin: 0 0 var(--s-3); }
[data-view="events-detail"] .evc-champ-round { font-size: 0.95rem; font-weight: 600; margin: var(--s-4) 0 var(--s-2); }
[data-view="events-detail"] .evc-champ-table { width: 100%; }
[data-view="events-detail"] .evc-champ-table tr.is-champion td { background: color-mix(in srgb, var(--accent-tan) 16%, transparent); }
[data-view="events-detail"] .evc-champ-link { margin-top: var(--s-3); }


/* Event page: the play-in scorecard (_ChampionshipPlayInCard). Who missed
   the bracket reads greyed, like the bracket page's play-in list. */
[data-view="events-detail"] .evc-pi-out td { opacity: 0.55; }
[data-view="events-detail"] .evc-pi-missed {
    margin-left: var(--s-2); font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--error);
}
.chp-pi-more { margin: var(--s-3) 0 0; text-align: center; font-weight: 600; }

/* How a Final Four tie was split (ChampionshipPublicView.FinalTieNotes). */
.chp-tie-note { padding: var(--s-2) var(--s-3); font-size: 0.8rem; color: var(--text-muted); border-top: 1px solid var(--border); }
[data-view="events-detail"] .evc-champ-tie { margin: var(--s-2) 0 0; font-size: 0.85rem; color: var(--text-muted); }

/* Board: how each tied Final Four score was split. */
.ch-tie { border-top: 1px solid var(--border); padding-top: var(--s-3); margin-top: var(--s-3); }
.ch-tie-state { font-weight: 400; color: var(--text-muted); }
.ch-tie-state.is-owed { color: var(--error); font-weight: 600; }
.ch-tie-order { display: grid; gap: var(--s-2); margin: var(--s-2) 0; }
.ch-tie-row { display: flex; align-items: center; gap: var(--s-2); }
.ch-tie-row .ch-tie-pos { width: auto; min-width: 5rem; }

/* Event page leaderboard on a phone: five columns don't fit 375px, so "How
   far" moves under the player's name (one cell, two lines) instead. */
[data-view="events-detail"] .evc-howfar-sub { display: none; font-size: 0.78rem; color: var(--text-muted); }
@media (max-width: 640px) {
    [data-view="events-detail"] .evc-howfar-col { display: none; }
    [data-view="events-detail"] .evc-howfar-sub { display: block; }
}

/* Bracket page header: "Event page" sits beside Share, both pushed right. */
.chp-share + .chp-share { margin-left: 0; }

/* Event page: the way to the bracket, above the tabs. */
[data-view="events-detail"] .evc-champ-banner {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap;
    margin: 0 0 var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
    background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none;
}
[data-view="events-detail"] .evc-champ-banner:hover { border-color: var(--brand-primary); }
[data-view="events-detail"] .evc-champ-banner-text { display: flex; flex-direction: column; gap: var(--s-1); }
[data-view="events-detail"] .evc-champ-banner-go { font-weight: 700; color: var(--brand-primary); }

/* Event page: a name (or match result) that opens the bracket's sheet. */
[data-view="events-detail"] .evc-pname {
    background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left;
    text-decoration: underline dotted var(--border-strong); text-underline-offset: 3px;
}
[data-view="events-detail"] .evc-pname:hover { color: var(--brand-primary); text-decoration-color: var(--brand-primary); }

/* Event page, Leaderboard + Match Play tabs (rebuilt on the ladder rows and
   the bracket's match cards, 2026-11-13). */
[data-view="events-detail"] .evc-band { margin: var(--s-5) 0 var(--s-2); }
[data-view="events-detail"] .evc-band:first-of-type { margin-top: var(--s-3); }
[data-view="events-detail"] .evc-medal { display: block; margin: 0 auto 2px; width: 0.9rem; height: 0.9rem; }
[data-view="events-detail"] .ctl-row.is-gold   .evc-medal { color: var(--gold); }
[data-view="events-detail"] .ctl-row.is-silver .evc-medal { color: var(--silver); }
[data-view="events-detail"] .ctl-row.is-bronze .evc-medal { color: var(--bronze); }
[data-view="events-detail"] .evc-champ-chip { color: var(--gold); border-color: var(--gold); background: var(--gold-bg); }
/* A ladder name that opens the sheet: the button keeps .ctl-name's type. */
[data-view="events-detail"] .evc-pbtn { background: none; border: 0; padding: 0; font-family: inherit; line-height: inherit; text-align: left; cursor: pointer;
    text-decoration: underline dotted var(--border-strong); text-underline-offset: 3px; }
[data-view="events-detail"] .evc-pbtn:hover { color: var(--brand-primary); text-decoration-color: var(--brand-primary); }
[data-view="events-detail"] .evc-match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0 var(--s-3); align-items: start; }
[data-view="events-detail"] .evc-final .chp-num { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
/* The ladder row has a movement column; a finish order has nothing to put there. */
[data-view="events-detail"] .evc-ladder .ctl-row { grid-template-columns: 4.25rem minmax(0, 1fr); }
@media (max-width: 600px) {
    [data-view="events-detail"] .evc-ladder .ctl-row { grid-template-columns: 3.25rem minmax(0, 1fr); }
}

/* The Season Tag Championship marker (_ChampionshipChip), anywhere a day is named.
   Brand green, not tan: tan is for winning, and this is the event, not a result. */
.champ-chip {
    display: inline-flex; align-items: center; gap: var(--s-1); white-space: nowrap;
    font: 700 0.66rem var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--brand-primary); background: var(--success-bg); border: 1px solid var(--brand-mid);
    border-radius: var(--r-full); padding: 2px var(--s-2); vertical-align: middle;
}
.champ-chip .ico { width: 0.85rem; height: 0.85rem; }
/* Where the chip sits: above a title, or beside a calendar day number. */
.upc-kind, .next-event-kind, .ci-kind { margin: 0 0 var(--s-1); }
[data-view="events-detail"] .evt-kind { margin: var(--s-2) 0 0; }
/* The admin calendar cell is ~80px wide: the chip takes its own line under the
   day number and wraps, in normal case (all-caps ran into the next day). */
.cal-day .champ-chip { display: flex; width: fit-content; max-width: 100%; white-space: normal; text-align: left; line-height: 1.15;
    margin: 2px 0 0; padding: 2px var(--s-1); font-size: 0.62rem; letter-spacing: 0; text-transform: none; }
.cal-day .champ-chip .ico { flex: none; }


/* Route layouts: a play hole's course hole, under its number, on the match,
   Final Four and play-in cards. The header row is uppercase; this stays "crs 12". */
[data-view="events-detail"] .evc-crs {
    display: block; font: 600 0.62rem var(--font-body); color: var(--brand-mid); letter-spacing: 0.02em; white-space: nowrap;
    text-transform: none;
}

/* The play-in scorecard live on the public page (the event page's partial, in a
   data-view="events-detail" wrapper so its own styles apply). */
.chp-pcard { margin: var(--s-3) 0 var(--s-5); }
/* Live cut: a dashed line above the first finisher who would miss the bracket. */
[data-view="events-detail"] .evc-pi-belowcut td { border-top: 2px dashed var(--brand-mid); }
[data-view="events-detail"] .evc-pi-thru {
    margin-left: var(--s-2); font: 600 0.7rem var(--font-body); color: var(--brand-primary);
    text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
}
