/* Romanson Invest — long-read article page (site/articles/<slug>/). Loaded after home.css: tokens, base and the
   footer come from there. Built by tools/article_kit.py; the CSP allows no inline styles, so every size is a class
   or an SVG attribute. */

/* chart marks: validated with the dataviz palette check on all three surfaces (blue + orange, blue + red) */
:root {
  --c-blue: #2a78d6;
  --c-orange: #eb6834;
  --c-red: #e34948;
  --c-neutral: #A79A8F;
  --c-grid: var(--rule-soft);
  --a-col: 720px;
  --a-wide: 980px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="gray"]) {
    --c-blue: #3987e5; --c-orange: #d95926; --c-red: #e66767; --c-neutral: #6F665F;
  }
}
:root[data-theme="dark"] { --c-blue: #3987e5; --c-orange: #d95926; --c-red: #e66767; --c-neutral: #6F665F; }
:root[data-theme="gray"] { --c-blue: #3987e5; --c-orange: #d95926; --c-red: #e66767; --c-neutral: #70747A; }

/* one language at a time */
html[lang="en"] [data-l="ru"], html:not([lang="en"]) [data-l="en"] { display: none !important; }

/* ---------- page ---------- */
.a-wrap {
  display: block;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px));
}
.a-article > * { max-width: var(--a-col); margin-left: auto; margin-right: auto; }
.a-article > .a-wide { max-width: var(--a-wide); }

/* ---------- head ---------- */
.a-head { padding-bottom: 22px; border-bottom: 1px solid var(--ink); margin-bottom: 26px; }
.a-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12.5px; margin-bottom: 14px; }
.a-back { color: var(--muted); font-weight: 500; }
.a-back::before { content: "\2190\00a0"; }
.a-badge {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--claret-ink); background: var(--claret); padding: 1px 6px 2px;
}
.a-title {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(30px, 5.2vw, 46px); line-height: 1.1; letter-spacing: -.012em;
  color: var(--ink-2); text-wrap: balance;
}
.a-lead {
  margin-top: 16px; font-family: var(--serif); font-size: clamp(18px, 2.4vw, 21px); line-height: 1.45;
  color: var(--ink); text-wrap: pretty;
}
.a-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 18px; font-size: 13px; color: var(--muted); }
.a-meta > * + *::before { content: "\00b7"; margin: 0 8px; color: var(--faint); }
.a-by { font-weight: 600; color: var(--ink); }

/* ---------- text ---------- */
.a-article > p, .a-note p { font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.a-head a, .a-toc a, .a-fig-src a { text-decoration: none; }
.a-article > p, .a-article > .a-list { margin-top: 16px; }
.a-article > .a-h3 { margin-top: 34px; }
.a-article b, .a-article strong { font-weight: 600; color: var(--ink-2); }
.a-article a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--oxford) 45%, transparent); }
.a-article a:hover { text-decoration-color: currentColor; }
.a-h2 {
  margin-top: 52px; padding-top: 12px; border-top: 1px solid var(--ink); position: relative;
  font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3.4vw, 30px); line-height: 1.18;
  letter-spacing: -.006em; color: var(--ink-2); text-wrap: balance; scroll-margin-top: 16px;
}
.a-h2::before { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 3px; background: var(--grad); }
.a-h3 { font-family: var(--sans); font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--ink-2); margin-top: 34px; text-wrap: balance; }
.a-list { font-family: var(--serif); font-size: 19px; line-height: 1.55; padding-left: 0; }
.a-list > li { position: relative; padding-left: 26px; margin-top: 9px; }
.a-list > li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 7px; height: 7px; background: var(--claret); }
.a-list--num { counter-reset: n; }
.a-list--num > li { counter-increment: n; padding-left: 34px; }
.a-list--num > li::before {
  content: counter(n); left: 0; top: .2em; width: 22px; height: 22px; background: none;
  border: 1px solid var(--rule); border-radius: 50%; font: 600 12px/20px var(--sans); text-align: center; color: var(--muted);
}

