/* The crash calculator's own styles, after the shared ../css/tool.css. Colour keeps the essay's meaning: purple = the fund (units),
   yellow = your money (paid in, savings), red = showing a loss, green = up. */
.tc-money input[type="number"] { -moz-appearance: textfield; }
.tc-money input::-webkit-outer-spin-button, .tc-money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; width: 100%; box-sizing: border-box; border-radius: 16px; }
.seg2 button { border-radius: 12px; white-space: normal; }
.tc-field[hidden] { display: none; }

/* the month-by-month chart */
.mm { display: block; width: 100%; height: auto; }
.mm .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.mm .axis { stroke: var(--ink); stroke-width: 2; }
.mm .ax { font: 600 11px var(--mono); fill: var(--ink-2); }
.mm .paid { fill: none; stroke: #a8740a; stroke-width: 2.5; stroke-dasharray: 7 4; }
.mm .units { fill: none; stroke: #9b7fc4; stroke-width: 3.5; stroke-linejoin: round; }
.mm .cash { fill: none; stroke: #f2bb3b; stroke-width: 3.5; stroke-linejoin: round; }
.mm .below { fill: var(--red); opacity: 0.45; }
.mm .sold { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 3 3; }
.mm .sold-t { fill: var(--red-text); }
@media (max-width: 600px) { /* the chart is drawn 600 wide and shrinks ~2.3x on a phone: write and draw bigger to match */
  .mm .ax { font-size: 24px; }
  .mm .paid { stroke-width: 4.5; } .mm .units, .mm .cash { stroke-width: 6; } .mm .axis { stroke-width: 3; }
}
.tc-legend li { grid-template-columns: 14px 1fr auto; }
.tc-legend .sw-paid { background: repeating-linear-gradient(90deg, #a8740a 0 5px, #fff 5px 8px); }
.tc-legend .sw-units { background: #9b7fc4; } .tc-legend .sw-cash { background: #f2bb3b; } .tc-legend .sw-below { background: #f0a493; }

/* why keeping and selling differ: rows like the piece-by-piece list, under the delta pill */
.tc-parts.why { margin-top: 14px; }

/* the working card: money in dark yellow, units in purple, as on the sheet */
.hud-card .yellow { color: #a8740a; }
