/* Take-home pay: styles only this tool uses. The layout, stat tiles, option
   cards, notices, tables, stacked bars and charts are shared in
   ../assets/toolkit.css. */

/* ── Stat tiles: four across on wide screens ─────────────── */
@media (min-width: 1100px) { #statGrid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
#statGrid .stat-value { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* ── Payslip ─────────────────────────────────────────────── */
.payslip th, .payslip td { white-space: nowrap; }
@media (max-width: 560px) {
  .payslip { font-size: 0.8125rem; }
  .payslip td:first-child { white-space: normal; min-width: 96px; }
  .payslip th, .payslip td { padding-left: 6px; padding-right: 6px; }
}
.payslip tr.section td {
  padding-top: 18px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted);
  background: none;
}
.payslip tbody tr.section:hover td { background: none; }
.payslip tr.total td { border-top: 1.5px solid var(--border); }
.payslip td.na { color: var(--muted); }

/* ── Where the extra goes ────────────────────────────────── */
.diff td:first-child { white-space: normal; }

/* ── What your next £1 is worth ──────────────────────────── */
.next-pound {
  display: grid; grid-template-columns: auto 1fr; gap: 12px 32px;
  align-items: center; margin-bottom: 20px;
}
@media (max-width: 560px) { .next-pound { grid-template-columns: 1fr; } }
.next-pound-value { display: flex; flex-direction: column; }
#nextKeep {
  font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1; color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.next-pound-of { font-size: 0.8125rem; color: var(--muted); margin-top: 6px; }
.next-pound-list {
  list-style: none; display: flex; flex-direction: column; gap: 4px;
  font-size: 0.875rem; color: var(--muted);
}
.next-pound-list li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); padding: 4px 0; }
.next-pound-list li span:last-child { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.curve-title { margin-bottom: 8px; }
.curve-note { margin-top: 10px; font-size: 0.8125rem; color: var(--muted); line-height: 1.55; }