/* ---------- key facts ---------- */
.a-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 4px; border-bottom: 1px solid var(--rule); }
.a-tile { padding: 4px 18px 18px; border-left: 1px solid var(--rule-soft); }
.a-tile:first-child { padding-left: 0; border-left: 0; }
.a-tile-v { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.05; color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.a-tile-v small { font-size: .5em; font-weight: 600; letter-spacing: 0; margin-left: 3px; }
.a-tile-l { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--muted); }
@media (max-width: 760px) {
  .a-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .a-tile:nth-child(odd) { padding-left: 0; border-left: 0; }
}

.a-note { margin-top: 26px; padding: 16px 20px 18px; background: var(--wheat); border-left: 3px solid var(--claret); }
.a-note-t { font: 600 12px/1.3 var(--sans) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--claret) !important; margin-bottom: 4px; }
.a-note p { font-size: 17px; line-height: 1.55; }
.a-note p + p { margin-top: 10px; }
.a-note .a-list { font-size: 17px; }
.a-note--plain { background: none; border: 1px solid var(--rule); border-left: 3px solid var(--oxford); }
.a-note--plain .a-note-t { color: var(--oxford) !important; }

/* ---------- figures ---------- */
.a-fig { margin: 34px auto 8px; padding: 12px 0 0; border-top: 1px solid var(--ink); }
.a-fig-t { font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--ink-2); text-wrap: balance; }
.a-fig-s { font: 400 14px/1.45 var(--sans) !important; color: var(--muted) !important; margin-top: 4px; max-width: 78ch; }
.a-fig-b { margin-top: 16px; }
.a-fig-src { font: 400 12.5px/1.45 var(--sans) !important; color: var(--faint) !important; margin-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-soft); }
.a-fig-src a { color: inherit; }

/* scheme: boxes joined by arrows; a row on wide screens, a column on phones */
.a-flow { display: flex; align-items: stretch; gap: 0; }
.a-node { flex: 1 1 0; min-width: 0; padding: 12px 14px 14px; background: var(--paper-2); border: 1px solid var(--rule); border-top: 3px solid var(--ink); }
.a-node--blue { border-top-color: var(--c-blue); }
.a-node--red { border-top-color: var(--c-red); }
.a-node--key { border-top-color: var(--claret); }
.a-node-k { display: block; font: 600 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.a-node-v { display: block; margin-top: 6px; font: 600 16px/1.3 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.a-node-d { display: block; margin-top: 5px; font: 400 13.5px/1.45 var(--sans); color: var(--muted); }
.a-node-d b { color: var(--ink); }
.a-node-bad { display: block; margin-top: 6px; font: 500 13.5px/1.45 var(--sans); color: var(--ink); }
.a-node-bad::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; background: var(--c-red); }
.a-arrow { flex: 0 0 34px; display: flex; align-items: center; justify-content: center; color: var(--muted); font: 400 20px/1 var(--sans); }
.a-arrow::before { content: "\2192"; }
.a-arrow--both::before { content: "\21C4"; }
.a-lane + .a-lane { margin-top: 18px; }
.a-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.a-sum .a-node-k { margin-bottom: 6px; }
.a-sum-r, .a-sum-t { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; padding: 7px 0; border-bottom: 1px solid var(--rule-soft); font: 400 14px/1.4 var(--sans); color: var(--ink); }
.a-sum-r b, .a-sum-t b { font: 600 14px/1.4 var(--mono); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.a-sum-r--bad > span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; background: var(--c-red); }
.a-sum-t { border-bottom: 0; border-top: 1px solid var(--ink); margin-top: -1px; font-weight: 600; }
.a-sum .a-node-d { margin-top: 8px; }
@media (max-width: 640px) { .a-duo { grid-template-columns: minmax(0, 1fr); } }
.a-lane-t { font: 600 12px/1.3 var(--sans) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; margin-bottom: 8px; }
@media (max-width: 760px) {
  .a-flow { flex-direction: column; }
  .a-arrow { flex-basis: 30px; }
  .a-arrow::before { content: "\2193"; }
  .a-arrow--both::before { content: "\21C5"; }
}
.a-legs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 14px; }
.a-leg { font: 400 14px/1.45 var(--sans); color: var(--muted); padding-left: 12px; border-left: 2px solid var(--rule); }
.a-leg b { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .a-legs { grid-template-columns: minmax(0, 1fr); } }

