.retirement { background: var(--wash); }
.retirement-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.retirement-result { background: var(--ink); color: white; padding: clamp(20px, 4vw, 36px); border-radius: 10px; }
.retirement-result .kicker { color: var(--lilac); }
.retirement-result details p { color: white; }
.retirement-result :focus-visible { outline-color: var(--lilac); }
.retirement-result #result { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 750; line-height: 1.2; }
.retirement-grid fieldset { border: 0; margin: 0 0 1.2rem; padding: 0; min-inline-size: 0; }
.retirement-grid legend { font-weight: 800; font-size: 1.15rem; margin-bottom: .65rem; }
.reset { font: inherit; font-weight: 700; color: var(--ink); background: var(--lilac); border: 0; border-radius: 6px; padding: .65rem .8rem; cursor: pointer; }
.pension-figure { margin: 1.25rem 0; }
.pension-figure figcaption { font-size: .95rem; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 1rem 0; text-align: center; }
.plot { height: clamp(190px, 24vw, 290px); position: relative; display: grid; grid-template-rows: minmax(0, 1fr); justify-items: center; align-items: end; border-bottom: 1px solid #ffffff70; margin-bottom: 8px; }
.pillar { width: min(76%, 130px); }
.pillar.wish { height: var(--target-height); background: #eaeaff; color: var(--ink); display: grid; place-items: center; overflow: hidden; font-weight: 800; }
.pillar.stack { height: 100%; display: flex; flex-direction: column-reverse; }
.target-line { position: absolute; width: 100%; bottom: var(--target-height); border-top: 1px dashed white; pointer-events: none; }
.net { background: var(--accent); }
.other { background: #eaeaff; }
.savings { background: #82dfff; }
.gap { background: repeating-linear-gradient(135deg, var(--lilac) 0 5px, #888ccf 5px 7px); }
.chart-legend { margin: 1rem 0; }
.chart-legend > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #ffffff3d; }
.chart-legend dd { margin: 0; font-weight: 750; text-align: right; }
.swatch { display: inline-block; width: .75em; height: .75em; margin-right: .45em; border-radius: 2px; }
@media (max-width: 760px) { .retirement-grid { grid-template-columns: minmax(0, 1fr); } }

.retirement-grid .retirement-step {
  padding: 12px clamp(12px, 3vw, 20px) 8px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--step-accent);
  border-radius: 8px;
  background: var(--step-background);
}
.retirement-step legend {
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--step-background);
}
.retirement-step input { background: white; color: var(--ink); }
.retirement-step.statutory { --step-background: #e1f4ff; --step-accent: var(--accent); }
.retirement-step.budget { --step-background: var(--wash); --step-accent: #7779c5; }
.retirement-step.saving { --step-background: #e3edf5; --step-accent: var(--ink); }
