/* One person's two charts (charts.js): points by performance, points by year */
.chart-title { font-size: 13px; font-weight: 600; color: #333; margin: 0 0 8px; white-space: nowrap; }
.perf-chart { --lab: 150px; display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 5px 10px;
  align-items: center; font-size: 13px; margin-bottom: 30px; }
.perf-film { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #222; }
.perf-film .yr { color: #777; }
.perf-chart { position: relative; }
.has-links { cursor: pointer; }
.perf-film.has-links:hover i, .perf-film.on i { text-decoration: underline; color: #002868; }
.perf-track.on .perf-bar, .perf-track.has-links:hover .perf-bar { background: #3d6bb3; }
/* Click a film: Wikipedia · IMDb */
.film-links { position: absolute; z-index: 4; background: #fff; border: 1px solid #cfd5de; border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.film-links[hidden] { display: none; }
.film-links a { color: #002868; font-weight: 600; }
.film-links .sep { color: #999; margin: 0 8px; }
.perf-track { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.perf-bar { height: 14px; background: #002868; border-radius: 2px; flex: none; min-width: 2px; }
.perf-val { font-variant-numeric: tabular-nums; font-weight: 600; color: #002868; }
.perf-wn { color: #666; font-size: 12px; }
.years-chart { position: relative; height: 120px; display: flex; align-items: flex-end; gap: 1px;
  border-bottom: 1px solid #bbb; }
.year-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; }
.year-bar { width: 100%; background: #002868; border-radius: 1px 1px 0 0; }
.year-col.on .year-bar { background: #3d6bb3; }
.year-tip { position: absolute; z-index: 3; pointer-events: none; background: #fff; border: 1px solid #cfd5de;
  border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); padding: 5px 8px; font-size: 12px;
  line-height: 1.5; white-space: nowrap; color: #222; }
.year-tip[hidden] { display: none; }
.year-tip b { color: #002868; font-variant-numeric: tabular-nums; }
.year-axis { position: relative; height: 16px; font-size: 11px; color: #777; }
.year-axis span { position: absolute; top: 2px; transform: translateX(-50%); white-space: nowrap; }
@media (max-width: 600px) {
  .perf-chart { --lab: 128px; font-size: 12px; gap: 5px 6px; }
  .perf-wn { font-size: 11px; }
}
