/* CSI_WEATHER_RISK_SURFACE_CLOUD_V1 — map legend; typography follows the user setting. */
#weatherLayerPanel [hidden] { display: none !important; }
#weatherLayerPanel .weather-map-legend {
    margin-top: 12px;
    padding: 11px 10px;
    border: 1px solid #e4e9f1;
    border-radius: 12px;
    background: #fafbfe;
    color: #526178;
    font-size: calc(10px * var(--csi-text-scale, 1));
    line-height: 1.5;
}
#weatherLayerPanel .weather-map-legend-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 3px 8px;
    margin-bottom: 8px;
}
#weatherLayerPanel .weather-map-legend-heading strong { color: #35445c; font-weight: 800; }
#weatherLayerPanel .weather-map-legend-heading > span { color: #718096; }
#weatherLayerPanel[data-risk-display="cloud"] .weather-map-legend-heading > span {
    color: #8b5c16;
    background: #fff8e8;
    border-radius: 5px;
    padding: 2px 5px;
}
#weatherLayerPanel .weather-map-gradient-bar {
    height: 9px;
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f2c94c 0%, #f59e0b 33.333%, #ef4444 66.667%, #b91c1c 100%);
    box-shadow: inset 0 0 0 1px rgb(110 65 10 / 7%);
}
#weatherLayerPanel .weather-map-gradient-labels {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3px 7px;
    margin-top: 5px;
    color: #526178;
}
#weatherLayerPanel .weather-map-gradient-labels > span { white-space: nowrap; }
#weatherLayerPanel .weather-map-gradient-hint {
    margin: 8px 0 0;
    padding-top: 7px;
    border-top: 1px solid #e7ebf3;
    color: #718096;
    line-height: 1.5;
}
#weatherLayerPanel .weather-map-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
}
#weatherLayerPanel .weather-map-levels > span,
#weatherLayerPanel .weather-map-source-keys > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow-wrap: anywhere;
}
#weatherLayerPanel .weather-map-levels i {
    display: inline-block;
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 3px;
}
#weatherLayerPanel .weather-map-level-1 { background: #d4a11c; }
#weatherLayerPanel .weather-map-level-2 { background: #f59e0b; }
#weatherLayerPanel .weather-map-level-3 { background: #ef4444; }
#weatherLayerPanel .weather-map-level-4 { background: #b91c1c; }
#weatherLayerPanel .weather-map-source-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid #e7ebf3;
}
#weatherLayerPanel .weather-map-source-keys i {
    display: inline-block;
    flex: 0 0 17px;
    width: 17px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid #d4dce8;
    background-color: #fff;
}
#weatherLayerPanel .weather-map-estimated-key {
    background-image: repeating-linear-gradient(135deg, transparent 0 3px, #a9b4c3 3px 4px, transparent 4px 7px);
}
#weatherLayerPanel .weather-map-multiple-key {
    background-image: radial-gradient(circle, #7c3aed .9px, transparent 1.1px);
    background-size: 5px 5px;
}
#weatherLayerPanel .weather-map-explanation {
    margin: 8px 1px 0;
    color: #718096;
    font-size: calc(10px * var(--csi-text-scale, 1));
    line-height: 1.65;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
#weatherLayerPanel #weatherLayerStatus { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
    .csi-weather-risk-surface { transition: none !important; }
}
