/* Fundraiser running-total thermometer.
   Hidden by default; revealed by scripts/fundraiser-total.js once a figure is
   available (live worker total, or a ?preview_total= stub on non-production hosts).
   Palette inherited from global.css custom properties. */

.fundraiser-total {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg-card, #f8f6f0);
  border: 1px solid var(--color-card-border, #e8e0d0);
  border-radius: 8px;
}

.fundraiser-total[hidden] {
  display: none;
}

.fundraiser-total-amount {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  color: var(--color-text, #111);
}

.fundraiser-total-raised {
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.1;
}

.fundraiser-total-track {
  height: 14px;
  background: #ece7da;
  border-radius: 999px;
  overflow: hidden;
}

.fundraiser-total-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--color-accent-muted, #c8a84b);
  transition: width 0.9s ease-out;
}

.fundraiser-total-goal {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  color: #6b6b6b;
}

/* Goal reached */
.fundraiser-total.is-complete .fundraiser-total-fill {
  background: var(--color-yellow, #f2c94f);
}

.fundraiser-total.is-complete .fundraiser-total-goal {
  color: var(--color-accent-muted, #c8a84b);
  font-weight: 600;
}

/* Mobile: tighter padding + figure that never overflows a narrow screen. */
@media (max-width: 600px) {
  .fundraiser-total {
    padding: 1rem 1.1rem;
    margin: 0 0 1.5rem;
  }
  .fundraiser-total-amount {
    font-size: 1rem;
  }
  .fundraiser-total-raised {
    font-size: 1.45rem;
    overflow-wrap: anywhere;
  }
  .fundraiser-total-goal {
    font-size: 0.9rem;
  }
}
