/* Winter Supplies: News page blocks (weather alerts + headlines). Uses design-system.css tokens. */

.ws-wx { display: grid; gap: var(--ws-space-5, 24px); }
.ws-wx[aria-busy="true"] .ws-wx__results { opacity: .55; transition: opacity .2s; }

.ws-wx__picker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ws-space-3, 12px); }
.ws-wx__picker label { font-weight: 600; color: var(--ws-charcoal, #1B2327); }
.ws-wx__picker select {
	min-height: 44px; min-width: 220px; padding: 0 40px 0 14px; border: 1px solid var(--ws-border, #DDE5E8);
	border-radius: var(--ws-radius-sm, 10px); background: var(--ws-white, #fff); color: var(--ws-charcoal, #1B2327);
	font: inherit; font-size: var(--ws-text-sm, .9375rem);
}
.ws-wx__picker select:focus-visible { outline: 3px solid var(--ws-glacier, #DCEBF0); outline-offset: 2px; border-color: var(--ws-spruce, #17403A); }

.ws-wx__updated { margin: 0 0 var(--ws-space-3, 12px); font-size: var(--ws-text-xs, .8125rem); color: var(--ws-slate, #5E6C72); }
.ws-wx__empty { margin: 0; padding: var(--ws-space-5, 24px); border-radius: var(--ws-radius, 14px); background: var(--ws-glacier-soft, #EEF5F7); }

.ws-wx__summary { display: flex; flex-wrap: wrap; gap: var(--ws-space-2, 8px); list-style: none; margin: 0 0 var(--ws-space-5, 24px); padding: 0; }
.ws-wx-chip { margin: 0; padding: 4px 12px; border-radius: 999px; font-size: var(--ws-text-xs, .8125rem); font-weight: 600; background: var(--ws-glacier, #DCEBF0); color: var(--ws-spruce, #17403A); }
.ws-wx-chip strong { margin-left: 4px; }
.ws-wx-chip--warning { background: #F9DCDC; color: #8A1C1C; }
.ws-wx-chip--watch { background: var(--ws-ember-soft, #FBE9E1); color: #8A3A12; }

.ws-wx__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--ws-space-4, 16px); list-style: none; margin: 0; padding: 0; }
.ws-wx__list > li { margin: 0; }
.ws-wx-alert {
	height: 100%; box-sizing: border-box; padding: var(--ws-space-5, 24px); border: 1px solid var(--ws-border, #DDE5E8);
	border-left: 6px solid var(--ws-spruce, #17403A); border-radius: var(--ws-radius, 14px);
	background: var(--ws-white, #fff); box-shadow: var(--ws-shadow);
}
.ws-wx-alert--warning { border-left-color: #B42318; }
.ws-wx-alert--watch { border-left-color: var(--ws-ember, #C4541B); }
.ws-wx-alert > * { margin: 0 0 var(--ws-space-2, 8px); }
.ws-wx-alert > :last-child { margin-bottom: 0; }
.ws-wx-alert__event { font-size: var(--ws-text-xs, .8125rem); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ws-slate, #5E6C72); }
.ws-wx-alert--warning .ws-wx-alert__event { color: #B42318; }
.ws-wx-alert--watch .ws-wx-alert__event { color: var(--ws-ember-dark, #A4440F); }
.ws-wx-alert__event span { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ws-slate, #5E6C72); }
.ws-wx-alert__title { margin-top: 0; font-size: var(--ws-h4, 1.125rem); line-height: 1.35; }
.ws-wx-alert__area, .ws-wx-alert__time { font-size: var(--ws-text-sm, .9375rem); color: var(--ws-charcoal, #1B2327); }
.ws-wx-alert__more { margin-top: var(--ws-space-3, 12px); font-size: var(--ws-text-sm, .9375rem); }
.ws-wx-alert__more summary { cursor: pointer; font-weight: 600; color: var(--ws-spruce, #17403A); }
.ws-wx-alert__more p { margin: var(--ws-space-2, 8px) 0 0; }

.ws-wx__more { margin: var(--ws-space-4, 16px) 0 0; }
.ws-wx__source { margin: 0; font-size: var(--ws-text-xs, .8125rem); color: var(--ws-slate, #5E6C72); }
.ws-wx__source a { color: inherit; text-decoration: underline; }

/* Headlines */
.ws-wx-news__title { margin-top: 0; }
.ws-wx-news__list { list-style: none; margin: 0 0 var(--ws-space-4, 16px); padding: 0; border-top: 1px solid var(--ws-border, #DDE5E8); }
.ws-wx-news__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--ws-space-3, 12px); margin: 0; padding: var(--ws-space-3, 12px) 0; border-bottom: 1px solid var(--ws-border, #DDE5E8); }
.ws-wx-news__list a { flex: 1 1 280px; font-weight: 600; color: var(--ws-charcoal, #1B2327); text-decoration: none; }
.ws-wx-news__list a:hover { color: var(--ws-spruce, #17403A); text-decoration: underline; }
.ws-wx-news__src { padding: 2px 10px; border-radius: 999px; background: var(--ws-glacier, #DCEBF0); color: var(--ws-spruce, #17403A); font-size: var(--ws-text-xs, .8125rem); font-weight: 700; white-space: nowrap; }

@media (max-width: 599px) {
	.ws-wx__picker select { flex: 1 1 100%; min-width: 0; }
	.ws-wx-alert { padding: var(--ws-space-4, 16px); }
}
