/* ── Container ──────────────────────────────────────────────────────────── */
.vaxw-widget {
	width: 100%;
	box-sizing: border-box;
	font-size: 14px;
	line-height: 1.4;
}

/* ── State messages ─────────────────────────────────────────────────────── */
.vaxw-placeholder,
.vaxw-error {
	padding: 14px 16px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
}

.vaxw-placeholder {
	background: #f4f6f8;
	border: 1px dashed #ccc;
	color: #666;
}

.vaxw-error {
	background: #fff8e1;
	border: 1px solid #f0c040;
	color: #7a5c00;
}

.vaxw-placeholder p,
.vaxw-error p {
	margin: 0;
}

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.vaxw-alerts {
	margin-bottom: 16px;
}

.vaxw-alert {
	background: #fff8e1;
	border: 1px solid #f0c040;
	border-left: 4px solid #e09b00;
	border-radius: 4px;
	margin-bottom: 8px;
	overflow: hidden;
}

.vaxw-alert-header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	padding: 10px 14px;
	cursor: default;
}

.vaxw-alert-event {
	font-weight: 600;
	font-size: 13px;
	color: #7a4f00;
	flex: 1 1 auto;
}

.vaxw-alert-times {
	font-size: 12px;
	color: #a06800;
	flex: 0 0 auto;
}

.vaxw-alert-toggle {
	background: none;
	border: 1px solid #c08800;
	border-radius: 3px;
	color: #7a4f00;
	cursor: pointer;
	font-size: 12px;
	padding: 2px 10px;
	flex: 0 0 auto;
	transition: background 0.15s;
}

.vaxw-alert-toggle:hover {
	background: rgba(224, 155, 0, 0.1);
}

.vaxw-alert-body {
	display: none;
	padding: 0 14px 12px;
	color: #6a4000;
	font-size: 13px;
	line-height: 1.55;
}

.vaxw-alert-body.is-open {
	display: block;
}

.vaxw-alert-body p {
	margin: 0 0 6px;
}

.vaxw-alert-body p:last-of-type {
	margin-bottom: 0;
}

.vaxw-alert-body small {
	display: block;
	margin-top: 8px;
	font-size: 11px;
	color: #a06800;
}

/* ── Current Conditions ─────────────────────────────────────────────────── */
.vaxw-current {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	padding: 18px 20px;
	background: #f4f8ff;
	border-radius: 8px;
	margin-bottom: 20px;
	box-sizing: border-box;
}

.vaxw-current-main {
	flex: 0 0 auto;
	text-align: center;
	min-width: 100px;
}

.vaxw-current-icon {
	display: block;
	margin: 0 auto 2px;
	width: 64px;
	height: 64px;
}

.vaxw-current-temp {
	font-size: 38px;
	font-weight: 700;
	line-height: 1;
	color: #1a3a5c;
	letter-spacing: -0.02em;
}

.vaxw-current-desc {
	font-size: 13px;
	color: #4a6080;
	margin: 5px 0 2px;
}

.vaxw-current-location {
	font-size: 12px;
	font-weight: 600;
	color: #4a6080;
	margin: 2px 0;
}

.vaxw-current-time {
	font-size: 11px;
	color: #9aaabf;
	margin-top: 3px;
}

.vaxw-current-details {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px 16px;
	align-content: center;
	align-self: center;
}

.vaxw-detail {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.vaxw-detail-label {
	font-size: 10px;
	color: #9aaabf;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 500;
}

.vaxw-detail-value {
	font-size: 14px;
	font-weight: 600;
	color: #1a3a5c;
}

/* ── Hourly Forecast ────────────────────────────────────────────────────── */
.vaxw-hourly {
	width: 100%;
}

.vaxw-chart-wrap {
	width: 100%;
	height: 220px;
	position: relative;
}

.vaxw-canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
}

/* Cards strip — padding-left and card widths set by JS to align with chart bars */
.vaxw-cards-outer {
	width: 100%;
	overflow: hidden;
	margin-top: 2px;
}

.vaxw-cards {
	display: flex;
}

.vaxw-card {
	flex: 0 0 auto;
	min-width: 50px; /* fallback before JS measurement */
	text-align: center;
	padding: 6px 2px;
	border-radius: 5px;
	box-sizing: border-box;
}

.vaxw-card--current {
	background: #e8f0ff;
}

.vaxw-card-time {
	font-size: 10px;
	font-weight: 600;
	color: #9aaabf;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vaxw-card--current .vaxw-card-time {
	color: #1e5a96;
}

/* ── Wind direction arrow ────────────────────────────────────────────────── */
.vaxw-wind-dir-arrow {
	display: inline-block;
	font-size: 15px;
	line-height: 1;
	color: #1e5a96;
	/* transform: rotate(Xdeg) set inline — points toward wind source */
}

.vaxw-detail-value .vaxw-wind-dir-arrow {
	font-size: 13px;
	margin-right: 2px;
	vertical-align: middle;
}

/* Wind row: arrow + speed side by side */
.vaxw-card-wind-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	margin-bottom: 1px;
}

.vaxw-card-wind-speed {
	font-size: 15px;
	font-weight: 700;
	color: #1a3a5c;
	line-height: 1;
}

.vaxw-card--current .vaxw-card-wind-speed {
	color: #1e5a96;
}

.vaxw-card-gust {
	font-size: 10px;
	color: #6ab0e0;
	font-weight: 600;
	margin-bottom: 2px;
}

.vaxw-card-icon {
	display: block;
	margin: 2px auto;
	width: 28px;
	height: 28px;
}

.vaxw-card-temp {
	font-size: 11px;
	color: #4a6080;
	margin: 1px 0;
	white-space: nowrap;
}

.vaxw-card-pop {
	font-size: 10px;
	color: #4a90d9;
	min-height: 13px;
}

/* Gust emphasis in current conditions detail grid */
.vaxw-detail-value--gust {
	color: #4a90d9;
}

/* ── Attribution ────────────────────────────────────────────────────────── */
.vaxw-copyright {
	margin: 12px 0 0;
	padding-top: 8px;
	border-top: 1px solid #ebebeb;
	font-size: 11px;
	color: #aaa;
	text-align: left;
}

.vaxw-copyright a {
	color: inherit;
	text-decoration: none;
}

.vaxw-copyright a:hover {
	text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
	.vaxw-current {
		flex-direction: column;
		gap: 14px;
	}

	.vaxw-current-main {
		display: flex;
		align-items: center;
		gap: 16px;
		width: 100%;
		text-align: left;
	}

	.vaxw-current-icon {
		margin: 0;
	}

	.vaxw-current-details {
		grid-template-columns: repeat(2, 1fr);
	}
}
