/* Sinking fund, paycheck, Christmas and savings challenge calculator pages. Loaded after calc.css. */
.goals td:nth-child(1) { width: 24%; }
.goals td:nth-child(4) { width: 19%; }
.goals td:nth-child(5) { width: 13%; }
.goals th, .goals td, .bills th, .bills td { padding-left: 4px; padding-right: 4px; }
.goals select { padding-left: 8px; padding-right: 4px; font-size: 15px; }
.debts input[data-k="months"] { font-family: var(--mono); }
button:disabled { opacity: 0.45; cursor: default; }
.per th { color: var(--ink); font-size: 15px; }
.per th, .per td { border-bottom: 1px solid var(--line); padding: 10px 6px; vertical-align: top; }
.per th { overflow-wrap: anywhere; }
.per td { text-align: right; font-family: var(--mono); white-space: nowrap; }
.per thead th { font-size: 13px; color: var(--muted); }
.per thead th:last-child { text-align: right; }
.per .note { display: block; font: 400 13.5px/1.45 var(--text); color: var(--muted); }
.tile .v { overflow-wrap: anywhere; }

/* Christmas budget and savings challenge pages */
.gifts th, .gifts td { padding-left: 4px; padding-right: 4px; }
.gifts td:nth-child(1) { width: 42%; }
label.f > input { margin-top: 5px; }
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-height: 45px; }
select:disabled { opacity: 0.6; }
.schedule { max-height: 440px; overflow: auto; padding-top: 0; }
.schedule table.nums thead th { position: sticky; top: 0; background: var(--white); }
.schedule table.nums td, .schedule table.nums thead th:nth-child(n+3) { text-align: right; font-family: var(--mono); white-space: nowrap; }
.schedule table.nums thead th { font-family: var(--text); }
.schedule table.nums td:nth-child(2) { text-align: left; font-family: var(--text); }

/* the product box: the main button on these pages */
.buy { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 26px; align-items: center; margin: 28px 0 8px; border: 2px solid var(--amber); box-shadow: var(--shadow-lg); }
.buy h2 { margin: 0 0 10px; }
.buy ul { padding-left: 20px; margin: 0 0 16px; font-size: 15.5px; }
.buy img { width: 100%; border-radius: 14px; background: var(--forest); }
.buy .fine { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }

@media (max-width: 640px) {
  .buy { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .buy .btn { width: 100%; }
  .goals td:nth-child(1), .goals td:nth-child(4), .goals td:nth-child(5) { width: auto; }
  .bills td:nth-child(2) { align-self: end; }
  .gifts td:nth-child(1) { width: auto; }
  .gifts td:last-child { grid-column: 1 / -1; justify-self: end; }
  .schedule table.nums th, .schedule table.nums td { padding-left: 3px; padding-right: 3px; font-size: 13px; }
}
