/* All styling stays inside the shortcode. Its surrounding page owns spacing. */
.apw-weather.apw-weather {
	--apw-surface: #fff;
	--apw-text: #172b41;
	--apw-muted: #596e82;
	--apw-blue: #0875dd;
	--apw-line: #e4edf5;
	--apw-shadow: 0 9px 24px #6487a31c;
	--apw-radius: 24px;
	container-name: apw-weather;
	container-type: inline-size;
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--apw-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.45;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	overflow-wrap: break-word;
	font-variant-numeric: tabular-nums;
	-webkit-text-size-adjust: 100%;
}

.apw-weather *,
.apw-weather *::before,
.apw-weather *::after {
	box-sizing: border-box;
}

/* Scoped resets prevent editorial theme rules from changing widget layout. */
.apw-weather :where(section, article, div, span, p, footer, time, small, h1, h2, h3, h4, a),
.apw-weather [class^="apw-weather__"] {
	margin: 0;
	padding: 0;
	border: 0;
	float: none;
	width: auto;
	max-width: none;
	min-width: 0;
	background: transparent;
	box-shadow: none;
	font-family: inherit;
	font-style: normal;
	line-height: inherit;
	letter-spacing: normal;
	text-transform: none;
}

.apw-weather .apw-weather__title {
	display: block;
	max-width: 720px;
	margin: 0 auto 20px;
	color: var(--apw-text);
	font-family: inherit;
	font-size: 25px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -.65px;
	text-align: center;
	text-wrap: balance;
}

.apw-weather .apw-weather__title::before,
.apw-weather .apw-weather__title::after,
.apw-weather .apw-weather__source-link::before,
.apw-weather .apw-weather__source-link::after {
	content: none;
}

.apw-weather .apw-weather__surface {
	border: 1px solid #eaf1f7;
	border-radius: var(--apw-radius);
	background: var(--apw-surface);
	box-shadow: var(--apw-shadow);
	color: var(--apw-text);
}

.apw-weather .apw-weather__current {
	display: grid;
	grid-template-columns: 1fr 1.4fr 1fr;
	align-items: center;
	gap: 14px;
	min-height: 205px;
	padding: 27px 25px;
}

.apw-weather .apw-weather__now-label {
	color: var(--apw-blue);
	font-size: 13px;
	font-weight: 650;
	letter-spacing: 1.6px;
}

.apw-weather .apw-weather__place {
	max-width: 170px;
	margin-top: 8px;
	color: var(--apw-muted);
	font-size: 12px;
}

.apw-weather .apw-weather__main {
	text-align: center;
}

.apw-weather .apw-weather__temperature-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.apw-weather .apw-weather__main-icon {
	display: grid;
	place-items: center;
	flex: 0 0 66px;
	width: 66px;
	height: 70px;
	filter: drop-shadow(0 5px 6px #629aca20);
}

.apw-weather .apw-weather__weather-icon {
	display: block;
	width: 64px;
	height: 64px;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: middle;
	flex-shrink: 0;
}

.apw-weather .apw-weather__temperature {
	color: var(--apw-text);
	font-size: 62px;
	font-weight: 550;
	line-height: 1;
	letter-spacing: -3px;
	white-space: nowrap;
}

.apw-weather .apw-weather__temperature-unit {
	display: inline;
	margin-left: 3px;
	font-size: 23px;
	font-weight: 400;
	line-height: 1.65;
	letter-spacing: 0;
	vertical-align: top;
}

.apw-weather .apw-weather__condition {
	margin-top: 10px;
	font-size: 16px;
	font-weight: 550;
}

.apw-weather .apw-weather__feels {
	margin-top: 5px;
	color: var(--apw-muted);
	font-size: 12px;
}

.apw-weather .apw-weather__date {
	color: var(--apw-text);
	font-size: 13px;
	text-align: right;
}

.apw-weather .apw-weather__time {
	display: block;
	margin-top: 3px;
	font-size: 23px;
	font-weight: 500;
	letter-spacing: -.5px;
}

.apw-weather .apw-weather__date-caption {
	display: block;
	margin-top: 5px;
	color: var(--apw-muted);
	font-size: 11px;
}

.apw-weather .apw-weather__metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 11px;
	margin-top: 14px;
}

.apw-weather .apw-weather__metric {
	padding: 18px 8px;
	text-align: center;
}

.apw-weather .apw-weather__metric-icon {
	display: flex;
	justify-content: center;
	margin-bottom: 8px;
	color: var(--apw-blue);
}

