/* Leadsman data charts — inline SVG figures, FT-adjacent aesthetic */

.ld-chart {
  margin: 2em 0 1.8em;
  padding: 1.2em 1.4em 1em;
  background: #f4f0e8;
  border-left: 3px solid #b08d3e;
  font-family: Georgia, serif;
}

.ld-chart figcaption {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0d2137;
  margin-bottom: 0.9em;
}

.ld-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* SVG element classes */
.ch-label {
  font-family: Georgia, serif;
  font-size: 13px;
  fill: #0d2137;
  dominant-baseline: central;
}

.ch-track {
  fill: #ddd5c5;
  rx: 2;
}

.ch-fill-primary {
  fill: #b08d3e;  /* brass — depleted/key metric */
  rx: 2;
}

.ch-fill-secondary {
  fill: #5a7a9a;  /* slate — secondary metric */
  rx: 2;
}

.ch-fill-alert {
  fill: #8b2e2e;  /* deep red — critical/warning */
  rx: 2;
}

.ch-pct {
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  fill: #f4f0e8;
  dominant-baseline: central;
}

.ch-pct-outside {
  font-family: Georgia, serif;
  font-size: 12px;
  fill: #4a5c6a;
  dominant-baseline: central;
}

.ch-sublabel {
  font-family: Georgia, serif;
  font-size: 10.5px;
  fill: #7a6a5a;
  dominant-baseline: central;
}

.ch-axis-line {
  stroke: #c8bfb0;
  stroke-width: 1;
}

.ch-gridline {
  stroke: #ddd5c5;
  stroke-width: 0.5;
  stroke-dasharray: 3 3;
}

.ld-chart-note {
  margin: 0.7em 0 0;
  font-size: 0.73rem;
  color: #6b5e4e;
  line-height: 1.4;
  border-top: 1px solid #d5cdc0;
  padding-top: 0.5em;
}

.ld-chart-note .conf {
  font-size: 0.7rem;
}

/* legend */
.ch-legend {
  display: flex;
  gap: 1.2em;
  margin-top: 0.6em;
  flex-wrap: wrap;
}

.ch-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.73rem;
  color: #4a3e30;
}

.ch-legend-swatch {
  display: inline-block;
  width: 12px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
