/* ==========================================================================
   SEN: Live — total photovoltaics chart
   Geometry and colour live in pvchart.js; the SVG is generated.
   ========================================================================== */

.sl-pvchart {
  max-width: 100%;
}

.sl-pvchart-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.sl-pvchart-plot {
  position: relative;
}

.sl-pvchart-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Sized in viewBox units, like every generated label on this site. */
.sl-pvchart-axis {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.sl-pvchart-expand {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  color: var(--sl-text-soft);
  font: inherit;
  font-size: 0.9em;
  line-height: 1;
  padding: 0 0.3em;
  cursor: pointer;
  vertical-align: middle;
}

.sl-pvchart-expand:hover { color: var(--sl-text); }

.sl-pvchart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 0.9rem;
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: var(--sl-text-soft);
}

.sl-pvchart-key {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  white-space: nowrap;
}

.sl-pvchart-key i {
  width: 0.7em;
  height: 0.7em;
  border-radius: 2px;
  flex: 0 0 auto;
}

.sl-pvchart-foot {
  margin: 0.3rem 0 0;
  color: var(--sl-text-soft);
  font-size: 0.75rem;
  text-align: center;
}

/* Readout base comes from .sl-hchart-readout in histchart.css, as capchart
   does, so every chart on the site reads the same way. */
.sl-pvchart-readout .sl-hchart-readout-row i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.sl-pvchart-readout .sl-hchart-readout-row b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sl-pvchart-readout .sl-hchart-readout-row.is-total {
  border-top: 1px solid var(--sl-rule);
  margin-top: 3px;
  padding-top: 4px;
  color: var(--sl-text);
}

/* Inside the zoom dialog: claim the width, scale the SVG text back (L22). */
.sl-zoom-mount .sl-pvchart,
.sl-zoom-mount .sl-pvchart-plot,
.sl-zoom-mount .sl-pvchart-svg { width: 100%; }
.sl-zoom-mount .sl-pvchart-axis { font-size: 7px; }


/* A qualifier under the figure it qualifies, not a row of its own weight. */
.sl-pvchart-readout .sl-hchart-readout-row.is-aside {
  color: var(--sl-text-soft);
  font-size: 0.75rem;
}