/* Investment growth calculator. Shared colours, header and buttons come from /assets/site.css.
   Blue = money you put in, orange = growth (checked for contrast on the navy background). */
.calc { --panel: #121d45; --line: #26346b; --s1: #338ced; --s2: #e76624; }
.calc * { min-width: 0; }
.calc h1 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
.calc .lede { max-width: 68ch; margin-bottom: 24px; }

.grid { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 24px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 156px; gap: 10px; align-items: center; margin-bottom: 10px; }
.calc label { font-size: 14px; color: var(--muted); }
.calc input, .calc select {
  font: 16px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #0d1736; color: var(--ink);
}
.calc input { text-align: right; }
.calc input:focus-visible, .calc select:focus-visible, .calc button:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btns .btn { min-height: 44px; }

.verdict { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5em, 1fr)); gap: 16px; margin-bottom: 16px; }
.hero { grid-column: 1 / -1; }
.big { font-weight: 800; font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.k { font-size: 14px; color: var(--muted); }
.fv { font-weight: 700; font-size: 22px; white-space: nowrap; }

.fig { position: relative; height: 340px; }
.fig > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fig svg text { font-size: 13px; fill: var(--muted); }
.fig .gridline { stroke: var(--line); }
.fig .bar-put { fill: var(--s1); }
.fig .bar-gro { fill: var(--s2); }
.fig .hl { fill: #eef1fb; }

.keys { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 14px; }
.keys span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.keys .key-put::before { background: var(--s1); }
.keys .key-gro::before { background: var(--s2); }

.tip { position: absolute; pointer-events: none; background: #060c22; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; white-space: nowrap; display: none; z-index: 2; }
.calc details { margin-top: 16px; }
.calc summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.scroll { overflow-x: auto; }
.calc table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.calc th, .calc td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.calc th:first-child, .calc td:first-child { text-align: left; }
.note { font-size: 13px; color: var(--muted); margin-top: 24px; max-width: 90ch; }

@media (max-width: 860px) { .grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .fig { height: 280px; } .row { grid-template-columns: minmax(0, 1fr) 150px; } }
