/*
  TDC Timing — theme.
  Every colour, radius, shadow, font and size used by style.css comes from here.
  Change the look by editing this file only. Don't put hard-coded colours in style.css.
*/
:root {
  /* Brand (Trials Drivers Club) */
  --tdc-orange: #f68f40;
  --tdc-orange-strong: #e2701c;
  --tdc-orange-soft: #fff1e6;
  --tdc-orange-tint: #ffe2cb;
  --tdc-ink: #1c1a1b;

  /* Surfaces */
  --bg: #f4f4f2;
  --surface: #ffffff;
  --surface-2: #f8f8f6;
  --surface-3: #efefec;
  --border: #e3e3df;
  --border-strong: #c9c9c3;

  /* Text */
  --text: #1c1a1b;
  --text-muted: #5f5d5a;
  --text-on-ink: #ffffff;
  --text-on-brand: #1c1a1b;

  /* States */
  --focus: #2563eb;
  --success: #15803d;
  --success-soft: #e7f6ec;
  --warning: #92400e;
  --warning-soft: #fff4d6;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --info-soft: #e8f1fd;

  /* Results colour key (fault count, fail, maximum, provisional) */
  --fault-1: #fff3b8;
  --fault-2: #ffd99a;
  --fault-3: #fbb36b;
  --fault-4: #ef8a3c;
  --fault-5: #b3470d;
  --fault-5-text: #ffffff;
  --result-fail: #f9c9cd;
  --result-max: #ddd0f2;
  --result-provisional: #d3e8fb;
  --row-alt: #fbf7f3;

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(28, 26, 27, 0.06);
  --shadow-md: 0 1px 2px rgba(28, 26, 27, 0.05), 0 8px 24px rgba(28, 26, 27, 0.06);
  --shadow-lg: 0 12px 40px rgba(28, 26, 27, 0.18);
  --backdrop: rgba(20, 18, 19, 0.45);

  /* Type */
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size: 17px;
  --font-size-large: 20px;

  /* Touch: big enough for gloves */
  --tap: 52px;
  --tap-big: 96px;

  /* Layout */
  --content-max: 1240px;
}