/* proportional strips: flex-grow steps (the CSP allows no inline widths) */
.fg-1 { flex-grow: 1; } .fg-2 { flex-grow: 2; } .fg-3 { flex-grow: 3; } .fg-4 { flex-grow: 4; } .fg-5 { flex-grow: 5; } .fg-6 { flex-grow: 6; } .fg-7 { flex-grow: 7; } .fg-8 { flex-grow: 8; } .fg-9 { flex-grow: 9; } .fg-10 { flex-grow: 10; } .fg-11 { flex-grow: 11; } .fg-12 { flex-grow: 12; } .fg-13 { flex-grow: 13; } .fg-14 { flex-grow: 14; } .fg-15 { flex-grow: 15; } .fg-16 { flex-grow: 16; } .fg-17 { flex-grow: 17; } .fg-18 { flex-grow: 18; } .fg-19 { flex-grow: 19; } .fg-20 { flex-grow: 20; } .fg-21 { flex-grow: 21; } .fg-22 { flex-grow: 22; } .fg-23 { flex-grow: 23; } .fg-24 { flex-grow: 24; } .fg-25 { flex-grow: 25; } .fg-26 { flex-grow: 26; } .fg-27 { flex-grow: 27; } .fg-28 { flex-grow: 28; } .fg-29 { flex-grow: 29; } .fg-30 { flex-grow: 30; } .fg-31 { flex-grow: 31; } .fg-32 { flex-grow: 32; } .fg-33 { flex-grow: 33; } .fg-34 { flex-grow: 34; } .fg-35 { flex-grow: 35; } .fg-36 { flex-grow: 36; } .fg-37 { flex-grow: 37; } .fg-38 { flex-grow: 38; } .fg-39 { flex-grow: 39; } .fg-40 { flex-grow: 40; } .fg-41 { flex-grow: 41; } .fg-42 { flex-grow: 42; } .fg-43 { flex-grow: 43; } .fg-44 { flex-grow: 44; } .fg-45 { flex-grow: 45; } .fg-46 { flex-grow: 46; } .fg-47 { flex-grow: 47; } .fg-48 { flex-grow: 48; } .fg-49 { flex-grow: 49; } .fg-50 { flex-grow: 50; }
.a-meter { display: flex; gap: 2px; height: 16px; margin-top: 7px; }
.a-meter i { display: block; flex-basis: 0; min-width: 0; }
.m-ok { background: var(--c-blue); }
.m-out, .a-sw--hatch { background: repeating-linear-gradient(135deg, var(--c-neutral) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--c-neutral); }
.a-op { flex: 0 0 34px; display: flex; align-items: center; justify-content: center; font: 600 24px/1 var(--serif); color: var(--ink-2); }
.a-node--num .a-node-v { font: 600 34px/1.05 var(--serif); letter-spacing: -.01em; margin-top: 4px; }
.a-node--out { border-top-color: var(--c-neutral); background: none; }
.a-rest { margin-top: 10px; }
@media (max-width: 760px) { .a-op { flex-basis: 30px; } }
.a-blocks { display: grid; gap: 20px; }
.a-brow-t { font: 400 14.5px/1.35 var(--sans); color: var(--muted); }
.a-brow-t b { font-weight: 600; color: var(--ink-2); }
.a-bline { display: flex; gap: 2px; align-items: flex-start; margin-top: 7px; }
.a-blk { flex-basis: 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.a-blk i { display: block; width: 100%; height: 26px; border-radius: 2px; }
.a-blk b { font: 600 12px/1 var(--mono); color: var(--ink); }
.k-att { background: var(--c-red); }
.k-ok { background: var(--c-blue); }
.k-out { background: repeating-linear-gradient(135deg, var(--c-neutral) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--c-neutral); }
.a-brow-d { font: 400 13.5px/1.45 var(--sans); color: var(--muted); margin-top: 7px; max-width: 78ch; }

/* pieces as points on one line */
.a-line-svg { display: block; width: 100%; height: auto; margin-top: 10px; }
.d-solid { stroke: var(--c-blue); stroke-width: 2; fill: none; }
.d-dash { stroke: var(--c-neutral); stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; }
.d-start { fill: var(--ink-2); stroke: var(--paper-2); stroke-width: 2; }
.d-ring { fill: var(--paper-2); stroke: var(--ink-2); stroke-width: 2; }
.d-miss { fill: var(--paper-2); stroke: var(--c-neutral); stroke-width: 2; stroke-dasharray: 3 2; }
.d-q { fill: var(--ink-2); font: 600 15px var(--sans); }
.a-legs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .a-legs--3 { grid-template-columns: minmax(0, 1fr); } }
.a-h3 { scroll-margin-top: 16px; }

