/**
 * Affordability Calculator — page-specific styles
 * Paso A Casa
 *
 * Shared calculator-card/form/CTA-band components live in
 * /shared/css/tools.css and load before this file — only the two-tier
 * results layout unique to this tool is defined here.
 */

.afford-results-grid {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .afford-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.afford-result-card {
  background: var(--color-background);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-primary);
}

/* Maximum is the ceiling, not the win state — amber, not green, so it
   never visually competes with (or outshines) the comfortable estimate. */
.afford-result-max {
  border-top-color: var(--color-accent);
}

.afford-result-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.afford-result-price {
  font-size: 2.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--color-border);
}

.afford-result-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.afford-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.afford-result-row strong {
  font-size: var(--font-size-base);
  color: var(--color-text);
}

.afford-explainer {
  text-align: center;
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  line-height: var(--line-height-relaxed);
}

.afford-crosslinks {
  text-align: center;
  margin: var(--space-xl) 0;
}

.afford-crosslinks p {
  margin-bottom: var(--space-md);
}

.afford-crosslinks-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .afford-result-price {
    font-size: 1.75rem;
  }

  .afford-crosslinks-actions {
    flex-direction: column;
  }

  .afford-crosslinks-actions .btn {
    width: 100%;
  }
}