.apw-weather .apw-weather__metric-svg {
	display: block;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	border: 0;
	fill: none;
	stroke: currentColor;
	flex-shrink: 0;
}

.apw-weather .apw-weather__metric-label {
	min-height: 17px;
	color: var(--apw-muted);
	font-size: 11px;
}

.apw-weather .apw-weather__metric-value {
	margin-top: 6px;
	font-size: 23px;
	font-weight: 550;
	letter-spacing: -.55px;
	white-space: nowrap;
}

.apw-weather .apw-weather__metric-unit {
	display: inline;
	margin-left: 3px;
	color: var(--apw-muted);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0;
}

.apw-weather .apw-weather__low {
	color: var(--apw-muted);
	font-weight: 400;
}

.apw-weather .apw-weather__forecast {
	margin-top: 25px;
}

.apw-weather .apw-weather__section-label {
	margin: 0 0 14px;
	color: var(--apw-text);
	font-size: 15px;
	font-weight: 550;
	line-height: 1.4;
	letter-spacing: -.2px;
}

.apw-weather .apw-weather__days {
	display: grid;
	grid-template-columns: repeat(var(--apw-days, 7), minmax(0, 1fr));
	gap: 8px;
}

.apw-weather .apw-weather__day {
	padding: 16px 7px;
	border-radius: 18px;
	text-align: center;
}

