/**
 * Case Studies.
 *
 * Experience pages: how we work and what we have learned come first. Where a
 * piece carries results, they sit with their period and definitions, and a
 * figure is never carried by colour alone (every outcome also has a word, a
 * glyph and a different border or fill pattern).
 */

.cs-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cs-hero {
	position: relative;
	min-height: 360px;
	height: auto;
	padding: 0;
	background-position: center;
	background-size: cover;
}

.cs-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(28, 53, 94, 0.78);
}

.cs-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	min-height: 360px;
	flex-direction: column;
	justify-content: center;
	padding-top: 55px;
	padding-bottom: 55px;
}

.cs-hero__eyebrow {
	margin: 0 0 12px;
	font-family: "Flexo", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8bc53f;
}

#hero.cs-hero h1 {
	max-width: 880px;
	margin: 0;
	font-family: "Flexo", sans-serif;
	font-size: 52px;
	font-weight: 600;
	line-height: 1.05;
	color: #fff;
}

.cs-hero__standfirst {
	max-width: 760px;
	margin: 18px 0 0;
	font-size: 21px;
	line-height: 1.45;
	color: #fff;
}

.cs-hero__classification {
	margin: 18px 0 0;
	font-size: 17px;
	color: #fff;
}

.cs-hero__classification a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cs-main {
	background: #fff;
	padding: 70px 0 90px;
}

.cs-article {
	max-width: 900px;
	margin: 0 auto;
}

.cs-experience {
	margin: 34px 0 0;
	padding: 26px 28px;
	border-left: 6px solid #8bc53f;
	background: #f4f6f8;
}

.cs-experience__label {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #0781ae;
}

.cs-experience__text {
	margin: 0;
	font-family: "Flexo", sans-serif;
	font-size: 26px;
	line-height: 1.3;
	color: #1c355e;
}

.cs-results__summary {
	margin: 0 0 22px;
	font-size: 19px;
	line-height: 1.5;
	color: #30393c;
}

.cs-results__measured {
	margin-top: 30px;
}

.cs-results__measured h3 {
	margin: 0 0 14px;
	font-family: "Flexo", sans-serif;
	font-size: 21px;
	line-height: 1.25;
	color: #1c355e;
}

.cs-section {
	scroll-margin-top: 125px;
	padding: 34px 0 38px;
	border-bottom: 1px solid #e2e7ea;
}

.cs-section:first-of-type {
	padding-top: 0;
}

.cs-section h2,
.cs-library h2 {
	margin: 0 0 20px;
	font-family: "Flexo", sans-serif;
	font-size: 31px;
	line-height: 1.2;
	color: #1c355e;
}

.cs-section__content {
	font-size: 18px;
	line-height: 1.68;
	color: #30393c;
}

.cs-section__content > :first-child {
	margin-top: 0;
}

.cs-section__content > :last-child {
	margin-bottom: 0;
}

.cs-section a,
.cs-method a {
	color: #0781ae;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Metric charts */

.cs-metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.cs-metric {
	margin: 0;
	padding: 20px;
	border: 1px solid #dfe5e8;
	border-radius: 12px;
	background: #fff;
}

.cs-metric__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	margin-bottom: 10px;
}

.cs-metric__label {
	font-family: "Flexo", sans-serif;
	font-size: 18px;
	line-height: 1.25;
	color: #1c355e;
}

.cs-metric__note {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.45;
	color: #52636d;
}

.cs-metric__chart {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	font-family: "Flexo", Arial, sans-serif;
}

.cs-metric__table {
	width: 100%;
	margin: 12px 0 0;
	border-collapse: collapse;
	font-size: 13px;
	line-height: 1.4;
	color: #30393c;
}

.cs-metric__table th,
.cs-metric__table td {
	padding: 6px 8px;
	border-top: 1px solid #e2e7ea;
	text-align: left;
}

.cs-metric__table th {
	font-weight: 700;
	color: #52636d;
}

.cs-badge {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 2px solid #52636d;
	border-radius: 999px;
	background: #f4f6f8;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	color: #30393c;
}

.cs-badge--good {
	border-style: solid;
	border-color: #2e7d32;
	background: #eaf5ea;
	color: #1b5e20;
}

.cs-badge--bad {
	border-style: dashed;
	border-color: #b3261e;
	background: #fbeceb;
	color: #8c1d18;
}

.cs-badge--neutral {
	border-style: dotted;
}

.cs-badge__word {
	padding-left: 6px;
	border-left: 1px solid currentColor;
}

/* Measurement list */

.cs-definitions {
	display: grid;
	gap: 14px;
	margin: 0;
}

.cs-definition {
	padding: 16px 18px;
	border-radius: 10px;
	background: #f4f6f8;
}

.cs-definition dt {
	margin-bottom: 6px;
	font-weight: 700;
	color: #1c355e;
}

.cs-definition dd {
	margin: 0;
	line-height: 1.55;
	color: #4b565d;
}

.cs-definition__source {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 700;
	color: #0781ae;
}

.cs-period {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	font-size: 16px;
	line-height: 1.6;
	color: #30393c;
}

.cs-period li {
	padding: 3px 0;
}

.cs-period strong {
	color: #1c355e;
}

/* Honesty blocks */

