/* Enlite_Spark logo. Markup: <span class="Enlite_Spark">. Design source: enlite-icon-electric-v3.html (kept outside the repo) */
  .Enlite_Spark { display:inline-block; width:var(--ei-size, 96px); line-height:0; color:var(--ei-core-color, CanvasText);
                 border-radius:50%; outline-offset:8px; -webkit-tap-highlight-color:transparent; }
  .Enlite_Spark svg { width:100%; height:auto; overflow:visible; display:block;
                     transition:transform .4s cubic-bezier(.2,.9,.3,1.35), filter .4s ease; }
  .Enlite_Spark .ei-seg { transform-box:view-box; transition:transform .35s cubic-bezier(.2,.9,.3,1.6); }
  .Enlite_Spark .ei-core { fill:currentColor; }
  .Enlite_Spark .ei-current path { fill:none; stroke:#fff; stroke-width:7; stroke-linecap:round;
                                  stroke-dasharray:9 91; opacity:0; transition:opacity .3s; }
  .Enlite_Spark .ei-fx { pointer-events:none; }

  /* Idle: slow breathing. Uses the separate `scale` property so it does not fight the hover transform. */
  .Enlite_Spark:not(.is-live) svg { animation:ei-breathe 4s ease-in-out infinite; }
  @keyframes ei-breathe {
    0%,100% { scale:1;     filter:drop-shadow(0 0 0 rgba(254,199,13,0)); }
    50%     { scale:1.025; filter:drop-shadow(0 0 6px rgba(254,199,13,.3)); }
  }
  .Enlite_Spark.is-live svg { transform:scale(1.04);
      filter:drop-shadow(0 0 6px rgba(254,199,13,.55)) drop-shadow(0 0 18px rgba(80,162,149,.35));
      animation:ei-flicker 1.6s steps(1) infinite; }
  .Enlite_Spark.is-live .ei-g { transform:translate(-4px, 5px); }
  .Enlite_Spark.is-live .ei-y { transform:translate(0, -6px); }
  .Enlite_Spark.is-live .ei-r { transform:translate(6px, 0); }
  .Enlite_Spark.is-live .ei-current path { opacity:.8; animation:ei-run 1.1s linear infinite; }
  .Enlite_Spark.is-live .ei-current path:nth-child(2) { animation-duration:1.4s; animation-delay:-.5s; }
  .Enlite_Spark.is-live .ei-current path:nth-child(3) { animation-duration:.9s;  animation-delay:-.2s; }

  @keyframes ei-run { to { stroke-dashoffset:-100; } }
  @keyframes ei-flicker {
    0%,100% { filter:drop-shadow(0 0 6px rgba(254,199,13,.55)) drop-shadow(0 0 18px rgba(80,162,149,.35)) brightness(1); }
    37%     { filter:drop-shadow(0 0 9px rgba(254,199,13,.8))  drop-shadow(0 0 22px rgba(231,51,54,.35)) brightness(1.12); }
    41%     { filter:drop-shadow(0 0 4px rgba(254,199,13,.4))  drop-shadow(0 0 14px rgba(80,162,149,.3))  brightness(.97); }
    72%     { filter:drop-shadow(0 0 8px rgba(254,199,13,.7))  drop-shadow(0 0 20px rgba(80,162,149,.45)) brightness(1.08); }
  }
  @media (prefers-reduced-motion: reduce) {
    .Enlite_Spark svg, .Enlite_Spark:not(.is-live) svg, .Enlite_Spark.is-live svg { animation:none; transform:none; }
    .Enlite_Spark.is-live .ei-seg { transform:none; }
    .Enlite_Spark .ei-current, .Enlite_Spark .ei-fx { display:none; }
  }


/* ---------- Topbar variant (.ei-mono): grey at rest, brand colours on hover ---------- */
  .Enlite_Spark.ei-mono { --ei-mono:#6e707e; }
  .Enlite_Spark.ei-mono g:not(.ei-current) > .ei-seg { transition:transform .35s cubic-bezier(.25,1,.5,1), fill .35s ease; }
  .Enlite_Spark.ei-mono:not(.is-live) g:not(.ei-current) > .ei-seg { fill:var(--ei-mono); }
  /* Faint backlight at rest: a soft, offset shadow that drifts through the three brand colours. */
  .Enlite_Spark.ei-mono:not(.is-live) svg { animation:ei-backlight 7s ease-in-out infinite, ei-idle-spin 9s infinite; }
  /* Idle spin: one turn to the left (same direction as the hover roll) every 9s, still the rest of the time.
     Uses the separate `rotate` property so it does not fight the hover transform on the wrapper. */
  @keyframes ei-idle-spin {
    0%, 86% { rotate:0deg; animation-timing-function:cubic-bezier(.65,0,.35,1); }
    100%    { rotate:-360deg; }
  }
  @keyframes ei-backlight {
    0%,100% { scale:1;     filter:drop-shadow(0 1px 4px rgba(80,162,149,.42)); }
    33%     { scale:1.02;  filter:drop-shadow(0 1px 4px rgba(254,199,13,.5)); }
    66%     { scale:1;     filter:drop-shadow(0 1px 4px rgba(231,51,54,.36)); }
  }
  /* Hover: keep the colour and current, drop the flicker and the wide halo. */
  .Enlite_Spark.ei-mono.is-live svg { animation:none; transform:none; filter:drop-shadow(0 1px 5px rgba(254,199,13,.5)); }

/* ---------- Ask Spark pill: greyed at rest; on hover it fills white, darkens and the logo rolls left ---------- */
  .ei-trigger:hover, .ei-trigger:focus { text-decoration:none; }
  .ei-pill { display:flex; align-items:center; padding:.3rem .85rem .3rem .3rem;
             border:1px solid #e3e6f0; border-radius:999px; background:transparent;
             color:#6e707e; font-size:.8rem; font-weight:600; line-height:1; white-space:nowrap;
             transition:background-color .3s ease, border-color .3s ease, box-shadow .3s ease, color .3s ease; }
  .ei-pill .Enlite_Spark { flex:none; transition:transform .45s cubic-bezier(.25,1,.5,1); }
  .ei-pill-label { display:block; margin-left:.45rem; }
  .ei-trigger:hover .ei-pill, .ei-trigger:focus-visible .ei-pill {
             background:#fff; border-color:#d1d3e2; color:#5a5c69; box-shadow:0 2px 8px rgba(58,59,69,.08); }
  .ei-trigger:hover .ei-pill .Enlite_Spark, .ei-trigger:focus-visible .ei-pill .Enlite_Spark { transform:rotate(-360deg); }
  .ei-trigger:focus-visible .ei-pill { outline:2px solid #50A295; outline-offset:2px; }

  @media (prefers-reduced-motion: reduce) {
    .Enlite_Spark.ei-mono:not(.is-live) svg { animation:none; filter:drop-shadow(0 1px 4px rgba(254,199,13,.45)); }
    .ei-pill, .ei-pill .Enlite_Spark { transition:none; }
    .ei-trigger:hover .ei-pill .Enlite_Spark, .ei-trigger:focus-visible .ei-pill .Enlite_Spark { transform:none; }
  }
