/* Estación Meteorológica — estilos del shortcode [estacion_meteo].
   Sin dependencias externas; pensado para heredar tipografía/color del tema. */

.ewb-chart {
	max-width: 100%;
	margin: 1em 0;
	color: inherit;
	font-family: inherit;
}

.ewb-chart-title {
	font-weight: 600;
	margin: 0 0 0.5em;
	font-size: 0.95em;
}

.ewb-chart-svg {
	max-width: 100%;
	height: auto;
	display: block;
}

.ewb-chart-notice {
	font-size: 0.85em;
	opacity: 0.75;
	border: 1px dashed currentColor;
	padding: 0.5em 0.75em;
	border-radius: 4px;
}

.ewb-cal-scroll {
	overflow-x: auto;
}

.ewb-cal-table {
	width: 100%;
	min-width: 20em;
	border-collapse: collapse;
	table-layout: fixed;
}

.ewb-cal-table th {
	padding: 0.4em 0;
	font-size: 0.75em;
	font-weight: 600;
	text-align: center;
	opacity: 0.65;
}

.ewb-cal-day {
	border: 1px solid rgba(127, 127, 127, 0.18);
	vertical-align: top;
	height: 3.4em;
	padding: 0.3em;
	text-align: center;
}

.ewb-cal-daynum {
	display: block;
	font-size: 0.75em;
	opacity: 0.6;
}

.ewb-cal-mm {
	display: block;
	margin-top: 0.2em;
	font-size: 0.95em;
	font-weight: 700;
}

.ewb-cal-mm small {
	font-size: 0.65em;
	font-weight: 400;
	opacity: 0.7;
	margin-left: 0.1em;
}

.ewb-cal-day--outside {
	opacity: 0.35;
}

.ewb-cal-day--nodata .ewb-cal-daynum {
	opacity: 0.35;
}

.ewb-cal-day--wet {
	background: rgba(47, 111, 237, 0.1);
}

.ewb-cal-day--wet .ewb-cal-mm {
	color: #2f6fed;
}

.ewb-gridline {
	stroke: currentColor;
	stroke-opacity: 0.15;
	stroke-width: 1;
}

.ewb-axis-text {
	fill: currentColor;
	opacity: 0.7;
	font-size: 10px;
}

.ewb-bar {
	fill: #2f6fed;
}

.ewb-line {
	fill: none;
	stroke-width: 2;
}

.ewb-legend {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em 1.25em;
	margin: 0.5em 0 0;
	padding: 0;
	font-size: 0.8em;
}

.ewb-legend li {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}

.ewb-legend-swatch {
	display: inline-block;
	width: 0.8em;
	height: 0.8em;
	border-radius: 2px;
}

.ewb-s-humedad {
	fill: #0e8a6d;
	stroke: #0e8a6d;
	background-color: #0e8a6d;
}

.ewb-s-temperatura {
	fill: #e2622a;
	stroke: #e2622a;
	background-color: #e2622a;
}

.ewb-s-viento {
	fill: #7c5cff;
	stroke: #7c5cff;
	background-color: #7c5cff;
}

.ewb-s-rafaga {
	fill: #b7a6ff;
	stroke: #b7a6ff;
	background-color: #b7a6ff;
}

.ewb-s-presion {
	fill: #555555;
	stroke: #555555;
	background-color: #555555;
}

@media (prefers-color-scheme: dark) {
	.ewb-bar {
		fill: #6ea8ff;
	}

	.ewb-cal-day--wet {
		background: rgba(110, 168, 255, 0.14);
	}

	.ewb-cal-day--wet .ewb-cal-mm {
		color: #6ea8ff;
	}

	.ewb-s-humedad {
		fill: #35c79a;
		stroke: #35c79a;
		background-color: #35c79a;
	}

	.ewb-s-temperatura {
		fill: #ff8a5c;
		stroke: #ff8a5c;
		background-color: #ff8a5c;
	}

	.ewb-s-viento {
		fill: #a58bff;
		stroke: #a58bff;
		background-color: #a58bff;
	}

	.ewb-s-rafaga {
		fill: #d5c9ff;
		stroke: #d5c9ff;
		background-color: #d5c9ff;
	}

	.ewb-s-presion {
		fill: #bbbbbb;
		stroke: #bbbbbb;
		background-color: #bbbbbb;
	}
}
