/* css/analysis-digest.css — lane cc-verify-all-2, 2026-10-10 (RB direct).
 * The "At a glance" card and the collapse / row-cap of the three plan-reading cards
 * (js/analysis-digest.js). New classes only (adg-*); every colour, radius and font is a token
 * of css/styles.css, and the card itself is drawn by the existing .result-card / .rdg-* rules.
 *
 * Every rule that HIDES something is scoped to #results-section. js/pdf-snapshot.js exports a
 * clone with that id removed, so the PDF contains what it contained before this file existed.
 */

/* ── collapsed cards: the title line only ─────────────────────────────────── */
#results-section .rdg-card.adg-collapsed > :not(.rdg-head) { display: none; }
#results-section .rdg-card.adg-collapsed > .rdg-head { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
#results-section .rdg-card > .rdg-head.adg-head { cursor: pointer; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
#results-section .rdg-card > .rdg-head.adg-head > .adg-toggle { margin-left: auto; }

/* ── capped lists ─────────────────────────────────────────────────────────── */
#results-section .adg-cut { display: none; }
.adg-more { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; }
.adg-more-note { font-size: 12px; }

/* ── the card ─────────────────────────────────────────────────────────────── */
.adg-body { padding-top: 12px; }
.adg-fact-go { cursor: pointer; }
.adg-fact-go:hover, .adg-fact-go:focus-visible { border-color: var(--primary); outline: none; }
.adg-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 28px; margin-top: 6px; }
.adg-block { min-width: 0; }
.adg-block-wide { margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--border-color); }
.adg-rows { list-style: none; margin: 6px 0 0; padding: 0; }
ol.adg-rows { counter-reset: adg; }
.adg-row { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border-color); font-size: 13px; line-height: 1.4; }
.adg-row:last-child { border-bottom: 0; }
ol.adg-rows > .adg-row::before { counter-increment: adg; content: counter(adg) '.'; color: var(--text-secondary); font-family: var(--font-mono); font-size: 12px; min-width: 16px; }
.adg-row-text { flex: 1 1 auto; min-width: 0; }
.adg-row > .rdg-tag, .adg-row > .rdg-chip, .adg-row > .adg-link { flex: 0 0 auto; }
.adg-chip { cursor: pointer; font-family: var(--font-mono); font-size: 11px; color: var(--text); }
.adg-chip:hover, .adg-chip:focus-visible { border-color: var(--primary); color: var(--primary); outline: none; }
.adg-foot { margin: 8px 0 0; font-size: 12px; }
.adg-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 28px; margin-top: 8px; }
.adg-index-list { list-style: none; margin: 4px 0 0; padding: 0; }
.adg-index-row { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: var(--radius-sm); padding: 6px 8px; margin: 0 -8px; cursor: pointer; color: var(--text); font-family: var(--font); }
.adg-index-row:hover, .adg-index-row:focus-visible { background: var(--sidebar-hover); outline: none; }
.adg-index-name { display: block; font-size: 13px; font-weight: 600; }
.adg-index-name .rdg-tab-n { margin-left: 6px; font-weight: 400; }
.adg-index-note { display: block; font-size: 12px; line-height: 1.35; }