/* 100 slots */
.a-waffle-box { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px 34px; align-items: center; }
.a-waffle { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.a-waffle i { display: block; aspect-ratio: 1; border-radius: 2px; }
.w-ok { background: var(--c-blue); }
.w-att { background: var(--c-red); }
.w-out { background: repeating-linear-gradient(135deg, var(--c-neutral) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--c-neutral); }
.w-51 { outline: 2px solid var(--ink-2); outline-offset: 1px; }
.a-keys { display: grid; gap: 14px; }
.a-key { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.a-key > i { width: 18px; height: 18px; border-radius: 2px; margin-top: 5px; }
.a-key-v { font: 600 26px/1.1 var(--serif); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.a-key-l { display: block; font: 400 14px/1.45 var(--sans); color: var(--muted); margin-top: 2px; }
.a-key-l b { color: var(--ink); font-weight: 600; }
.a-waffle-sum { grid-column: 1 / -1; font: 500 14.5px/1.5 var(--sans); color: var(--ink); padding-top: 12px; border-top: 1px solid var(--rule-soft); }
@media (max-width: 640px) { .a-waffle-box { grid-template-columns: minmax(0, 1fr); } .a-waffle { max-width: 300px; } }

/* steps on a line */
.a-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: s; }
.a-step { position: relative; padding: 22px 14px 0 0; }
.a-step::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--rule); }
.a-step:last-child::before { right: auto; width: 13px; }
.a-step::after { content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--c-red); box-shadow: 0 0 0 2px var(--paper); }
.a-step-t { display: block; font: 600 17px/1.2 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.a-step-d { display: inline-block; margin-top: 4px; font: 500 12px/1.3 var(--mono); color: var(--muted); }
.a-step-x { display: block; margin-top: 8px; font: 400 14px/1.45 var(--sans); color: var(--ink); }
.a-step-x b { font-weight: 600; }
@media (max-width: 760px) {
  .a-steps { grid-template-columns: minmax(0, 1fr); }
  .a-step { padding: 0 0 18px 28px; }
  .a-step::before { left: 6px; right: auto; top: 6px; bottom: -6px; width: 2px; height: auto; }
  .a-step:last-child::before { display: none; }
}

/* a share bar: the picture is a text-free SVG, the numbers are HTML */
.a-bars { display: grid; gap: 20px; }
.a-bar-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; align-items: baseline; }
.a-bar-n { font: 600 15px/1.3 var(--sans); color: var(--ink-2); }
.a-bar-p { font: 600 15px/1.3 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.a-bar { display: block; width: 100%; height: 16px; margin-top: 7px; }
.a-bar .b-blue, .a-dot--blue { fill: var(--c-blue); }
.a-bar .b-red, .a-dot--red { fill: var(--c-red); }
.a-bar .b-track { fill: var(--rule-soft); }
.a-bar-f { display: flex; flex-wrap: wrap; gap: 2px 20px; margin-top: 7px; font: 400 13.5px/1.45 var(--sans); color: var(--muted); }
.a-bar-f b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.a-sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: baseline; }
.a-sw--blue { background: var(--c-blue); } .a-sw--red { background: var(--c-red); } .a-sw--orange { background: var(--c-orange); }
.a-sw--line { height: 3px; width: 16px; vertical-align: middle; border-radius: 1px; }

