/* Article "Nine assets in Russia since 2021" (/articles/russia-assets-since-2021/), on top of style.css and articles.css.
   The nine assets keep the colors of the Ruble Time Machine (css/tmrub.css): the site's shared asset classes where it
   has one (a-btc, a-spx shares, a-gold, a-bond deposit, a-home apartment) and four of the page's own below.
   The inflation line is a dashed ink line everywhere. Classes start with .ra-. */

:root { --ra-usd: #2f9e5a; --ra-eur: #5e5ce6; --ra-ofz: #af52de; --ra-rub: var(--muted); }
:root[data-theme="dark"], :root[data-theme="black"] { --ra-usd: #3ccf74; --ra-eur: #8e8cff; --ra-ofz: #d08cff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --ra-usd: #3ccf74; --ra-eur: #8e8cff; --ra-ofz: #d08cff; } }

.ln.ra-usd { stroke: var(--ra-usd); } .ln.ra-eur { stroke: var(--ra-eur); } .ln.ra-ofz { stroke: var(--ra-ofz); } .ln.ra-rub { stroke: var(--ra-rub); }
.ln.ra-usd, .ln.ra-eur, .ln.ra-ofz, .ln.ra-rub { stroke-width: 2.2; }
.dot.ra-usd, .bar.ra-usd { fill: var(--ra-usd); } .dot.ra-eur, .bar.ra-eur { fill: var(--ra-eur); }
.dot.ra-ofz, .bar.ra-ofz { fill: var(--ra-ofz); } .dot.ra-rub, .bar.ra-rub { fill: var(--ra-rub); }
.sw-sq.ra-usd { background: var(--ra-usd); } .sw-sq.ra-eur { background: var(--ra-eur); }
.sw-sq.ra-ofz { background: var(--ra-ofz); } .sw-sq.ra-rub { background: var(--ra-rub); }
.ln.ra-cpi { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 4; }
.dot.ra-cpi { fill: var(--ink); }

/* legend swatches of the ranking chart */
.sw-sq.ra-after-sw { background: var(--ink-2); }
.sw-sq.ra-tax-sw { background: var(--ink-2); opacity: 0.32; }
.ln.ra-need-sw { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 4; }
.ln.ra-put-sw { stroke: var(--muted); stroke-width: 1.4; }

/* the ranking chart */
.ra-plot-bars { min-height: 180px; }
.ra-plot-bars svg { display: block; width: 100%; }
.ra-plot-lines { min-height: 300px; }
.ra-hit { fill: transparent; }
.ra-taxed { opacity: 0.32; }
.ra-name { fill: var(--ink); font: 600 12.5px/1 var(--font); }
.ra-val, .ra-rel { pointer-events: none; }
.ra-val { fill: var(--ink); font: 650 12px/1 var(--mono); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.ra-rel { fill: var(--ink-2); font: 600 11.5px/1 var(--mono); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.ra-rel.up { fill: var(--good); }
.ra-rel.down { fill: var(--bad); }
.ra-put { stroke: var(--muted); stroke-width: 1.2; }
.ra-need { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 4; }
.ra-need-halo { fill: none; stroke: var(--surface); stroke-width: 4.5; opacity: 0.75; }
@media (max-width: 640px) { .ra-name { font-size: 11.5px; } .ra-val { font-size: 11px; } }

/* tables */
.art > .ra-gap { margin-top: 14px; }
.ra-table .sw-sq { margin-right: 7px; vertical-align: -1px; }
.ra-table td.up { color: var(--good); }
.ra-table td.down { color: var(--bad); }
.ra-table tr.ra-infl th, .ra-table tr.ra-infl td { font-style: italic; border-top: 1.5px dashed var(--ink); border-bottom: 1.5px dashed var(--ink); }
.ra-table td.ra-tot { font-weight: 700; }
.ra-table td.ra-hi { font-weight: 750; }
.ra-table td.ra-lo { text-decoration: underline; text-underline-offset: 3px; }
.ra-table td.ra-text { text-align: left; white-space: normal; min-width: 240px; max-width: 420px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); font-variant-numeric: normal; }
.ra-risk td.ra-text { min-width: 220px; }
