/*
 * Board in numbers: reusable component (block bod/board-numbers, shortcode [bod_board_numbers], Etch component BoardNumbers).
 * Author: Adam Ma'anit. Matches the homepage "The Board in numbers" panel. Self-contained: it reads the site's surface
 * tokens when they exist and falls back to its own values when they do not.
 */
.bod-figures{
  --fig-ink:var(--bod-color-text,#111e3c);
  --fig-muted:var(--bod-color-muted,#455770);
  --fig-panel:var(--studio-sheet,#eef4f8);
  --fig-rule:var(--bod-color-border-soft,#c3cfde);
  display:block;box-sizing:border-box;inline-size:100%;margin:0;padding:0;color:var(--fig-ink);
}
@media (prefers-color-scheme:dark){body:not(.bod-light-only) .bod-figures{--fig-ink:var(--bod-color-text,#eef4f8);--fig-muted:var(--bod-color-muted,#bacbdc);--fig-panel:var(--studio-sheet,oklch(23.5% .052 265));--fig-rule:var(--bod-color-border-soft,oklch(41% .05 262))}}
html body .bod-figures .bod-figures__wrap{container-type:inline-size;box-sizing:border-box;margin:0;padding:0;max-inline-size:none}
html body .bod-figures--panel .bod-figures__wrap{padding:clamp(1.5rem,1rem + 2.4vw,3rem) clamp(1rem,.4rem + 2.6vw,2.5rem);background:var(--fig-panel);border-radius:6px}
html body .bod-figures .bod-figures__title{margin:0 0 clamp(1.5rem,1rem + 1.6vw,2.5rem);padding:0;border:0;font-family:inherit;font-size:clamp(1.75rem,1.3rem + 1.6vw,2.5rem);line-height:1.2;font-weight:700;letter-spacing:-.025em;text-transform:none;text-align:start;color:var(--fig-ink);text-wrap:balance;max-inline-size:none}
html body .bod-figures .bod-figures__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem 1rem;margin:0;padding:0;list-style:none;max-inline-size:none}
@container (min-width:34rem){html body .bod-figures .bod-figures__list{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.75rem 1.25rem}}
@container (min-width:50rem){html body .bod-figures .bod-figures__list{grid-template-columns:repeat(4,minmax(0,1fr));gap:2rem 1.5rem}}
html body .bod-figures .bod-figures__item{display:flex;flex-direction:column;gap:.25rem;min-inline-size:0;margin:0;padding:0;border:0;background:none}
/* The figure reads first, its label beneath; the markup keeps label then value so assistive technology hears "Deputies, 310" */
html body .bod-figures .bod-figures__value{order:-1;margin:0;padding:0;font-family:inherit;font-size:clamp(2rem,1.1rem + 4.4cqi,3.25rem);line-height:1.1;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.01em;color:var(--fig-ink);max-inline-size:none}
html body .bod-figures .bod-figures__label{margin:0;padding:0;font-family:inherit;font-size:1rem;line-height:1.4;font-weight:400;letter-spacing:normal;text-transform:none;color:var(--fig-ink);max-inline-size:none}
/* Compact: for a card or sidebar, where four figures sit in a row with smaller numerals */
html body .bod-figures--compact .bod-figures__title{font-size:clamp(1.25rem,1.1rem + .6vw,1.5rem);letter-spacing:-.015em;margin-block-end:1rem}
html body .bod-figures--compact .bod-figures__value{font-size:clamp(1.5rem,1rem + 2.6cqi,2.1rem)}
html body .bod-figures--compact .bod-figures__label{font-size:.875rem}
html body .bod-figures--compact .bod-figures__list{gap:1rem .875rem}
@media print{html body .bod-figures--panel .bod-figures__wrap{background:none;border:1px solid #999}}
