
.capacity-bar {
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  background: #e0e0e0;
  display: flex;
  flex: 1;
}

.capacity-segment {
  height: 100%;
}

.seg-core        { background: #5d8aa8; }
.seg-support     { background: #88cda9; }
.seg-strategic   { background: #f4c27a; }
.seg-governance  { background: #c29ad8; }

.capacity-legend span {
  display: inline-block;
  margin-right: 16px;
  font-size: 13px;
}

.capacity-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.capacity-total {
  min-width: 90px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}


.benchmark-band {
  margin-top: 16px;
  padding: 16px;
  border-left: 6px solid #ccc;
  background: #ffffff;
}


.benchmark-band h4 {
  margin-top: 0;
}

.delta-up   { color: #2e7d32; font-weight: bold; }
.delta-down { color: #c62828; font-weight: bold; }

/* =========================
   Scenario drawer
========================= */

#scenarioDrawer {
  right: 0;
  left: auto;
  top: 0;
  width: 360px;
  z-index: 1001;
}

/* ----------------------------
   Capacity bar segments
---------------------------- */

.capacity-segment {
    height: 100%;
    float: left;
}

/* Base segments (solid) */
.seg-core-base        { background-color: #5d8aa8; }
.seg-support-base     { background-color: #88cda9; }
.seg-strategic-base   { background-color: #f0c36d; }
.seg-governance-base  { background-color: #c29ad8; }

/* Context segments (solid) */
.seg-core-context        { background-color: #5d8aa8; }
.seg-support-context     { background-color: #88cda9; }
.seg-strategic-context   { background-color: #f0c36d; }
.seg-governance-context  { background-color: #c29ad8; }

/* Uplift segments (same colour + hatch) */
.seg-core-uplift,
.seg-support-uplift,
.seg-strategic-uplift,
.seg-governance-uplift {
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.45),
            rgba(255,255,255,0.45) 6px,
            rgba(255,255,255,0.15) 6px,
            rgba(255,255,255,0.15) 12px
        );
}

/* Explicit colour for uplift (matches base) */
.seg-core-uplift        { background-color: #5d8aa8; }
.seg-support-uplift     { background-color: #88cda9; }
.seg-strategic-uplift   { background-color: #f0c36d; }
.seg-governance-uplift  { background-color: #c29ad8; }


.benchmark-band[data-bandkey="core"] {
  border-left-color: #5d8aa8;
  background: #f4f7fa;
}

.benchmark-band[data-bandkey="support"] {
  border-left-color: #88cda9;
  background: #f3faf6;
}

.benchmark-band[data-bandkey="strategic"] {
  border-left-color: #f4c27a;
  background: #fff9f1;
}

.benchmark-band[data-bandkey="governance"] {
  border-left-color: #c29ad8;
  background: #faf5fb;
}

.benchmark-band[data-bandkey="core"] h4        { color: #5d8aa8; }
.benchmark-band[data-bandkey="support"] h4     { color: #88cda9; }
.benchmark-band[data-bandkey="strategic"] h4   { color: #f4c27a; }
.benchmark-band[data-bandkey="governance"] h4  { color: #c29ad8; }


.band-factors {
    font-size: 0.85em;     /* matches w3-small visually */
    color: #666;           /* matches w3-text-grey */
    margin-top: 6px;
}

.band-factors li {
    margin-bottom: 4px;
}

