/* AdLabFunnel (W32-1511): the ONE drawing language of every funnel, mini chart and people-crowd on the /adlab/ course page and in the Planner.
   AdLab game style: thick dark outline, flat saturated colour, hard offset shadow. No transparency, no pastel, no blur, no gradient fill.
   Structure and behaviour of the funnels are the page's; this file only says how a segment, a mini chart and a person are DRAWN.
   Colours are the tokens below (the page palette and the DS supply --brand, --brand-deep, --k, --paper, --fill, --ink). */
:root {
  --fnl-seg-0: #6b707b;
  --fnl-seg-1: var(--brand);
  --fnl-seg-2: #7c3aed;
  --fnl-seg-3: #6d28d9;
  --fnl-seg-4: #1c8442;
  --fnl-seg-5: #26793f;
  --fnl-seg-6: #1f6b37;
  --fnl-seg-7: #175c2d;
  --fnl-seg-8: var(--brand-deep);
  --fnl-grp-1: #2a9d8f;
  --fnl-grp-2: #e2733a;
  --fnl-grp-3: #d9467a;
  --fnl-crowd-6: #c49a1a;
  --fnl-ad: #c2410c;
  --fnl-bad: #c62828;
  --fnl-good: #1e8e3e;
  --fnl-stage-see: var(--brand);
  --fnl-stage-click: #7a3fd0;
  --fnl-stage-buy: #1f7a3a;
  --fnl-line: var(--k);
  --fnl-track: var(--fill);
  --fnl-outline: calc(var(--border-hair) * 2);
  --fnl-shadow: calc(var(--border-hair) * 3);
  --fnl-mini-stroke: 1.6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fnl-stage-see: #4f73ff; --fnl-stage-click: #9a5df0; --fnl-stage-buy: #25a244; }
}
:root[data-theme="dark"] { --fnl-stage-see: #4f73ff; --fnl-stage-click: #9a5df0; --fnl-stage-buy: #25a244; }

/* Funnel segment: the page sets --bg (fill) and --cp (trapezoid polygon) on .fseg and adds one decorative <i class="fl"> layer.
   The layer draws the clipped fill; its drop-shadow chain draws the outline (a clip-path would cut an outline off) and then the hard shadow. */
.fun .fseg:not(.ftop) { isolation: isolate; background: none; clip-path: none; }
.fun .fseg > .fl {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  filter: drop-shadow(var(--fnl-outline) 0 0 var(--fnl-line)) drop-shadow(calc(-1 * var(--fnl-outline)) 0 0 var(--fnl-line))
    drop-shadow(0 var(--fnl-outline) 0 var(--fnl-line)) drop-shadow(0 calc(-1 * var(--fnl-outline)) 0 var(--fnl-line))
    drop-shadow(var(--fnl-shadow) var(--fnl-shadow) 0 var(--fnl-line));
}
.fun .fseg > .fl::before { content: ""; position: absolute; inset: 0; background: var(--bg); clip-path: var(--cp); transition: clip-path var(--dur-base) var(--ease-standard); }

/* Mini charts of the metric tiles (impressions, reach, frequency, CPM, CTR, CPC, CVR, CPA, ROAS): same flat shapes, dark outline, no opacity.
   o = outlined shape, t = neutral track, w = paper-white shape, l = dark line. Fill colour = the tile's stage colour (see / click / buy). */
.gi .mini { color: var(--fnl-stage, var(--sc)); overflow: visible; }
.gi.st-see { --fnl-stage: var(--fnl-stage-see); }
.gi.st-click { --fnl-stage: var(--fnl-stage-click); }
.gi.st-buy { --fnl-stage: var(--fnl-stage-buy); }
.mini .o { stroke: var(--fnl-line); stroke-width: var(--fnl-mini-stroke); stroke-linejoin: round; }
.mini .t { fill: var(--fnl-track); }
.mini .w { fill: var(--paper); }
.mini .l { fill: none; stroke: var(--fnl-line); stroke-linecap: round; stroke-linejoin: round; }
.mini text { fill: var(--ink); }
