/* Report Charts — layout + chart presentation.
   Shared by the real Divi output (PHP shortcode) and the POC mockup. */

.rc-report {
    --rc-gap: 32px;
    max-width: 92%;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.rc-report h2, 
.rc-eyebrow, 
.rc-intro {
    font-family: 'Nunito Sans',Helvetica,Arial,Lucida,sans-serif;
}
.rc-section {
    width: 100%;
    max-width: 1366px;
    padding: 5vw 0;
}

.rc-header {
    text-align: left;
    margin-bottom: 32px;
}

p.rc-eyebrow {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    line-height: 1.33em;
    color: #1a73c8;
    padding-bottom: 1em;
}

.rc-title {
    font-weight: 700;
    font-size: 2.81rem;
}

.rc-intro {
    margin: 0;
    max-width: 60ch;
    color: #444;
}

.rc-block {
    display: flex;
    align-items: center;
    gap: var(--rc-gap);
}

.rc-block.is-chart-left {
    flex-direction: row-reverse;
}

.rc-highlight {
    margin-top: 1em;
    padding: 1em;
    background: rgba(26, 115, 200, 0.1);
    border-left: 4px solid #1a73c8;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.rc-highlight > :first-child {
    margin-top: 0;
}

.rc-highlight > :last-child {
    margin-bottom: 0;
}

ul.rc-list {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0 !important;
}

.rc-list-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.rc-list-item:first-child {
    padding-top: 0;
}

p.rc-list-title {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a73c8;
    padding-bottom: 0;
}

.rc-list-body {
    margin: 0;
    color: #444;
}

.rc-text,
.rc-chart-col {
    flex: 1 1 0;
    min-width: 0;
}

.rc-chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.rc-chart-col.rc-chart-col--doughnut,
.rc-chart-col.rc-chart-col--pie {
    flex-direction: row;
    justify-content: space-between;
}

.rc-chart-wrap {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1 / 1;
}

.rc-chart-wrap.rc-chart-wrap--doughnut,
.rc-chart-wrap.rc-chart-wrap--pie {
    max-width: 295px;
}

/* Horizontal bar reads better wider than tall. */
.rc-chart-wrap--bar {
    max-width: 560px;
    aspect-ratio: 4 / 3;
}

.rc-chart-wrap > canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.rc-centre {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-align: center;
}

.rc-centre-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.rc-centre-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #666;
}

.rc-legend {
    list-style: none;
    margin: 0;
    padding: 0 !important;
    width: 100%;
    max-width: 360px;
}

.rc-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rc-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rc-legend-value {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

@media all and (max-width:980px) {
    .rc-title {
        font-size: 2.44rem;
    }
    
    .rc-block {
        flex-direction: column;
        align-items: stretch;
    }
}

@media all and (max-width:767px) {
    .rc-report {
        max-width: 95%;
    }

    .rc-title {
        font-size: 2rem;
    }
    

}

@media (max-width: 600px) {
    .rc-block,
    .rc-block.is-chart-left {
        flex-direction: column;
    }
}
