:root{
  /* ---- Core brand ---- */
  --hes-orange:#FF471F;
  --hes-white:#FFFFFF;
  --hes-charcoal-blue:#343F49;

  /* ---- Extended brand ---- */
  --hes-coral:#FF7152;
  --hes-vibrant-red:#EB2A00;
  --hes-slate-gray:#495967;

  /* ---- Neutrals ---- */
  --hes-light-ash:#F4F4F4;
  --hes-cloud-gray:#EEEEEE;
  --hes-pale-silver:#D0D1D2;
  --hes-silver-fog:#8E8E8E;
  --hes-muted-gray:#6F7A84;

  /* ---- Transparencies ---- */
  --hes-frosted-glass:rgba(255,255,255,0.75);
  --hes-overlay-charcoal:rgba(52,63,73,0.72);
  --hes-tint-charcoal-05:rgba(52,63,73,0.05);
  --hes-carousel-arrow-bg:rgba(255,255,255,0.75);

  /* ---- Semantic: surfaces ---- */
  --surface-canvas:var(--hes-white);
  --surface-alt:var(--hes-light-ash);
  --surface-card:var(--hes-white);
  --surface-dark:var(--hes-charcoal-blue);
  --surface-dark-alt:var(--hes-slate-gray);
  --surface-frost:var(--hes-frosted-glass);
  --surface-overlay:var(--hes-overlay-charcoal);

  /* ---- Semantic: text ---- */
  --text-heading:var(--hes-charcoal-blue);
  --text-body:var(--hes-slate-gray);
  --text-tertiary:var(--hes-muted-gray);
  --text-placeholder:var(--hes-silver-fog);
  --text-disabled:var(--hes-silver-fog);
  --text-on-dark:var(--hes-white);
  --text-on-accent:var(--hes-white);
  --text-link:var(--hes-slate-gray);
  --text-link-hover:var(--hes-orange);

  /* ---- Semantic: borders & rules ---- */
  --border-default:var(--hes-pale-silver);
  --border-subtle:var(--hes-cloud-gray);
  --border-strong:var(--hes-charcoal-blue);
  --border-focus:var(--hes-orange);
  --border-on-dark:rgba(255,255,255,0.24);

  /* ---- Semantic: action ---- */
  --action-primary-bg:var(--hes-orange);
  --action-primary-bg-hover:var(--hes-vibrant-red);
  --action-primary-fg:var(--hes-white);
  --action-secondary-bg:var(--hes-charcoal-blue);
  --action-secondary-bg-hover:var(--hes-slate-gray);
  --action-secondary-fg:var(--hes-white);
  --action-ghost-bg:var(--hes-white);
  --action-ghost-fg:var(--hes-charcoal-blue);
  --action-ghost-border:var(--hes-pale-silver);
  --action-ghost-border-hover:var(--hes-charcoal-blue);
  --action-disabled-bg:var(--hes-cloud-gray);
  --action-disabled-fg:var(--hes-silver-fog);
  /* Destructive action. Status red, not HES Orange — orange is the PRIMARY action
     color, so using it to destroy would make the safe and the irreversible look alike. */
  --action-destructive-bg:#B22000;

  /* ---- Semantic: brand accents ---- */
  --accent-brand:var(--hes-orange);
  --accent-active-indicator:var(--hes-orange);
  --accent-motif:var(--hes-orange);

  /* ---- Data & diagram series (never color-only meaning) ---- */
  --data-series-1:var(--hes-orange);
  --data-series-2:var(--hes-charcoal-blue);
  --data-series-3:var(--hes-slate-gray);
  --data-series-4:var(--hes-coral);
  --data-critical:var(--hes-vibrant-red);
  --data-grid:var(--hes-cloud-gray);
  --data-label:var(--hes-muted-gray);

  /* Application operational states live in tokens/states.css — a separate system
     from brand emphasis. Do not add status colors here. */
}

/* Dark context: apply to any Charcoal Blue surface band, footer, or dark-mode region. */
.hes-on-dark{
  --surface-canvas:var(--hes-charcoal-blue);
  --surface-alt:var(--hes-slate-gray);
  --surface-card:transparent;
  --text-heading:var(--hes-white);
  --text-body:rgba(255,255,255,0.78);
  --text-tertiary:rgba(255,255,255,0.6);
  --text-link:var(--hes-white);
  --border-default:var(--border-on-dark);
  --border-subtle:rgba(255,255,255,0.14);
  --action-ghost-bg:transparent;
  --action-ghost-fg:var(--hes-white);
  --action-ghost-border:rgba(255,255,255,0.4);
  --action-ghost-border-hover:var(--hes-white);
}
