/* =========================================================
   Coach2Lead design system - shared tokens (coach2lead.design)
   Single source of truth for every GLOBAL (:root) --c2l-* custom property,
   with two recorded exceptions:
     1. Component-scoped locals set on a component root rather than :root -
        --c2l-dcal-cell (c2l-components.css:3694) and --c2l-cal-cell
        (c2l-components.css:4265). These are deliberately local: they are the
        knob a modifier class turns (.c2l-cal-tight, .c2l-cal--wide), which
        only works if they are set on the component, not globally.
     2. The six --c2l-arc-* AI Act navigator colors, declared on :root in
        Areas/AICMS/Content/aicms-design-extensions.css:10-17. These ARE
        global and by rights belong here, but they are compliance-domain
        semantics with a single consumer inside an archived directive
        (Areas/AICMS/Angular/aicms/_archive/eu-ai-act-radial-viz-20260702/
        directives/aiActRadialChart.js:141). Retiring or promoting them is a
        separate decision - not silently in scope of this file's claim.
   Promoted from Areas/AICMS/Content/aicms-design.css (production values)
   + motion tokens from design-mirror-final:docs/design/colors_and_type.css.
   Scoping: :root on purpose - tokens are inert without .c2l component rules.
   ========================================================= */

:root {
  /* ---------- Brand (Verbist & Verbist / Coach2Lead) ---------- */
  --c2l-primary:            #470544;
  --c2l-primary-dark:       #2E002C;
  --c2l-primary-darker:     #62175F;

  --c2l-secondary:          #4CACBE;
  --c2l-secondary-deep:     #2a7f8f;  /* AA-safe secondary fill for WHITE text.
                                         --c2l-secondary (#4CACBE) under white is
                                         2.64:1; this is 4.63:1. Added 2026-08-13
                                         for .c2l-panel-chip-badge. Use wherever
                                         white sits on a secondary fill; the base
                                         --c2l-secondary stays correct for fills
                                         carrying DARK text or no text at all. */
  --c2l-secondary-light:    #72c7d8;  /* link hover on the plum topbar; 1 rule
                                         (c2l-components.css:5510) */
  --c2l-secondary-soft:     #70c8d9;  /* hairline borders; 2/255 from -light, kept
                                         separate only because both shipped - do not
                                         mint a third member of this pair */
  --c2l-secondary-bg-soft:  #A9E1EC;  /* OPAQUE selected-surface fill; 11 rules across
                                         c2l-components.css + aicms-design.css. See the
                                         tint washes further down for the translucent
                                         counterpart family. */

  --c2l-tertiary:            #1ab394;
  /* WCAG AA text-safe companions to --c2l-secondary and --c2l-tertiary, minted 2026-10-21 from
     the axe findings of the AICMS screenshot tour (color-contrast, 112 items). The brand hues
     cannot carry text: --c2l-secondary #4CACBE is 2.64:1 on white and 2.32:1 on the #edf1f2
     panel wash, --c2l-tertiary #1ab394 is 2.65:1 on white. The text pair measures (computed
     with the WCAG relative-luminance formula): secondary-text #1b6170 7.02:1 on white and
     6.17:1 on #edf1f2; tertiary-text #0e7a64 5.27:1 on white and 4.63:1 on #edf1f2;
     info-text #00588f 5.78:1 on the .c2l-badge--info wash (#d5e4ec over #edf1f2).
     #1b6170 is the teal aicms-design.css already used for the page eyebrow. Use these wherever
     the hue carries TEXT or is the fill behind white text; the brand tokens stay for borders,
     chart series, icons and other non-text marks. Do not lighten without re-measuring. */
  --c2l-secondary-text:     #1b6170;
  --c2l-tertiary-text:      #0e7a64;
  --c2l-info-text:          #00588f;

  /* ---------- Extended palette ---------- */
  --c2l-yellow:             #ffed00;
  --c2l-orange:             #f29400;
  --c2l-red:                #e2001a;
  --c2l-red-deep:           #b10000;
  /* WCAG AA text-safe companions to --c2l-green / --c2l-orange, minted 2026-08-26 on the same
     grounds --c2l-fg-muted was darkened on 2026-08-13 and for the same reason --c2l-red-deep
     exists: the brand green and orange cannot carry text at all. Measured by axe-core against the
     live app - #ffffff on --c2l-green #41a62a is 3.12:1 and on --c2l-orange #f29400 is 2.33:1,
     and both fail equally as text ON white (3.12 / 2.33), against a 4.5:1 floor. The deep pair
     measures >= 6.5:1 against white in either direction and >= 5.1:1 as text on those hues' own
     .12/.14 tint washes (the badge case, the harder of the two). Use these wherever the hue
     carries or sits behind TEXT; the brand tokens stay for borders, chart series, node fills and
     other non-text marks. Do not lighten without re-measuring against the tint washes. */
  --c2l-green-deep:         #276b19;
  --c2l-orange-deep:        #8a5000;
  --c2l-blue-light:         #006ab3;
  --c2l-blue-dark:          #172983;
  --c2l-green:              #41a62a;
  --c2l-purple:             #81197f;
  --c2l-primary-bg-soft:    #f9f3f9;   /* pale primary tint (selected list items) */

  /* Categorical data-viz palette (chart series colors, C2lChartOptions.getColor's
     default token cycle) - mapped onto existing hues above, no new colors minted. */
  --c2l-chart-series-1:     var(--c2l-secondary);
  --c2l-chart-series-2:     var(--c2l-tertiary);
  --c2l-chart-series-3:     var(--c2l-orange);
  --c2l-chart-series-4:     var(--c2l-purple);
  --c2l-chart-series-5:     var(--c2l-blue-dark);
  --c2l-chart-series-6:     var(--c2l-yellow);
  --c2l-chart-series-7:     var(--c2l-red);
  --c2l-chart-series-8:     var(--c2l-blue-light);

  /* Status / impersonation */
  --c2l-danger-gradient-from: #BF0500;
  --c2l-danger-gradient-to:   #F0110B;
  --c2l-danger-accent:        #F74A45;

  /* ---------- Neutrals ---------- */
  --c2l-bg:                 #f5f7fa;
  --c2l-bg-texture-url:     url('/Content/design/assets/shattered-texture.svg');
  --c2l-surface:            #ffffff;
  --c2l-surface-2:          #edf1f2;
  --c2l-surface-3:          #e4eaec;
  --c2l-border:             #e7eaec;
  --c2l-border-strong:      #cccccc;

  --c2l-fg-1:               #313131;
  --c2l-fg-2:               #434343;
  --c2l-fg-3:               #515253;
  --c2l-fg-4:               #656565;
  /* WCAG AA constrained, darkened from #98a0a4 on 2026-08-13. The old value
     measured 2.33:1 against --c2l-surface-2 (#edf1f2), the design system's own
     panel tint, and 2.72:1 on white - both far under the 4.5:1 AA floor for
     normal text, and it is used on 79 declarations. AA at 14px forces roughly
     this luminance, so "muted" can no longer be much LIGHTER than --c2l-fg-4;
     it stays distinguishable by HUE (cool blue-grey vs neutral grey) instead.
     Measured after: 4.71:1 on #edf1f2, 5.4:1 on white. Do not lighten without
     re-measuring against #edf1f2, which is the harder of the two. */
  --c2l-fg-muted:           #646c70;
  --c2l-fg-on-primary:      #ffffff;

  /* ---------- Sidebar active-item (teal) ---------- */
  --c2l-sidebar-active:     #299bb1;  /* orphan: no production consumer; published on TokenComponentsSidebar */

  /* ---------- Control height ---------- */
  --c2l-control-h:          34px;    /* single-line field height; see .c2l-uniform-controls in c2l-components.css */

  /* ---------- Radii ---------- */
  --c2l-radius-xs:          2px;
  --c2l-radius-sm:          3px;
  --c2l-radius-md:          4px;
  --c2l-radius-lg:          0.25em;  /* consumed by Areas/Metrics/Content/metrics-design-extensions.css (Indicator Index cards, Task 2) */
  --c2l-radius-pill:        999px;
  --c2l-radius-circle:      50%;

  /* ---------- Elevation / shadows ---------- */
  --c2l-shadow-xs:          0 1px 0 rgba(0,0,0,.04);
  --c2l-shadow-sm:          0 1px 1px rgba(0,0,0,.075);
  --c2l-shadow-md:          0 2px 6px rgba(0,0,0,.08);
  --c2l-shadow-dropdown:    0 6px 12px rgba(0,0,0,.175);
  --c2l-shadow-open-inset:  inset 0 -5px 0 rgba(255,255,255,.5);  /* orphan: no production consumer; published on TokenElevation */

  /* PN-5 tint washes: TRANSLUCENT rgba, 5-7% alpha, meant to be layered over
     an arbitrary surface. Distinct from the -bg-soft family above, which are
     OPAQUE hex fills at full strength for a solid selected/active surface.
     Two vocabularies, two different jobs - not a naming inconsistency. */
  --c2l-primary-tint:          rgba(71, 5, 68, .05);
  --c2l-primary-tint-border:   rgba(71, 5, 68, .10);
  --c2l-secondary-tint:        rgba(76, 172, 190, .07);
  --c2l-secondary-tint-border: rgba(76, 172, 190, .18);
  /* PN-6 two-layer soft card shadow (existing --c2l-shadow-md is single-layer) */
  --c2l-shadow-card:        0 1px 2px rgba(15, 23, 42, .04), 0 4px 18px -6px rgba(15, 23, 42, .10);

  /* ---------- Spacing ---------- */
  --c2l-space-0:            0;  /* orphan: no production consumer; published on TokenSpacingScale */
  --c2l-space-xs:           4px;
  --c2l-space-sm:           8px;
  --c2l-space-md:           12px;
  --c2l-space-lg:           16px;
  --c2l-space-xl:           24px;
  --c2l-space-2xl:          32px;

  /* ---------- Gradients ---------- */
  /* Composed from the brand tokens on purpose - these were literal hex copies
     and had drifted 1/255 on the blue channel (#470545 vs #470544). */
  --c2l-gradient-topnav:    linear-gradient(to right, var(--c2l-primary) 0%, var(--c2l-primary-dark) 100%);
  --c2l-gradient-preloader: linear-gradient(90deg, var(--c2l-primary) 10%, var(--c2l-primary-dark) 90%);  /* orphan: no production consumer; published on TokenColorsGradients */
  --c2l-gradient-danger:    linear-gradient(to right, var(--c2l-danger-gradient-from) 0%, var(--c2l-danger-gradient-to) 100%);  /* orphan: no production consumer; published on TokenColorsGradients */

  /* ---------- Type ---------- */
  --c2l-font-sans: "Source Sans Pro", "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --c2l-font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --c2l-font-icons-fa:  "FontAwesome";
  --c2l-font-icons-sli: "simple-line-icons";  /* orphan: no production consumer; published on TokenBrandIconography */

  --c2l-fs-xs:              12px;
  --c2l-fs-sm:              12px;
  --c2l-fs-base:            14px;
  --c2l-fs-md:              16px;
  --c2l-fs-lead:            18px;
  --c2l-fs-lg:              20px;
  --c2l-fs-h6:              12px;
  --c2l-fs-h5:              14px;
  --c2l-fs-h4:              18px;
  --c2l-fs-h3:              21px;
  --c2l-fs-h2:              24px;
  --c2l-fs-h1:              30px;

  --c2l-lh-tight:           1.2;
  --c2l-lh-base:            1.428;
  --c2l-lh-loose:           1.6;

  --c2l-fw-thin:            300;
  --c2l-fw-regular:         400;
  --c2l-fw-medium:          500;
  --c2l-fw-semibold:        600;
  --c2l-fw-bold:            700;

  /* ---------- Motion ---------- */
  --c2l-dur-instant:        100ms;
  --c2l-dur-fast:           150ms;
  --c2l-dur-base:           200ms;
  --c2l-dur-slow:           300ms;  /* consumed by the AI Act map band-entrance animation (aicms-ai-act-map.css, Task 11) */
  --c2l-dur-modal:          240ms;  /* consumed by .c2l-toast entrance (c2l-components.css, Task 12) */
  --c2l-dur-exit:           150ms;  /* orphan: no production consumer; published on TokenMotion */

  --c2l-ease-out-quart:     cubic-bezier(0.25, 1, 0.5, 1);
  --c2l-ease-out-quint:     cubic-bezier(0.22, 1, 0.36, 1);
  --c2l-ease-out-expo:      cubic-bezier(0.16, 1, 0.3, 1);  /* orphan: no production consumer; published on TokenMotion */
  --c2l-ease-in:            cubic-bezier(0.5, 0, 0.75, 0);  /* consumed by the c2l-eselect-panel-out exit keyframe (W3-1, c2l-components.css) */
  --c2l-ease-in-out:        cubic-bezier(0.65, 0, 0.35, 1);  /* orphan: no production consumer; published on TokenMotion */

  /* ---------- Modal / dialog ---------- */
  --c2l-lh-normal:          var(--c2l-lh-base);  /* orphan: no production consumer; published on TokenTypeScale */
  --c2l-radius-modal:       10px;
  --c2l-fs-modal-title:     22px;
  --c2l-separator:          #f0f2f4;
  --c2l-surface-footer:     #fafbfc;
  --c2l-primary-overlay:    rgba(46, 0, 44, .42);  /* orphan: no production consumer; published on TokenColorsImpersonation */
  --c2l-primary-shadow:     rgba(71, 5, 68, .28);
  --c2l-primary-icon-bg:    rgba(71, 5, 68, .08);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  body.c2l, .c2l-surface {
    background-image: none !important;
    background-color: var(--c2l-surface) !important;
    color: #313131;
  }
  .c2l a {
    color: #313131;
    text-decoration: underline;
  }
  .c2l .no-print { display: none !important; }
}
