/* ============================================================
   GoPower infographics — shared styles (canvas exploration)
   Relies on design-system tokens (colors_and_type.css) + site.css
   ============================================================ */

.ig {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--gp-font-sans);
  display: flex;
  flex-direction: column;
}
.ig-pad { padding: 46px 50px 40px; }
.ig--ivory   { background: var(--gp-ivory); color: var(--gp-ink); }
.ig--surface { background: var(--gp-surface); color: var(--gp-ink); }
.ig--dark    { background: var(--gp-dark-green); color: var(--gp-ivory); }

.ig-title {
  font-family: var(--gp-font-display);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.04;
  margin: 14px 0 0;
  text-wrap: balance;
}
.ig-sub { color: var(--gp-ink-mute); font-size: 14.5px; line-height: 1.5; margin: 12px 0 0; max-width: 62ch; }
.ig--dark .ig-sub { color: rgba(251,251,249,.7); }

/* diagram scaffolding */
.ig-stage { position: relative; margin-top: 20px; flex: 1; }
.ig-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ig-node { position: absolute; }

/* animated flow line + energy dot (calm) */
.ig-flowpath { stroke-dasharray: 4 7; animation: ig-dash 1.3s linear infinite; }
@keyframes ig-dash { to { stroke-dashoffset: -22; } }

/* node chip */
.ig-chip {
  display: flex; align-items: center; gap: 12px;
  background: var(--gp-white);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-lg);
  box-shadow: var(--gp-shadow-sm);
  padding: 12px 15px;
}
.ig--dark .ig-chip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.13); box-shadow: none; }

.ig-kick { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--gp-ink-soft); }
.ig--dark .ig-kick { color: rgba(251,251,249,.5); }

/* legend */
.ig-legend { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.ig-leg { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--gp-ink-mute); }
.ig--dark .ig-leg { color: rgba(251,251,249,.72); }
.ig-leg i { width: 22px; height: 0; border-top-width: 2px; border-top-style: solid; display: inline-block; border-radius: 2px; }
.ig-leg i.d { border-top-style: dashed; }

/* $0 marker pill */
.ig-zero {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--gp-font-mono); font-size: 12.5px; font-weight: 500;
  color: var(--gp-ink-mute);
  background: var(--gp-surface);
  border: 1px dashed color-mix(in srgb, var(--gp-ink-soft) 55%, transparent);
  padding: 6px 12px; border-radius: 999px;
}
.ig--dark .ig-zero { color: rgba(251,251,249,.72); background: rgba(255,255,255,.05); border-color: rgba(251,251,249,.24); }

/* ledger */
.ig-ledger { background: var(--gp-white); border: 1px solid var(--gp-border); border-radius: var(--gp-radius-xl); box-shadow: var(--gp-shadow-sm); overflow: hidden; }
.ig-row { display: grid; grid-template-columns: 1.5fr .9fr 1.1fr; align-items: center; gap: 16px; padding: 17px 26px; }
.ig-row + .ig-row { border-top: 1px solid var(--gp-border); }
.ig-row.head { padding-top: 20px; padding-bottom: 14px; }
.ig-row.foot { background: var(--gp-surface); border-top: 1px solid var(--gp-border); }

/* ============================================================
   SET 2 — grid curve (E), financing timeline (F), parking (G)
   ============================================================ */

/* shared: toggle + overlays */
.igx-overlay { position: absolute; z-index: 3; }
.igx-overlay.tl { top: 6px; left: 4px; }
.igx-toggle { display: inline-flex; gap: 5px; padding: 5px; border-radius: 999px; background: var(--gp-surface); border: 1px solid var(--gp-border); }
.igx-toggle button { border: none; cursor: pointer; font-family: var(--gp-font-sans); font-size: 13px; font-weight: 500; padding: 7px 15px; border-radius: 999px; background: transparent; color: var(--gp-ink-mute); transition: all .16s cubic-bezier(.2,.8,.2,1); }
.igx-toggle button.on { background: var(--gp-green); color: var(--gp-ivory); }
.igx-toggle.dark { background: rgba(255,255,255,.06); border-color: rgba(182,242,115,.2); }
.igx-toggle.dark button { color: rgba(251,251,249,.7); }
.igx-toggle.dark button.on { background: var(--gp-lime); color: var(--gp-dark-green); }

/* E — load curve */
.igx-chart { position: relative; flex: 1; min-height: 0; margin-top: 18px; }
.igx-peakcall { position: absolute; top: 6px; right: 4px; z-index: 3; text-align: right; padding: 12px 16px 11px; border-radius: 16px; background: rgba(8,30,27,.66); border: 1px solid rgba(251,251,249,.14); }
.igx-peakcall .k { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(251,251,249,.6); }
.igx-peakcall .v { font-size: 30px; font-weight: 500; line-height: 1.05; margin-top: 3px; }
.igx-peakcall .s { font-size: 11.5px; color: rgba(251,251,249,.55); margin-top: 2px; }

