/* The column charts of common/charts.js: the progress page's and the session
   summary's. The one before is a thin line across each bar in the page ink,
   quieter than the bars. */
.chart, .legend {
    --ink-muted: light-dark(#5c5c63, #a8a8ae);
    --grid: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.14));
    --before: light-dark(#2b2b30, #e8e8e8);
}
.chart {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}
.chart text {
    font-family: 'Hind', sans-serif;
    font-size: var(--t-xs);
    fill: var(--ink-muted);
}
.chart .count {
    fill: currentColor;
    font-weight: bold;
}
.chart .label {
    fill: currentColor;
}
.chart .grid { stroke: var(--grid); }
.chart .axis { stroke: var(--ink-muted); }
.chart .before {
    stroke: var(--before);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.75;
}
.chart .hit { fill: transparent; }
.chart .column:hover .hit { fill: var(--grid); }
.chart .bar {
    fill: var(--c);
}
.legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    margin: 8px 0 0;
    font-size: var(--t-sm);
}
.legend-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.swatch {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 4px;
    border-radius: 3px;
    border: 1.5px solid var(--c);
    background: var(--c);
}
/* the line, as it looks on the chart */
.swatch.before {
    height: 2px;
    width: 14px;
    border: 0;
    border-radius: 1px;
    background: var(--before);
    opacity: 0.75;
}
