/* Article "Ten million rubles since 2021" (/articles/russia-portfolio-since-2021/), on top of style.css and articles.css.
   The parts use the shared series classes (c5 deposits, c6 reserve, a-bond OFZ, a-gold, a-home dollars, a-spx shares,
   a-btc bitcoin); the inflation line is a dashed ink line everywhere. Classes start with .pf-. */

.pf-plot-waffle, .pf-plot-total, .pf-plot-quilt, .pf-plot-single { min-height: 180px; }
.pf-plot-path, .pf-plot-gain, .pf-plot-entry { min-height: 280px; }
.pf-plot-waffle svg, .pf-plot-total svg, .pf-plot-quilt svg, .pf-plot-single svg, .pf-plot-entry svg { display: block; width: 100%; }
.art > .pf-gap { margin-top: 14px; }

/* shared bits */
.pf-hit { fill: transparent; }
.pf-dim { opacity: 0.2; }
.pf-name { fill: var(--ink); font: 650 12.5px/1 var(--font); }
.pf-row { fill: var(--ink-2); font: 500 12.5px/1 var(--font); }
.pf-val { fill: var(--ink); font: 600 12px/1 var(--mono); }
.pf-gain { font: 650 11.5px/1 var(--mono); fill: var(--ink-2); }
.pf-top { font: 700 12.5px/1 var(--mono); fill: var(--ink); }
.pf-gain.up, .pf-top.up, .pf-rel.up { fill: var(--good); }
.pf-gain.down, .pf-top.down, .pf-rel.down { fill: var(--bad); }
.pf-h { fill: var(--ink); font: 700 17px/1 var(--font); letter-spacing: -0.01em; }
.pf-lbl { fill: var(--ink); font: 650 12px/1 var(--mono); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.pf-sub { fill: var(--ink-2); font: 500 11.5px/1 var(--font); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.pf-need { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 4; }
.pf-need-halo { fill: none; stroke: var(--surface); stroke-width: 4.5; opacity: 0.75; }
.ln.pf-need-sw { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 4; }
.ln.pf-put-sw { stroke: var(--muted); stroke-width: 1.4; }
.ln.pf-net-sw { stroke: var(--ink); stroke-width: 3; }
.ln.pf-avg-sw { stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 6 4; }
.sw-sq.pf-port-sw { background: var(--ink); }
.sw-sq.pf-cpi-sw { background: var(--track); outline: 1.5px dashed var(--muted); outline-offset: -1.5px; }
.sw-sq.pf-buy-sw { background: var(--surface); border: 2px solid var(--ink); border-radius: 50%; box-sizing: border-box; }
@media (max-width: 640px) { .pf-name, .pf-row { font-size: 11.5px; } .pf-val { font-size: 11px; } .pf-h { font-size: 15px; } }

/* squares */
.pf-sq { stroke: none; }

/* the path */
.pf-area { fill-opacity: 0.9; stroke: var(--surface); stroke-width: 0.7; }
.pf-low { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.pf-lead { stroke: var(--ink); stroke-width: 1.2; }

/* earned by year */
.pf-seg { stroke: var(--surface); stroke-width: 1; }
.pf-in { font: 650 10.5px/1 var(--mono); fill: #fff; pointer-events: none; }
.pf-in-dark { fill: #2b2400; }
.pf-net { stroke: var(--ink); stroke-width: 3; }
.pf-zero { stroke: var(--ink); stroke-width: 1.4; }
.pf-col-on { fill: var(--hover, rgba(127, 127, 127, 0.12)); }

/* the quilt */
.pf-q-bg { fill-opacity: 0.17; }
.pf-q-port { fill: var(--ink); }
.pf-q-cpi { fill: var(--track); stroke: var(--muted); stroke-dasharray: 4 3; }
.pf-q-n { fill: var(--ink); font: 600 11.8px/1 var(--font); }
.pf-q-s { font-size: 10.5px; }
.pf-q-v { fill: var(--ink); font: 700 12px/1 var(--mono); }
.pf-q-inv { fill: var(--surface); }
.pf-tile { cursor: default; }

/* all in one thing */
.pf-bar-port { fill: var(--ink); }
.pf-bar-rub { fill: var(--s6); opacity: 0.75; }
.pf-row-port { fill: var(--track); }
.pf-put-line { stroke: var(--muted); stroke-width: 1.2; }

/* the share index */
.pf-idx { fill: none; stroke: var(--spx); stroke-width: 1.8; stroke-linejoin: round; }
.pf-base { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 3; }
.pf-halt { fill: var(--track); }
.pf-zoom { fill: var(--track); opacity: 0.7; }
.pf-avg { stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 6 4; }
.pf-buy { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.pf-buy-n { font: 750 10.5px/1 var(--font); fill: var(--ink); pointer-events: none; }
.pf-buy-s { fill: var(--ink); }
.pf-end { fill: var(--spx); stroke: var(--surface); stroke-width: 1.5; }

/* tables */
.pf-table .sw-sq { margin-right: 7px; vertical-align: -1px; }
.pf-table td.up { color: var(--good); }
.pf-table td.down { color: var(--bad); }
.pf-table tr.pf-sum th, .pf-table tr.pf-sum td { font-weight: 700; border-top: 1.5px solid var(--ink); }
.pf-table td.pf-tot { font-weight: 700; }

/* the two results of the share purchases */
.pf-two .pf-res { display: grid; gap: 4px; padding: 16px 18px; }
.pf-res b { font: 650 clamp(22px, 2.6vw, 28px)/1.15 var(--mono); color: var(--ink); letter-spacing: -0.01em; }
.pf-res-sub { color: var(--muted); font-size: 14.5px; }
