.business-analysis-figure {
  --analysis-ink: #243128;
  --analysis-green: #18564d;
  --analysis-red: #93364e;
  --analysis-paper: #fdf8ec;
}

.business-analysis-plot {
  background: var(--analysis-paper);
  border: 1px solid #d4c6a7;
  border-radius: 10px;
  padding: .5rem clamp(.1rem, 1.8vw, 1.2rem);
}

.business-analysis-plot svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1060px;
  margin-inline: auto;
  fill: var(--analysis-ink);
  font-size: 17px;
}

.analysis-label, .abc-shares, .pert-note { font-weight: 700; }
.analysis-grid, .analysis-axis, .abc-limit, .abc-curve,
.pert-critical, .pert-predecessor, .pert-dependency, .pert-annotation, .pert-network marker path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.analysis-grid { stroke: #d9ccb1; stroke-width: 1; }
.analysis-axis { stroke: var(--analysis-ink); stroke-width: 2; }
.abc-group-a { fill: #f4d66c; background: #f4d66c; }
.abc-group-b { fill: #9ed9c0; background: #9ed9c0; }
.abc-group-c { fill: #e8e3d9; background: #e8e3d9; }
.abc-bars rect { stroke: var(--analysis-ink); stroke-width: 1.6; }
.abc-limit { stroke: #986a4e; stroke-width: 1.4; stroke-dasharray: 5 5; }
.abc-curve { stroke: var(--analysis-green); stroke-width: 3.5; }
.abc-points { fill: #fffaf0; stroke: var(--analysis-green); stroke-width: 2.8; }
.abc-shares { fill: var(--analysis-green); paint-order: stroke; stroke: var(--analysis-paper); stroke-width: 4; }

.abc-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.4rem; }
.abc-metrics section { padding: .6rem 1rem; border-block-start: 2px solid var(--analysis-green); background: var(--analysis-paper); }
.abc-metrics h4 { margin: 0 0 .35rem; }
.abc-metrics dl { margin: .5rem 0; }
.abc-metrics dl div { display: grid; grid-template-columns: 5.5em 1fr; align-items: center; margin-block: .65rem; }
.abc-metrics dd { margin: 0; border-left: 2px solid var(--analysis-ink); }
.abc-metrics dd span { display: block; width: var(--share); min-width: 2.8em; padding: .1rem .5em; border: 1px solid var(--analysis-ink); border-radius: 0 5px 5px 0; text-align: end; font-weight: 700; }
.abc-metric-axis { display: flex; justify-content: space-between; margin-left: 5.5em; border-top: 1px solid var(--analysis-ink); }
.abc-metrics p { margin: .4rem 0 0; }

.pert-network .pert-critical { stroke: var(--analysis-red); stroke-width: 4.3; }
.pert-network .pert-predecessor { stroke: var(--analysis-green); stroke-width: 3.2; }
.pert-network .pert-dependency { stroke: var(--analysis-green); stroke-width: 2.8; stroke-dasharray: 7 6; }
.pert-network .pert-annotation { stroke: #786859; stroke-width: 1.5; }
.pert-network marker path { stroke: var(--analysis-green); stroke-width: 2.5; }
.pert-network #pert-tip-critical path { stroke: var(--analysis-red); stroke-width: 3; }
.pert-events { fill: #f4d66c; stroke: var(--analysis-ink); stroke-width: 2.6; }
.pert-note { fill: var(--analysis-green); }
.pert-path-sums { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem 1.25rem; padding: 0 .55rem .55rem; }
.pert-path-sums p { padding-left: .85em; margin: 0; border-left: 3px solid var(--analysis-green); }
.pert-path-sums p:last-child { border-left-color: var(--analysis-red); }
