/* Compounding + drawdown-recovery calculators (see compound-growth.js) */
.compound-calc, .recovery-calc { margin: 1.6rem 0; padding: 1rem 1.1rem; border: 1px solid var(--rule); background: #fff; font-size: .92rem; }
.compound-calc .cg-title, .recovery-calc .cg-title { font-variant: small-caps; letter-spacing: .05em; color: var(--accent); margin-bottom: .6rem; }
.cg-field { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin: .35rem 0; }
.cg-field input { width: 7rem; font: inherit; padding: .25rem .4rem; border: 1px solid var(--rule); background: var(--paper); text-align: right; }
table.cg-out { font-size: .88rem; margin: .8rem 0 .4rem; }
td.cg-val { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.cg-strong { font-weight: 600; }
.cg-legend { display: flex; gap: 1.2rem; font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.cg-leg-item { display: inline-flex; align-items: center; gap: .35rem; }
.cg-sw { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; }
.cg-sw-paid, .cg-bar-paid { background: #b9b5a3; fill: #b9b5a3; }
.cg-sw-growth, .cg-bar-growth { background: var(--accent); fill: var(--accent); }
.cg-chart { width: 100%; height: auto; display: block; margin-top: .3rem; }
.cg-axis { stroke: var(--muted); stroke-width: 1; }
.cg-hit { fill: transparent; }
.cg-chart g:hover .cg-bar-paid { fill: #8f8b78; }
.cg-label { font-size: 11px; fill: var(--muted); font-family: inherit; }
.cg-note { color: var(--muted); font-size: .8rem; margin: .5rem 0 0; }
.cg-msg { margin: .5rem 0 0; font-weight: 600; }
