.state-map {
    --map-ink: #172940;
    --map-muted: #4a5b6d;
    --map-line: #9aadc1;
    --map-wage: var(--wage-accent, #9c3928);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 15rem);
    align-items: center;
    gap: 1rem;
    padding: .55rem clamp(.8rem, 2.6vw, 1.5rem);
    margin: 0;
    color: var(--map-ink);
}

.state-map__details { min-width: 0; }
.state-map__mode {
    display: grid;
    gap: .22rem;
    margin-top: .6rem;
    color: var(--map-muted);
    font-size: .82rem;
    font-weight: 650;
}
.state-map__mode select {
    width: 100%;
    min-height: 2.75rem;
    padding: .35rem .5rem;
    border: 1px solid var(--map-line);
    border-radius: .35rem;
    background: var(--surface, #fff);
    color: var(--map-ink);
    font: inherit;
}
.state-map__details h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
    letter-spacing: -.025em;
}
.state-map__scope { margin: .2rem 0 0; color: var(--map-muted); font-size: .84rem; }
.state-map__legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem .75rem;
    margin: .85rem 0;
    padding: 0;
    list-style: none;
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
}
.state-map__legend li {
    display: flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}
.state-map__legend span {
    flex: 0 0 .9rem;
    height: .9rem;
    box-sizing: border-box;
    border: 1px solid var(--map-line);
    border-radius: .13rem;
    background: var(--state-band);
}
.state-map__band--0 { --state-band: #ead5d2; }
.state-map__band--1 { --state-band: #d9b4ad; }
.state-map__band--2 { --state-band: #c8948b; }
.state-map__band--3 { --state-band: var(--map-wage); }
.state-map__band--missing { --state-band: #eceff2; }
@supports (color: color-mix(in srgb, #000, #fff)) {
    .state-map__band--0 { --state-band: color-mix(in srgb, var(--map-wage) 21%, #fff); }
    .state-map__band--1 { --state-band: color-mix(in srgb, var(--map-wage) 38%, #fff); }
    .state-map__band--2 { --state-band: color-mix(in srgb, var(--map-wage) 56%, #fff); }
}

.state-map__svg {
    display: block;
    width: 100%;
    height: clamp(17rem, 36vw, 24.25rem);
    overflow: visible;
}
.state-map__link :is(path, rect) {
    fill: var(--state-band);
    fill-rule: evenodd;
    stroke: #fff;
    stroke-width: 1.15;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.state-map__link rect { stroke: var(--map-line); }
.state-map__link text,
.state-map__insets text {
    fill: var(--map-ink);
    font-size: 23px;
    font-weight: 700;
    text-anchor: middle;
    pointer-events: none;
}
.state-map__link.state-map__band--3 text { fill: #fff; }
.state-map__link:is(:hover, :focus-visible) :is(path, rect) {
    stroke: #152941;
    stroke-width: 2.1;
}
.state-map__leaders {
    fill: none;
    stroke: #788fa6;
    stroke-width: 1;
    pointer-events: none;
}
.state-map__picker {
    border: 1px solid var(--map-line);
    border-radius: .35rem;
    background: #f5f8fb;
    font-size: .9rem;
}
.state-map__picker summary { padding: .68rem .7rem; cursor: pointer; font-weight: 650; }
.state-map__picker ul {
    margin: 0;
    padding: .2rem .7rem .45rem;
    max-height: 10rem;
    overflow-y: auto;
    list-style: none;
}
.state-map__picker a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--map-ink);
    text-underline-offset: .15em;
}
.state-map__source {
    margin: .75rem 0 0;
    color: var(--map-muted);
    font-size: .74rem;
    line-height: 1.45;
}

@media (max-width: 43rem) {
    .state-map { grid-template-columns: 1fr; gap: .3rem; padding: .55rem .45rem .75rem; }
    .state-map__svg { height: auto; }
    .state-map__details h2 { display: inline; font-size: 1.05rem; }
    .state-map__scope { display: inline-block; margin: 0 0 0 .3rem; }
    .state-map__legend { gap: .25rem .65rem; margin: .55rem 0; }
    .state-map__source { margin-top: .55rem; }
    .state-map__link text, .state-map__insets text { font-size: 27px; }
}
