/* ============================================================
   Live grid — source colours

   The one place the electricity-source colours are defined. Used by
   the home-page band and the /grid dashboard. Solid colours mark bars
   and nodes; tints fill the flow diagram. From design-reference/
   (GRID-HANDOFF.md). Meaning is never carried by colour alone:
   every source is also labelled in text.
   ============================================================ */

:root {
  --src-gas:          #C2703D;  --src-gas-tint:     #EBC8B0;
  --src-wind:         #0F766E;  --src-wind-tint:    #A3CFCD;
  --src-nuclear:      #7C5CB0;  --src-nuclear-tint: #CBC3E3;
  --src-biomass:      #5E8C3A;  --src-biomass-tint: #C5D9B0;
  --src-solar:        #C9A227;  --src-solar-tint:   #EADBB0;
  --src-coal:         #4A4F57;  --src-coal-tint:    #B9BCC1;
  --src-other:        #8A9099;  --src-other-tint:   #CFD3D8;
  --src-imports:      #4A7FB0;  --src-imports-tint: #B9CFE0;
  --src-export:       #EA580C;
  --grid-ok:          #0F766E;  /* live status dot */
  --grid-stale:       #B7791F;  /* stale status dot */
}

.src-gas     { --src: var(--src-gas);     --src-tint: var(--src-gas-tint); }
.src-wind    { --src: var(--src-wind);    --src-tint: var(--src-wind-tint); }
.src-nuclear { --src: var(--src-nuclear); --src-tint: var(--src-nuclear-tint); }
.src-biomass { --src: var(--src-biomass); --src-tint: var(--src-biomass-tint); }
.src-solar   { --src: var(--src-solar);   --src-tint: var(--src-solar-tint); }
.src-coal    { --src: var(--src-coal);    --src-tint: var(--src-coal-tint); }
.src-other   { --src: var(--src-other);   --src-tint: var(--src-other-tint); }
.src-imports { --src: var(--src-imports); --src-tint: var(--src-imports-tint); }
.src-export  { --src: var(--src-export);  --src-tint: var(--src-export); }

/* Gas system (/grid/gas, GAS-HANDOFF.md). The gas design reuses the same
   colours, so these are aliases. Interconnector imports have no design
   colour; they use the slate otherwise kept for coal. */
.gas-beach          { --src: var(--src-wind);    --src-tint: var(--src-wind-tint); }
.gas-lng            { --src: var(--src-imports); --src-tint: var(--src-imports-tint); }
.gas-storage        { --src: var(--src-nuclear); --src-tint: var(--src-nuclear-tint); }
.gas-interconnector { --src: var(--src-coal);    --src-tint: var(--src-coal-tint); }
.gas-neutral        { --src: var(--src-other);   --src-tint: var(--src-other-tint); }  /* linepack, industrial */
.gas-ldz            { --src: var(--src-gas);     --src-tint: var(--src-gas-tint); }
.gas-power          { --src: var(--src-solar);   --src-tint: var(--src-solar-tint); }
.gas-export         { --src: var(--src-biomass); --src-tint: var(--src-biomass-tint); }
