/* Article "Dollar cost averaging vs lump sum" (pipeline/pages/art_dca.py,
   js/art-dollar-cost-averaging.js), on top of style.css and articles.css.
   Classes start with .dc-. */

.dc-plot-gap { min-height: 360px; }
.dc-plot-line { min-height: 360px; }
@media (max-width: 640px) {
  .dc-plot-gap, .dc-plot-line { min-height: 300px; }
}

/* the gap strip: the lump sum ahead above zero, the spreading ahead below */
.dc-area { stroke: none; }
.dc-area.up { fill: var(--spx); fill-opacity: 0.85; }
.dc-area.down { fill: var(--bad); fill-opacity: 0.85; }
.dc-zero { stroke: var(--ink); stroke-opacity: 0.45; stroke-width: 1.2; }
.dc-side { fill: var(--muted); font: 600 12px/1 var(--font); }

/* the switch of the spreading length sits in the chart's head */
.dc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding-right: 44px; /* room for the full-screen button in the figure's corner */ }
.dc-head .legend { margin: 0; }

/* the long table by starting year: two header rows, a column group per horizon */
.dc-years th.dc-grp { text-align: center; border-left: 1px solid var(--border); }
.dc-years td:nth-child(2), .dc-years td:nth-child(4), .dc-years td:nth-child(6) { border-left: 1px solid var(--border); }