/* F — financing timeline */
.igx-fin { margin-top: 34px; }
.igx-fin-row { display: grid; grid-template-columns: repeat(3,1fr); align-items: end; gap: 24px; }
.igx-fin-cell { display: flex; flex-direction: column; align-items: center; }
.igx-fin-card { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: var(--gp-white); border: 1px solid var(--gp-border); border-radius: var(--gp-radius-lg); box-shadow: var(--gp-shadow-sm); padding: 15px 18px; max-width: 252px; }
.igx-fin-card .ic-mini { width: 30px; height: 30px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--gp-fern) 20%, var(--gp-ivory)); color: var(--gp-green); }
.igx-fin-card .big { font-size: 30px; font-weight: 500; color: var(--gp-green); line-height: 1; }
.igx-fin-card .t { font-weight: 600; font-size: 15px; margin-top: 2px; color: var(--gp-ink); }
.igx-fin-card .s { font-size: 12.5px; color: var(--gp-ink-mute); margin-top: 2px; }
.igx-fin-stem { width: 2px; background: var(--gp-border); }
.igx-fin-stem.up { height: 22px; }
.igx-fin-spine { position: relative; display: grid; grid-template-columns: repeat(3,1fr); height: 14px; margin: 2px 0; }
.igx-fin-spine::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid var(--gp-border); }
.igx-fin-spine .dot { justify-self: center; align-self: center; width: 12px; height: 12px; border-radius: 999px; background: var(--gp-green); box-shadow: 0 0 0 4px var(--gp-ivory); z-index: 1; }
.igx-fin-band { position: relative; margin-top: 6px; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; background: var(--gp-dark-green); border-radius: var(--gp-radius-lg); padding: 26px 24px 20px; }
.igx-fin-bandcell { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 14px; color: rgba(251,251,249,.85); text-align: center; }
.igx-fin-bandcell .chk { width: 22px; height: 22px; flex: none; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: rgba(182,242,115,.16); color: var(--gp-lime); }
.igx-fin-stem.down { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); height: 18px; background: rgba(251,251,249,.22); }
.igx-fin-bandtag { position: absolute; top: -12px; left: 24px; background: var(--gp-lime); color: var(--gp-dark-green); font-size: 11px; font-weight: 600; letter-spacing: .03em; padding: 4px 12px; border-radius: 999px; }
.igx-fin-axis { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 16px; text-align: center; }
.igx-fin-axis span { font-size: 12.5px; font-weight: 500; color: var(--gp-ink-mute); }

/* G — parking lot */
.igx-lotstage { position: relative; flex: 1; min-height: 0; margin-top: 14px; }
.igx-lotcall { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid; font-size: 13px; font-weight: 500; }

.ig text, .ig-svg text, .ig-zero, .igx-peakcall .v { font-feature-settings: "ss01"; }
.igx-pulse { animation: igx-pulse 1.6s ease-in-out infinite; }
@keyframes igx-pulse { 0%,100% { opacity: .45 } 50% { opacity: 1 } }
.igx-dash { animation: igx-dashmove 1.1s linear infinite; }
@keyframes igx-dashmove { to { stroke-dashoffset: -18 } }

@media (prefers-reduced-motion: reduce) {
  .ig-flowpath { animation: none; }
  .igx-pulse, .igx-dash { animation: none; }
}

/* ============================================================
   SET 3 — full stack / vertical integration (H · I · J)
   Six-layer stack rows, contrasted against a "stitched-together
   multi-vendor" mishmash. Shares .ig / .ig-pad / .ig-title / .ig-sub
   / .pill / .eyebrow / .ig-legend from above + site.css.
   ============================================================ */

