/* Weather page (/fsg/weather). Colours via the dark mode tokens of darkmode.css. */

.fsg-weather {
	color: var(--dm-txt, #222);
}
.fsg-weather-h {
	margin: 22px 0 8px;
}
.fsg-weather-h:first-of-type {
	margin-top: 4px;
}
.fsg-weather-h i {
	color: var(--dm-txt-2nd, #666);
	margin-right: 4px;
}
.fsg-weather-muted,
.fsg-weather-note,
.fsg-weather-source {
	color: var(--dm-txt-2nd, #666);
	font-size: 0.9em;
}
.fsg-weather-note {
	margin: 4px 0 0;
}
.fsg-weather-source {
	margin-top: 18px;
}
.fsg-weather-stale {
	color: var(--st-warn, #b26a00);
}

/* --- warnings ---------------------------------------------------------- */
.fsg-weather-warning {
	border-left: 6px solid var(--fsg-weather-level, #999);
	padding: 2px 0 2px 12px;
	margin: 0 0 12px;
}
.fsg-weather-warning-head {
	font-weight: bold;
}
.fsg-weather-level {
	display: inline-block;
	padding: 0 6px;
	margin-right: 6px;
	border-radius: 3px;
	font-size: 0.85em;
	font-weight: bold;
	background: var(--fsg-weather-level, #999);
	color: #000;
}
.fsg-weather-warning p {
	margin: 2px 0;
}
.fsg-weather-warning-time {
	color: var(--dm-txt-2nd, #666);
	font-size: 0.9em;
}
.fsg-weather-none i {
	color: var(--fsg_green, #76B82A);
	margin-right: 4px;
}

/* --- radar ------------------------------------------------------------- */
.fsg-weather-radar-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
}
.fsg-weather-play {
	background: none;
	border: 0;
	padding: 0 4px;
	font-size: 1.2em;
	color: var(--dm-link, #0069B4);
	cursor: pointer;
}
#maincol .fsg-weather-slider {
	flex: 1 1 auto;
	width: auto;
	min-width: 120px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}
.fsg-weather-time {
	min-width: 150px;
	font-variant-numeric: tabular-nums;
}
.fsg-weather-time.is-forecast {
	color: var(--st-warn, #b26a00);
}
.fsg-weather-map {
	height: 460px;
	background: var(--dm-bg-surface, #eee);
}
html[data-theme="dark"] .fsg-weather-map .leaflet-tile-pane {
	filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9);
}
.fsg-weather-map .leaflet-control-attribution {
	font-size: 10px;
}
.fsg-weather-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 0;
	margin: 6px 0 0;
	font-size: 0.8em;
	color: var(--dm-txt-2nd, #666);
}
.fsg-weather-legend span.chip {
	display: inline-block;
	width: 22px;
	height: 10px;
	margin-left: 6px;
	margin-right: 2px;
	vertical-align: middle;
}

/* --- forecast ---------------------------------------------------------- */
.fsg-weather-periods {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 6px 24px;
	margin: 0 0 14px;
}
.fsg-weather-period-title {
	font-weight: bold;
}
.fsg-weather-period-main {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 2px 0;
}
.fsg-weather-period-main i {
	font-size: 1.8em;
	width: 1.3em;
	text-align: center;
	color: var(--dm-txt-2nd, #666);
}
.fsg-weather-period-temp {
	font-size: 1.15em;
	font-weight: bold;
}
.fsg-weather-period-facts {
	font-size: 0.9em;
	color: var(--dm-txt-2nd, #666);
}
.fsg-weather-hourly {
	overflow-x: auto;
}
.fsg-weather-hourly table {
	border-collapse: collapse;
	font-size: 0.85em;
	white-space: nowrap;
}
.fsg-weather-hourly th,
.fsg-weather-hourly td {
	padding: 2px 6px;
	text-align: center;
	border: 0;
}
.fsg-weather-hourly th {
	text-align: left;
	font-weight: normal;
	color: var(--dm-txt-2nd, #666);
	position: sticky;
	left: 0;
	background: var(--dm-bg-page, #fff);
}
.fsg-weather-hourly tr:first-child td {
	font-weight: bold;
}
.fsg-weather-hourly td.day-start {
	border-left: 1px solid var(--dm-txt-2nd, #999);
}
.fsg-weather-hourly i {
	font-size: 1.2em;
	color: var(--dm-txt-2nd, #666);
}
.fsg-weather-hourly .is-high,
.fsg-weather-period-facts .is-high {
	color: var(--dm-danger-txt, #c0392b);
	font-weight: bold;
}