.cs-disclaimer,
.cs-method {
	margin-top: 34px;
	padding: 22px 24px;
	border-left: 4px solid #29abe2;
	background: #f7f9fa;
	font-size: 15px;
	line-height: 1.55;
	color: #30393c;
}

.cs-disclaimer p,
.cs-method p {
	margin: 0 0 8px;
}

.cs-disclaimer p:last-child,
.cs-method p:last-child {
	margin-bottom: 0;
}

.cs-method h2 {
	margin: 0 0 12px;
	font-family: "Flexo", sans-serif;
	font-size: 21px;
	color: #1c355e;
}

.cs-method ul {
	margin: 0 0 10px;
	padding-left: 20px;
}

/* Related and archive */

.cs-related__grid,
.cs-industry-grid,
.cs-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.cs-related__item,
.cs-industry-card {
	display: flex;
	min-height: 120px;
	flex-direction: column;
	justify-content: space-between;
	padding: 18px;
	border: 1px solid #dfe5e8;
	border-radius: 10px;
	color: #1c355e;
	text-decoration: none;
}

.cs-related__item span {
	font-weight: 700;
	line-height: 1.35;
}

.cs-related__item small,
.cs-industry-card small {
	margin-top: 16px;
	font-weight: 700;
	color: #0781ae;
}

.cs-library__intro {
	max-width: 850px;
	margin: 0 auto 55px;
	font-size: 20px;
	line-height: 1.6;
	text-align: center;
	color: #4b565d;
}

.cs-industries {
	margin-bottom: 68px;
}

.cs-industries > h2,
.cs-library__listing > h2 {
	text-align: center;
}

.cs-industry-card {
	background: #f4f6f8;
	border-color: #f4f6f8;
}

.cs-industry-card strong {
	font-family: "Flexo", sans-serif;
	font-size: 21px;
	line-height: 1.2;
	color: #1c355e;
}

.cs-card {
	overflow: hidden;
	border: 1px solid #dfe5e8;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cs-card__link {
	display: flex;
	height: 100%;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

.cs-card__image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eaf0f3;
}

.cs-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cs-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
}

.cs-card__meta {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #0781ae;
}

.cs-card__title {
	font-family: "Flexo", sans-serif;
	font-size: 21px;
	line-height: 1.2;
	color: #1c355e;
}

.cs-card__standfirst {
	font-size: 14px;
	line-height: 1.55;
	color: #3f4a50;
}

.cs-card__flag {
	align-self: flex-start;
	padding: 3px 9px;
	border: 1px solid #2e7d32;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	color: #1b5e20;
}

.cs-card__cta {
	margin-top: auto;
	padding-top: 12px;
	font-size: 13px;
	font-weight: 700;
	color: #0781ae;
}

.cs-card__link:hover .cs-card__title,
.cs-card__link:focus .cs-card__title {
	color: #0781ae;
}

.cs-library .navigation.pagination {
	margin-top: 40px;
	text-align: center;
}

.cs-library .nav-links .page-numbers {
	display: inline-block;
	margin: 3px;
	padding: 8px 12px;
	border: 1px solid #ccd5da;
	border-radius: 6px;
	color: #1c355e;
	text-decoration: none;
}

.cs-library .nav-links .current {
	background: #1c355e;
	color: #fff;
}

.cs-library__empty {
	padding: 30px;
	border-radius: 10px;
	background: #f4f6f8;
	text-align: center;
	color: #59666d;
}

@media (prefers-reduced-motion: no-preference) {
	.cs-card,
	.cs-industry-card,
	.cs-related__item {
		transition: transform 0.15s ease, box-shadow 0.15s ease;
	}

	.cs-card:hover,
	.cs-card:focus-within,
	.cs-industry-card:hover,
	.cs-industry-card:focus,
	.cs-related__item:hover,
	.cs-related__item:focus {
		transform: translateY(-2px);
		box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
	}
}

@media only screen and (max-width: 1000px) {
	.cs-related__grid,
	.cs-industry-grid,
	.cs-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media only screen and (max-width: 767px) {
	.cs-hero,
	.cs-hero__inner {
		min-height: 290px;
	}

	.cs-hero__inner {
		padding-top: 45px;
		padding-bottom: 45px;
	}

	#hero.cs-hero h1 {
		font-size: 34px;
		line-height: 1.1;
	}

	.cs-hero__classification {
		font-size: 15px;
	}

	.cs-main {
		padding: 45px 0 60px;
	}

	.cs-hero__standfirst {
		font-size: 17px;
	}

	.cs-experience {
		padding: 20px;
	}

	.cs-experience__text {
		font-size: 21px;
	}

	.cs-section {
		padding: 28px 0 31px;
	}

	.cs-section h2,
	.cs-library h2 {
		font-size: 25px;
	}

	.cs-section__content {
		font-size: 16px;
	}

	.cs-metrics,
	.cs-related__grid,
	.cs-industry-grid,
	.cs-card-grid {
		grid-template-columns: 1fr;
	}

	.cs-metric {
		padding: 16px;
	}

	.cs-library__intro {
		margin-bottom: 38px;
		font-size: 17px;
		text-align: left;
	}

	.cs-industries {
		margin-bottom: 48px;
	}

	.cs-industry-card {
		min-height: 0;
	}
}
