/* Debt vs. net worth calculator (Make money make sense). Uses the .calc styles from the rent calculator. */

.calc-grid.calc-grid-chart {
	grid-template-columns: .8fr 1.2fr
}

.calc-chart {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 18px 18px 10px
}

	.calc-chart svg {
		display: block;
		width: 100%;
		height: auto
	}

.chart-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	font-weight: 700;
	font-size: 14px;
	color: var(--ink)
}

	.chart-legend li:before {
		content: '';
		display: inline-block;
		width: 16px;
		height: 4px;
		border-radius: 2px;
		margin-right: 8px;
		vertical-align: middle
	}

	.chart-legend .is-debt:before {
		background: var(--coral)
	}

	.chart-legend .is-net:before {
		background: var(--green)
	}

	.chart-legend .is-in:before {
		height: 0;
		border-radius: 0;
		background: none;
		border-top: 3px dashed var(--blue)
	}

	.chart-legend .is-growth:before {
		height: 0;
		border-radius: 0;
		background: none;
		border-top: 3px dashed #d49b00
	}

.chart-grid {
	stroke: var(--line);
	stroke-width: 1
}

.chart-zero {
	stroke: #9aa6b8;
	stroke-width: 1.5;
	stroke-dasharray: 4 4
}

.chart-label {
	font-family: inherit;
	font-size: 12px;
	fill: var(--muted)
}

.chart-empty {
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	fill: var(--muted)
}

.chart-line {
	fill: none;
	stroke-width: 3.5;
	stroke-linejoin: round;
	stroke-linecap: round
}

.chart-debt {
	stroke: var(--coral)
}

.chart-net {
	stroke: var(--green)
}

.chart-line.chart-in, .chart-line.chart-growth {
	stroke-width: 2.5;
	stroke-dasharray: 7 5
}

.chart-in {
	stroke: var(--blue)
}

.chart-growth {
	stroke: #d49b00
}

.calc-summary {
	margin: 0;
	font-size: 15px
}

	.calc-summary strong {
		color: var(--ink)
	}

@media(max-width:850px) {
	.calc-grid.calc-grid-chart {
		grid-template-columns: 1fr
	}
}