/* Team pages */
.team-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.team-head .av { width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--g) 16%, transparent); color: var(--g); }
.team-head .av svg { width: 22px; height: 22px; }
.team-head .r { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.team-head .chips { margin-top: 8px; }
.team-kpis { margin-top: 22px; }

/* hole dominance bar on the rivalry page */
.dominance { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--track); }
.dominance span { display: block; height: 100%; }
.dominance-key { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; color: var(--muted); }
.dominance-key b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.dominance-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* the shared rivalry history partial, until it is restyled for the new design */
.team-rivalry .rivalry-history { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.team-rivalry .rivalry-history-header { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.team-rivalry .rivalry-history .section-title { font-size: 14px; margin: 0; }
.team-rivalry .rivalry-history .feature-note { color: var(--muted); font-size: 12.5px; }
.team-rivalry .rivalry-history label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.team-rivalry .rivalry-history select { height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font: 13px var(--font); }
.team-rivalry .rivalry-history .feature-controls { display: flex; gap: 14px; margin: 10px 0 4px; color: var(--muted); font-size: 12.5px; }
.team-rivalry .rivalry-player-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--player-color); }
[data-theme="light"] .team-rivalry .rivalry-player-dot { background: var(--player-light-color); }
.team-rivalry .rivalry-history .chart-frame { position: relative; height: 280px; margin-top: 6px; }
