/* Figures in a blog post: numbered figures with captions, figures wider than the 68ch text column,
   a key-numbers row, and a 3D panel. Loaded by the posts that use them (front matter `styles:`).
   Site tokens only, so the Evening theme follows. */

/* Wide: from the text's left edge out to the page's width, without a horizontal scroll */
.post-body .post-wide {
  width: min(1120px, calc(100vw - 2 * var(--gutter)));
  max-width: none;
}

.post-body figure { margin: 2.2em 0; }
.post-body figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 1px solid var(--line);
}
.post-body figcaption {
  margin-top: 0.8em;
  max-width: 68ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.post-body figcaption b { color: var(--fg); font-weight: 600; }

/* Key numbers: ScanBarge's stat row (product.css), sized for a post */
.post-body .product-stats { margin: 2em 0 2.4em; }
.post-body .product-stats > div { padding: 20px 20px 20px 0; }
.post-body .product-stats > div + div { padding-left: 20px; }
@media (max-width: 560px) {      /* stacked, as product.css stacks it */
  .post-body .product-stats > div, .post-body .product-stats > div + div { padding: 16px 0; }
}
.post-body .product-stats b { font-size: clamp(28px, 3vw, 40px); margin-bottom: 10px; color: var(--accent); }
.post-body .product-stats .label { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* 3D panel: the lane figure's dark viewer (lane.css), on its own in the post */
.post-body .post-3d {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #0b0c0e;
}
@media (max-width: 768px) {
  .post-body .post-3d { aspect-ratio: 4 / 3; border-radius: 16px; }
}
.post-3d .settle-legend {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 500;
  pointer-events: none;
}
.post-3d .settle-legend i {
  display: block;
  width: 140px;
  height: 8px;
  margin: 6px 0 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #a51b1d, #e07a6c, #efeeea, #7fa8de, #2a5fa8);
}
.post-3d .settle-legend span { display: flex; justify-content: space-between; }
.lane-viewer--static .settle-legend { display: none; }
