/* App-specific styles. Bootstrap itself is the prebuilt bootstrap.min.css next to this file. */

/* One colour per year in the chart, read by app/javascript/controllers/chart_controller.js. A year
   always gets the same slot (Trend#series_for), in an order chosen so that neighbouring years stay
   apart for colour-blind readers too. */
:root {
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;
  --series-7: #6250d6;
  --series-8: #e34948;
}

.tile-value {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.25;
}

.chart {
  position: relative;
  height: 380px;
}

@media (max-width: 575.98px) {
  .chart {
    height: 300px;
  }

  .tile-value {
    font-size: 1.3rem;
  }
}

/* The table under the chart: up to 53 weeks, so it scrolls with the header in view. */
.table-scroll {
  max-height: 26rem;
  overflow: auto;
}

.table-scroll thead th {
  position: sticky;
  top: 0;
}

.table-scroll td,
.table-scroll tfoot th {
  font-variant-numeric: tabular-nums;
}
