/*
 * Weather topbar
 * Scoped aggressively because Elementor widget styles can otherwise override
 * the shortcode output, especially inside responsive header templates.
 */
html body .dyr-weather-topbar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	font-family: inherit;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	text-align: center;
	font-variant-numeric: tabular-nums;
	color: #fff !important;
}

/* Beat Elementor global/link/widget colours without touching anything outside this component. */
html body .dyr-weather-topbar,
html body .dyr-weather-topbar span,
html body .dyr-weather-topbar strong,
html body .dyr-weather-topbar a {
	color: #fff !important;
}

html body .dyr-weather-topbar__message {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45em;
	min-width: 0;
}

html body .dyr-weather-topbar__summary {
	display: inline-flex;
	align-items: center;
	gap: 0.28em;
	white-space: nowrap;
	flex: 0 0 auto;
}

html body .dyr-weather-topbar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1 !important;
}

html body .dyr-weather-topbar__place {
	font-weight: 700 !important;
}

html body .dyr-weather-topbar__place,
html body .dyr-weather-topbar__temperature {
	white-space: nowrap;
}

html body .dyr-weather-topbar__separator {
	opacity: 0.72;
}

html body .dyr-weather-topbar__advice {
	min-width: 0;
	font-weight: 400 !important;
}

html body .dyr-weather-topbar__advice--mobile {
	display: none;
}

html body .dyr-weather-topbar__source {
	flex: 0 0 auto;
	margin-left: 0.25em;
	font-size: 9px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	white-space: nowrap;
	opacity: 0.5;
	text-decoration: none !important;
}

html body .dyr-weather-topbar__source:hover,
html body .dyr-weather-topbar__source:focus-visible {
	opacity: 0.9;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

html body .dyr-weather-topbar--fallback {
	gap: 0.4em;
}

@media (max-width: 767px) {
	html body .dyr-weather-topbar {
		box-sizing: border-box;
		padding: 7px 38px 7px 10px;
		font-size: 12.5px !important;
		line-height: 1.22 !important;
	}

	html body .dyr-weather-topbar__message {
		flex-wrap: wrap;
		column-gap: 0.35em;
		row-gap: 0.08em;
		width: 100%;
	}

	html body .dyr-weather-topbar__advice--desktop {
		display: none;
	}

	html body .dyr-weather-topbar__advice--mobile {
		display: inline;
	}

	/* Attribution remains visible but no longer creates a third text row. */
	html body .dyr-weather-topbar__source {
		position: absolute;
		right: 6px;
		bottom: 3px;
		margin: 0;
		font-size: 7px !important;
		opacity: 0.42;
	}
}

@media (max-width: 390px) {
	html body .dyr-weather-topbar {
		padding-inline: 8px 34px;
		font-size: 12px !important;
	}

	html body .dyr-weather-topbar__separator {
		display: none;
	}

	html body .dyr-weather-topbar__advice--mobile {
		flex-basis: 100%;
	}
}
