#sub_competitions {
    text-align: center;
    margin-bottom: 10px;
}

.cardWinner {
    align-content: center;

}
.graphs {
    margin: 40px auto;
        max-width: var(--series-max-width);
    padding: 0;
}
.graphs h3 {
    color: #1b77c8;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.graphs .graphcontainer {
    display: flex;
    flex-wrap: wrap;
    /* ✅ wrap when narrow */
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    padding: 18px 20px 30px 20px;
}

.graphs .graphcontainer figure {
    flex: 1 1 460px;
    min-width: 380px;
    max-width: 460px;
    background: #ffffff;
    padding: 20px;
    /* ✅ extra space around chart */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.graphs .graphcontainer figure:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.graphs .graphcontainer #cashChart,
.graphs .graphcontainer #ratingChart {
    width: 100%;
    height: 340px;
    /* ✅ taller for labels */
    overflow: visible;
    /* ✅ prevents cutoff */
}

.graphs .graphcontainer figcaption {
    font-size: 0.85rem;
    color: #355371;
    text-align: center;
}

/* ✅ ECharts canvas fix */
.graphs .graphcontainer canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    overflow: visible;
    box-sizing: border-box;
}

/* ==========================
   FIX COLLAPSIBLE CARD SIZE
========================== */

.table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    /* centers the table horizontally */
    box-sizing: border-box;
    box-shadow: 0 4px 18px rgba(0, 10, 18, 0.18);
    border-radius: 20px;
}

.table-wrapper table {
    width: 90%;
    /* keeps a consistent size inside wrapper */
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0 auto;
    /* ensures centering */
}
#graphs_section {
    margin: 2rem 0;
    padding: 1rem;
}

.graph-wrapper {
    margin: 2rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.graph-wrapper h3 {
    margin-bottom: 1rem;
    color: #1b77c8;
}

.graph-wrapper canvas {
    max-height: 400px;
    width: 100% !important;
    height: auto !important;
}
/* Graph tab pills (match division-pill styles) */
.graph-tabs {
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    padding: 8px 0 12px;
    width: 100%;
}
.graph-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(3, 37, 62, 0.18);
    background: rgba(183, 179, 179, 0.08);
    color: #03253e;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
}
.graph-tab:hover {
    background: rgba(183, 179, 179, 0.16);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}
.graph-tab.active {
    background: #155c9b;
    border-color: #155c9b;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}
.graph-tab:focus {
    outline: 3px solid rgba(21,92,155,0.15);
    outline-offset: 2px;
}