/* Additions to reports.css, which styles the shared options, charts and tables. */
.benchmark-page .benchmark-compare-button { justify-content: space-between; gap: 0.75rem; width: 100%; background: #fff; text-align: left; }
.benchmark-page .benchmark-compare-text { min-width: 0; font-weight: 600; }
.benchmark-page .benchmark-compare-action { flex-shrink: 0; color: var(--reports-teal); font-size: 0.8125rem; font-weight: 600; }
.benchmark-page .benchmark-picker-help { margin: -0.5rem 0 0; }

.benchmark-page .benchmark-status { display: flex; align-items: center; gap: 0.65rem; margin: 1.25rem 0 0; color: var(--reports-muted); font-size: 0.875rem; }

.benchmark-page .benchmark-verdict { display: flex; align-items: flex-start; gap: 0.875rem; margin-bottom: 0.85rem; }
.benchmark-page .benchmark-verdict > i { flex-shrink: 0; font-size: 1.75rem; line-height: 1.2; }
.benchmark-page .benchmark-verdict.is-positive > i { color: #c0392b; }
.benchmark-page .benchmark-verdict.is-negative > i { color: var(--accent-strong, #16a085); }
.benchmark-page .benchmark-verdict.is-flat > i { color: var(--muted, #7f8c8d); }
.benchmark-page .benchmark-verdict-text { margin: 0; color: var(--header-bg); font-size: 1.125rem; font-weight: 650; line-height: 1.35; }
.benchmark-page .benchmark-verdict-detail { margin: 0.2rem 0 0; color: var(--reports-muted); font-size: 0.875rem; }

.benchmark-page .benchmark-table thead th { white-space: normal; }
.benchmark-page .benchmark-table thead th:not(:first-child) { min-width: 6.5rem; }

.benchmark-page .benchmark-note { margin-top: 1.25rem; padding: 0 0.25rem; color: var(--reports-muted); font-size: 0.8125rem; line-height: 1.6; }
.benchmark-page .benchmark-note h2 { margin: 0 0 0.35rem; color: var(--header-bg); font-size: 0.875rem; font-weight: 650; }
.benchmark-page .benchmark-note ul { margin: 0; padding-left: 1.1rem; }

@media (max-width: 575.98px) {
    /* Keep Difference on screen by letting values wrap. */
    .benchmark-page .benchmark-table thead th:not(:first-child) { min-width: 0; }
    .benchmark-page .benchmark-table thead th,
    .benchmark-page .benchmark-table tbody th,
    .benchmark-page .benchmark-table tbody td { padding: 0.55rem 0.4rem; font-size: 0.75rem; white-space: normal; }
    .benchmark-page .benchmark-table th:first-child { width: auto; min-width: 0; padding-left: 0.5rem; }
    .benchmark-page .benchmark-table td:last-child { padding-right: 0.5rem; }
}

@media (min-width: 1200px) {
    .benchmark-page .benchmark-section-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.25rem; }
    /* Match the table's height. Taking the canvas out of flow stops it holding the row open. */
    .benchmark-page .benchmark-section-body .reports-chart-frame { height: auto; min-height: 20rem; }
    .benchmark-page .benchmark-section-body .reports-chart-frame canvas { position: absolute; inset: 0; }
    .benchmark-page .benchmark-section-body.is-table-only { grid-template-columns: minmax(0, 1fr); }
    .benchmark-page .benchmark-section-body .reports-table-wrap { margin-top: 0; }
    .benchmark-page .benchmark-section-body .reports-table th,
    .benchmark-page .benchmark-section-body .reports-table td { padding: 0.65rem 0.75rem; }
    .benchmark-page .benchmark-section-body .reports-table th:first-child { min-width: 6.5rem; }
}
