/* Bridge: the dashboards were built on a generic M3 token layer. This maps the
   short aliases they use onto Pollstack's tokens, so the same component CSS
   renders in the brand without being rewritten. */

:root {
  /* colour aliases */
  --md-primary: var(--md-sys-color-primary);
  --md-on-primary: var(--md-sys-color-on-primary);
  --md-primary-container: var(--md-sys-color-primary-container);
  --md-on-primary-container: var(--md-sys-color-on-primary-container);
  --md-secondary-container: var(--md-sys-color-secondary-container);
  --md-on-secondary-container: var(--md-sys-color-on-secondary-container);
  --md-surface: var(--md-sys-color-surface);
  --md-surface-dim: var(--md-sys-color-surface-dim, var(--md-sys-color-surface));
  --md-surface-container-lowest: var(--md-sys-color-surface-container-lowest);
  --md-surface-container-low: var(--md-sys-color-surface-container-low);
  --md-surface-container: var(--md-sys-color-surface-container);
  --md-surface-container-high: var(--md-sys-color-surface-container-high);
  --md-surface-container-highest: var(--md-sys-color-surface-container-highest);
  --md-on-surface: var(--md-sys-color-on-surface);
  --md-on-surface-variant: var(--md-sys-color-on-surface-variant);
  --md-outline: var(--md-sys-color-outline);
  --md-outline-variant: var(--md-sys-color-outline-variant);
  --md-error: var(--md-sys-color-error);
  --md-error-container: var(--md-sys-color-error-container);

  /* the brand has no success role: teal is the data colour that reads as "ok" */
  --md-success: #1F7A7A;
  --md-success-container: #D6EFEF;
  --md-on-success-container: #06302F;

  /* warnings use the brand highlight (Ember), never a party colour */
  --md-sys-color-success: var(--md-success);
  --md-sys-color-success-container: var(--md-success-container);
  --md-sys-color-warning: var(--md-sys-color-tertiary);
  --md-sys-color-warning-container: var(--md-warning-container);
  --md-warning: var(--md-sys-color-tertiary);
  --md-warning-container: var(--md-sys-color-tertiary-container);
  --md-on-warning-container: var(--md-sys-color-on-tertiary-container);

  /* shape: the brand keeps cards square (4 dp) */
  --md-shape-xs: var(--md-sys-shape-corner-small);
  --md-shape-sm: var(--ps-shape-card);
  --md-shape-md: var(--ps-shape-card);
  --md-shape-lg: var(--md-sys-shape-corner-large);
  --md-shape-full: var(--md-sys-shape-corner-full);

  /* elevation (the kit names them levelN, the dashboards use N) */
  --md-sys-elevation-1: var(--md-sys-elevation-level1);
  --md-sys-elevation-2: var(--md-sys-elevation-level2);
  --md-sys-elevation-3: var(--md-sys-elevation-level3);
  --md-elev-1: var(--md-sys-elevation-level1);
  --md-elev-2: var(--md-sys-elevation-level2);
  --md-elev-3: var(--md-sys-elevation-level3);

  /* motion + state layer names differ slightly between the two layers */
  --md-ease: var(--md-sys-motion-easing-standard);
  --md-dur: var(--md-sys-motion-duration-short4);
  --md-sys-state-hover-opacity: var(--md-sys-state-hover-state-layer-opacity);
  --md-sys-state-focus-opacity: var(--md-sys-state-focus-state-layer-opacity);
  --md-sys-state-pressed-opacity: var(--md-sys-state-pressed-state-layer-opacity);

  /* typefaces: Schibsted Grotesk for UI, JetBrains Mono for figures */
  --font: 'Schibsted Grotesk', Arial, Helvetica, sans-serif;
  --mono: 'JetBrains Mono', Menlo, Consolas, monospace;
}
