/* ============================================================
   VIZ 1.3 — PRODUCERS: electricity generation mix (stacked bars)
   Recharts-based, loaded on demand. Triggered by the Producers
   "see it" button (data-viz-trigger="producers").
   ============================================================ */

.v13-prod {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  box-sizing: border-box;
  color: var(--text, #1a2436);
  animation: v13-card-in .35s cubic-bezier(.2,.7,.3,1);
}

.v13-prod .vp-header { text-align: center; margin-bottom: 6px; }
.v13-prod .viz12x-eyebrow {
  font-size: 11px; color: #3FA9C4; letter-spacing: 1px;
  text-transform: uppercase; font-weight: 700; margin-bottom: 4px;
}
.v13-prod .viz12x-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px; font-weight: 500; line-height: 1.3; margin: 0;
  color: var(--text, #1a2436);
}
.v13-prod .vp-sub {
  font-size: 12.5px; line-height: 1.5; color: var(--text-soft, #4a5670);
  text-align: center; margin: 6px auto 10px; max-width: 360px;
}
.v13-prod .vp-sub b { color: #3FA9C4; }

/* chart mount */
.vp-chart {
  flex: 1;
  min-height: 280px;
  width: 100%;
}
.vp-loading {
  flex: 1; display: grid; place-items: center;
  color: var(--text-mute, #8090a8); font-size: 13px;
}

.vp-ylabel {
  font-size: 11px;
  color: var(--text-mute, #8090a8);
  margin: 0 0 -6px 6px;
}

/* custom tooltip (matches the reference image) */
.vp-tip {
  background: #fff;
  border: 1px solid rgba(26,36,54,0.12);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 6px 22px rgba(26,36,54,0.16);
  font-size: 13px;
  color: #1a2436;
}
.vp-tip-year { font-size: 11px; color: #8090a8; margin-bottom: 3px; }
.vp-tip-row { display: flex; align-items: center; gap: 7px; }
.vp-tip-dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 11px;
  border: 1px solid rgba(0,0,0,0.15); }
.vp-tip-name { color: #1a2436; }
.vp-tip-val { font-weight: 700; margin-left: 2px; }

/* legend chips below */
.vp-legend {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 12px; margin-top: 10px;
}

.vp-notes {
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--text-mute, #8090a8);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 0.5px solid var(--rule, rgba(26,36,54,0.12));
}
.vp-notes b { color: var(--text-soft, #4a5670); font-weight: 700; }
.vp-leg-item { display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-soft, #4a5670); }
.vp-leg-dot { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 9px; }

.vp-back {
  align-self: flex-start; margin-top: 10px;
  font-size: 12px; font-weight: 600; color: #3FA9C4;
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 0;
}
.vp-back:hover { text-decoration: underline; }

body.theme-dark .v13-prod .vp-tip {
  background: #232639; border-color: rgba(255,255,255,0.12); color: #e8e8ef;
}
body.theme-dark .v13-prod .vp-tip-name { color: #e8e8ef; }
