[data-bar-chart] {
    --c-primary: #60c4f7;
    --c-secondary: #98d7fa;
    --c-tertiary: #c1e8fb;
}

.graph-bar {
    display: flex;
    flex-direction: row;
    align-content: stretch;
    /* overflow: hidden; */
    z-index: 1;
    padding-bottom: 20px;
}
.graph-bar-line {
    position: relative;
    height: 30px;
}
.graph-bar-line > * {
    position: absolute;
}
.graph-bar-line strong {
    top: 50%;
    transform: translateY(-50%);
    left: 5px;
    font-size: 12px;
}
.graph-bar-line span {
    top: calc(100% + 5px);
    left: 5px;
    white-space: nowrap;
}

/* 
.graph-bar-line:nth-child(2) span {
    left: 0;
    transform: translateX(-100%);
}
 */

/* 
.graph-bar-line:last-child strong {
    left: initial;
    right: 10%;
}
 */

/* 
.graph-bar-line:last-child span {
    left: initial;
    right: 10%;
}
 */

.graph-bar-line::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
}
.graph-bar-line:first-child::before {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.graph-bar-line:last-child::before {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
.graph-bar-line:nth-child(1)::before {
    background: var(--c-primary);
}
.graph-bar-line:nth-child(2)::before {
    background: var(--c-secondary);
}
.graph-bar-line:nth-child(3)::before {
    background: var(--c-tertiary);
}

.graph-legend {
    list-style: none;
    margin: .5rem 0 0 0;
}

.main ol.graph-legend li.graph-legend-item {
    margin-bottom: 0;
}

.graph-legend-item::before {
    display: inline-block;
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 1rem;
}

.graph-legend-item:nth-child(1)::before {
    background: var(--c-primary);
}
.graph-legend-item:nth-child(2)::before {
    background: var(--c-secondary);
}
.graph-legend-item:nth-child(3)::before {
    background: var(--c-tertiary);
}
