/* The calculator on Precios #ahorro (7 Nov 2026, moved from /ahorro; «Web Suya Seitenplan»): DESIGN.md §4, «Savings
 * calculator». On the tint panel: the question and the controls on the left; on the right a white card with one big
 * figure, the month it pays off and the curve of what each pays over 36 months (calculadora.js draws it). What is saved
 * is an ink wash, never Limón (DESIGN.md §2: Limón has three jobs). Without the script the example's figures stand and
 * the chart's box stays empty at its final size, so nothing moves when the script arrives. */
.ws-calc2 { display: grid; gap: 28px; }
.ws-calc2__in { display: grid; gap: 14px; align-content: start; min-width: 0; }
.ws-calc2__in .ws-kicker, .ws-calc2__in h2 { margin: 0; }
.ws-calc2__hint { color: var(--muted); max-width: 46ch; margin: 0; }
.ws-calc2__label { font-weight: 700; margin: 8px 0 0; }
.ws-calc2__chips, .ws-calc2__seg { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-calc2__chips button, .ws-calc2__seg button {
  font: 700 1rem/1 var(--f-body); min-height: 44px; padding: 10px 16px; border-radius: 999px;
  border: 2px solid var(--fg); background: var(--surface); color: var(--fg); cursor: pointer; font-variant-numeric: tabular-nums;
}
.ws-calc2__chips button[aria-pressed="true"], .ws-calc2__seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.ws-calc2__own { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ws-calc2__own label { font-weight: 700; }
.ws-calc2__own input {
  width: 8em; min-height: 48px; border: 2px solid var(--fg); border-radius: var(--radius-btn); background: var(--surface);
  color: var(--fg); font: 700 1.2rem/1 var(--f-display); padding: 0 12px;
}
.ws-calc2__own input[aria-invalid="true"] { border-color: #B42318; }
.ws-calc2__out { background: var(--surface); border: 2px solid var(--fg); border-radius: 20px; padding: clamp(18px, 1rem + 1vw, 28px); display: grid; gap: 10px; min-width: 0; }
.ws-calc2__big { margin: 0; font: 700 clamp(2.8rem, 1.9rem + 4vw, 4.6rem)/1 var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ws-calc2__big small { display: block; margin-top: 8px; font: 700 1.1rem/1.2 var(--f-body); letter-spacing: 0; }
.ws-calc2__out.is-stale .ws-calc2__big, .ws-calc2__out.is-stale .ws-calc2__pay { opacity: .4; }
.ws-calc2__pay { margin: 0; font-size: 1.05rem; }
.ws-calc2__chart { display: block; width: 100%; height: auto; aspect-ratio: 600 / 270; }
.ws-calc2__chart text { font: 400 12px var(--f-body); fill: var(--muted); }
.ws-calc2__chart .theirs { stroke: var(--muted); stroke-width: 2.5; stroke-dasharray: 6 5; fill: none; }
.ws-calc2__chart .ours { stroke: var(--fg); stroke-width: 3; fill: none; }
.ws-calc2__chart .save { fill: var(--fg); opacity: .1; }
.ws-calc2__chart .grid { stroke: var(--line); stroke-width: 1; }
.ws-calc2__chart .mark { stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 3 4; }
.ws-calc2__chart .marktxt { fill: var(--fg); font-weight: 700; }
.ws-calc2__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--muted); margin: 0; }
.ws-calc2__legend i { display: inline-block; width: 22px; vertical-align: middle; margin-right: 6px; border-top: 3px solid var(--fg); }
.ws-calc2__legend i.d { border-top-style: dashed; border-top-color: var(--muted); }
.ws-calc2__legend i.s { height: 10px; border: 0; background: var(--fg); opacity: .15; }
.ws-calc2__note { margin: 0; color: var(--muted); font-size: .95rem; }
.ws-calc2 .ws-actions { margin: 6px 0 0; }
.ws-calc2__more { margin: 0; }
.ws-calc2__fine { margin: 18px 0 0; font-size: .88rem; color: var(--muted); max-width: 90ch; }
@media (min-width: 960px) { .ws-calc2 { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; } }
@media (prefers-reduced-motion: reduce) { .ws-calc2__chips button, .ws-calc2__seg button { transition: none; } }
