/* Coach Corner (docs/COACH_CORNER.md). Only what the section adds: everything
   else is stadium.css. The question buttons are drawn the way the scoring
   console draws its result buttons (scoring_console.css .sv2-result[data-tone]):
   the whole card tinted with its family colour and a coloured edge, so a coach
   finds the colour first and then the question (Tony, 2026-10-21). */

.cc-cat-batting { --cat: var(--accent-gold); }
.cc-cat-pitching { --cat: #3B82F6; }
.cc-cat-running { --cat: var(--accent-fc); }
.cc-cat-defence { --cat: var(--accent-live); }
.cc-cat-strategy { --cat: #F97316; }
.cc-cat-rival { --cat: var(--accent-danger); }
.cc-cat-health { --cat: #06B6D4; }

/* The four lists stand level, one line each (Tony, 2026-10-21). */
.cc-picker .filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
@media (max-width: 1023px) { .cc-picker .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .cc-picker .filter-grid { grid-template-columns: 1fr; } }
.cc-picker .ts-control { flex-wrap: nowrap; }
.cc-picker .ts-control .item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cc-fav { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--text-secondary); }
.cc-pick-summary {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    margin-top: var(--space-3); font-size: .9rem; color: var(--text-secondary);
}
.cc-pick-summary strong { color: var(--text-primary); }

.cc-mid { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.cc-mid .stats-type-selector { flex-wrap: wrap; }
.cc-search {
    flex: 1; min-width: 220px; max-width: 420px; min-height: 2.6rem;
    background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: 8px;
    padding: .55rem .75rem; color: var(--text-primary); font: inherit;
}
.cc-search:focus { outline: none; border-color: var(--accent-gold); box-shadow: 0 0 0 2px var(--accent-gold-muted); }

.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
    border: 1px solid var(--border-default); background: var(--bg-surface);
    font: 700 .82rem var(--font-body); color: var(--text-secondary); cursor: pointer;
}
.cc-chip::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--cat); }
.cc-chip.is-on { border-color: var(--cat); color: var(--text-primary); background: color-mix(in srgb, var(--cat) 12%, var(--bg-surface)); }
.cc-chip.is-off { opacity: .45; }

.cc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .8rem; color: var(--text-secondary); }
.cc-help-inline { position: relative; display: inline-flex; }
.cc-help-inline .chart-help-popover { width: 320px; }

.cc-rel { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.cc-rel i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); display: inline-block; }
.cc-rel.r3 i { background: var(--accent-live); }
.cc-rel.r2 i:nth-child(-n+2) { background: var(--accent-gold); }
.cc-rel.r1 i:first-child { background: #F97316; }

.cc-group { margin-top: var(--space-3); }
.cc-group__label {
    display: flex; align-items: center; gap: 8px; margin: 0 0 8px;
    font-family: var(--font-display); font-size: 1rem; letter-spacing: .08em; color: var(--text-primary);
}
.cc-group__label::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--cat); }
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }

.cc-q {
    position: relative; display: flex; border-radius: 9px;
    border: 1px solid var(--border-default); border-left: 4px solid var(--cat);
    background: color-mix(in srgb, var(--cat) 9%, var(--bg-input, var(--bg-card)));
}
.cc-q:hover { border-color: var(--cat); }
.cc-q.is-na { opacity: .6; }
.cc-q__link {
    flex: 1; display: flex; flex-direction: column; gap: 6px; min-height: 76px;
    padding: 12px 40px 10px 12px; color: var(--text-primary); text-decoration: none;
}
.cc-q__link:hover { text-decoration: none; color: var(--text-primary); }
.cc-q__text { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.cc-q__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; font-size: .74rem; font-weight: 600; color: var(--text-secondary); }
.cc-q .chart-help-btn { position: absolute; top: 8px; right: 8px; }
.cc-q .chart-help-popover { top: 36px; right: 0; }
.cc-tag {
    font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 999px;
    background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border-default);
}

/* Help pop-ups wide enough to read in a few lines (Tony, 2026-10-21). */
.chart-help-popover { min-width: 260px; }

/* An answer page */
.cc-back { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; }
.cc-context { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cc-context .pill { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.cc-tiles { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cc-tile {
    position: relative; flex: 1 1 170px; min-width: 170px; padding: var(--space-3) var(--space-4);
    background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-md);
}
.cc-tile .chart-help-btn { position: absolute; top: 12px; right: 12px; }
.cc-tile__label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); padding-right: 28px; }
.cc-tile__value { margin-top: .2rem; font-size: 1.7rem; font-weight: 800; color: var(--text-primary); }
.cc-tile__value--gold { color: var(--accent-gold); }
.cc-tile__note { margin-top: .15rem; font-size: .75rem; color: var(--text-muted); }
.cc-flame { color: #FF3B5C; fill: #FFB800; }
.cc-cold { color: #3B82F6; }
.dc-table-pagesize .ts-wrapper { min-width: 84px; }
