/* Current conditions and forecast. Data comes from Theme > Weather. */

.sa-wx {
	padding-block: clamp(2rem, 5vw, 4rem);
	color: var(--theme-palette-color-3);
}

.sa-wx .ct-container {
	display: grid;
	gap: 2rem;
}

.sa-wx__intro {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.sa-wx__intro h2,
.sa-wx p {
	margin: 0;
}

.sa-wx__now {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.75rem 1.5rem;
	align-items: center;
	padding: clamp(1.25rem, 3vw, 2rem);
	border-radius: 8px;
	background: var(--theme-palette-color-1);
	color: var(--theme-palette-color-7);
}

.sa-wx__now > img {
	width: 4.5rem;
	height: 4.5rem;
}

.sa-wx__summary {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.sa-wx__now .h3,
.sa-wx__now .sa-support {
	color: inherit;
}

.sa-wx__detail {
	grid-column: 1 / -1;
}

.sa-wx__forecast {
	display: grid;
	gap: 1rem;
}

.sa-wx__days,
.sa-wx__hours {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sa-wx__days {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
	gap: 0.75rem;
}

.sa-wx__day,
.sa-wx__hour {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem;
	border-radius: 8px;
	background: var(--theme-palette-color-6);
}

.sa-wx__day img,
.sa-wx__hour img {
	width: 1.75rem;
	height: 1.75rem;
	filter: brightness(0);
}

.sa-wx__hours {
	display: flex;
	gap: 0.75rem;
	overflow: auto;
	overscroll-behavior: inline contain;
}

.sa-wx__hour {
	flex: 0 0 6.5rem;
}

.sa-wx__credit a {
	color: var(--theme-link-initial-color, var(--theme-palette-color-1));
}

@media (max-width: 699px) {
	.sa-wx__now {
		grid-template-columns: 1fr;
	}
}
