/* Captions and source lines: the one place to style them.
   The build copies this file into the published assets folder and links it from every page.
   Chapters shouldn't set their own caption styles; if a caption needs a different look, change it here.

   Two tiers:
   1. Captions under images and figures: small sans-serif, dark enough to read easily, bold lead sentence.
   2. Source lines and credits (stat-card sources, chart sources): smaller, still readable. */

/* 1. Captions */
.etb figure figcaption,
.etb .etb-figure-caption,
.etb .etb-goldilocks-caption {
  font-family: sans-serif;
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
  color: #3d3d3d;
  text-align: left;
  margin-top: .6rem;
}
.etb figure figcaption strong,
.etb .etb-figure-caption strong,
.etb .etb-goldilocks-caption strong {
  color: #1a1a1a;
}
/* Bordered "card" figures (chapter mental anchors): the caption sits inside the card. */
.etb figure.etb-mental-anchor figcaption {
  margin: 0;
  padding: .7rem 1rem;
  border-top: 1px solid #eee;
}

/* 2. Source lines and credits */
.etb .etb-stat-source,
.etb .etb-bars-src {
  font-family: sans-serif;
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.5;
  color: #666;
}
