.bl-pos > .bl-pos__state-section {
    --state-other: #444;
    --state-stroke: #888;
    --state-ink: #f2f2f2;
    --state-available-ink: #17220e;
    --state-expected: color-mix(in srgb, var(--pos-accent) 48%, white);
    border-block-start: var(--layoutBorderWidth) solid var(--layoutBorderColor);
    background: var(--bodyBgColor);
}
.bl-pos__state-section .bl-pos__section-head > p { color: var(--pos-muted); }
.bl-pos__state-section .bl-pos__state-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 12px 0;
    border-block: var(--layoutBorderWidth) solid var(--layoutBorderColor);
    list-style: none;
    font-size: .875rem;
}
.bl-pos__state-legend li { display: flex; align-items: center; gap: 8px; }
.bl-pos__state-swatch {
    width: 16px;
    height: 16px;
    border: var(--layoutBorderWidth) solid var(--state-stroke);
    background: var(--state-fill, var(--state-other));
}
.bl-pos__state-section [data-pos-availability="available"] { --state-fill: var(--pos-accent); }
.bl-pos__state-section [data-pos-availability="expected"] { --state-fill: var(--state-expected); }
.bl-pos__state-map {
    display: block;
    width: 100%;
    height: auto;
    margin: 22px 0 0;
}
.bl-pos__state-map > path[data-pos-state],
.bl-pos__state-callout rect {
    fill: var(--state-fill, var(--state-other));
    stroke: var(--state-stroke);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    fill-rule: evenodd;
}
.bl-pos__state-callout path {
    fill: none;
    stroke: var(--state-stroke);
}
.bl-pos__state-map text {
    fill: var(--state-ink);
    font: 600 14px var(--bodyFont, sans-serif);
    text-anchor: middle;
    dominant-baseline: central;
}
.bl-pos__state-map text[data-pos-availability="available"],
.bl-pos__state-callout[data-pos-availability="available"] text { fill: var(--state-available-ink); }
.bl-pos__state-map text[data-pos-availability="expected"],
.bl-pos__state-callout[data-pos-availability="expected"] text { fill: #17220e; }
html:is([layout-mode=lite], [layout-mode=medium]) .bl-pos > .bl-pos__state-section {
    --state-other: #ccc;
    --state-stroke: #646464;
    --state-ink: #181818;
    --state-available-ink: #fff;
}
@media (max-width: 540px) {
    .bl-pos__state-map .bl-pos__state-label { font-size: 18px; }
}
