/* Impact match reports, including archived articles with Flot charts. */
body .section-header:has(+ .match-analysis) {
    background: linear-gradient(125deg, #163576, #254fa6 65%, #315cbc) !important;
    padding-bottom: clamp(3rem, 7vw, 6rem) !important;
    margin-bottom: 0 !important;
}
.section-header:has(+ .match-analysis) h1 {
    font-size: clamp(1.65rem, 3.4vw, 2.85rem);
    line-height: 1.3;
    text-wrap: balance;
}
.match-analysis {
    background: #f4f7fb;
    padding: clamp(1.25rem, 3vw, 2.75rem) 0 !important;
    color: #233753;
}
.match-analysis .match-ai-report {
    --border-color: #dce5f0;
    --text-main: #223854;
    --text-muted: #516580;
    --purple: #665991;
    --cyan: #167486;
}
.match-analysis .ai-report-hero,
.match-analysis .ai-report-panel,
.match-analysis .ai-report-summary,
.match-analysis .row > .col-md-12:has(> p) {
    background: #fff;
    border: 1px solid #dce5f0;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(29, 54, 88, .055);
    padding: clamp(16px, 3vw, 32px);
}
.match-analysis .ai-report-hero {
    border-top: 0;
    background: linear-gradient(115deg, white, #eff5ff);
}
.match-analysis .panel-title {
    color: #203e70;
    font-size: 1.15rem;
    border-bottom: 1px solid #dce5f0;
    padding-bottom: .65rem;
    margin-bottom: 1rem;
}
.match-analysis .ai-data-card,
.match-analysis .ai-team-card,
.match-analysis .ai-chart-card {
    background: #f8fafd;
    border: 1px solid #dfe7f0;
    box-shadow: none;
    min-width: 0;
}
.match-analysis .ai-progress { background: #e1e8f2; }
.match-analysis .ai-progress-label { font-variant-numeric: tabular-nums; }
.match-analysis .row > .col-md-12 > p {
    max-width: 78ch;
    margin: 0 auto 1em;
    line-height: 1.9;
    overflow-wrap: anywhere;
}
.match-analysis .row > .col-md-12 > p:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
    .match-analysis .row > .col-md-12:has(> p) {
        margin-inline: 15px;
        max-width: calc(100% - 30px);
    }
    .match-analysis .ai-chart-grid,
    .match-analysis .ai-data-grid,
    .match-analysis .ai-team-grid { grid-template-columns: minmax(0, 1fr); }
}