/* YouChart — Frontend Styles */

.youchart-wrap {
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    font-family: inherit;
}

.youchart-wrap.sc-responsive {
    width: 100% !important;
    display: block;
}

.sc-title {
    margin: 0 0 4px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.sc-subtitle {
    margin: 0 0 12px;
    line-height: 1.4;
    text-align: center;
    opacity: .75;
}

/* Canvas wrapper maintains the aspect ratio / fixed height */
.youchart-wrap > div {
    box-sizing: border-box;
}

/* ---- Data Summary Labels ---- */
.yc-data-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: center;
    padding: 10px 0;
}
.yc-data-summary--above { margin-bottom: 10px; }
.yc-data-summary--below { margin-top: 10px; }

.yc-data-summary__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.yc-data-summary__swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}
.yc-data-summary__val   { font-weight: 700; }
.yc-data-summary__pct   { font-weight: 700; margin-left: 4px; }
/* Wrap percentage in brackets only when shown alongside a value */
.yc-data-summary__val + .yc-data-summary__pct::before { content: '('; margin-left: 2px; }
.yc-data-summary__val + .yc-data-summary__pct::after  { content: ')'; }
