.fundraising-thermometer.thermometer-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
}

.fundraising-thermometer .overall-label {
  margin: 12px 0;
  font-weight: bold;
  font-size: 16px;
}

.fundraising-thermometer .thermometer {
  width: 100%;
  background: #f5f5f5;
  border: 2px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
}

.fundraising-thermometer .thermo-section {
  color: #fff;
  font-weight: 600;
  text-align: center;
  transition: flex-basis 0.6s ease, width 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  white-space: nowrap;
  min-width: 0; /* allow squeezing on narrow screens */
}

.fundraising-thermometer .thermo-text {
  display: inline-block;
  font-size: 14px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Legend (key) — fixed two columns, responsive */
.fundraising-thermometer .thermo-legend {
  list-style: none;
  margin: 10px 0 6px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* TWO COLUMNS */
  gap: 8px 18px;
}

.fundraising-thermometer .legend-item {
  display: flex;
  align-items: center;
  line-height: 1.3;
  min-width: 0;
}

.fundraising-thermometer .legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  flex: 0 0 auto;
}

.fundraising-thermometer .legend-name {
  font-weight: 600;
  margin-right: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fundraising-thermometer .legend-dot {
  margin: 0 6px;
  opacity: .6;
}

.fundraising-thermometer .legend-value {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .fundraising-thermometer .thermo-legend { grid-template-columns: 1fr; } /* stack to one column on small screens */
  .fundraising-thermometer .thermo-text   { font-size: 12px; }
  .fundraising-thermometer .overall-label { font-size: 14px; }
}

/* Floating tooltip bubble */
.ft-tooltip{
  position: absolute;
  z-index: 99999;
  background: rgba(0,0,0,.85);
  color: #fff;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.2;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  display: none;
}
