/* Michigan Plate Readers: the agency page's figures section (site/audit_summary.py page_figures; templates/agency.html links this file on the
   web page only). Kept out of site.css on purpose: the PDF copies' content hash covers site.css (build.py pdf_copies), and the copies never
   carry this section, so a change here must not reprint them. Tokens (--ink, --grid, --content ...) come from site.css. */
/* the report's Figure 1 and Figure 2 and the page's bar charts, drawn on a white plate in the report's inks, so they read the same in dark mode */
.page-figs { max-width: var(--content); margin: 0 0 2rem; }
.page-figs figure.pf-figure { margin: 1rem 0 1.4rem; max-width: none; }
.page-figs .pf-plate { background: #fff; color: #111; border: 1px solid var(--grid); border-radius: 2px; padding: .6rem .7rem .5rem; }
.page-figs .pf-plate svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.page-figs figcaption { font-size: .8125rem; line-height: 1.45; color: var(--ink-2); margin: .45rem 0 0; max-width: none; }
.page-figs figcaption strong { color: var(--ink); }
.page-figs ol.pf-markers { margin: .35rem 0 0 1.3rem; padding: 0; }
.page-figs ol.pf-markers li { margin: 0 0 .15rem; max-width: none; }
.page-figs .pf-counts { margin: 1rem 0 1.4rem; }
.page-figs .pf-counts dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .8rem 1.2rem; margin: 0 0 .4rem; }
.page-figs .pf-counts dl > div { border-left: 2px solid var(--axis); padding: .1rem 0 .1rem .7rem; }
.page-figs .pf-counts dt { font-size: .8125rem; line-height: 1.35; color: var(--ink-2); }
.page-figs .pf-counts dd { margin: .15rem 0 0; font: 500 1.25rem/1.25 var(--mono); font-variant-numeric: tabular-nums; }
.page-figs .pf-counts p.muted { font-size: .8125rem; max-width: none; }
.page-figs .pf-bars figure.pf-figure { max-width: 34rem; }      /* a bar chart is drawn narrower than Figure 1 (BAR_W), so its labels print near the text size; wider, they would grow past it */
.page-figs .pf-counts dd.pf-date { font-size: 1.0625rem; }
/* Figure 1 and the event-log figure carry two drawings: the report's (660 units wide, .pf-wide) from 36em up, and a narrow one (360 units,
   audit_summary NARROW_W, .pf-narrow) below it, so on a phone the figure fits the screen with legible labels and nothing scrolls sideways.
   display: none also takes the hidden drawing out of the accessibility tree, so the figure is read once at any width. */
.page-figs .pf-narrow { display: none; }
@media (max-width: 36em) {
  .page-figs .pf-plate { padding: .4rem .45rem .35rem; }
  .page-figs .pf-wide { display: none; }
  .page-figs .pf-narrow { display: block; }
}
@media print { .page-figs figure.pf-figure, .page-figs .pf-counts { break-inside: avoid; page-break-inside: avoid; } }
