/* ==========================================================================
   CSS Custom Properties — Single Source of Truth
   ColorFlow / Walmart CSI Compass
   ========================================================================== */

/* ---- Self-hosted Outfit font (replaces Google Fonts CDN) ---- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ---- Primary palette: Orange theme ---- */
  --color-orange: #D27B1A;
  --color-orange-light: #E9B34F;
  --color-orange-border: #C1793E;
  --color-orange-desc: #FCEE60;

  /* ---- Primary palette: Blue theme ---- */
  --color-blue: #4597C9;
  --color-blue-light: #7EC1DE;
  --color-blue-border: #2374A1;
  --color-blue-desc: #CFF4FD;

  /* ---- Panel theme: Grey ---- */
  --color-panel-grey-bg: #D5D5D5;
  --color-panel-grey-light: #DEDEDE;
  --color-panel-grey-text: #707070;
  --color-panel-grey-border: #A0A0A0;
  --color-panel-grey-nav: #B0B0B0;

  /* ---- Panel theme: Black ---- */
  --color-panel-black-bg: #525252;
  --color-panel-black-light: #979797;
  --color-panel-black-text: #FEFEFE;
  --color-panel-black-border: #464646;
  --color-panel-black-desc: #E4E4E4;

  /* ---- Panel shared ---- */
  --color-panel-text: #FFF9F8;

  /* ---- Navigation ---- */
  --color-nav-bg: #2D2D2D;
  --color-nav-hover: #4C4C4C;
  --color-nav-submenu: #757575;
  --color-nav-text: #CCCCCC;
  --color-nav-text-active: #FFFFFF;

  /* ---- Text ---- */
  --color-text-primary: #333333;
  --color-text-secondary: #666666;
  --color-text-muted: #737373;  /* WCAG AA: 4.6:1 on white (was #999 = 2.85:1) */
  --color-text-light: #CCCCCC;
  --color-subtitle: #6A6D74;

  /* ---- Table (rows class) ---- */
  --color-table-header-bg: #333333;
  --color-table-header-text: #EBEBEB;
  --color-table-odd: #F4F4F4;
  --color-table-even: #F8F8F8;
  --color-table-hover: #F8F7B6;

  /* ---- Report table (form-disp-grey) ---- */
  --color-report-header-bg: #666666;
  --color-report-header-lite: #919191;
  --color-report-header-text: #FFFFFF;
  --color-report-even: #e5e3e3;
  --color-report-odd: #c5c5c5;

  /* ---- Status / feedback ---- */
  --color-error: #ff0000;
  --color-error-dark: #CC0000;
  --color-error-bg: #990000;
  --color-success-bg: #669999;
  --color-success-dark: #233e8b;
  --color-warning-bg: #FFFFCC;
  --color-highlight: #CFF4FD;

  /* ---- UI / buttons / borders ---- */
  --color-white: #FFFFFF;
  --color-border: #EBEBEB;
  --color-border-light: #CCCCCC;
  --color-border-dark: #CFD3D6;
  --color-button-bg: #EFEFEF;
  --color-button-hover: #FAFAFA;
  --color-pagination: #336699;
  --color-caption-text: #FAFAFA;
  --color-footer-border: #F2F2F2;
  --color-chat-border: #ACD8F0;
  --color-response-title: #979797;

  /* ---- Typography (fluid: clamp min matches legacy px, scales gently on large screens) ---- */
  --font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  --font-heading: "Outfit", "Trebuchet MS", Arial, sans-serif;
  --font-size-xs:   clamp(10px, 0.6rem + 0.05vw, 11px);
  --font-size-sm:   clamp(11px, 0.65rem + 0.06vw, 12px);
  --font-size-base: clamp(13px, 0.75rem + 0.1vw, 15px);
  --font-size-md:   clamp(14px, 0.8rem + 0.1vw, 16px);
  --font-size-lg:   clamp(16px, 0.9rem + 0.15vw, 18px);
  --font-size-xl:   clamp(18px, 1rem + 0.2vw, 22px);
  --font-size-2xl:  clamp(22px, 1.2rem + 0.3vw, 28px);

  /* ---- Spacing ---- */
  --space-xs: 3px;
  --space-sm: 5px;
  --space-md: 10px;
  --space-lg: 15px;
  --space-xl: 25px;
  --space-xxl: 30px;

  /* ---- Form spacing (unified across all form contexts) ---- */
  --form-field-gap: 12px;      /* vertical gap between consecutive form fields (row gap) */
  --form-col-gap: 20px;        /* horizontal gap between form columns in grids */
  --form-label-gap: 2px;       /* gap between label and its input */
  --form-input-height: 40px;   /* standard input / select height */

  /* ---- Layout ---- */
  --form-width: 310px;
  --input-width: 300px;
  --select-width: 305px;
  --content-max-width: 1400px;

  /* ---- Z-index scale ---- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* ---- Breakpoints (documentation — used across navigation.css, responsive.css, design-system.css) ---- */
  /* --bp-mobile:    480px   — phones */
  /* --bp-tablet:    768px   — small tablets */
  /* --bp-nav:       768px   — hamburger threshold (phones & portrait tablets) */
  /* --bp-desktop:  1440px   — large desktop */
  /* --bp-wide:     1920px   — ultrawide */
}
