/* Diagnostic sheets and their hub (diagnostics/, written by scripts/diagnostics/generate_pages.py).
   Loads last: only what the use-case pages do not have — the icon tile, the "En bref" card and the linking cards.
   Icons are drawn in the interface teal, not in a colour per family: the site's own diagnostic colours differ. */
.diag-icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 20px; border-radius: 16px; background: var(--teal-tint); color: var(--teal-ink); }
.diag-icon svg { width: 44px; height: 44px; }
.pse-intro + .pse-actions { margin-top: 28px; } /* the use-case pages have a benefits list between the two */

.diag-facts { padding: 28px 32px; border-radius: 12px; background: var(--paper-2); }
.diag-facts h2 { margin-bottom: 18px; font: 600 var(--fs-lead)/1.3 var(--font); }
.diag-facts div + div { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.diag-facts dt { font-size: 0.875rem; font-weight: 600; color: var(--meta); }
.diag-facts dd { margin: 4px 0 0; line-height: 1.5; }
.diag-facts p { margin-top: 20px; font-size: var(--fs-small); }

.diag-family { padding-block: 56px; }
.diag-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.diag-card { display: grid; grid-template-columns: 48px 1fr; align-content: start; gap: 4px 16px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color 180ms ease; }
.diag-card .diag-icon { grid-row: span 2; width: 48px; height: 48px; margin: 0; border-radius: 12px; }
.diag-card .diag-icon svg { width: 28px; height: 28px; }
.diag-card strong { font-size: var(--fs-lead); font-weight: 600; line-height: 1.25; }
.diag-card span:last-child { line-height: 1.45; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .diag-card:hover { border-color: var(--teal); } }

@media (max-width: 600px) {
  .diag-icon { width: 56px; height: 56px; margin-bottom: 16px; border-radius: 12px; }
  .diag-icon svg { width: 34px; height: 34px; }
  .diag-facts { padding: 22px 20px; }
  .diag-family { padding-block: 40px; }
  .diag-cards { grid-template-columns: minmax(0, 1fr); }
}
