.choropleth {
    --choropleth-min-height: 420px;
    width: 100%;
    background: var(--color-surface-map);
    border: 1px solid var(--color-border);
}

.choropleth__legend {
    display: none;
    margin: 0 var(--space-3) var(--space-3);
}

.choropleth__legend--shown {
    display: block;
}

.choropleth__legend-bar {
    height: 10px;
    border: 1px solid var(--color-border);
}

.choropleth__legend-ticks {
    position: relative;
    height: 1.4em;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}

.choropleth__legend-tick {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}

.choropleth__legend-tick--first {
    transform: none;
}

.choropleth__legend-tick--last {
    transform: translateX(-100%);
}

.choropleth__canvas {
    width: 100%;
    height: 60vh;
    min-height: var(--choropleth-min-height);
    max-height: 40rem;
}
