/* ────────────────────────────────────────────────────────────────────────────
   Shared global rules once part of the report chrome (linked in App.razor)

   The v1 Intelligence reports and the food spec sheet that owned the report
   chrome are gone (INTEL-1137). What is left are generic class names other
   screens still emit (`.section-title`, `.chart-card`, `.chart-title`,
   `.chart-count`, `.product-name`; CodeResultsBrowser, the CodeBuilder charts)
   and the page setup and pagination guards for the /print PDF surface.
   ──────────────────────────────────────────────────────────────────────────── */

/* Print / PDF (Playwright print emulation). */
@media print {
    /* Match the PdfAsync page size set in PrintToPdfHelper. Margin 0 because
       the printed page owns its own padding edge-to-edge. */
    @page {
        size: letter portrait;
        margin: 0;
    }

    /* Pagination guards — keep atomic UI units intact across page breaks.
       Only includes classes that the Razor components actually emit; verify
       any addition with grep before committing. */
    .chart-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Section headers and chart titles must stay with their bodies. */
    .section-title {
        break-after: avoid;
        page-break-after: avoid;
    }
}

/* ── Section structure ─────────────────────────────────────────────────── */

.section-title {
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: .10em;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ── Charts grid + cards ───────────────────────────────────────────────── */

.chart-card {
    background: #FFFFFF;
    border: 1px solid #DDE2EE;
    border-radius: 8px;
    padding: 18px;
}

.chart-title {
    font-size: 13px;
    font-weight: 700;
    color: #2B2830;
    margin-bottom: 2px;
}

.chart-count {
    font-size: 11px;
    color: #71717A;
    margin-bottom: 12px;
}

.product-name { font-weight: 600; text-transform: capitalize; }
