/* Catalogue cards shared by /tools/, /guides/ and /lab/.
 * Loaded after /for-agencies.css. External file: the enforced CSP forbids inline styles.
 * Colours come from the shared tokens, so light and dark themes both work. */
.cat-section { scroll-margin-top: 5rem; }
.cat-subordinate h2 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
.jump-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin: 1.6rem 0 0; }
.jump-links a { color: var(--accent); font-size: 0.86rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--border-accent); }
.jump-links a:hover { border-bottom-color: var(--accent); }
.jump-links .jump-quiet a { font-weight: 400; }

.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.6rem; }
.cat-card { display: flex; flex-direction: column; min-width: 0; padding: 1.4rem 1.5rem; background: var(--bg2); border: 1px solid var(--border); scroll-margin-top: 5rem; }
.cat-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.cat-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.8rem; }
.cat-badge { display: inline-block; padding: 0.12rem 0.5rem; border: 1px solid var(--border); color: var(--muted); font-size: 0.68rem; line-height: 1.5; font-weight: 400; }
.cat-badge-status { border-color: var(--border-accent); color: var(--accent); font-weight: 600; }
.cat-task { color: var(--text); font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.9rem; }
.cat-facts { flex: 1; margin-bottom: 1rem; }
.cat-facts div { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: 0.6rem; padding: 0.3rem 0; }
.cat-facts dt { font-size: 0.72rem; font-weight: 600; color: var(--text); line-height: 1.6; }
.cat-facts dd { font-size: 0.8rem; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.cat-actions { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-items: baseline; }
.cat-primary { color: var(--accent); font-size: 0.86rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--border-accent); }
.cat-primary:hover { border-bottom-color: var(--accent); }
.cat-secondary { color: var(--muted); font-size: 0.8rem; text-decoration: none; border-bottom: 1px solid var(--border); }
.cat-secondary:hover { color: var(--accent); }

.guide-list { list-style: none; margin-top: 1.2rem; border-top: 1px solid var(--border); }
.guide-row { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.guide-row h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.15rem; }
.guide-row p { color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
.guide-row .cat-primary { flex: none; }
.cat-subordinate .guide-row h3 { font-weight: 600; font-size: 0.92rem; }

@media (max-width: 768px) {
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-row { flex-direction: column; gap: 0.5rem; }
}
