/* styles for history.js: career, trends and game log cards on player pages */
.hx-card > .card-head { flex-wrap: wrap; }
.hx-card > .card-head .tools { max-width: 100%; }
.hx-note { margin: 0; color: var(--ink-2); font-size: 13px; }
.hx-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; }
.hx-controls .select { max-width: 100%; }

table.data tr.hx-career-row td { font-weight: 600; background: var(--surface-2); border-top: 1px solid var(--line-strong); }
table.data tr.hx-cur td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
table.data tr.hx-nond1 td { color: var(--ink-2); }
table.data .hx-opp { gap: 6px; }
table.data .hx-opp img { width: 20px; height: 20px; }
.hx-where { color: var(--muted); font-size: 12px; min-width: 2.2em; }
.hx-badge { display: inline-block; padding: 0 6px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); font-size: 10.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }

/* trend chart: one thin series in the accent color */
.hx-line { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.hx-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 1.5; }
.hx-dot.hollow { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.hx-hit { fill: transparent; stroke: none; cursor: default; }
.hx-hit:focus { outline: none; }
.hx-hit:focus-visible { stroke: var(--ink); stroke-width: 1.5; }
.hx-val { fill: var(--ink); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.hx-avg { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 4 4; opacity: .8; }
.hx-avg-label { fill: var(--ink-2); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }

/* "Show as a table" alternative under the chart */
.hx-card .chart-foot .legend { flex: 1 1 100%; order: 2; }
.hx-details { flex-basis: 100%; font-size: 12.5px; color: var(--ink-2); }
.hx-details summary { cursor: pointer; width: max-content; }
.hx-details .table-wrap { margin-top: 6px; box-shadow: none; max-height: 260px; overflow: auto; }
.hx-details table.data th { cursor: default; position: static; }
table.data.hx-mini th, table.data.hx-mini td { padding: 5px 10px; }

/* Narrow windows: the trends chart and game log each take a full line (touch phones already do this). */
@media (max-width: 760px) {
  .modules > .mod.hx-card { width: 100%; margin-left: 0; }
}
