/* IFS Haze Live Tracker */

/* Tracker: value + status "button" (+ NEA band range for PM2.5). Restyle freely from Flatsome / UX Builder. */
.ifs-haze-tracker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5em 1em;
}

.ifs-haze-value {
	font-size: 80px;
	font-weight: 800;
	line-height: 1;
}

.ifs-haze-status {
	display: inline-block;
	margin: 30px 0;
	padding: .55em 1.4em;
	border-radius: 99px;
	background-color: var(--ifs-haze-color, #6b7280);
	color: #fff;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	transition: background-color .4s ease;
}

.ifs-haze-band {
	font-weight: 600;
}

/* PM2.5 status: "NEA band range: 0 - 55 µg/m³" next to the status button */
.ifs-haze-status-block {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
}

.ifs-haze-band-label {
	font-weight: 400;
}

/* Protocol paragraphs */
.ifs-haze-protocol[hidden],
.ifs-haze-cell[hidden],
.ifs-haze-notice[hidden] {
	display: none !important;
}

.ifs-haze-protocol > :last-child,
.ifs-haze-cell > :last-child {
	margin-bottom: 0;
}

/* Section background driven by the current level (Flatsome puts the colour on .section-bg). */
.ifs-haze-section-bg,
.ifs-haze-section-bg > .section-bg {
	background-color: var(--ifs-haze-bg) !important;
	transition: background-color .4s ease;
}

/* Out-of-date / unavailable notice */
.ifs-haze-notice {
	margin: 1em 0;
	padding: .75em 1em;
	border-left: 4px solid #e33d3a;
	background: #fff4ec;
	font-size: .9em;
	color: #013068;
}

/* Admin test mode badge */
.ifs-haze-preview-badge {
	position: fixed;
	left: 12px;
	bottom: 12px;
	z-index: 99999;
	padding: .5em .9em;
	border-radius: 4px;
	background: #1f1f1f;
	color: #fff;
	font: 600 13px/1.3 sans-serif;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

/* Section whose (single) protocol paragraph does not apply right now – hidden entirely (class set by JS). */
.ifs-haze-section-off {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.ifs-haze-status,
	.ifs-haze-section-bg,
	.ifs-haze-section-bg > .section-bg {
		transition: none;
	}
}

/* Mobile (Flatsome small breakpoint) */
@media (max-width: 549px) {
	.ifs-haze-status-block {
		display: inline-flex;
		align-items: center;
		gap: 0;
		flex-direction: column;
		margin-top: 30px;
	}

	.ifs-haze-status {
		margin: 30px 0 30px;
	}
}
