.calculator-page .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.calculator-page .breadcrumbs a {
  color: var(--sky-strong);
  font-weight: 650;
}

.calculator-page .hero {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--sky);
}

.calculator-page .hero::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116,172,223,.26), transparent 68%);
  pointer-events: none;
}

.calculator-page .hero .lead {
  max-width: 68ch;
  margin-top: 10px;
  font-size: 15px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.calculator-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.field-label {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--money);
  box-shadow: 0 0 0 4px rgba(31,122,99,.13);
}

.field small {
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calculate-button {
  min-height: 46px;
  padding: 11px 16px;
  border: 0;
  border-radius: 11px;
  background: var(--money);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.calculate-button:hover {
  filter: brightness(.95);
}

.calculate-button:focus-visible {
  outline: 3px solid rgba(31,122,99,.22);
  outline-offset: 2px;
}

.calculator-result {
  border-color: rgba(31,122,99,.28);
  background: linear-gradient(145deg, #fff, var(--money-soft));
}

.calculator-result h2 {
  margin-top: 0;
}

.result-verdict {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31,122,99,.12);
  color: var(--money);
  font-size: 13px;
  font-weight: 750;
}

.data-warning {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--sky);
  border-radius: 7px;
  background: rgba(116,172,223,.11);
  color: var(--muted);
  font-size: 13px;
}

.comparison-table {
  min-width: 900px;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2),
.comparison-table th:last-child,
.comparison-table td:last-child {
  text-align: left;
}

.result-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(31,122,99,.16);
}

.result-row:last-child {
  border-bottom: 0;
}

.result-row dt {
  color: var(--muted);
  font-size: 14px;
}

.result-row dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.result-row.primary dd {
  color: var(--money);
  font-size: 20px;
}

.calculator-error {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e6a6a6;
  border-radius: 11px;
  background: #fff0f0;
  color: #7c2020;
  font-size: 14px;
}

.content-section {
  margin-top: 14px;
}

.content-section h2:first-child {
  margin-top: 0;
}

.formula {
  margin: 12px 0;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  border-left: 4px solid var(--sky);
  border-radius: 8px;
  background: var(--money-soft);
  color: var(--text);
  font-weight: 650;
}

.steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.steps li + li {
  margin-top: 6px;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.related-link {
  display: block;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f7f7f7;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.related-link:hover {
  border-color: rgba(42,111,158,.30);
  background: var(--sky-soft);
}

.table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.amortization-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.amortization-table th,
.amortization-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: right;
}

.amortization-table th:first-child,
.amortization-table td:first-child {
  text-align: left;
}

.amortization-table thead th {
  background: #f3f3f3;
  color: var(--text);
}

.hub-intro {
  max-width: 70ch;
  font-size: 15px;
}

.calculator-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}

.section-heading h2 {
  margin-top: 10px;
  font-size: 22px;
  padding-left: 12px;
  border-left: 4px solid var(--sky);
}

.section-heading p {
  max-width: 46ch;
  margin: 0;
  text-align: right;
}

.text-link {
  color: var(--money);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.calculator-card h2 {
  margin-top: 10px;
}

.calculator-card {
  border-top: 3px solid rgba(116,172,223,.72);
}

.calculator-card .card-cta {
  display: inline-block;
  margin-top: 5px;
  color: var(--money);
  font-size: 14px;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .calculator-layout,
  .calculator-cards,
  .related-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .calculator-layout .calculator-result {
    position: static;
  }

  .result-row.primary dd {
    font-size: 18px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .section-heading p {
    text-align: left;
  }
}
