/* Demographics page. Mobile design 872 x 2000, desktop (lg+) 2000 x 1122. Everything in cqw / %. */

.demo-panel {
	position: relative;
	overflow: hidden;
	container-type: inline-size;
	aspect-ratio: 872 / 2000;
	background: #14311f;
	color: #fff;
}
.demo-panel picture { display: contents; }
.demo-panel img { position: absolute; display: block; height: auto; }

.demo-panel__bg {
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
}

.demo-man {
	left: 0;
	bottom: 29.4%;
	width: 100%;
}

.demo-title {
	position: absolute;
	left: 6.54%;
	top: 6.5cqw;
	margin: 0;
	font-size: 5.65cqw;
	line-height: 1.19;
	font-weight: 300;
	z-index: 3;
}
.demo-title strong { font-weight: 700; }

.demo-text {
	position: absolute;
	left: 6.54%;
	width: 85cqw;
	margin: 0;
	font-size: 3.4cqw;
	line-height: 1.17;
	font-weight: 300;
	z-index: 3;
}
.demo-text strong { font-weight: 700; }
.demo-text--one { top: 10.4%; }
.demo-text--two { top: 18.25%; }

.demo-circle { z-index: 2; }
.demo-circle--population { left: 4.1%;   top: 34.2%;  width: 36.5cqw; }
.demo-circle--qualified  { left: 19.46%; top: 52.5%;  width: 32.8cqw; }
.demo-circle--working    { left: 61.7%;  top: 54.7%;  width: 29.8cqw; }
.demo-circle--cycle      { left: 1.95%;  top: 84.95%; width: 33.6cqw; z-index: 3; }

.demo-map {
	left: 0;
	top: 70.6%;
	width: 100%;
	height: 29.4%;
	object-fit: cover;
	z-index: 1;
}

@media (min-width: 992px) {
	.demo-panel { aspect-ratio: 2000 / 1122; }
	.demo-panel__bg { height: 100%; object-fit: cover; object-position: 50% 0; }

	.demo-man {
		left: 53.15%;
		top: 0;
		bottom: auto;
		width: 46.85cqw;
	}

	.demo-title {
		left: 3.9%;
		top: 9.45%;
		font-size: 2.7cqw;
	}

	.demo-text {
		width: max-content;
		font-size: 1.12cqw;
		line-height: 1.16;
	}
	.demo-text--one { left: 3.9%;  top: 23.1%; }
	.demo-text--two { left: 28.2%; top: 23.1%; }

	.demo-circle--population { left: 51.2%;  top: 4.55%;  width: 14.7cqw; }
	.demo-circle--qualified  { left: 58.1%;  top: 33.5%;  width: 13.15cqw; }
	.demo-circle--working    { left: 74.45%; top: 42.9%;  width: 12cqw; }
	.demo-circle--cycle      { left: 1.4%;   top: 70.05%; width: 15.65cqw; }

	.demo-map { left: 0; top: 41.27%; width: 50cqw; height: 58.73%; }

	.demo-photo { z-index: 1; object-fit: cover; }
	.demo-photo--cyclist { left: 50.05%; top: 67.47%; width: 24.7cqw; height: 32.53%; }
	.demo-photo--bench   { left: 74.75%; top: 67.47%; width: 25.25cqw; height: 32.53%; }
}

/* The cycle circle sits well below the others on small screens, so don't hold it back there. */
@media (max-width: 991.98px) {
	.demo-circle.demo-circle--cycle { --anim-delay: 0ms; }
}
