.cia-climate {
	--cia-climate-accent: #ec1919;
	--cia-climate-ink: #23313a;
	--cia-climate-muted: #667783;
	--cia-climate-line: #e7e2e2;
	--cia-climate-soft: #f8f6f4;
	--cia-climate-card-bg: #ffffff;
	--cia-climate-best: #2f8f5b;
	--cia-climate-good: #8fac7b;
	--cia-climate-mixed: #d89a3d;
	--cia-climate-poor: #ec1919;
	--cia-climate-bar: #e78a45;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 2rem 0;
	color: var(--cia-climate-ink);
	font-family: inherit;
	overflow: hidden;
}

.cia-climate *,
.cia-climate *::before,
.cia-climate *::after {
	box-sizing: border-box;
}

.cia-climate .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

.cia-climate-card {
	padding: clamp(1rem, 2.4vw, 1.45rem);
	background: var(--cia-climate-card-bg);
	border: 1px solid var(--cia-climate-line);
	border-radius: 18px;
	box-shadow: 0 18px 45px rgba(35, 49, 58, 0.08);
}

.cia-climate-header {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.cia-climate-heading {
	min-width: 0;
}

.cia-climate-title {
	margin: 0;
	color: var(--cia-climate-ink);
	font-size: clamp(1.7rem, 3vw, 2.45rem);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.1;
}

.cia-climate-intro,
.cia-climate-note {
	max-width: 74ch;
	color: var(--cia-climate-muted);
	font-size: 0.98rem;
	line-height: 1.65;
}

.cia-climate-intro {
	margin: 0 0 1.15rem;
}

.cia-climate-intro p,
.cia-climate-note p {
	margin: 0.55rem 0 0;
}

.cia-climate-toggle {
	display: inline-flex;
	flex: 0 0 auto;
	gap: 0.18rem;
	padding: 0.25rem;
	background: var(--cia-climate-soft);
	border: 1px solid var(--cia-climate-line);
	border-radius: 999px;
}

.cia-climate-toggle-button {
	display: inline-grid;
	place-items: center;
	width: 2.45rem;
	height: 2.45rem;
	padding: 0;
	color: var(--cia-climate-muted);
	background: transparent;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	line-height: 1;
	transition: background-color 180ms ease, color 180ms ease;
}

.cia-climate-toggle-button[aria-pressed="true"] {
	color: #ffffff;
	background: var(--cia-climate-accent);
}

.cia-climate-toggle-button:focus-visible,
.cia-climate-chart-wrap:focus-visible {
	outline: 2px solid var(--cia-climate-accent);
	outline-offset: 3px;
}

.cia-climate-chart-wrap {
	width: 100%;
	max-width: 100%;
	padding: 0.2rem 0 0.5rem;
	overflow-x: hidden;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-color: var(--cia-climate-line) transparent;
}

.cia-climate-months {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 8px;
	min-width: 0;
}

.cia-climate-month {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	min-height: 188px;
	padding: 8px 4px;
	text-align: center;
	background: #ffffff;
	border: 1px solid var(--cia-climate-line);
	border-top: 5px solid var(--cia-climate-good);
	border-radius: 16px;
	box-shadow: 0 10px 24px rgba(35, 49, 58, 0.08);
	overflow: hidden;
}

.cia-climate-icon {
	display: grid;
	place-items: center;
	width: 1.55rem;
	height: 1.55rem;
	margin: 0 auto 0.25rem;
	color: #d98b33;
}

.cia-climate-icon svg {
	display: block;
	width: 1.35rem;
	height: 1.35rem;
	max-width: 100%;
	max-height: 100%;
	fill: none;
	stroke: currentColor;
}

.cia-climate-temp {
	min-height: 1.25rem;
	color: var(--cia-climate-ink);
	font-size: clamp(0.78rem, 1.25vw, 1rem);
	font-weight: 850;
	line-height: 1.2;
}

.cia-climate-bar-wrap {
	display: flex;
	flex: 0 0 auto;
	align-items: flex-end;
	justify-content: center;
	width: 20px;
	height: 82px;
	margin: 0.45rem auto;
	background: #eef1f0;
	border-radius: 999px;
	overflow: hidden;
}

.cia-climate-bar {
	display: block;
	flex: 0 0 auto;
	width: 16px;
	height: var(--cia-climate-bar-height, 30%);
	min-height: 8px;
	max-height: 78px;
	background: linear-gradient(180deg, #eca85a 0%, var(--cia-climate-bar) 100%);
	border-radius: 999px 999px 6px 6px;
	transform-origin: bottom;
}

.cia-climate-animate .cia-climate-bar {
	transform: scaleY(0.15);
	transition: transform 650ms ease;
}

.cia-climate-visible .cia-climate-bar {
	transform: scaleY(1);
}

.cia-climate-month-label {
	margin-top: auto;
	color: var(--cia-climate-ink);
	font-size: clamp(0.76rem, 1.05vw, 0.9rem);
	font-weight: 850;
	line-height: 1.2;
}

.cia-climate-rain-sun {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.8rem;
	margin: 0.45rem 0;
	color: var(--cia-climate-muted);
	font-size: 0.76rem;
	line-height: 1.2;
}

.cia-climate-metric {
	display: inline-flex;
	gap: 0.18rem;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	white-space: normal;
	overflow-wrap: anywhere;
}

.cia-climate-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 1.7rem;
	padding: 0.25rem 0.35rem;
	color: #ffffff;
	background: var(--cia-climate-good);
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 850;
	line-height: 1.1;
}

.cia-climate-layout-compact .cia-climate-rain-sun,
.cia-climate-layout-compact .cia-climate-badge,
.cia-climate-layout-compact .cia-climate-card-note {
	display: none;
}

.cia-climate-card-note {
	margin: 0.5rem 0 0;
	color: var(--cia-climate-muted);
	font-size: 0.75rem;
	line-height: 1.35;
}

.cia-climate-rating-best {
	border-top-color: var(--cia-climate-best);
}

.cia-climate-rating-best .cia-climate-badge,
.cia-climate-rating-best .cia-climate-legend-dot {
	background: var(--cia-climate-best);
}

.cia-climate-rating-good {
	border-top-color: var(--cia-climate-good);
}

.cia-climate-rating-good .cia-climate-badge,
.cia-climate-rating-good .cia-climate-legend-dot {
	background: var(--cia-climate-good);
}

.cia-climate-rating-mixed {
	border-top-color: var(--cia-climate-mixed);
}

.cia-climate-rating-mixed .cia-climate-badge,
.cia-climate-rating-mixed .cia-climate-legend-dot {
	background: var(--cia-climate-mixed);
}

.cia-climate-rating-poor {
	border-top-color: var(--cia-climate-poor);
}

.cia-climate-rating-poor .cia-climate-badge,
.cia-climate-rating-poor .cia-climate-legend-dot {
	background: var(--cia-climate-poor);
}

.cia-climate-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1rem;
	margin-top: 1rem;
	color: var(--cia-climate-muted);
	font-size: 0.92rem;
}

