/* Lump sum vs monthly calculator: page-only styles on top of the shared style.css. */
.ls-big { color: var(--gold); }
.ls-gold { color: var(--gold); }
.ls-rust { color: var(--rust); }
.ls-sq-lump { background: var(--gold-area); }
.ls-sq-spread { background: var(--rust); opacity: 0.75; }
.ls-sq-in { background: var(--muted); opacity: 0.45; }
.ls-short { display: none; }
@media (max-width: 600px) { .ls-long { display: none; } .ls-short { display: inline; } }
.ls-custom { width: 5.6rem; }

/* main chart: every start month */
.ls-history .ls-up { fill: var(--gold-area); fill-opacity: 0.85; }
.ls-history .ls-dn { fill: var(--rust); fill-opacity: 0.75; }
.ls-history .ls-side { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ls-history .ls-side-up { fill: var(--gold); }
.ls-history .ls-side-dn { fill: var(--rust); }
.ls-history .ls-note { fill: var(--rust); font-size: 11px; font-weight: 600; }
.ls-history .ls-pick-line { stroke: var(--ink); stroke-width: 1; stroke-opacity: 0.55; }
.ls-history .ls-pick-dot { fill: var(--gold); stroke: var(--paper); stroke-width: 2; }
.ls-history .ls-pick-dot.is-dn, .ls-history .ls-hover-dn { fill: var(--rust); }
.ls-history svg { cursor: pointer; touch-action: pan-y; }

/* up close */
#up-close { padding-top: 56px; }
.ls-close-head { margin-bottom: 10px; }
.ls-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ls-pick select { width: auto; padding: 6px 28px 6px 10px; font-size: 0.9rem; }
.ls-jumps { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ls-jumps .preset { padding: 6px 10px; }
#close-msg b { font-weight: 700; color: var(--ink); }
#close-msg b.ls-g { color: var(--gold); }
#close-msg b.ls-r { color: var(--rust); }
.ls-paths .ls-spread { stroke-width: 1.8; }
.ls-paths .ls-end-spread { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.ls-paths .ls-gap-up { fill: var(--gold-area); fill-opacity: 0.18; }
.ls-paths .ls-gap-dn { fill: var(--rust); fill-opacity: 0.16; }
.ls-paths .ls-start-level { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.7; }
.ls-paths .ls-strip-bg { fill: var(--surface-2); }
.ls-paths .ls-strip { fill: var(--muted); fill-opacity: 0.45; }

/* by spread length */
.ls-table-msg { color: var(--muted); font-size: 0.95rem; }
.ls-table tbody tr { cursor: pointer; }
.ls-table tbody tr:hover th, .ls-table tbody tr:hover td { background: var(--surface-2); }
.ls-table tr.is-sel th, .ls-table tr.is-sel td { background: var(--gold-soft); }
.ls-table b { color: var(--gold); }
@media (max-width: 600px) { .ls-table th:nth-child(2), .ls-table td:nth-child(2) { display: none; } }

/* while inputs are invalid, the old result stays but fades */
.ls-invalid .stage, .ls-invalid #up-close, .ls-invalid #by-length { opacity: 0.4; transition: opacity 0.2s; }

/* four numbers in one row (the shared .stats rule defaults to three), two by two on phones */
.stats.ls-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .stats.ls-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.legend-static .ls-short { display: none; }
@media (max-width: 600px) { .legend-static .ls-long { display: none; } .legend-static .ls-short { display: inline; } }
/* the big number needs its label on phones too */
@media (max-width: 600px) { .answer .label.ls-label { display: block; flex-basis: 100%; } }
/* the middle 80% of start months */
.ls-history .ls-mid { stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: 5 4; stroke-opacity: 0.75; }
.ls-history .ls-mid-t { fill: var(--ink); font-size: 11px; font-weight: 600; stroke: var(--paper); stroke-width: 3px; paint-order: stroke; stroke-linejoin: round; }
.ls-history .ls-mid-c { fill: var(--muted); font-size: 11px; stroke: var(--paper); stroke-width: 3px; paint-order: stroke; stroke-linejoin: round; }
.chip.ls-chip-mid { border-color: var(--ink); border-top-style: dashed; border-top-width: 1.5px; }
