/* =========================================================================
   MeritX — Growth Curve  ("One Platform. Six Intelligence Engines.")
   A rising client-growth line graph, pinned + scroll-locked on desktop:
   each scroll floods the next of 3 segments (Discover / Analyze / Optimise)
   with electric blue until the whole curve is lit. Mobile = stacked reveal.
   Vanilla + theme-aware. Accent = brand navy var(--purple) #2708A0.
   ========================================================================= */
.gg{
  --gg-blue:  var(--purple);            /* #2708A0 light / #33058D dark */
  --gg-glow:  var(--accent);            /* brighter electric blue for glow */
  --gg-grey:  #c4cad4;                  /* unfilled curve (light) */
  --gg-band:  rgba(39,8,160,.05);
  --gg-ink:   var(--text); --gg-sub: var(--muted); --gg-line: var(--border);
  --gg-card:  var(--surface);
  position:relative;
}
[data-theme="dark"] .gg{
  --gg-grey:#3b414c; --gg-band:rgba(120,140,255,.06);
  /* dark-mode graphic palette (per user 2026-07-11): blue #4969FF = primary
     (curve / nodes / tags / stage text), gold #C9A227 = accent + highlights.
     Momentum factor bar stays violet #4225c3 (not in the swap list). */
  --gg-blue:#4969FF;     /* primary: curve, nodes, tags, Discover/Analyze/Optimise, reach, equity */
  --gg-glow:#C9A227;     /* glow on the curve + active node -> gold */
  --accent:#C9A227;      /* up / buy / health / spark / donut / positive -> gold */
  --purple:#4969FF;      /* equity value etc. -> blue */
  --gg-facq:#4969FF;     /* Quality factor bar -> blue (base #2708A0) */
  --gg-fgold:#C9A227;    /* Value + Portfolio-Health bars -> gold (were #4969FF) */
}
/* kicker "How MeritX works" + both callouts -> gold in dark */
[data-theme="dark"] .gg .gg__kick{ color:#C9A227; }
[data-theme="dark"] .gg .gg__here,
[data-theme="dark"] .gg .gg__reach{ fill:#C9A227; }
/* stage labels in dark: grey while upcoming; once the stage is reached the title
   + one-liner turn WHITE and the number turns BLUE #4969FF. */
[data-theme="dark"] .gg .gg__tag .t{ color:var(--gg-sub); }            /* inactive title -> grey (base is white) */
[data-theme="dark"] .gg .gg__tag.is-active .t,
[data-theme="dark"] .gg .gg__tag.is-active .d,
[data-theme="dark"] .gg .gg__tag.is-done .t,
[data-theme="dark"] .gg .gg__tag.is-done .d{ color:var(--gg-ink); }    /* reached -> white text */
[data-theme="dark"] .gg .gg__tag.is-active .n,
[data-theme="dark"] .gg .gg__tag.is-done .n{ color:#4969FF; }          /* reached -> blue number */
/* Portfolio-Health "good" flag square -> blue (was gold --accent) */
[data-theme="dark"] .gg .s-wwd-flag.green .dot{ background:#4969FF; }
/* chip hover-border highlight -> blue (was gold --accent) */
[data-theme="dark"] .gg .chip:hover{ border-color:color-mix(in srgb, #4969FF 55%, var(--border-strong)); }

/* section fills exactly one screen (no extra .section padding) so "full screen
   visible" == the section, and the lock can wait for that.
   A transparent 69px margin below lets the fixed dot-grid show through as a
   divider before the terminal section. */
.gg.section{ padding-top:0; padding-bottom:0; margin-bottom:clamp(64px, 8vw, 100px); background:var(--bg-elev); }

/* ---------- pinned viewport (the graph flex-grows to fill the screen) ---------- */
.gg__pin{ min-height:100vh; padding:calc(var(--nav-h) + 14px) 0 clamp(48px,7vh,84px);
  display:flex; flex-direction:column; justify-content:flex-start; gap:clamp(8px,1.5vh,20px); }
.gg__head{ text-align:center; max-width:none; margin:0 auto; flex:none; }
.gg__kick{ display:inline-block; font-size:12px; font-weight:600;
  letter-spacing:.14em; text-transform:uppercase; color:var(--purple-ink); margin-bottom:9px; }
.gg__h2{ font-size:clamp(22px,3vw,37px); line-height:1.06; letter-spacing:-.02em; font-weight:700;
  color:var(--gg-ink); margin:0; white-space:nowrap; }               /* one line */
.gg__lead{ font-size:clamp(13.5px,1.4vw,15.5px); line-height:1.5; color:var(--gg-sub);
  margin:10px auto 0; max-width:none; white-space:nowrap; }          /* one line */

/* =========================================================================
   THE GRAPH  (fills the leftover vertical space between head and stage)
   ========================================================================= */
.gg__graph{ position:relative; flex:1 1 auto; min-height:150px; width:100%; max-width:1240px; margin:0 auto; }
/* start/end callouts drawn inside the SVG (scale with the curve).
   "you're here…" shows from the start and stays until the last step;
   "reach here with us!" appears only on the final step. */
.gg__here{ fill:var(--gg-sub); font-family:var(--font-sans); font-size:19px; font-weight:600; letter-spacing:.01em;
  transition:opacity .5s ease; }                       /* stays visible the whole time */
.gg__reach{ fill:var(--purple-ink); font-family:var(--font-sans); font-size:19px; font-weight:700; letter-spacing:.01em;
  opacity:0; transition:opacity .5s ease; }
.gg[data-step="3"] .gg__reach{ opacity:1; }            /* appears only on the final step */
.gg__svg{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; }

/* baseline + column dividers */
.gg__axis{ stroke:var(--gg-line); stroke-width:1; }
.gg__divider{ stroke:var(--gg-line); stroke-width:1; stroke-dasharray:3 5; opacity:.7; }

/* grey base curve (always) */
.gg__curve{ fill:none; stroke:var(--gg-grey); stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }

/* electric-blue fill segments (draw via dashoffset when their stage is reached) */
.gg__fill{ fill:none; stroke:url(#ggGrad); stroke-width:3; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:1; stroke-dashoffset:1;
  transition:stroke-dashoffset .7s cubic-bezier(.45,0,.25,1); }

/* active-column glow band */
.gg__band{ fill:url(#ggBand); opacity:0; transition:opacity .5s ease, x .55s cubic-bezier(.4,0,.2,1); }

/* Reverse (scrolling back up): the page keeps moving, so the curve retracts
   quickly and continuously — Optimise -> Analyze -> Discover — instead of
   ambling back at the slow forward pace. JS adds .is-rev while it unwinds. */
.gg.is-rev .gg__fill{ transition-duration:.3s; }
.gg.is-rev .gg__band{ transition-duration:.3s,.3s; }
.gg.is-rev .gg__node .dot{ transition-duration:.25s,.25s,.2s; }
.gg.is-rev .gg__node .halo{ transition-duration:.25s; }
.gg.is-rev .gg__tag .n,
.gg.is-rev .gg__tag .t,
.gg.is-rev .gg__tag .d{ transition-duration:.28s; }

/* nodes */
.gg__node .dot{ fill:var(--gg-card); stroke:var(--gg-grey); stroke-width:2.5;
  transition:stroke .5s ease, fill .5s ease, r .4s ease; }
.gg__node.is-done .dot{ stroke:var(--gg-blue); fill:var(--gg-blue); }
.gg__node.is-active .dot{ stroke:var(--gg-glow); fill:var(--gg-glow); r:7;
  filter:drop-shadow(0 0 7px var(--gg-glow)); }
.gg__node .halo{ fill:var(--gg-glow); opacity:0; transform-box:fill-box; transform-origin:center;
  transition:opacity .5s ease; }
.gg__node.is-active .halo{ opacity:.16; }

/* segment labels — a clean 3-column row BELOW the graph (never overlaps the curve).
   Each label carries its one-liner; number/title/one-liner all recolour
   grey -> electric blue as that stage starts (and stay blue once passed). */
.gg__tags{ display:grid; grid-template-columns:repeat(3,1fr); max-width:1160px; width:100%; margin:0 auto; align-items:start; }
.gg__tag{ justify-self:center; display:flex; flex-direction:column; align-items:center; gap:2px; text-align:center;
  max-width:268px; transition:transform .45s ease; }
.gg__tag .n{ font-family:var(--font-mono); font-size:12.5px; font-weight:700; letter-spacing:.08em;
  color:var(--gg-sub); transition:color .55s ease; }
.gg__tag .t{ font-size:clamp(17px,1.9vw,21px); font-weight:700; letter-spacing:-.01em; color:var(--gg-ink);
  transition:color .55s ease; }
.gg__tag .d{ font-size:clamp(12px,1.1vw,13.5px); line-height:1.35; color:var(--gg-sub); margin-top:3px;
  transition:color .55s ease; }
.gg__tag.is-active{ transform:translateY(-2px); }
.gg__tag.is-active .n{ color:var(--gg-glow); }
.gg__tag.is-active .t, .gg__tag.is-active .d,
.gg__tag.is-done .n, .gg__tag.is-done .t, .gg__tag.is-done .d{ color:var(--purple-ink); }

/* =========================================================================
   TAP STEPPER (touch + reduced-motion)
   growth-graph.js adds .gg--tap when the curve is walked by tapping instead
   of grown by scrolling. Only the segment you are standing on is named, so
   the three-across tag row collapses to the single active one.
   ========================================================================= */
/* The invite is the site's own ghost button (`.btn.btn--ghost` + the
   data-bg-glow-force hook border-glow.js reads), so it carries the same
   lavender wash as "Open Fund Workspace" — only layout and the exit live here.
   Height is pinned rather than left to min-height so the button can collapse
   smoothly instead of popping out of the flow. */
.gg__tapcue{ display:none; }
.gg--tap .gg__tapcue{
  /* block-level flex + fit-content so the `auto` side margins actually centre
     it under the step label — an inline-flex box ignores them and sits left */
  display:flex; width:fit-content; align-items:center; gap:7px; margin:14px auto 0;
  height:44px; padding-block:0; overflow:hidden;     /* comfortable touch target */
  transition:opacity .28s ease,
             height .34s ease .16s, margin-top .34s ease .16s,
             border-width .34s ease .16s;
}
/* Fades first, then collapses its own space, so the content below eases up
   instead of jumping under the finger that just tapped it. */
.gg--tap .gg__tapcue.is-gone{
  opacity:0; pointer-events:none;
  height:0; margin-top:0; border-width:0;
}
.gg--tap .gg__tapcue-a{ animation:ggNudge 1.7s ease-in-out infinite; }
@keyframes ggNudge{ 0%,100%{ transform:translateX(0) } 50%{ transform:translateX(3px) } }
.gg--tap .gg__tags{ grid-template-columns:1fr; }
.gg--tap .gg__tag{ display:none; }
.gg--tap .gg__tag.is-active{ display:flex; }
/* nothing is named until the first tap — hold the row's height so the tap
   does not shunt the whole page down under the reader's finger */
.gg--tap[data-step="0"] .gg__tags{ min-height:4.6em; }

/* progress dots + scroll cue — dots centred, cue on its own line below */
.gg__foot{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.gg__dots{ display:flex; gap:7px; justify-content:center; }
.gg__dots i{ width:7px; height:7px; border-radius:50%; background:var(--gg-line);
  transition:background .4s ease, transform .4s ease; }
.gg__dots i.on{ background:var(--gg-blue); transform:scale(1.15); }
.gg__cue{ display:inline-flex; align-items:center; gap:7px; font-size:12px; color:var(--gg-sub);
  letter-spacing:.02em; transition:opacity .4s ease; }
.gg__cue svg{ animation:ggBob 1.7s ease-in-out infinite; }
.gg[data-step="3"] .gg__cue{ opacity:0; }
@keyframes ggBob{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(3px) } }

/* =========================================================================
   STAGE CONTENT (below the graph, swaps per stage)
   ========================================================================= */
.gg__stagewrap{ position:relative; max-width:940px; width:100%; margin:clamp(26px,3.2vh,42px) auto 0; min-height:214px; }
.gg__panel{ position:absolute; inset:0; opacity:0; transform:translateY(14px); pointer-events:none;
  transition:opacity .5s ease, transform .55s cubic-bezier(.4,0,.2,1); }
.gg__panel.is-active{ opacity:1; transform:none; pointer-events:auto; }
.gg__ptitle{ display:flex; align-items:baseline; gap:12px; justify-content:center; margin-bottom:4px; }
.gg__ptitle b{ font-size:clamp(18px,2vw,22px); font-weight:700; letter-spacing:-.02em; color:var(--gg-ink); }
.gg__ptitle span{ font-family:var(--font-mono); font-size:12px; font-weight:700; color:var(--purple-ink); }
.gg__pdesc{ text-align:center; font-size:14px; line-height:1.55; color:var(--gg-sub);
  margin:4px auto clamp(22px,3vh,36px); max-width:48ch; }

/* engines shown directly on the section — no white card boxes; a grey divider
   separates the two, with a wider gap */
.gg__engines{ position:relative; display:grid; grid-template-columns:1fr 1fr; gap:clamp(36px,4.6vw,64px); }
.gg__engines::before{ content:""; position:absolute; left:50%; top:2px; bottom:2px; width:1px;
  background:var(--gg-line); }
.gg__eng{ display:flex; flex-direction:column; gap:9px; padding:0; }
.gg__eng-h{ display:flex; align-items:center; gap:9px; }
.gg__eng-ic{ width:28px; height:28px; display:flex; align-items:center; justify-content:center;
  color:var(--purple-ink); background:color-mix(in srgb, var(--gg-blue) 10%, transparent);
  border:1px solid color-mix(in srgb, var(--gg-blue) 20%, transparent); }
.gg__eng-nm{ font-size:13.5px; font-weight:700; letter-spacing:-.01em; color:var(--gg-ink); }
.gg__eng-viz{ display:flex; flex-direction:column; gap:9px; }

/* stagger children of the active panel */
.gg__panel .st{ opacity:0; transform:translateY(9px); transition:opacity .45s ease, transform .45s cubic-bezier(.4,0,.2,1); }
.gg__panel.is-active .st{ opacity:1; transform:none; transition-delay:calc(var(--s,0)*80ms + 40ms); }

/* =========================================================================
   ENGINE MINI-VISUALS (lightweight; animate when their panel is active)
   ========================================================================= */
/* Market Pulse — heat tiles + breadth */
.ggv-heat{ display:grid; grid-template-columns:repeat(4,1fr); gap:4px; width:100%; }
.ggv-hc{ height:22px; border-radius:5px; opacity:0; transform:scale(.85);
  transition:opacity .4s ease, transform .4s cubic-bezier(.4,0,.2,1); }
.is-active .ggv-hc{ opacity:1; transform:scale(1); transition-delay:calc(var(--d,0)*50ms + 200ms); }
.ggv-hc.up{ background:var(--hm-p2); } .ggv-hc.dn{ background:var(--hm-n2); }   /* 7-step site heat palette */
.ggv-hc.fl{ background:var(--hm-0); }
/* Alpha Signals — chips */
.ggv-sig{ display:flex; flex-direction:column; gap:6px; width:100%; }
.ggv-sig i{ height:14px; border-radius:4px; background:var(--surface-3); position:relative; overflow:hidden;
  opacity:0; transform:translateX(-10px); transition:opacity .4s ease, transform .4s cubic-bezier(.4,0,.2,1); }
.is-active .ggv-sig i{ opacity:1; transform:none; transition-delay:calc(var(--d,0)*120ms + 220ms); }
.ggv-sig i::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:26%; background:var(--gg-blue); }
/* Stock X-Ray — QVM bars */
.ggv-bars{ display:flex; flex-direction:column; gap:7px; width:100%; }
.ggv-bar{ height:8px; border-radius:5px; background:var(--surface-3); overflow:hidden; }
.ggv-bar span{ display:block; height:100%; width:0; border-radius:5px; background:var(--gg-blue);
  transition:width .8s cubic-bezier(.4,0,.2,1) .25s; }
.is-active .ggv-bar span{ width:var(--w); }
.ggv-bar:nth-child(2) span{ background:var(--green); } .ggv-bar:nth-child(3) span{ background:var(--gold); }
/* Fund Compare — overlap ring */
.ggv-ring{ display:flex; align-items:center; gap:12px; }
.ggv-ring svg{ width:56px; height:56px; }
.ggv-ring .tk{ fill:none; stroke:var(--surface-3); stroke-width:7; }
.ggv-ring .vl{ fill:none; stroke:var(--gg-blue); stroke-width:7; stroke-linecap:round;
  stroke-dasharray:1; stroke-dashoffset:1; transition:stroke-dashoffset 1s cubic-bezier(.4,0,.2,1) .25s; }
.is-active .ggv-ring .vl{ stroke-dashoffset:.36; }
.ggv-ring b{ font-family:var(--font-mono); font-size:15px; font-weight:700; color:var(--gg-ink); }
.ggv-ring small{ display:block; font-size:11px; color:var(--gg-sub); }
/* Portfolio Health — score + bar */
.ggv-health{ display:flex; align-items:center; gap:12px; width:100%; }
.ggv-health .sc{ font-family:var(--font-mono); font-size:26px; font-weight:800; color:var(--green); line-height:1; }
.ggv-health .bar{ flex:1; height:8px; border-radius:5px; background:var(--surface-3); overflow:hidden; }
.ggv-health .bar span{ display:block; height:100%; width:0; border-radius:5px; background:var(--green);
  transition:width .9s cubic-bezier(.4,0,.2,1) .25s; }
.is-active .ggv-health .bar span{ width:82%; }
/* Strategy Lab — mini equity curve */
.ggv-eq{ width:100%; }
.ggv-eq svg{ width:100%; height:48px; display:block; }
.ggv-eq path{ fill:none; stroke:var(--gg-blue); stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:1; stroke-dashoffset:1; transition:stroke-dashoffset 1.1s cubic-bezier(.45,0,.25,1) .25s; }
.is-active .ggv-eq path{ stroke-dashoffset:0; }

/* =========================================================================
   MOBILE — non-locked stacked reveal (no scroll-jack)
   ========================================================================= */
@media (max-width: 639px){
  .gg__pin{ min-height:0; padding:clamp(28px,8vw,56px) 0; display:block; }
  .gg__h2, .gg__lead{ white-space:normal; }              /* allow wrapping on small screens */
  .gg__h2 .gg__h2l{ display:block; }                     /* one sentence per line */
  .gg__lead{ max-width:52ch; }
  /* Let the SVG set its own height. A fixed height letterboxes it — the box
     was 180px tall for 73px of drawing, so ~107px of the section was empty
     band above and below the curve. Taking the SVG out of absolute positioning
     and giving it the touch viewBox's ratio makes the container wrap it exactly,
     so there is no dead band left to waste. */
  .gg__graph{ height:auto; min-height:0; }
  .gg__svg{ position:static; height:auto; aspect-ratio:1200/330; }
  .gg__foot{ display:none; }

  /* the active segment's label, now the only one on screen, can afford to be
     read at full size rather than the 11px it was squeezed to when three
     tags shared the row */
  .gg__tag{ top:0; }
  .gg__tag .t{ font-size:19px; }
  .gg__tag .d{ font-size:13px; }

  /* one stage at a time, matching the segment just lit */
  .gg__stagewrap{ min-height:0; }
  .gg__panel{ position:relative; inset:auto; display:none; opacity:1; transform:none;
    pointer-events:auto; margin-top:20px; }
  .gg__panel.is-active{ display:block; animation:ggPanelIn .45s ease both; }
  .gg__panel .st{ opacity:1; transform:none; }

  /* Both engines of the step stay side by side, split by the same hairline the
     desktop layout uses — the pair is the point ("six engines" = three steps
     of two), so stacking them loses the pairing. Everything inside steps down
     a size to buy the second column its room. */
  .gg__engines{ grid-template-columns:1fr 1fr; gap:16px; }
  .gg__engines::before{ display:block; }
  .gg__eng{ gap:7px; min-width:0; }
  .gg__eng-h{ gap:6px; }
  .gg__eng-ic{ width:22px; height:22px; }
  .gg__eng-ic svg{ width:13px; height:13px; }
  .gg__eng-nm{ font-size:11px; }
  .gg .gg__eng-viz{ gap:7px; }
  .gg .gg__eng-viz .tag{ font-size:0.5rem; }
  .gg .s-wwd-rot-lbl{ font-size:0.5rem; letter-spacing:.06em; }
  .gg .s-wwd-heat{ gap:4px; margin-top:6px; }
  .gg .s-wwd-h{ padding:4px; }
  .gg .s-wwd-h b{ font-size:0.5rem; }
  .gg .s-wwd-h i{ font-size:0.54rem; }

  /* the two curve captions are SVG text in a 1200-unit viewBox, so on a phone
     they were being scaled down to ~5px on screen — size them in viewBox
     units that survive the scale */
  .gg__here, .gg__reach{ font-size:40px; }

  /* ...and lift both off the line. At this size "reach here with us!" is 381
     units wide, so anchored at the end node it lay right across the rising
     curve and the line struck through it. Translating in user units (growth-
     graph.js opens the viewBox 70 units above the curve to make room) parks
     each caption in clear space over its own end of the line, without moving
     the x/y attributes the desktop layout is built on. */
  .gg__here{ transform:translateY(-42px); }
  .gg__reach{ transform:translateY(-123px); }
}
@keyframes ggPanelIn{ from{ opacity:0; transform:translateY(12px) } to{ opacity:1; transform:none } }
@media (prefers-reduced-motion:reduce){
  .gg *{ transition-duration:.01ms !important; animation:none !important; }
}

/* re-round the small data-viz pieces (site sets a global *{border-radius:0!important};
   engine cards + icon chips stay sharp to match the site) */
.gg .gg__dots i{ border-radius:50% !important; }
.gg .ggv-hc{ border-radius:5px !important; }
.gg .ggv-sig i{ border-radius:4px !important; }
.gg .ggv-bar, .gg .ggv-bar span,
.gg .ggv-health .bar, .gg .ggv-health .bar span{ border-radius:5px !important; }

/* =========================================================================
   Original 6-card graphics, re-scoped under .gg (boxless, sharp corners to
   match the source cards + the site's global *{border-radius:0}).
   ========================================================================= */
.gg .gg__eng-viz .tag{ font-size:0.58rem; }
.gg .s-wwd-rot-lbl{ font-size:0.62rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--faint); font-weight:700; }
.gg .s-wwd-heat{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:8px; }
.gg .s-wwd-h{ padding:6px 6px; display:flex; flex-direction:column; gap:2px; }
.gg .s-wwd-h b{ font-size:0.6rem; font-weight:700; color:var(--text); letter-spacing:0.02em; }
.gg .s-wwd-h i{ font-size:0.66rem; font-weight:600; font-family:var(--font-mono); font-style:normal; }
.gg .s-wwd-h.up{ background:var(--green-bg); } .gg .s-wwd-h.up i{ color:var(--green-text); }
.gg .s-wwd-h.down{ background:var(--red-bg); } .gg .s-wwd-h.down i{ color:var(--red-text); }
.gg .s-wwd-h.flat{ background:var(--surface-3); } .gg .s-wwd-h.flat i{ color:var(--muted); }
.gg .s-wwd-breadth{ display:flex; align-items:center; gap:9px; }
.gg .s-wwd-bd-bar{ flex:1; height:7px; overflow:hidden; display:flex; background:var(--surface-3); }
.gg .s-wwd-bd-bar span.up{ background:var(--green); } .gg .s-wwd-bd-bar span.down{ background:var(--red); }
.gg .s-wwd-bd-meta{ font-size:0.62rem; font-family:var(--font-mono); color:var(--muted); white-space:nowrap; }
.gg .s-wwd-bd-meta i{ font-style:normal; }
.gg .s-wwd-eq-head{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.gg .s-wwd-eq-val{ font-size:1.05rem; font-weight:700; color:var(--green-text); }
.gg .s-wwd-spark{ width:100%; height:44px; margin-top:6px; }
.gg .s-wwd-spark .s-wwd-line{ fill:none; stroke:var(--accent); stroke-width:2; }
.gg .s-wwd-spark .s-wwd-area{ fill:url(#wwdEqArea); }
.gg .s-wwd-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.gg .s-wwd-stat{ background:var(--surface); border:1px solid var(--border); padding:6px 6px; text-align:center; }
.gg .s-wwd-stat .k{ display:block; font-size:0.56rem; letter-spacing:0.05em; text-transform:uppercase; color:var(--faint); }
.gg .s-wwd-stat .v{ display:block; font-size:0.88rem; font-weight:700; margin-top:2px; font-family:var(--font-mono); }
.gg .s-wwd-factors{ display:flex; flex-direction:column; gap:8px; }
.gg .s-wwd-fr{ display:flex; align-items:center; gap:9px; }
.gg .s-wwd-fr .k{ width:64px; font-size:0.7rem; color:var(--text-2); flex:none; }
.gg .s-wwd-fr .bar{ flex:1; }
.gg .s-wwd-fr .n{ width:22px; text-align:right; font-size:0.72rem; font-weight:700; color:var(--text); flex:none; }
.gg .s-wwd-research-foot{ display:flex; flex-wrap:wrap; gap:6px; }
.gg .s-wwd-research-foot .chip{ padding:4px 9px; font-size:0.68rem; }
.gg .s-wwd-overlap{ display:flex; align-items:center; gap:14px; }
.gg .s-wwd-donut{ width:52px; height:52px; flex:none; }
.gg .s-wwd-d-track{ fill:none; stroke:var(--surface-3); stroke-width:9; }
.gg .s-wwd-d-val{ fill:none; stroke:var(--accent); stroke-width:9; stroke-linecap:round; }
.gg .s-wwd-ov-meta{ display:flex; flex-direction:column; gap:1px; }
.gg .s-wwd-ov-num{ font-size:1.15rem; font-weight:700; color:var(--text); }
.gg .s-wwd-ov-meta .muted{ font-size:0.72rem; }
.gg .s-wwd-fund-rows{ display:flex; flex-direction:column; gap:3px; }
.gg .s-wwd-frow{ display:flex; align-items:center; justify-content:space-between; font-size:0.74rem; color:var(--text-2); padding:2px 0; }
/* thin grey divider between the Fund Compare rows (between-rows only; no layout shift) */
.gg .s-wwd-frow + .s-wwd-frow{ border-top:1px solid var(--gg-line); }
.gg .s-wwd-frow b{ font-size:0.76rem; }
.gg .s-wwd-flags{ display:flex; flex-direction:column; gap:6px; list-style:none; margin:0; padding:0; }
.gg .s-wwd-flag{ display:flex; align-items:center; gap:9px; background:var(--surface); border:1px solid var(--border); padding:7px 10px; }
.gg .s-wwd-flag .dot{ width:7px; height:7px; flex:none; }
.gg .s-wwd-flag.red .dot{ background:var(--red); } .gg .s-wwd-flag.amber .dot{ background:var(--gold); } .gg .s-wwd-flag.green .dot{ background:var(--green); }
.gg .s-wwd-flag .tx{ flex:1; font-size:0.74rem; color:var(--text-2); } .gg .s-wwd-flag .tx b{ color:var(--text); font-weight:600; }
.gg .s-wwd-flag .tag{ flex:none; }
.gg .s-wwd-health{ display:flex; align-items:center; gap:9px; }
.gg .s-wwd-health .tag{ flex:none; } .gg .s-wwd-health .bar{ flex:1; }
.gg .s-wwd-health-n{ font-size:0.8rem; font-weight:700; color:var(--green-text); flex:none; }
.gg .s-wwd-alt-feed{ display:flex; flex-direction:column; gap:6px; }
.gg .s-wwd-feed{ display:flex; align-items:center; gap:9px; background:var(--surface); border:1px solid var(--border); padding:6px 10px; }
.gg .s-wwd-feed-ic{ width:22px; height:22px; flex:none; display:grid; place-items:center; font-size:0.7rem; font-weight:700; }
.gg .s-wwd-feed-ic.buy{ background:var(--green-bg); color:var(--green-text); }
.gg .s-wwd-feed-ic.star{ background:color-mix(in srgb,var(--gold) 14%,transparent); color:var(--gold); }
.gg .s-wwd-feed-ic.sea{ background:var(--accent-soft); color:var(--accent); }
.gg .s-wwd-feed .tx{ flex:1; font-size:0.74rem; color:var(--text-2); } .gg .s-wwd-feed .tx b{ color:var(--text); font-weight:600; }
.gg .s-wwd-ago{ font-size:0.66rem; font-family:var(--font-mono); flex:none; }
.gg .s-wwd-alt-foot{ display:flex; flex-wrap:wrap; gap:6px; }
.gg .s-wwd-alt-foot .chip{ padding:4px 9px; font-size:0.68rem; }

/* =========================================================================
   Palette-only recolour of the engine graphics (2026-07-11) — match the blue
   of the equity chart; muted gold (#C9A227) only for a couple of highlight
   marks; NO green / red / bright-yellow. Overrides the rescoped s-wwd rules.
   ========================================================================= */
/* Market Pulse — heat tiles + breadth (up = blue, down/flat = grey) */
.gg .s-wwd-h.up{ background:color-mix(in srgb, var(--accent) 16%, transparent); }
.gg .s-wwd-h.up i{ color:var(--accent); }
.gg .s-wwd-h.down{ background:color-mix(in srgb, #7B7B7B 18%, transparent); }
.gg .s-wwd-h.down i{ color:#7B7B7B; }
.gg .s-wwd-h.flat i{ color:#7B7B7B; }
.gg .s-wwd-bd-bar span.up{ background:var(--accent); }
.gg .s-wwd-bd-bar span.down{ background:#7B7B7B; }
/* generic positive/negative inside the graphics: blue / grey (not green/red) */
.gg .gg__eng-viz .pos{ color:var(--accent); }
.gg .gg__eng-viz .neg{ color:#7B7B7B; }
/* Strategy Lab +212.4% -> navy · Portfolio health 82 -> blue */
.gg .s-wwd-eq-val{ color:var(--purple-ink); }
.gg .s-wwd-health-n{ color:var(--accent); }
/* Alpha Signals feed icons: buy/seasonality blue, superstar star = gold highlight */
.gg .s-wwd-feed-ic.buy{ background:color-mix(in srgb, var(--accent) 15%, transparent); color:var(--accent); }
.gg .s-wwd-feed-ic.sea{ background:color-mix(in srgb, var(--accent) 13%, transparent); color:var(--accent); }
.gg .s-wwd-feed-ic.star{ background:color-mix(in srgb, #C9A227 16%, transparent); color:#C9A227; }
/* Portfolio Health flags: bad -> grey, warning -> muted gold (highlight), good -> blue */
.gg .s-wwd-flag.red .dot{ background:#7B7B7B; }
.gg .s-wwd-flag.amber .dot{ background:#C9A227; }
.gg .s-wwd-flag.green .dot{ background:var(--accent); }
