/* Mermaid Chart Styling for SSI Benchmark Site */

/* Chart grid layout */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.chart-container {
    margin: 0;
}

.chart-container h4,
.chart-container figcaption h4 {
    color: #666;
    font-size: 0.95em;
    margin-top: 0;
}

/* Ensure charts display at full configured size */
.chart-grid .mermaid {
    width: 100%;
    max-width: 1200px;
}

.chart-grid .mermaid svg {
    max-width: 100%;
    height: auto;
}

/* Make Mermaid chart lines thicker and more visible */
.mermaid .line-plot {
    stroke-width: 6px !important;
}

.mermaid path.line-plot {
    stroke-width: 6px !important;
}

.mermaid line[stroke-width] {
    stroke-width: 6px !important;
}

.mermaid path[class*="lineplot"] {
    stroke-width: 6px !important;
}

.mermaid .plot .lines path {
    stroke-width: 6px !important;
}

/* Chart subtitle (e.g. version note below chart heading) */
.chart-container .chart-subtitle {
    color: #888;
    font-size: 0.85em;
    margin: 2px 0 0;
    font-style: italic;
}

/* X-axis label styling (rotation applied via JavaScript in mermaid-init.js) */
/* CSS rotation doesn't work reliably on xychart, handled in JS instead */

/* Increase bottom margin to accommodate rotated x-axis labels */
.mermaid svg {
    margin-bottom: 40px !important;
}

.chart-grid .mermaid svg {
    margin-bottom: 60px !important;
}

/* Make chart labels bigger */
.mermaid svg text {
    font-size: 18px !important;
    font-weight: 500 !important;
}

.mermaid svg .title-text,
.mermaid svg [class*="title"] {
    font-size: 24px !important;
    font-weight: bold !important;
}

/* Axis labels specifically */
.mermaid svg .xLabel,
.mermaid svg .yLabel {
    font-size: 20px !important;
    font-weight: 600 !important;
}
