/* Interactive boost curve (MPRaceProject.html). Styles only apply inside .boost-curve,
   so they can't leak into the rest of the page. Colours are set as variables here so
   the chart script can read them too (see css() in boost-curve.js). */
.boost-curve {
  --bc-text: var(--ink);
  --bc-text-2: #5f5e5a;
  --bc-text-3: #898781;
  --bc-surface: #ffffff;
  --bc-tile: #f3f2ee;
  --bc-border: rgba(11, 11, 11, 0.12);
  --bc-accent: #2a78d6;
  --bc-marker: #eb6834;
  --bc-danger: #c62828;
  --bc-grid: #e1e0d9;
  --bc-zone: rgba(11, 11, 11, 0.04);
  font-family: var(--font);
  color: var(--bc-text);
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: 8px;
  margin: 16px 0 8px;
  padding: 20px;
}
.boost-curve * { box-sizing: border-box; }
.boost-curve .bc-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 16px; }
.boost-curve .bc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 16px; }
.boost-curve label { display: block; font-size: 13px; line-height: 1.3; color: var(--bc-text-2); margin-bottom: 4px; }
.boost-curve input[type=number] {
  width: 100%; height: 36px; padding: 0 10px; font: inherit; font-size: 14px;
  color: var(--bc-text); background: transparent; border: 1px solid var(--bc-border); border-radius: 8px;
}
.boost-curve input[type=number]:focus { outline: 2px solid var(--bc-accent); outline-offset: -1px; }
.boost-curve input[type=range] { flex: 1; min-width: 0; accent-color: var(--bc-marker); }
.boost-curve .bc-err { font-size: 13px; color: var(--bc-danger); min-height: 18px; margin: 0 0 8px; }
.boost-curve .bc-row { display: flex; align-items: center; gap: 12px; margin: 0; }
.boost-curve .bc-row label { margin: 0; font-size: 14px; white-space: nowrap; }
.boost-curve .bc-row input[type=number] { width: 90px; }
.boost-curve .bc-tile { background: var(--bc-tile); border-radius: 6px; padding: 6px 10px; line-height: 1.3; }
.boost-curve .bc-tile span { display: block; font-size: 12px; color: var(--bc-text-2); }
.boost-curve .bc-tile strong { display: block; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 1px; }
.boost-curve .bc-tile strong.bc-small { font-size: 14px; margin-top: 2px; }
.boost-curve .bc-chart { position: relative; height: 320px; margin: 16px 0; }
.boost-curve canvas { cursor: ew-resize; touch-action: none; }
.boost-curve .bc-hint { font-size: 13px; color: var(--bc-text-3); margin: 0 0 8px; }
