/* Mortgage Calculator — tool-specific styles */

.payment-headline {
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.payment-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.payment-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

/* Stacked breakdown bar */
.breakdown-bars {
  display: flex;
  width: 100%;
  height: 18px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 0.75rem;
}

.bd-bar {
  height: 100%;
  min-width: 2px;
  transition: width 0.35s ease;
}

.bd-pi  { background: #2563eb; }
.bd-tax { background: #f59e0b; }
.bd-ins { background: #10b981; }

/* Legend */
.breakdown-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breakdown-legend strong {
  color: var(--text);
}

.breakdown-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: baseline;
}

.dot-pi  { background: #2563eb; }
.dot-tax { background: #f59e0b; }
.dot-ins { background: #10b981; }

.mt-2 { margin-top: 1rem; }

@media (max-width: 480px) {
  .payment-value { font-size: 1.9rem; }
  .breakdown-legend { flex-direction: column; gap: 0.35rem; align-items: flex-start; }
}
