/* The legend and the worker use identical stops, in ascending left-to-right order. */
.wind-gradient{background:linear-gradient(90deg,#313695 0%,#4575b4 20%,#74add1 40%,#fee090 60%,#f46d43 80%,#a50026 100%)}
.wind-readout{position:absolute;z-index:28;top:14px;inset-inline-start:14px;width:min(290px,calc(100% - 28px));padding:12px 14px;border:1px solid var(--sr-border);border-radius:14px;background:var(--sr-surface-raised,#fff);box-shadow:0 3px 14px rgba(15,61,51,.13);font-size:12px;line-height:1.65;color:var(--sr-ink,#1a1a1a)}
.wind-readout[hidden],.wind-readout button[hidden]{display:none!important}
.wind-readout button{float:inline-end;width:26px;height:26px;border:0;border-radius:8px;background:transparent;color:inherit;font:20px/1 sans-serif;cursor:pointer}
#windReadoutTitle{font-weight:600}
#windReadoutValue{display:block;font-size:19px;font-weight:700;color:var(--sr-primary,#217a8d)}
#windReadoutValue:empty,#windReadoutDetail:empty{display:none}
#windReadoutDetail{font-size:10px;color:var(--sr-muted,#637575);overflow-wrap:anywhere}
@media(max-width:760px){.wind-readout{top:10px;inset-inline-start:10px;width:min(260px,calc(100% - 20px));padding:9px 11px;font-size:11px}#windReadoutValue{font-size:17px}}


/* Native controls: keyboard support, 44 px targets, and no layout animation. */
.wind-height-controls{border:0;padding:0;margin:12px 0 4px;min-width:0}
.wind-height-controls[hidden]{display:none}
.wind-height-controls legend{font-size:12px;font-weight:600;color:var(--text,#232B2B);margin-bottom:7px}
.wind-height-options{display:flex;gap:6px;padding:4px;border:1px solid var(--border,#dce7e9);border-radius:12px;background:var(--surface,#f2f7f8)}
.wind-height-options label{position:relative;flex:1;cursor:pointer}
.wind-height-options input{position:absolute;opacity:0;width:1px;height:1px}
.wind-height-options span{display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:8px;font-size:14px;font-weight:700;color:var(--text,#232B2B)}
.wind-height-options input:checked+span{background:#217A8D;color:#fff;box-shadow:0 1px 3px #155f7020}
.wind-height-options input:focus-visible+span{outline:3px solid #52b8cf;outline-offset:2px}
.mobile-legend-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.wind-height-quick{min-height:44px;min-width:82px;border:1px solid var(--border,#dce7e9);border-radius:10px;padding:4px 9px;background:var(--surface,#fff);color:var(--text,#232B2B);font:inherit;font-weight:700;touch-action:manipulation}
[data-theme="dark"] .wind-height-options,[data-theme="dark"] .wind-height-quick{background:#162e35;color:#edf8fa;border-color:#32525a}
[data-theme="dark"] .wind-height-options span,[data-theme="dark"] .wind-height-controls legend{color:#edf8fa}