.cia-climate-legend-item {
	display: inline-flex;
	gap: 0.38rem;
	align-items: center;
}

.cia-climate-legend-dot {
	width: 0.72rem;
	height: 0.72rem;
	border-radius: 999px;
}

.cia-climate-note {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--cia-climate-line);
}

.cia-climate-disclaimer {
	max-width: 78ch;
	margin: 1rem 0 0;
	color: var(--cia-climate-muted);
	font-size: 0.9rem;
	line-height: 1.55;
}

.cia-climate-layout-detailed .cia-climate-chart-wrap {
	overflow-x: auto;
}

.cia-climate-layout-detailed .cia-climate-months {
	grid-template-columns: repeat(12, minmax(82px, 1fr));
	min-width: 984px;
}

.cia-climate-layout-detailed .cia-climate-month {
	min-height: 275px;
	padding: 0.75rem 0.45rem;
}

.cia-climate-layout-detailed .cia-climate-icon {
	width: 1.85rem;
	height: 1.85rem;
}

.cia-climate-layout-detailed .cia-climate-icon svg {
	width: 1.55rem;
	height: 1.55rem;
}

.cia-climate-layout-detailed .cia-climate-temp {
	font-size: 1.05rem;
}

.cia-climate-layout-detailed .cia-climate-bar-wrap {
	width: 24px;
	height: 105px;
}

.cia-climate-layout-detailed .cia-climate-bar {
	width: 18px;
	max-height: 100px;
}

.cia-climate-missing {
	padding: 0.85rem 1rem;
	background: #fff8e8;
	border: 1px solid #f0d28a;
	border-radius: 12px;
}

@media (max-width: 900px) {
	.cia-climate-chart-wrap {
		overflow-x: auto;
	}

	.cia-climate-months {
		grid-template-columns: repeat(12, minmax(82px, 1fr));
		min-width: 984px;
	}
}

@media (max-width: 720px) {
	.cia-climate-card {
		padding: 1rem;
		border-radius: 16px;
	}

	.cia-climate-header {
		flex-direction: column;
		align-items: stretch;
	}

	.cia-climate-toggle {
		align-self: flex-start;
	}

	.cia-climate-title {
		font-size: 1.6rem;
	}
}

@media (max-width: 767px) {
	.cia-climate {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow: hidden;
		box-sizing: border-box;
	}

	.cia-climate-chart-wrap {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow: hidden;
	}

	.cia-climate-months,
	.cia-climate-layout-detailed .cia-climate-months {
		display: flex;
		flex-wrap: nowrap;
		gap: 12px;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		padding-bottom: 0.5rem;
		overflow-x: auto;
		overflow-y: hidden;
		box-sizing: border-box;
		scroll-snap-type: x mandatory;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	.cia-climate-month {
		flex: 0 0 auto;
		width: 120px;
		max-width: none;
		min-width: 120px;
		min-height: 175px;
		padding: 8px 6px;
		box-sizing: border-box;
		scroll-snap-align: start;
	}

	.cia-climate-layout-detailed .cia-climate-month {
		min-height: 240px;
		padding: 0.65rem 0.4rem;
	}

	.cia-climate-layout-detailed .cia-climate-bar-wrap {
		height: 90px;
	}

	.cia-climate-layout-detailed .cia-climate-bar {
		max-height: 85px;
	}

	.cia-climate-temp,
	.cia-climate-icon,
	.cia-climate-month-label,
	.cia-climate-bar-wrap,
	.cia-climate-bar {
		max-width: 100%;
		box-sizing: border-box;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cia-climate-animate .cia-climate-bar {
		transition: none;
		transform: scaleY(1);
	}
}
