.left-panel,
.right-panel {
  position: relative;
  display: flex;
  flex-direction: column;
}

.sticky-calculator {
  position: sticky;
  top: 0;
}

.sticky-calculator--placeholder {
  top: 10rem;
}

.calc-footer {
  max-width: 500px;
  justify-self: center;
  text-align: center;
}

.card-alt-calculator {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition);
}

.card-alt-calculator:hover {
  border-color: var(--primary-gold);
}

.section-text-alt-calculator {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition);
}

.section-text-alt-calculator:hover {
  border-color: var(--primary-gold);
}

.bar-chart {
  display: flex;
  gap: 2rem;
  height: 120px;
  margin: 1.5rem 0;
  justify-content: center;
}

.bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 70px;
}

.bar-fill-container {
  width: 50px;
  height: 100%;
  border-radius: 0.25rem 0.25rem 0 0;
  margin-bottom: 0.5rem;
}

.bar-fill {
  background: var(--primary-gold);
  transition: height 0.8s ease;
}

.bar-fill.without {
  background: var(--gold-light);
}

.bar-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
}

.bar-value {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.progress-item {
  margin: 1.5rem 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--card-bg-alt);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-gold);
  border-radius: 4px;
  transition: width 1s ease;
}

.donut-chart {
  width: 140px;
  height: 140px;
  margin: 1.5rem auto;
  position: relative;
}

.donut-svg {
  width: 100%;
  height: 100%;
}

#donut-progress {
  transition: var(--transition-longer);
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.donut-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.results-grid-140 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}