.apw-weather .apw-weather__day-date {
	display: block;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.apw-weather .apw-weather__day-name {
	margin-top: 4px;
	color: var(--apw-muted);
	font-size: 11px;
}

.apw-weather .apw-weather__day-icon {
	display: grid;
	place-items: center;
	height: 52px;
	margin-top: 8px;
}

.apw-weather .apw-weather__day-icon .apw-weather__weather-icon {
	width: 46px;
	height: 46px;
}

.apw-weather .apw-weather__day-temperature {
	margin-top: 6px;
	font-size: 27px;
	font-weight: 550;
	line-height: 1.1;
	letter-spacing: -1px;
}

.apw-weather .apw-weather__average-label {
	margin: 3px 0 10px;
	color: var(--apw-muted);
	font-size: 10px;
}

.apw-weather .apw-weather__day-condition {
	min-height: 30px;
	font-size: 11px;
	line-height: 1.4;
}

.apw-weather .apw-weather__day-more {
	margin-top: 10px;
	padding-top: 9px;
	border-top: 1px solid var(--apw-line);
	color: var(--apw-muted);
	font-size: 11px;
	line-height: 1.7;
}

.apw-weather .apw-weather__day-wind-label {
	margin-top: 2px;
	font-size: 10px;
}

.apw-weather .apw-weather__day--today {
	border-color: transparent;
	background: linear-gradient(145deg, #0874dd, #1685e2);
	box-shadow: 0 8px 20px #0a80ee30;
	color: #fff;
}

.apw-weather .apw-weather__day--today :is(.apw-weather__day-name, .apw-weather__day-more, .apw-weather__average-label) {
	color: #fff;
}

.apw-weather .apw-weather__day--today .apw-weather__day-more {
	border-color: #ffffff50;
}

.apw-weather .apw-weather__footer {
	margin-top: 18px;
	color: var(--apw-muted);
	font-size: 11px;
	line-height: 1.6;
	text-align: center;
}

.apw-weather .apw-weather__source {
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.apw-weather .apw-weather__google-attribution {
	display: inline-block;
	margin: 0 auto 7px;
	padding: 5px 8px;
	border-radius: 7px;
	background: #fff;
	color: #5e5e5e;
	font-family: Arial, sans-serif;
	font-size: 12px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.4;
	letter-spacing: normal;
}

.apw-weather .apw-weather__google-attribution span {
	white-space: nowrap;
}

.apw-weather .apw-weather__source-link {
	color: #0867bb;
	font-size: inherit;
	font-weight: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: none;
}

.apw-weather .apw-weather__source-link:hover {
	color: #034b90;
	text-decoration: underline;
}

.apw-weather .apw-weather__source-link:focus-visible {
	outline: 2px solid var(--apw-blue);
	outline-offset: 3px;
	border-radius: 2px;
}

.apw-weather .apw-weather__disclaimer {
	max-width: 900px;
	margin: 6px auto 0;
	color: inherit;
	font-size: 10px;
	line-height: 1.65;
}

.apw-weather .apw-weather__districts {
	margin: 0 0 24px;
	padding: 0;
	background: transparent;
}

.apw-weather .apw-weather__districts-title {
	margin: 0 0 12px;
	color: var(--apw-text);
	font-size: 16px;
	font-weight: 650;
	line-height: 1.4;
}

.apw-weather .apw-weather__district-list {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.apw-weather .apw-weather__district-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 15px;
	border: 1px solid #d7e7f5;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 3px 10px #6487a315;
	color: #16537d;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.apw-weather a.apw-weather__district-link:hover {
	border-color: var(--apw-blue);
	background: #eaf5ff;
	color: #084d8d;
	text-decoration: none;
	transform: translateY(-2px);
}

.apw-weather a.apw-weather__district-link:focus-visible {
	outline: 3px solid var(--apw-blue);
	outline-offset: 3px;
}

.apw-weather .apw-weather__district-link--active {
	border-color: #086fcb;
	background: linear-gradient(135deg, #0572d6, #2ca5ef);
	box-shadow: 0 5px 15px #0875dd36;
	color: #fff;
}

.apw-weather .apw-weather__notice {
	margin: 0 0 14px;
	padding: 12px 16px;
	border: 1px solid #d4e6f4;
	border-radius: 14px;
	background: #f1f8fd;
	color: #335571;
	font-size: 13px;
	line-height: 1.5;
}

.apw-weather.apw-weather--unavailable .apw-weather__notice {
	margin: 0;
}

/* Container queries also support desktop sidebars and page-builder columns. */
@container apw-weather (max-width: 760px) {
	.apw-weather .apw-weather__days { grid-template-columns: repeat(var(--apw-medium-days, 4), minmax(0, 1fr)); gap: 10px; }
	.apw-weather .apw-weather__day { padding: 17px 8px; }
}

@container apw-weather (max-width: 650px) {
	.apw-weather .apw-weather__title { font-size: 23px; }
	.apw-weather .apw-weather__current { grid-template-columns: 1fr 1.5fr; gap: 18px; padding: 22px 18px; }
	.apw-weather .apw-weather__current-left { grid-column: 1; grid-row: 1; }
	.apw-weather .apw-weather__main { grid-column: 2; grid-row: 1 / 3; }
	.apw-weather .apw-weather__date { grid-column: 1; grid-row: 2; text-align: left; }
	.apw-weather .apw-weather__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container apw-weather (max-width: 480px) {
	.apw-weather .apw-weather__title { font-size: 21px; }
	.apw-weather .apw-weather__current { grid-template-columns: 1fr 1fr; gap: 20px 10px; padding: 20px 16px; }
	.apw-weather .apw-weather__main { grid-column: 1 / 3; grid-row: 2; }
	.apw-weather .apw-weather__date { grid-column: 2; grid-row: 1; text-align: right; }
	.apw-weather .apw-weather__now-label { font-size: 12px; }
	.apw-weather .apw-weather__time { font-size: 19px; }
	.apw-weather .apw-weather__days { grid-template-columns: repeat(var(--apw-small-days, 2), minmax(0, 1fr)); }
	.apw-weather .apw-weather__day { padding: 18px 10px; }
	.apw-weather .apw-weather__day-condition { min-height: 16px; }
}

@container apw-weather (max-width: 270px) {
	.apw-weather .apw-weather__current { display: flex; flex-direction: column; padding: 18px 10px; }
	.apw-weather .apw-weather__date, .apw-weather .apw-weather__current-left { text-align: center; }
	.apw-weather .apw-weather__temperature { font-size: 48px; }
	.apw-weather .apw-weather__metrics, .apw-weather .apw-weather__days { grid-template-columns: minmax(0, 1fr); }
}

/* Older browsers fall back to the viewport; auto-fit protects narrow columns. */
@supports not (container-type: inline-size) {
	.apw-weather .apw-weather__days { grid-template-columns: repeat(auto-fit, minmax(min(100%, 105px), 1fr)); }
	.apw-weather .apw-weather__metrics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); }
	.apw-weather .apw-weather__current { display: flex; flex-wrap: wrap; justify-content: space-between; }
	.apw-weather .apw-weather__main { flex: 1 1 220px; }
	@media (max-width: 650px) {
		.apw-weather .apw-weather__title { font-size: 23px; }
		.apw-weather .apw-weather__current { padding: 22px 18px; }
	}
	@media (max-width: 480px) {
		.apw-weather .apw-weather__current { justify-content: center; gap: 20px 10px; }
		.apw-weather .apw-weather__main { order: 3; flex-basis: 100%; }
		.apw-weather .apw-weather__current-left, .apw-weather .apw-weather__date { flex: 1; }
		.apw-weather .apw-weather__title { font-size: 21px; }
	}
}

@media (prefers-reduced-motion: reduce) {
	.apw-weather * { animation: none; transition: none; }
}
