/* Bennett Events (Pinners) additions on top of the Standard V2.1 styles.
   V2.1 already covers: SAMPLE / source tags, wide-chart sizing, the phone header
   (the old 422px-wide slide bug) and the KPI window lists. Brand weights only: 800 / 400. */

/* Controls: State chips → Show → Season → Compare with. */
/* The state chips keep their full width (max-content); the other fields give way first. */
.bennett-filters { grid-template-columns: max-content minmax(150px, 220px) minmax(145px, 160px) minmax(140px, 1fr) auto auto; }
.state-chips { grid-auto-columns: minmax(40px, auto); }
.state-chips button { min-width: 40px; padding-inline: 9px; }
.compare-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 42px; align-items: center; }
.compare-chips button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--midnight); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.compare-chips button[aria-pressed="true"] { background: var(--midnight); border-color: var(--midnight); color: #fff; }
.muted-note { color: var(--muted); font-size: 12px; font-weight: 800; }
@media (max-width: 1500px) {
  /* The scope summary moves to its own line so the compare chips keep two per row. */
  .bennett-filters { grid-template-columns: max-content minmax(140px, 1fr) minmax(145px, 160px) minmax(140px, 1fr) auto; }
  .bennett-filters .scope-summary { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 1179px) {
  .bennett-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bennett-filters .filter-group, .bennett-filters .compare-field, .bennett-filters .scope-summary { grid-column: 1 / -1; }
  .bennett-filters .copy-view { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 767px) {
  .bennett-filters { grid-template-columns: minmax(0, 1fr); }
  .state-chips { overflow-x: auto; }
}

/* S01 scoreboard: scrolls inside its own frame, never widens the page on a phone. */
.scoreboard-wrap { min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.scoreboard { width: 100%; min-width: 1040px; border-collapse: collapse; font-size: 13px; color: var(--midnight); }
.scoreboard th { padding: 10px 12px; color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; background: #F3F8FB; white-space: nowrap; }
.scoreboard td { padding: 10px 12px; border-top: 1px solid #EEF3F6; font-weight: 800; white-space: nowrap; }
.scoreboard .num { text-align: right; }
.scoreboard tbody tr[data-open-show] { cursor: pointer; }
.scoreboard tbody tr[data-open-show]:hover, .scoreboard tbody tr[data-open-show]:focus-visible { background: #F7FAFC; outline: none; }
.scoreboard .group-row th { background: #FAFCFD; color: var(--midnight); font-size: 11px; border-top: 1px solid var(--line); }
.show-cell b { font-weight: 800; }
.state-badge { display: inline-block; min-width: 30px; padding: 2px 6px; border-radius: 6px; background: #EAF4FA; color: var(--surf); font-size: 11px; font-weight: 800; text-align: center; }
.pace { font-weight: 800; }
.pace.up { color: var(--green); }
.pace.down { color: var(--pink-text); }
.pace-spark { width: 96px; height: 26px; }
.pace-spark .spark-now { fill: none; stroke: var(--midnight); stroke-width: 2; }
.pace-spark .spark-prev { fill: none; stroke: #9FB3C4; stroke-width: 1.5; stroke-dasharray: 3 3; }
.unavail { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; }

/* R02 pace callout (sits inside the Cumulative orders tab). */
.pace-callout { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: #F3F8FB; color: var(--midnight); font-size: 14px; font-weight: 400; }
.pace-callout b { font-weight: 800; }

/* Tables below the graphs (V2.1: graphs first, tables after). */
.peer-panel { min-width: 0; overflow-x: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.peer-panel.wide { margin-top: 16px; }
.peer-panel h3 { margin: 0 0 8px; color: var(--midnight); font-size: 14px; font-weight: 800; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 12.5px; color: var(--midnight); }
.mini-table th { padding: 6px 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-align: left; text-transform: uppercase; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mini-table td { padding: 7px 8px; border-bottom: 1px solid #EEF3F6; font-weight: 400; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-table .num { text-align: right; }
.mini-table tr.is-current td { background: #FFF3E4; font-weight: 800; }
.mini-table small { color: var(--muted); font-weight: 800; }
.mini-table td.muted-cell { color: var(--muted); }
.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 6px 10px; }
.slide-body > .empty-state { margin-top: 16px; }

/* KPI window rows (YD · 7D · Season to date vs the lead season at the same days out). */
.bennett-windows .win-tag { color: var(--midnight); font-weight: 800; }
.bennett-windows li.is-current .win-tag { color: var(--midnight); }

/* A comparison that can't be made yet (SAMPLE data, partial history): wrap, never overflow. */
.kpi-delta.no-compare { white-space: normal; font-weight: 400; color: var(--muted); }
.graph-compare.no-compare span { color: var(--muted); font-weight: 400; }

/* L08 Class access vs returning (2026-10-07): static scatter, palette colors only. */
.class-scatter-card { padding-bottom: 12px; }
.class-scatter { display: block; width: 100%; height: auto; }
.class-scatter .cs-grid { stroke: var(--line); stroke-width: 1; }
.class-scatter .cs-tick { fill: var(--muted); font-weight: 400; }
.class-scatter .cs-axis { fill: var(--midnight); font-weight: 800; }
.class-scatter .cs-other circle { fill: var(--tide); stroke: var(--surf); stroke-width: 1; }
.class-scatter .cs-home circle { fill: var(--midnight); }
.class-scatter .cs-current circle { fill: var(--orange); stroke: var(--midnight); stroke-width: 1.5; }
.class-scatter .cs-label { font-weight: 800; }
.class-scatter .cs-label-home { fill: var(--midnight); }
.class-scatter .cs-label-current { fill: var(--orange-text); }
.cs-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.cs-key { display: inline-block; width: 11px; height: 11px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }
.cs-key.cs-current { background: var(--orange); border: 1px solid var(--midnight); }
.cs-key.cs-home { background: var(--midnight); }
.cs-key.cs-other { background: var(--tide); border: 1px solid var(--surf); }
.class-details { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.class-details b { color: var(--midnight); }
.mini-table tfoot th, .mini-table tfoot td { border-top: 2px solid var(--line); font-weight: 800; color: var(--midnight); }
.kpi-inline-tag { align-self: flex-start; width: max-content; max-width: 100%; }
