/* Performance Table Styles */
.performance-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9em;
}
.performance-table caption {
    caption-side: top;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 1rem;
    color: var(--table-caption-color, #000);
    text-align: left;
}
.performance-table thead {
    background-color: var(--table-header-bg, #f2f2f2);
    color: var(--table-header-color, #000);
}
.performance-table th,
.performance-table td {
    border: 1px solid rgba(240, 239, 234, 0.1);
    padding: 0.75rem;
    text-align: left;
}
.performance-table th {
    background-color: rgba(240, 239, 234, 0.05);
    font-weight: 500;
}
.performance-table tbody tr:nth-child(odd) {
    background-color: var(--table-row-odd, #fff);
}
.performance-table tbody tr:nth-child(even) {
    background-color: var(--table-row-even, #f9f9f9);
}

/* Performance Figure Styles */
.performance-figure {
    margin: 2rem 0;
    text-align: center;
    border: 1px solid rgba(240, 239, 234, 0.1);
    padding: 1rem;
    border-radius: 4px;
}
.performance-figure figcaption {
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 10px;
    color: var(--figure-caption-color, #333);
}
.performance-figure figcaption h4 {
    font-style: normal;
}
.performance-figure img {
    width: 100%;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.performance-figure img:hover {
    opacity: 0.9;
}

/* Theme Variables for Adaptability (if not defined globally) */
.dark-mode {
    --table-caption-color: #fff;
    --table-header-bg: #333;
    --table-header-color: #fff;
    --table-border-color: #555;
    --table-row-odd: #444;
    --table-row-even: #3a3a3a;
    --figure-caption-color: #fff;
}
.light-mode {
    --table-caption-color: #000;
    --table-header-bg: #f2f2f2;
    --table-header-color: #000;
    --table-border-color: #ccc;
    --table-row-odd: #fff;
    --table-row-even: #f9f9f9;
    --figure-caption-color: #141413;
}
body.light-mode .performance-figure {
    border-color: rgba(20, 20, 19, 0.1);
}
body.light-mode .performance-table th,
body.light-mode .performance-table td {
    border-color: rgba(20, 20, 19, 0.1);
}
body.light-mode .performance-table th {
    background-color: rgba(20, 20, 19, 0.05);
}

