/*
 * Design tokens: colors
 * Source: [INT] WIPRO Website Design System (Figma)
 *   palette:    node 56:4441 (wipro/colors)
 *   background: node 56:3987 (wipro/background tokens)
 * Light mode is the default; dark mode is opt-in via data-theme="dark".
 */

:root {
  color-scheme: light;

  /* ---- light mode ---- */

  /* Primary */
  --color-primary-wipro-blue: #361A55;
  --color-primary-blue-green: #3498B3;
  --color-primary-gray: #B4B4B4;
  --color-primary-dark-blue: #351A55;
  --color-primary-navy-blue: #14052A;

  /* Secondary */
  --color-secondary-blue: #355493;
  --color-secondary-light-purple: #746FA7;
  --color-secondary-dark-purple: #563B7E;
  --color-secondary-strong-pink: #BE266A;
  --color-secondary-orange: #F57F2A;
  --color-secondary-yellow: #FFCD2E;
  --color-secondary-light-green: #7EC45F;

  /* Neutrals */
  --color-neutral-0: #FFF;
  --color-neutral-100: #E6E6E6;
  --color-neutral-150: #F1F4F7;
  --color-neutral-200: #CCC;
  --color-neutral-300: #B3B3B3;
  --color-neutral-400: #999;
  --color-neutral-500: #808080;
  --color-neutral-600: #666;
  --color-neutral-700: #4D4D4D;
  --color-neutral-750: #494949;
  --color-neutral-800: #333;
  --color-neutral-900: #1A1A1A;
  --color-neutral-1000: #000;

  /* Beige */
  --color-beige: #F2EEEA;

  /* ---- fixed tokens ---- */

  /*
   * These never change with the theme. Use them on surfaces whose background is
   * fixed by artwork or a brand gradient (footer image, primary button), where
   * flipping the text colour would destroy the contrast.
   */
  --color-fixed-white: #FFF;
  --color-fixed-black: #000;
  --text-on-dark: var(--color-fixed-white);
  --text-on-dark-muted: rgb(255 255 255 / 70%);
  --text-on-light: var(--color-fixed-black);
  --border-on-dark-subtle: rgb(255 255 255 / 25%);
  --color-fixed-wipro-blue: #361A55;
  --color-fixed-blue: #355493;
  --color-fixed-summarize: #563B7E;
  --background-brand-gradient: linear-gradient(70deg, var(--color-fixed-wipro-blue) 25%, var(--color-fixed-blue) 125%);

  /* Recent stories: dark surface, row dividers, active tab and media overlay */
  --background-dark-purple: #1E0A35;
  --border-on-dark: #3F3748;
  --color-accent-lavender: #B978FF;
  --overlay-media: rgb(0 0 0 / 61%);

  /* ---- semantic tokens ---- */

  /* These alias the palette above, so they switch with the theme automatically. */

  /* Background (wipro/background tokens) */
  --background-brand: var(--color-primary-wipro-blue);
  --background-primary: var(--color-neutral-0);
  --background-secondary: var(--color-neutral-100);
  --background-tertiary: var(--color-neutral-150);
  --background-beige: var(--color-beige);

  /* Text (wipro/text tokens) */
  --text-brand: var(--color-primary-wipro-blue);
  --text-primary: var(--color-neutral-900);
  --text-secondary: var(--color-neutral-800);
  --text-placeholder: var(--color-neutral-300);
  --text-disabled: var(--color-neutral-200);
  --text-on-color: var(--color-neutral-0);

  /* supporting copy under a card title, e.g. the Insights Carousel description */
  --text-description: #5A585D;

  /* gradients */
  --blue-purple-gradient : linear-gradient(263.38deg, #B978FF 9.64%, #351A55 111.16%);
}

/* ---- dark mode: forced via data-theme="dark" ---- */
:root[data-theme='dark'] {
  color-scheme: dark;

  /* Primary */
  --color-primary-wipro-blue: #D8BEF6;
  --color-primary-blue-green: #ACE4F3;
  --color-primary-gray: #E0E0E0;

  /* Secondary */
  --color-secondary-blue: #A3BDE0;
  --color-secondary-light-purple: #C5C2E0;
  --color-secondary-strong-pink: #F7B2D1;
  --color-secondary-orange: #FFD9BD;
  --color-secondary-yellow: #FDF3D2;
  --color-secondary-light-green: #DBFCCD;

  /* Neutrals */
  --color-neutral-0: #1A1A1A;
  --color-neutral-100: #333;
  --color-neutral-200: #4D4D4D;
  --color-neutral-300: #666;
  --color-neutral-400: #808080;
  --color-neutral-500: #999;
  --color-neutral-600: #B3B3B3;
  --color-neutral-700: #CCC;
  --color-neutral-800: #E6E6E6;
  --color-neutral-900: #FFF;
  --color-neutral-1000: #FFF;

  /* Beige */
  --color-beige: #FFF;

  /* Text */
  --text-description: #B3B3B3;
}
