/* Compound interest calculator refinements layered on the approved calculator system. */

.compound-interest-calculator-page .warning-box {
  margin: 32px 32px 0;
  padding: 18px 20px;
  border: 1px solid #ead9a5;
  border-radius: 12px;
  background: #fffbeb;
}

.compound-interest-calculator-page .warning-box h3 {
  margin-bottom: 6px;
  color: #7a5b12;
  font-size: 16px;
}

.compound-interest-calculator-page .warning-box p {
  margin: 0;
  color: #5f4d20;
  font-size: 14px;
}

.compound-interest-calculator-page .warning-box .emoji-icon,
.compound-interest-calculator-page .results .emoji-icon {
  display: none !important;
}

.compound-interest-calculator-page #calculatorForm {
  display: grid;
  gap: 20px;
}

.compound-interest-calculator-page #calculatorForm .form-row,
.compound-interest-calculator-page #calculatorForm .input-group {
  margin: 0;
}

.compound-interest-calculator-page #calculatorForm > button {
  justify-self: start;
  margin-top: 2px;
}

/* The rate field carries the reference rates, so it has to read as guidance
   rather than as the muted afterthought the inline style made it. */
.compound-interest-calculator-page .input-hint {
  margin-top: 8px;
  color: #64736d;
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.compound-interest-calculator-page .breakdown-title {
  color: #075e47;
}

.compound-interest-calculator-page .results > .breakdown {
  margin-bottom: 22px;
}

/* The "Como interpretar" box is followed directly by the projection table,
   and neither carried a margin, so the two cards rendered flush. */
.compound-interest-calculator-page .results > .info-box {
  margin-bottom: 22px;
}

.compound-interest-calculator-page .results > .breakdown .result-item:last-child {
  border: 0;
  background: transparent;
}

/* Year-by-year projection: the signature element of this page and the only
   part the shared calculator system does not already cover. */
.compound-interest-calculator-page .table-scroll {
  overflow-x: auto;
  margin-top: 4px;
}

.compound-interest-calculator-page .results-table {
  min-width: 460px;
  border: 1px solid #dce5e1;
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.compound-interest-calculator-page .results-table th {
  padding: 12px 14px;
  border-bottom: 1px solid #dce5e1;
  background: #eaf6f0;
  color: #075e47;
  font-size: 13px;
  font-weight: 600;
}

.compound-interest-calculator-page .results-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #eef2f0;
  color: #26332e;
  font-variant-numeric: tabular-nums;
}

.compound-interest-calculator-page .results-table tr:last-child td {
  border-bottom: 0;
}

.compound-interest-calculator-page .results-table tr:hover td {
  background: #f8faf9;
}

/* Money columns align on the decimal, so the growth curve is readable
   down the column instead of only row by row. */
.compound-interest-calculator-page .results-table th:not(:first-child),
.compound-interest-calculator-page .results-table td:not(:first-child) {
  text-align: right;
}

.compound-interest-calculator-page .results-table td:first-child {
  color: #4a5b55;
  font-weight: 600;
}

.compound-interest-calculator-page .results-table td:last-child {
  color: #075e47;
  font-weight: 600;
}

.compound-interest-calculator-page .example-box {
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: 12px;
}

.compound-interest-calculator-page .educational-guide .educational-intro {
  margin: 18px 0;
}

.compound-interest-calculator-page .toggle-header {
  gap: 20px;
}

.compound-interest-calculator-page .toggle-header h3 {
  margin: 0;
}

.compound-interest-calculator-page .sidebar-list {
  padding-left: 20px;
}

.compound-interest-calculator-page .sidebar-list li {
  margin-bottom: 12px;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .compound-interest-calculator-page .warning-box {
    margin-right: 18px;
    margin-left: 18px;
  }

  .compound-interest-calculator-page #calculatorForm > button {
    width: 100%;
  }

  .compound-interest-calculator-page .results-table th,
  .compound-interest-calculator-page .results-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
}