/* the wait: events with one long gap */
.a-gap { display: flex; align-items: stretch; }
.a-ev { flex: 1 1 0; min-width: 0; position: relative; padding: 22px 12px 0 0; }
.a-ev::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--rule); }
.a-ev::after { content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--ink-2); box-shadow: 0 0 0 2px var(--paper); }
.a-ev--hit::after { background: var(--c-red); }
.a-ev:last-child::before { right: auto; width: 13px; }
.a-ev-d { display: block; font: 600 13px/1.3 var(--mono); color: var(--ink-2); }
.a-ev-x { display: block; margin-top: 6px; font: 400 13.5px/1.45 var(--sans); color: var(--ink); }
.a-ev--wait { flex-grow: 2.2; padding-right: 0; }
.a-ev--wait::before { background: none; border-top: 2px dashed var(--c-red); height: 0; }
.a-ev--wait::after { display: none; }
.a-ev--wait .a-ev-d { color: var(--c-red); font-size: 20px; font-family: var(--serif); }
.a-ev--wait .a-ev-x { color: var(--muted); padding-right: 12px; }
@media (max-width: 860px) {
  .a-gap { flex-direction: column; }
  .a-ev, .a-ev--wait { padding: 0 0 18px 28px; }
  .a-ev::before { left: 6px; right: auto; top: 6px; bottom: -6px; width: 2px; height: auto; }
  .a-ev--wait::before { border-top: 0; border-left: 2px dashed var(--c-red); width: 0; background: none; }
  .a-ev:last-child::before { display: none; }
}

/* 30-day timer */
.a-timer-ends { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; font: 400 13.5px/1.4 var(--sans); color: var(--muted); }
.a-timer-ends b { display: block; color: var(--ink); font-weight: 600; font-family: var(--mono); font-size: 13px; }
.a-timer-ends > :last-child { text-align: right; }
.a-timer-now { font: 500 14px/1.45 var(--sans) !important; color: var(--ink) !important; margin-bottom: 8px; }

