/* Styles that only the home loan page needs.

   Everything here is scoped to .loan-page and uses the existing tokens from styles.css, so the
   shared header, footer, result hero, tiles and disclosures are untouched. The one real layout
   decision is the fun-facts list: five full-width strips, one under the other, at every width. */

/* ---------------------------------------------------------------- The fun facts */

.loan-page .calc-info .fact-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.loan-page .calc-info .fact {
  min-width: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--highlight);
  border-radius: 0 12px 12px 0;
  background: var(--accent);
}
.loan-page .calc-info .fact h3 { margin: 0 0 6px; font-size: 0.95rem; line-height: 1.4; }
.loan-page .calc-info .fact p { margin: 0; font-size: 0.9rem; line-height: 1.55; }

/* ---------------------------------------------------------------- The method */

/* The five steps are a numbered sequence, so they keep their numbers and their own line height
   rather than turning into another run of paragraphs. */
.loan-page .loan-steps { margin: 12px 0 6px; padding-left: 22px; }
.loan-page .loan-steps li { margin-bottom: 8px; line-height: 1.6; }

/* ---------------------------------------------------------------- Sources */

.loan-page .loan-sources { margin: 12px 0 0; padding-left: 20px; }
.loan-page .loan-sources li { margin-bottom: 8px; line-height: 1.55; }
.loan-page .loan-sources a { color: var(--primary); }
.loan-page .loan-sources a:focus-visible { outline: 2px solid var(--highlight); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- Six tiles */

/* Six supporting figures read better three across in the results panel; the shared default is two. */
.loan-page .loan-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1000px) {
  .loan-page .loan-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .loan-page .loan-tiles { grid-template-columns: minmax(0, 1fr); }
}
