.report-chart {
    /*
     * ECharts reads this palette at runtime. Every series therefore follows
     * the active report chapter instead of carrying a second hard-coded
     * colour system in JavaScript.
     */
    --chart-series-1: var(--report-accent);
    --chart-series-2: var(--report-support);
    --chart-series-3: var(--report-accent-strong);
    --chart-series-4: color-mix(in srgb, var(--report-accent) 68%, var(--report-support));
    --chart-series-5: color-mix(in srgb, var(--report-support) 68%, var(--report-accent-strong));
    --chart-series-6: color-mix(in srgb, var(--report-accent) 62%, var(--report-heading));
    --chart-series-neutral: var(--report-text);
    --chart-tone-management: var(--chart-series-1);
    --chart-tone-governance: var(--chart-series-3);
    --chart-tone-product: var(--chart-series-4);
    --chart-tone-environment: var(--chart-series-2);
    --chart-tone-social: var(--chart-series-5);
    --chart-tone-gold: var(--chart-series-6);
    --chart-tone-neutral: var(--chart-series-neutral);
    --chart-label: var(--report-heading);
    --chart-grid: var(--report-border);
    --chart-on-colour: #fff;
    --chart-surface: #fff;
    display: grid;
    gap: 14px;
    min-width: 0;
}

/* The chapter's own semantic tone remains the primary series colour. */
.report-chapter--management .report-chart {
    --chart-tone-management: var(--chart-series-1);
}

.report-chapter--governance .report-chart {
    --chart-tone-governance: var(--chart-series-1);
}

.report-chapter--product .report-chart {
    --chart-tone-product: var(--chart-series-1);
}

.report-chapter--environment .report-chart {
    --chart-tone-environment: var(--chart-series-1);
}

.report-chapter--social .report-chart {
    --chart-tone-social: var(--chart-series-1);
}

.report-chart__viewport {
    contain: inline-size;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--report-border);
    border-radius: var(--report-radius);
    background: #fff;
    box-shadow: var(--report-shadow);
    scrollbar-color: var(--report-accent) #edf2f3;
}

.report-chart__viewport:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--report-accent) 34%, transparent);
    outline-offset: 3px;
}

.report-chart__plot {
    width: 100%;
    min-width: 680px;
    height: 480px;
}

.report-chart--matrix .report-chart__plot {
    min-width: 760px;
    height: 560px;
}

.report-chart--pie .report-chart__plot,
.report-chart--donut .report-chart__plot {
    min-width: 520px;
}

.report-chart__error {
    padding: 13px 16px;
    border-left: 4px solid #b14c58;
    background: #fff2f3;
    color: #71343d;
    font-weight: 600;
}

.report-chart__fallback {
    border: 1px solid var(--report-border);
    border-radius: var(--report-radius);
    background: var(--report-accent-soft);
}

.report-chart__fallback summary {
    padding: 12px 16px;
    color: var(--report-accent-strong);
    font-weight: 700;
    cursor: pointer;
}

.report-chart__table-scroll {
    max-width: 100%;
    overflow-x: auto;
    padding: 0 14px 14px;
}

.report-chart__fallback table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    background: #fff;
    color: var(--report-text);
}

.report-chart__fallback th,
.report-chart__fallback td {
    padding: 9px 12px;
    border: 1px solid var(--report-border);
    text-align: left;
    white-space: nowrap;
}

.report-chart__fallback thead th {
    background: var(--report-accent);
    color: #fff;
}

@media (max-width: 767.98px) {
    .report-chart__viewport {
        overflow: hidden;
    }

    .report-chart__plot {
        width: 100%;
        min-width: 0;
        height: 420px;
    }

    .report-chart--matrix .report-chart__plot {
        min-width: 0;
        height: 500px;
    }

    .report-chart--pie .report-chart__plot,
    .report-chart--donut .report-chart__plot {
        min-width: 0;
        height: clamp(420px, var(--chart-mobile-height, 420px), 820px);
    }

    .report-chart.report-chart--annual-shares.report-chart--multi-series .report-chart__plot {
        height: clamp(420px, var(--chart-mobile-height, 420px), 820px);
    }

    .report-chart--multi-series .report-chart__plot {
        min-width: 0;
    }

    .report-chart--dense-categories .report-chart__plot {
        height: 680px;
    }

    .report-chart__table-scroll {
        overflow-x: visible;
        padding-right: 8px;
        padding-left: 8px;
    }

    .report-chart__fallback table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .report-chart__fallback th,
    .report-chart__fallback td {
        padding: 8px 5px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .report-chart__fallback th:nth-child(3),
    .report-chart__fallback th:nth-child(4),
    .report-chart__fallback td:nth-child(3),
    .report-chart__fallback td:nth-child(4) {
        white-space: nowrap;
        overflow-wrap: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .report-chart__plot,
    .report-chart__plot * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