/* table */
.a-table-wrap { overflow-x: auto; }
.a-table { width: 100%; border-collapse: collapse; font: 400 14.5px/1.45 var(--sans); }
.a-table th, .a-table td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule-soft); }
.a-table thead th { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.a-table tbody th { font-weight: 600; color: var(--ink-2); min-width: 150px; }
.a-table td { color: var(--ink); font-variant-numeric: tabular-nums; }
.a-table--num td { text-align: right; font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
.a-table--num thead th + th { text-align: right; }
@media (max-width: 640px) { .a-table tbody th { min-width: 118px; } .a-table { font-size: 13.5px; } }

/* line chart (drawn by article.js) */
.a-chart { position: relative; }
.a-chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.a-legend { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 10px; font: 400 13.5px/1.4 var(--sans); color: var(--ink); }
.c-grid { stroke: var(--c-grid); stroke-width: 1; }
.c-base { stroke: var(--rule); stroke-width: 1; }
.c-tick { fill: var(--muted); font: 400 12px var(--sans); font-variant-numeric: tabular-nums; }
.c-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-line--blue { stroke: var(--c-blue); } .c-line--orange { stroke: var(--c-orange); }
.c-dot { stroke: var(--paper); stroke-width: 2; }
.c-dot--blue { fill: var(--c-blue); } .c-dot--orange { fill: var(--c-orange); }
.c-mark { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.c-mark-t { fill: var(--ink-2); font: 600 12px var(--sans); }
.c-end { fill: var(--ink-2); font: 600 12.5px var(--sans); font-variant-numeric: tabular-nums; }
.c-cross { stroke: var(--muted); stroke-width: 1; }
.a-tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 150px; max-width: 260px; padding: 8px 10px 9px;
  background: var(--paper-2); border: 1px solid var(--rule); box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
  font: 400 13px/1.45 var(--sans); color: var(--ink);
}
.a-tip[hidden] { display: none; }
.a-tip-h { font-weight: 600; color: var(--ink-2); margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.a-tip-r { display: flex; justify-content: space-between; gap: 14px; white-space: nowrap; }
.a-tip-r b { font-family: var(--mono); font-weight: 600; font-size: 12.5px; }
.a-data { margin-top: 12px; font: 400 13.5px/1.4 var(--sans); }
.a-data > summary { cursor: pointer; color: var(--oxford); width: max-content; }
.a-data[open] > summary { margin-bottom: 8px; }
[data-tip-ru] { cursor: default; }

/* glossary, facts, sources */
.a-gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; margin-top: 18px; }
.a-gloss dt { font: 600 15px/1.35 var(--sans); color: var(--ink-2); }
.a-gloss dd { margin: 3px 0 0; font: 400 14.5px/1.5 var(--sans); color: var(--muted); }
@media (max-width: 640px) { .a-gloss { grid-template-columns: minmax(0, 1fr); } }
.a-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; margin-top: 20px; }
.a-colbox { border-top: 2px solid var(--ink); padding-top: 10px; }
.a-colbox--blue { border-top-color: var(--c-blue); } .a-colbox--orange { border-top-color: var(--c-orange); } .a-colbox--red { border-top-color: var(--c-red); }
.a-colbox-t { font: 600 12px/1.3 var(--sans) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; }
.a-colbox .a-list { font: 400 14.5px/1.5 var(--sans); margin-top: 4px; }
.a-colbox .a-list > li { padding-left: 16px; margin-top: 7px; }
.a-colbox .a-list > li::before { left: 0; top: .6em; width: 6px; height: 6px; background: var(--rule); }
@media (max-width: 760px) { .a-cols { grid-template-columns: minmax(0, 1fr); } }
.a-src { margin-top: 14px; font: 400 14.5px/1.5 var(--sans); }
.a-src > li { margin-top: 8px; padding-left: 16px; position: relative; color: var(--muted); }
.a-src > li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--rule); }
.a-src code { font: 400 12.5px var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.a-end { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--rule); font: 400 13.5px/1.5 var(--sans) !important; color: var(--muted) !important; }
.a-toc { margin-top: 22px; padding: 14px 0 4px; border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.a-toc-t { font: 600 12px/1.3 var(--sans) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; }
.a-toc ol { columns: 2; column-gap: 32px; margin: 8px 0 10px; counter-reset: c; font: 400 14.5px/1.4 var(--sans); }
.a-toc li { counter-increment: c; break-inside: avoid; padding: 3px 0 3px 24px; position: relative; }
.a-toc li::before { content: counter(c); position: absolute; left: 0; color: var(--faint); font-variant-numeric: tabular-nums; }
.a-toc a { text-decoration: none; color: var(--ink); }
.a-toc a:hover { color: var(--oxford); text-decoration: underline; }
@media (max-width: 640px) { .a-toc ol { columns: 1; } .a-article > p, .a-list { font-size: 18px; } }

@media print {
  .ri-chrome, .h-foot, .a-back, .a-data > summary { display: none !important; }
  .a-wrap { padding: 0; }
}
