/* Evidence map shell (AT-5 / EM-5b). Rules are scoped to #evidence-root and use Framework theme
 * variables, so they follow the light and dark themes. */
#evidence-root { color: var(--theme-foreground); }
#evidence-root :focus-visible { outline: 3px solid var(--theme-foreground-focus); outline-offset: 2px; }
/* VD-24: the page head (h1, lead) is one full-bleed band from the shared design layer; the split header
   rules that stacked three boxes were removed. */
#evidence-root .result-count, #evidence-root .data-note { margin: 0.5rem 0 0; color: var(--theme-foreground-muted); font-size: 0.9rem; }
#evidence-root .ev-layout { display: grid; grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-top: 1rem; }
@media (max-width: 760px) { #evidence-root .ev-layout { grid-template-columns: minmax(0, 1fr); } }
#evidence-root .ev-filters { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.9rem; }
#evidence-root .ev-field { display: flex; flex-direction: column; gap: 0.25rem; }
#evidence-root input[type="search"], #evidence-root input[type="number"] { font: inherit; padding: 0.35rem; border: 1px solid var(--theme-foreground-faint); border-radius: var(--atlas-radius-control); background: var(--theme-background); color: var(--theme-foreground); }
#evidence-root button { font: inherit; min-height: 2rem; padding: 0.3rem 0.8rem; border: 1px solid var(--theme-foreground-faint); border-radius: var(--atlas-radius-control); background: var(--theme-background-alt); color: var(--theme-foreground); cursor: pointer; }
#evidence-root button:disabled { opacity: 0.5; cursor: default; }
#evidence-root .ev-group { min-width: 0; margin: 0; padding: 0.4rem 0.6rem 0.6rem; border: 1px solid var(--theme-foreground-faintest); border-radius: var(--atlas-radius-control); }
#evidence-root .ev-group legend { padding: 0 0.25rem; font-weight: 600; }
#evidence-root .ev-option { display: flex; align-items: center; gap: 0.4rem; min-height: 1.75rem; }
#evidence-root .ev-option-name { min-width: 0; overflow-wrap: anywhere; }
#evidence-root .topic-dot {
  display: inline-block; flex: 0 0 0.55rem; width: 0.55rem; height: 0.55rem; margin-inline-end: 0.35rem;
  border-radius: 50%; background: var(--topic-color, currentColor); vertical-align: middle;
}
#evidence-root .topic-dot.hatch { border: 1px solid var(--theme-foreground-faint); }
#evidence-root .topic-dot.auxiliary { outline: 1px dashed var(--theme-foreground-muted); outline-offset: 1px; }
#evidence-root .ev-count { margin-left: auto; padding-left: 0.5rem; color: var(--theme-foreground-muted); font-variant-numeric: tabular-nums; }
#evidence-root .ev-option.ev-zero { opacity: 0.45; }
#evidence-root .ev-summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; }
#evidence-root .ev-count-line { margin: 0; font-weight: 600; }
#evidence-root .ev-view { margin-top: 1.25rem; }
#evidence-root .ev-view h2 { margin: 0; }
.ev-how-to { margin: 1rem 0; }
.ev-dev-callout .ev-notice, .ev-info-callout .ev-aux-note { margin: 0; }
.ev-volume-callout { grid-template-columns: minmax(0, 1fr); }
#evidence-root .ev-volume-callout > .volume-caption { margin: 0; color: var(--atlas-caution-ink); font-size: 0.9rem; }
.ev-info-callout a {
  display: inline-flex; min-height: 1.5rem; align-items: center; vertical-align: middle;
}
/* These notes have no icon child, so their content should use the full callout width. */
#evidence-root .ev-recent, .ev-dev-callout, .ev-info-callout { grid-template-columns: minmax(0, 1fr); }
#evidence-root input[type="search"], #evidence-root input[type="number"] { box-sizing: border-box; width: 100%; min-width: 0; }
#evidence-root .ev-option input[type="checkbox"] {
  flex: 0 0 auto; width: 1.5rem; height: 1.5rem; min-width: 1.5rem; min-height: 1.5rem; margin: 0;
}
#evidence-root .v4-sr-only { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Chart cards: the Chart/Table control sets data-view on the card, and the card shows one pane (see evidence.js). */
#evidence-root .atlas-chart[data-view="table"] [data-pane="chart"],
#evidence-root .atlas-chart:not([data-view="table"]) [data-pane="table"] { display: none; }
/* Pipeline flow: collapsed by default; the heading sits inside the summary. */
#evidence-root .ev-flow-box { margin-top: 1.25rem; border: 1px solid var(--theme-foreground-faintest); border-radius: var(--atlas-radius-card); padding: 0.25rem 0.75rem; }
#evidence-root .ev-flow-box > summary { cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; gap: 0.5rem; }
#evidence-root .ev-flow-box > summary { font-weight: 650; }
#evidence-root .ev-view { margin-top: 1.25rem; }
#evidence-root .ev-years { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.5rem; }
