.chart-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 32px 24px;
}

.chart-title {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 4px;
    line-height: 1.3;
}

.chart-subtitle {
    font-size: 13px;
    color: #000000;
    text-align: center;
    margin-bottom: 36px;
}

.chart-svg-wrap {
    position: relative;
    width: 100%;
    overflow: visible;
}

.callout-row {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.callout-box {
    flex: 1;
    padding: 16px 18px;
    border-radius: 8px;
    text-align: center;
}

.callout-severe {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
}

.callout-moderate {
    background: #dbeafe;
    border: 1.5px solid #93c5fd;
}

.callout-mild {
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
}

.callout-big {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.callout-severe .callout-big {
    color: #1e3a8a;
}

.callout-moderate .callout-big {
    color: #1e40af;
}

.callout-mild .callout-big {
    color: #2563eb;
}

.callout-label {
    font-size: 11.5px;
    color: #000000;
    margin-top: 4px;
    font-weight: 500;
    line-height: 1.35;
}

@media (max-width: 600px) {
    .chart-container {
        padding: 24px 16px;
    }

    .callout-row {
        flex-direction: column;
    }

    .callout-big {
        font-size: 20px;
    }
}

/* ////////////////// */
.cohort-group {
    margin-bottom: 18px;
}

.cohort-label {
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 6px;
}

.cohort-label span {
    font-weight: 400;
    color: #000000;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bar-track {
    flex: 1;
    height: 40px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.bar-fill2 {
    height: 100%;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding-left: 14px;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-inner-text {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.bar-duration {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    white-space: nowrap;
    min-width: 90px;
}

/* Cohort colors - matched to reference blue palette */
.fill-severe {
    background: linear-gradient(90deg, #1e40af, #2563eb);
}

.fill-locked {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.fill-moderate {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.fill-transition {
    background: linear-gradient(90deg, #60a5fa, #93c5fd);
}

@media (max-width: 600px) {
    .chart-container {
        padding: 24px 16px;
    }

    .bar-fill2 {
        padding-left: 10px;
    }

    .bar-inner-text {
        font-size: 11px;
    }

    .bar-duration {
        font-size: 14px;
        min-width: 80px;
    }
}

/* //////////////////// */
.legend-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
}

.legend-line {
    width: 28px;
    height: 3px;
    border-radius: 2px;
}

.legend-line.switcher {
    background: #3b82f6;
}

.legend-line.stayer {
    background: #9ca3af;
}

.legend-label.switcher {
    color: #3b82f6;
}

.legend-label.stayer {
    color: #000000;
}

.callout-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.callout-box {
    flex: 1;
    padding: 14px 16px;
    border-radius: 8px;
    text-align: center;
}

.callout-peak {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
}

.callout-converge {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
}

.callout-big {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.callout-peak .callout-big {
    color: #1e40af;
}

.callout-converge .callout-big {
    color: #b91c1c;
}

.callout-label {
    font-size: 11px;
    color: #000000;
    margin-top: 3px;
    font-weight: 500;
    line-height: 1.3;
}

@media (max-width: 600px) {

    .callout-row {
        flex-direction: column;
    }

    .callout-big {
        font-size: 18px;
    }
}

/* //////////////////// */
.cascade-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 24px 24px;
}

.cascade-title {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 24px;
}

.cascade-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.c-box {
    text-align: center;
    padding: 14px 16px;
    border-radius: 8px;
    min-width: 130px;
}

.c-big {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.c-label {
    font-size: 10.5px;
    color: #000000;
    margin-top: 3px;
    line-height: 1.3;
    font-weight: 500;
}

.c-src {
    font-size: 9px;
    color: #000000;
    margin-top: 4px;
    font-style: italic;
    opacity: 0.6;
}

/* Colors - blue palette */
.c-pop {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.c-pop .c-big {
    color: #1e40af;
}

.c-decline {
    background: #dbeafe;
    border: 1px solid #93c5fd;
}

.c-decline .c-big {
    color: #1e40af;
}

.c-attr {
    background: #bfdbfe;
    border: 1px solid #60a5fa;
}

.c-attr .c-big {
    color: #1e3a8a;
}

.c-result {
    background: #1e40af;
    border: 2px solid #1e3a8a;
}

.c-result .c-big {
    color: #ffffff;
    font-size: 24px;
}

.c-result .c-label {
    color: #dbeafe;
}

.c-result .c-src {
    color: #93c5fd;
}

/* Operators */
.c-op {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    padding: 0 8px;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .cascade-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .c-box {
        min-width: 110px;
        padding: 10px 12px;
    }

    .c-big {
        font-size: 18px;
    }

    .c-op {
        padding: 0 4px;
        font-size: 14px;
    }
}

/* ////////////////////// */
/* Legend */
.legend-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
}

.legend-line {
    width: 28px;
    height: 3px;
    border-radius: 2px;
}

.legend-line.rate {
    background: #3b82f6;
}

.legend-line.mobility {
    background: #dc2626;
}

.legend-label.rate {
    color: #3b82f6;
}

.legend-label.mobility {
    color: #dc2626;
}

/* SVG */
.chart-svg-wrap {
    position: relative;
    width: 100%;
}

/* Callout boxes */
.callout-row {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.callout-box {
    flex: 1;
    padding: 14px 16px;
    border-radius: 8px;
    text-align: center;
}

.callout-trough {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
}

.callout-cross {
    background: #fefce8;
    border: 1.5px solid #fef08a;
}

.callout-floor {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
}

.callout-year {
    font-size: 11px;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.callout-big {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2px;
}

.callout-trough .callout-big {
    color: #3b82f6;
}

.callout-cross .callout-big {
    color: #a16207;
}

.callout-floor .callout-big {
    color: #b91c1c;
}

.callout-desc {
    font-size: 11px;
    color: #000000;
    margin-top: 3px;
    line-height: 1.3;
}

@media (max-width: 600px) {

    .callout-row {
        flex-direction: column;
    }

    .callout-big {
        font-size: 17px;
    }

    .legend-row {
        gap: 16px;
    }
}

/* /////////////////// */
.bar-chart-area {
    position: relative;
    margin-bottom: 28px;
}

.bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.bar-label {
    width: 90px;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    text-align: right;
    padding-right: 14px;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 44px;
    background: #f0f0f0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    position: relative;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-fill[data-animate] {
    width: 0 !important;
}

.bar-value {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.bar-value.dark-text {
    color: #000000;
    text-shadow: none;
}

.bar-meta {
    width: 140px;
    padding-left: 12px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bar-count {
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    line-height: 1.2;
}

.bar-pct {
    font-size: 11px;
    color: #000000;
    font-weight: 400;
}

/* Severity labels */
.severity-strip {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.severity-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid;
}

.severity-tag .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tag-severe {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.tag-severe .dot {
    background: #1e3a8a;
}

.tag-locked {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.tag-locked .dot {
    background: #1e40af;
}

.tag-moderate {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

.tag-moderate .dot {
    background: #2563eb;
}

.tag-transition {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #3b82f6;
}

.tag-transition .dot {
    background: #3b82f6;
}

.tag-market {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #60a5fa;
}

.tag-market .dot {
    background: #93c5fd;
}

/* Callout boxes */
.callout-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.callout-box {
    flex: 1;
    padding: 16px 18px;
    border-radius: 8px;
    text-align: center;
}

.callout-red {
    background: #1e40af;
    border: 1.5px solid #1e3a8a;
}

.callout-green {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
}

.callout-big {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

.callout-red .callout-big {
    color: #ffffff;
}

.callout-green .callout-big {
    color: #3b82f6;
}

.callout-label {
    font-size: 12px;
    color: #000000;
    margin-top: 4px;
    font-weight: 500;
}

.callout-red .callout-label {
    color: #dbeafe;
}

/* Threshold marker */
.threshold-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 0;
}

.threshold-line {
    width: 40px;
    height: 2px;
    background: #1e40af;
}

.threshold-text {
    font-size: 12px;
    color: #1e40af;
    font-weight: 600;
}

@media (max-width: 600px) {
    .bar-label {
        width: 70px;
        font-size: 11px;
    }

    .bar-meta {
        width: 110px;
    }

    .bar-count {
        font-size: 12px;
    }

    .bar-track {
        height: 36px;
    }

    .callout-row {
        flex-direction: column;
    }

    .severity-strip {
        gap: 4px;
    }

    .severity-tag {
        padding: 6px 10px;
        font-size: 11px;
    }
}