/* Blog article components: summary box, key numbers, bar charts, comparison tables,
   step lists, week planner, inline citations and the sources list.
   Loaded only by blog-*.html (bg + en). Static by design: nothing animates. */

/* "Накратко" summary at the top of an article */
.post-body .tldr { background: var(--blush); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 10px; }
.post-body .tldr h2 { margin: 0; font-size: 13px; font-family: var(--body); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mauve); }
.post-body .tldr ul { gap: 6px; font-size: 16px; line-height: 1.6; }

/* inline citation: <sup class="cite"><a href="#src-1">1</a></sup> */
.post-body sup.cite { font-size: .62em; line-height: 0; vertical-align: super; margin-left: 1px; }
.post-body sup.cite a { display: inline-block; min-width: 1.6em; padding: 1px 4px; border-radius: 6px; background: var(--blush); color: var(--mauve); font-weight: 700; text-align: center; text-decoration: none; }
.post-body sup.cite a:hover, .post-body sup.cite a:focus-visible { background: var(--rose); color: #fff; }

/* key numbers: <div class="facts"><div class="fact"><b>…</b><span>…</span></div>…</div> */
.post-body .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 6px 0; }
.post-body .fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; display: grid; gap: 6px; align-content: start; }
.post-body .fact b { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4vw, 38px); line-height: 1.05; color: var(--mauve); }
.post-body .fact span { font-size: 14px; line-height: 1.5; }

/* figure wrapper for charts, tables and diagrams */
.post-body .viz { margin: 8px 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 26px); display: grid; gap: 14px; }
.post-body .viz figcaption { font-family: var(--display); font-size: 19px; line-height: 1.35; }
.post-body .viz .viz-src { margin: 0; font-size: 12.5px; line-height: 1.5; opacity: .85; }

/* horizontal bars: <ul class="bars"><li style="--v:62%"><span>label</span><i></i><b>62%</b></li></ul>
   --v is the bar length (0–100%); add class="hl" to a row to highlight it */
.post-body .bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.post-body .bars li { display: grid; grid-template-columns: minmax(110px, 34%) 1fr auto; align-items: center; gap: 12px; font-size: 14.5px; line-height: 1.35; }
.post-body .bars i { position: relative; height: 12px; border-radius: 99px; background: var(--blush); overflow: hidden; }
.post-body .bars i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); border-radius: inherit; background: var(--rose); }
.post-body .bars li.hl i::before { background: var(--mauve); }
.post-body .bars b { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
@media (max-width: 520px) {
  .post-body .bars li { grid-template-columns: 1fr auto; row-gap: 6px; }
  .post-body .bars span { grid-column: 1 / -1; }
}

/* comparison table: <div class="table-wrap"><table class="compare">…</table></div> */
.post-body .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.post-body .compare { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.post-body .compare th, .post-body .compare td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.post-body .compare thead th { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mauve); border-bottom: 2px solid var(--rose); }
.post-body .compare tbody th { font-weight: 600; }
.post-body .compare tbody tr:last-child > * { border-bottom: 0; }

/* numbered steps / timeline: <ol class="steps"><li><b>Title</b><p>…</p></li></ol> */
.post-body .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.post-body .steps li { position: relative; counter-increment: step; padding: 0 0 20px 54px; }
.post-body .steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--mauve); color: #fff; font-weight: 700; font-size: 15px; }
.post-body .steps li:not(:last-child)::after { content: ""; position: absolute; left: 17.5px; top: 40px; bottom: 4px; width: 1px; background: var(--rose); }
.post-body .steps li:last-child { padding-bottom: 0; }
.post-body .steps b { display: block; font-size: 16.5px; line-height: 1.4; padding-top: 6px; }
.post-body .steps p { margin: 4px 0 0; font-size: 15.5px; line-height: 1.65; }

/* week planner: <div class="week"><div class="day on"><b>Пн</b><span>Reformer</span></div>…</div> */
.post-body .week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.post-body .week .day { border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; text-align: center; display: grid; gap: 4px; font-size: 12px; line-height: 1.3; background: var(--shell); }
.post-body .week .day b { font-size: 13px; }
.post-body .week .day.on { background: var(--mauve); border-color: var(--mauve); color: #fff; }
.post-body .week .day.lite { background: var(--blush); border-color: var(--rose); }
.post-body .week-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; }
.post-body .week-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--shell); border: 1px solid var(--line); }
.post-body .week-legend .on::before { background: var(--mauve); border-color: var(--mauve); }
.post-body .week-legend .lite::before { background: var(--blush); border-color: var(--rose); }
@media (max-width: 420px) { .post-body .week .day span { display: none; } }

/* two-column do / avoid cards: <div class="duo"><div class="yes">…</div><div class="no">…</div></div> */
.post-body .duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.post-body .duo > div { border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 8px; align-content: start; font-size: 15px; line-height: 1.6; }
.post-body .duo > div > b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.post-body .duo ul { gap: 6px; }
.post-body .duo .yes { background: var(--white); border: 1px solid var(--rose); }
.post-body .duo .no { background: var(--blush); border: 1px dashed var(--rose); }

/* pull quote from a source */
.post-body blockquote { margin: 6px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--rose); font-family: var(--display); font-size: 21px; line-height: 1.45; }
.post-body blockquote cite { display: block; margin-top: 8px; font-family: var(--body); font-style: normal; font-size: 13px; }

/* sources list at the end of the article */
.post-body .sources { margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.post-body .sources h2 { margin: 0; font-size: 22px; }
.post-body .sources > p { margin: 0; font-size: 14px; }
.post-body .sources ol { margin: 0; padding-left: 24px; display: grid; gap: 10px; font-size: 14px; line-height: 1.6; }
.post-body .sources li { scroll-margin-top: 110px; overflow-wrap: anywhere; }
.post-body .sources li:target { background: var(--blush); border-radius: 8px; box-shadow: 0 0 0 6px var(--blush); }
.post-body .sources a { color: var(--mauve); }
.post-body .reviewed { font-size: 13.5px; color: var(--muted); }
