/* Terminus Foundry brand tokens as CSS custom properties.
   Generated by hand from tokens/terminus-foundry-tokens.json on 2026-10-24 (skill 1.1.1; values unchanged since 1.1.0); the JSON is the master.
   Dark-first, as the live site: the root is the dark surface, and [data-theme="light"] switches to the light one.
   Sources: palette sheet TF-ID-Colour-Rev01.pdf (2017-09-18, vector fills), terminusfoundry.com computed CSS (2026-10-24). */

:root {
  /* Palette V2.0, the recommended current set */
  --tf-deep-space-black: #000000;
  --tf-white-light: #FFFFFF;
  --tf-alert-red: #EF443C;
  --tf-cool-silver: #B9C4C7;
  --tf-alert-yellow: #FBAE3D;
  --tf-medium-blue: #004869;
  /* Palette V1.0 colours kept for dark surfaces and extra series */
  --tf-3d-blue: #29ABE2;
  --tf-cool-dk-grey: #454C52;
  /* Added 2026-10-24 by the owner's ruling: a green for the done state and dashboards (not from a 2017 source) */
  --tf-alert-green: #1E9E5A;
  /* Computed */
  --tf-alert-red-pressed: #C9362F;
  --tf-silver-tint: #EEF1F2;
  --tf-silver-gridline: #D9DEE0;
  --tf-silver-context: #7A8287;
  --tf-silver-context-dark: #788082;

  /* Roles */
  --tf-accent: var(--tf-alert-red);
  --tf-accent-pressed: var(--tf-alert-red-pressed);
  --tf-ink: var(--tf-deep-space-black);
  --tf-ink-on-dark: var(--tf-white-light);
  --tf-info: var(--tf-medium-blue);
  --tf-extra: var(--tf-alert-yellow);
  --tf-state-review: var(--tf-alert-yellow);
  --tf-state-feedback: var(--tf-medium-blue);
  --tf-state-done: var(--tf-alert-green);    /* 3.45:1 on white, 4.73:1 on --tf-bg: fills, marks and large text; always with a word or a tick */
  --tf-state-risk: var(--tf-alert-red);

  /* Dark surface (default, as the live site) */
  --tf-bg: #202020;
  --tf-bg-deep: #000000;
  --tf-panel: rgba(255, 255, 255, 0.06);
  --tf-panel-flat: #2D2D2D;
  --tf-text: #FFFFFF;
  --tf-text-muted: rgba(255, 255, 255, 0.7);
  --tf-text-muted-flat: #BCBCBC;
  --tf-rule: rgba(255, 255, 255, 0.2);
  --tf-rule-flat: #4D4D4D;
  --tf-emphasis: #EF443C;                    /* 4.32:1 on --tf-bg: 18 px or larger only; see BRAND.md */
  --tf-link: #29ABE2;
  --tf-gridline: #3B3D40;
  --tf-context: #788082;
  --tf-series-1: #FFFFFF;
  --tf-series-2: #29ABE2;
  --tf-series-3: #EF443C;
  --tf-series-4: #FBAE3D;

  /* Type */
  --tf-font-heading: Poppins, 'Segoe UI', Arial, sans-serif;
  --tf-font-body: Poppins, 'Segoe UI', Arial, sans-serif;
  --tf-font-mono: Consolas, 'Cascadia Mono', 'Courier New', monospace;
  --tf-weight-heading: 600;
  --tf-weight-body: 400;
  --tf-body-px: 17px;
  --tf-body-min-px: 16px;
  --tf-line-height: 1.5;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --tf-bg: #FFFFFF;
  --tf-bg-deep: #EEF1F2;
  --tf-panel: #EEF1F2;
  --tf-panel-flat: #EEF1F2;
  --tf-text: #000000;
  --tf-text-muted: rgba(0, 0, 0, 0.7);
  --tf-text-muted-flat: #4D4D4D;
  --tf-rule: #B9C4C7;
  --tf-rule-flat: #B9C4C7;
  --tf-emphasis: #004869;
  --tf-link: #004869;
  --tf-gridline: #D9DEE0;
  --tf-context: #7A8287;
  --tf-series-1: #000000;
  --tf-series-2: #004869;
  --tf-series-3: #EF443C;
  --tf-series-4: #FBAE3D;
  color-scheme: light;
}