/* the clean GoPower stack */
.stk { position: relative; display: flex; flex-direction: column; }
.stk-row { display: flex; gap: 16px; align-items: flex-start; padding: 15px 4px; }
.stk-row + .stk-row { border-top: 1px solid var(--gp-border); }
.stk--dark .stk-row + .stk-row { border-top-color: rgba(251,251,249,.14); }
.stk-tile { display: flex; align-items: center; justify-content: center; flex: none; }
.stk-copy { flex: 1; min-width: 0; }
.stk-label { font-weight: 600; font-size: 15px; color: var(--gp-ink); display: flex; align-items: baseline; gap: 9px; }
.stk--dark .stk-label { color: var(--gp-ivory); }
.stk-num { font-size: 12px; font-weight: 500; color: var(--gp-ink-soft); }
.stk--dark .stk-num { color: rgba(251,251,249,.42); }
.stk-product { font-size: 12px; color: var(--gp-ink-mute); margin-top: 2px; }
.stk--dark .stk-product { color: rgba(251,251,249,.62); }
.stk-bullets { list-style: none; margin: 9px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.stk-bullets li { font-size: 12px; line-height: 1.42; color: var(--gp-ink-mute); padding-left: 13px; position: relative; }
.stk-bullets li::before { content: ""; position: absolute; left: 0; top: 6px; width: 4px; height: 4px; border-radius: 999px; background: var(--gp-fern); }
.stk--dark .stk-bullets li { color: rgba(251,251,249,.75); }
.stk--dark .stk-bullets li::before { background: var(--gp-lime); }
.stk-owned { flex: none; align-self: flex-start; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; color: var(--gp-green); background: color-mix(in srgb, var(--gp-fern) 16%, var(--gp-ivory)); border: 1px solid color-mix(in srgb, var(--gp-fern) 30%, var(--gp-border)); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.stk--dark .stk-owned { color: var(--gp-dark-green); background: var(--gp-lime); border-color: var(--gp-lime); }

/* vertical spine + travelling bead threaded through the icon column */
.stk-spine { position: absolute; left: 29px; top: 6px; bottom: 6px; width: 2px; background: var(--gp-border); }
.stk--dark .stk-spine { background: rgba(182,242,115,.22); }
.stk-spine .bead { position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 999px; background: var(--gp-lime); box-shadow: 0 0 8px rgba(182,242,115,.55); animation: stk-flow 5.5s linear infinite; }
@keyframes stk-flow { 0% { top: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* ghost annotation rail (direction J) */
.stk-row--ghost { gap: 18px; }
.stkc-ghost { flex: none; align-self: center; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--gp-ink-soft); max-width: 148px; text-align: right; justify-content: flex-end; }
.stkc-ghost .strike { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--gp-danger) 65%, transparent); text-decoration-thickness: 1.3px; }
.stkc-ghost svg { color: var(--gp-danger); flex: none; }

/* split panel (direction H) */
.stk-split { display: grid; grid-template-columns: .82fr 1.18fr; gap: 22px; margin-top: 26px; align-items: stretch; }
.stk-panel { border-radius: var(--gp-radius-xl); padding: 26px 28px; display: flex; flex-direction: column; }
.stk-panel--bad { background: var(--gp-white); border: 1px solid var(--gp-border); }
.stk-panel--good { background: var(--gp-dark-green); color: var(--gp-ivory); border: none; }
.stk-cap { font-size: 12.5px; color: var(--gp-ink-mute); margin: 16px 0 0; line-height: 1.5; }
.stk-cap--dark { color: rgba(251,251,249,.68); }

/* mismatched vendor chips (mishmash) */
.msh-col { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 2px; margin-top: 20px; flex: 1; }
.msh-break { align-self: center; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin: -2px 0; border-radius: 999px; background: var(--gp-ivory); border: 1px dashed color-mix(in srgb, var(--gp-danger) 55%, transparent); color: var(--gp-warn); z-index: 1; }
.msh-chip { display: flex; align-items: center; gap: 10px; background: var(--gp-white); border: 1px solid color-mix(in srgb, var(--gp-danger) 42%, var(--gp-border)); border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: var(--gp-shadow-sm); }
.msh-chip .t { font-size: 12.5px; font-weight: 600; color: var(--gp-ink); line-height: 1.3; }
.msh-chip .s { font-size: 10.5px; color: var(--gp-warn); margin-top: 1px; }
.msh-chip--sm { padding: 8px 12px 8px 8px; }

/* scattered horizontal band (direction I) */
.msh-band { position: relative; margin-top: 22px; padding: 20px 22px 24px; border-radius: var(--gp-radius-xl); background: var(--gp-white); border: 1px dashed color-mix(in srgb, var(--gp-danger) 45%, var(--gp-border)); }
.msh-band-label { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: var(--gp-warn); text-transform: uppercase; letter-spacing: .06em; }
.msh-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding: 12px 6px 4px; }
.stk-transition { display: flex; align-items: center; gap: 14px; margin: 26px 0; }
.stk-transition-line { flex: 1; height: 1px; background: var(--gp-border); }
.stk-transition-pill { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--gp-green); background: color-mix(in srgb, var(--gp-fern) 16%, var(--gp-ivory)); border: 1px solid color-mix(in srgb, var(--gp-fern) 32%, var(--gp-border)); padding: 7px 16px; border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
  .stk-spine .bead { animation: none; display: none; }
}
