/* Dividend reinvestment calculator: page-only styles on top of the shared style.css. */
.dv-big { color: var(--gold); }
.dv-gold { color: var(--gold); }
.legend-static span { display: inline-flex; align-items: center; gap: 7px; }
.dv-sq-own { background: var(--base-fill); }
.dv-sq-drip { background: var(--gold-area); }
.dv-goal-chip { display: inline-block; width: 18px; border-top: 1.5px dashed var(--ink); }

/* inputs */
.dv-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dv-row3 .pct input { padding-right: 26px; }
#yield-hint { font-size: 0.78rem; }
#yield-hint.is-warn { color: var(--rust); }
.dv-goal-field { max-width: 14rem; }
.preset-custom { width: 5.4rem; }

/* main chart */
.dv-chart .b-own { fill: var(--base-fill); }
.dv-chart .b-drip { fill: var(--gold-area); }
.dv-chart .dv-bar.is-dim { opacity: 0.45; }
.dv-chart .dv-goal { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 5 4; }
.dv-chart .dv-goal-label { fill: var(--ink); font-weight: 600; }
.dv-chart .dv-hit { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.dv-chart .dv-end-v { fill: var(--gold); }
.dv-chart .dv-sel { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.dv-chart .tag-v, .dv-chart .dv-goal-label, .dv-chart .dv-note { paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.dv-chart .dv-note { fill: var(--muted); font-size: 11.5px; }
.tip .dv-t-drip span:last-child { color: var(--gold); font-weight: 600; }
.tip .dv-t-yr { font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; color: var(--muted); margin-left: 4px; }

/* year table */
#years { padding-top: 56px; }
#years h2 { margin-bottom: 10px; }
.dv-table { margin-top: 18px; }
.dv-table tr.is-goal th, .dv-table tr.is-goal td { background: var(--gold-soft); }
.dv-table .dv-yr-n { color: var(--muted); font-weight: 400; font-size: 0.8em; margin-left: 4px; }
.dv-table td.dv-drip { color: var(--gold); }
#years-msg b { color: var(--gold); }

/* while inputs are invalid, the old result stays but fades */
.dv-invalid .stage, .dv-invalid #years { opacity: 0.4; transition: opacity 0.2s; }
.stats.dv-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .stats.dv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .legend-static .dv-long { display: none; } }
@media (min-width: 601px) { .legend-static .dv-short { display: none; } }
