/*
==========================================================================
    Component: Reusable Pie Chart
==========================================================================
*/
.pie-chart {
    flex: 1 1 auto;
    width: 100%;
}

.pie-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pie-chart-svg {
    width: 64%;
    height: auto;
}

.pie-bg {
    fill: none;
    stroke: #e6e6e6;
    stroke-width: 2.6;
}

.pie-progress {
    fill: none;
    stroke: #595959;
    stroke-width: 2;
    stroke-linecap: butt;
    stroke-dasharray: 0, 100;
    stroke-dashoffset: 0;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dasharray 0.3s ease;
}





.pie-value {
    /* fill color, font-family, and font-size now inherited from design system classes */
    text-anchor: middle;
    dominant-baseline: middle;
    transform: translateY(-0.3em);
    letter-spacing: -0.2px;
}

.pie-label {
    margin-top: 0.5em;
    /* color, font-family, and font-size now inherited from design system classes */
    line-height: 1.4em;
    width: 100%;
    text-align: left;
}




/* --- Challenge Data Specific Styling --- */
.challenge-pie-grid .pie-progress {
    stroke: var(--e-global-color-d461ad2); /* Use design system grey-700 */
}

.challenge-pie-grid .pie-value {
    fill: var(--e-global-color-d461ad2); /* Use design system grey-700 for SVG text */
}

/* --- Responsive Styles --- */
@media (max-width: 767px) {
    .pie-value {
        /* font-size now inherited from design system classes */
        transform: translateY(-0.2em);
    }
    .pie-chart-svg {
        width: 70%;
    }
    .pie-label {
        padding-right: 0.6em;
    }
}

@media (min-width: 768px) and (max-width: 1141px) {
    .pie-value {
        /* font-size now inherited from design system classes */
        transform: translateY(-0.2em);
    }
    .pie-chart-svg {
        width: 70%;
    }
    .pie-label {
        padding-right: 0.2em;
    }
}

@media (min-width: 1142px) and (max-width: 1600px) {
    .pie-value {
        /* font-size now inherited from design system classes */
        transform: translateY(-0.2em);
    }
    .pie-label {
        padding-right: 0.4em;
    }
}

@media (min-width: 1601px) {
    .pie-value {
        /* font-size now inherited from design system classes */
        transform: translateY(-0.2em);
    }
    .pie-label {
        padding-right: 0.4em;
    }
}