/**
 * Case study detail (Figma 34:11651). Shares breadcrumb/aside styles with article.css.
 */
.avx-cs__container {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(1360px + 48px);
	margin: 0 auto;
	padding: 0 24px;
}

/* Hero */
.avx-cs__hero {
	padding: 64px 0 0;
	background: linear-gradient(195.5deg, #fff 13.4%, #fff7f1 50%, #f4f2ff 86.6%);
}

.avx-cs__hero-grid {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 64px;
	margin-bottom: 40px;
}

.avx-cs__intro {
	flex: 1 1 0;
	min-width: 0;
}

.avx-cs__crumbs {
	justify-content: flex-start;
	margin-bottom: 20px;
}

.avx-cs__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.avx-cs h1.avx-cs__title {
	max-width: 900px;
	margin: 0 0 20px;
	color: var(--avx-text-primary);
	font-size: 56px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -2px;
}

.avx-cs__lead {
	max-width: 876px;
	margin: 0;
	color: var(--avx-text-secondary);
	font-size: 18px;
	line-height: 1.6;
}

.avx-cs__facts {
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 420px;
	box-sizing: border-box;
	margin: 0;
	padding: 28px;
	border: 1px solid var(--avx-border);
	border-radius: 24px;
	background: var(--avx-surface);
	box-shadow: 0 12px 32px rgba(10, 18, 48, 0.08);
}

.avx-cs__facts div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 14px;
	line-height: 1.55;
}

.avx-cs__facts dt {
	color: var(--avx-text-muted);
	font-weight: 500;
}

.avx-cs__facts dd {
	margin: 0;
	color: var(--avx-text-primary);
	font-weight: 700;
	text-align: right;
}

.avx-cs__featured {
	position: relative;
	z-index: 1;
	margin: 0;
	overflow: hidden;
	border-radius: 32px 32px 0 0;
}

.avx-cs__featured img {
	display: block;
	width: 100%;
	height: 560px;
	object-fit: cover;
}

/* Metrics bar */
.avx-cs__metrics {
	padding: 48px 0;
	background: var(--avx-navy-900);
}

.avx-cs__metrics ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 4px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.avx-cs__metrics strong {
	display: block;
	background: linear-gradient(90deg, #ff8a45, #f26b1f);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 48px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -2px;
}

.avx-cs__metrics span {
	color: var(--avx-text-inverse-muted);
	font-size: 16px;
}

/* Story */
.avx-cs__story {
	padding: 112px 0;
}

.avx-cs__story-grid {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 80px;
}

.avx-cs__nav {
	position: sticky;
	top: 110px;
	align-self: start;
}

.avx-cs__nav ul {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.avx-cs__nav a {
	display: block;
	padding: 8px 14px;
	border-radius: 10px;
	color: var(--avx-text-secondary);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.avx-cs__nav a:hover,
.avx-cs__nav a.is-active {
	background: var(--avx-orange-100);
	color: var(--avx-orange-500);
}

.avx-cs__content {
	max-width: 980px;
	color: var(--avx-text-secondary);
	font-size: 18px;
	line-height: 1.7;
}

.avx-cs__content p {
	margin: 0 0 16px;
}

.avx-cs-eyebrow {
	margin: 56px 0 10px !important; /* Section rhythm overrides the generic paragraph spacing. */
	color: var(--avx-orange-500);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	scroll-margin-top: 110px;
}

.avx-cs__content > .avx-cs-eyebrow:first-child {
	margin-top: 0 !important;
}

.avx-cs__content h2 {
	margin: 0 0 14px;
	color: var(--avx-text-primary);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.6px;
}

.avx-cs-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.avx-cs-stats li {
	padding: 20px;
	border-radius: 16px;
	background: var(--avx-bg-subtle);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.avx-cs-stats strong {
	display: block;
	color: var(--avx-orange-500);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.25;
}

.avx-cs-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 24px 0 0;
}

.avx-cs-gallery img {
	display: block;
	width: 100%;
	height: 220px;
	border-radius: 16px;
	object-fit: cover;
}

.avx-cs-tech {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.avx-cs-tech li {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px 10px 10px;
	border: 1px solid var(--avx-border);
	border-radius: 14px;
	background: var(--avx-surface);
	color: var(--avx-text-primary);
	font-size: 16px;
	font-weight: 600;
}

.avx-cs-tech abbr {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(225deg, #1b2a5e, #26387a);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.avx-cs-timeline {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.avx-cs-timeline li {
	position: relative;
	padding-left: 44px;
	font-size: 14px;
	line-height: 1.55;
}

.avx-cs-timeline li::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 0;
	width: 28px;
	height: 28px;
	border-radius: 14px;
	background: var(--avx-orange-100) url("../images/icons/check.svg") center / 14px no-repeat;
}

.avx-cs-timeline em {
	display: block;
	color: var(--avx-orange-500);
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
}

.avx-cs-timeline strong {
	display: block;
	color: var(--avx-text-primary);
	font-size: 16px;
}

.avx-cs-quote {
	margin: 28px 0 0;
	padding: 32px;
	border: 1px solid var(--avx-border);
	border-radius: 24px;
	background: var(--avx-surface);
	box-shadow: var(--avx-shadow-card);
}

.avx-cs-quote blockquote {
	margin: 0 0 20px;
	padding: 0;
	border: 0;
	color: var(--avx-text-primary);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.6;
}

.avx-cs-quote blockquote::before {
	content: "★★★★★";
	display: block;
	margin-bottom: 14px;
	color: #f59e0b;
	letter-spacing: 4px;
}

.avx-cs-quote figcaption {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
}

.avx-cs-quote figcaption img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

.avx-cs-quote figcaption strong {
	display: block;
	color: var(--avx-text-primary);
	font-size: 16px;
}

/* Next case study */
.avx-cs__next {
	padding: 112px 0;
	background: var(--avx-bg-subtle);
}

.avx-cs__next-card {
	display: flex;
	align-items: stretch;
	max-width: 1000px;
	margin: 0 auto;
	overflow: hidden;
	border: 1px solid var(--avx-border);
	border-radius: 24px;
	background: var(--avx-surface);
	text-decoration: none;
	transition: box-shadow 0.25s ease;
}

.avx-cs__next-card:hover {
	box-shadow: var(--avx-shadow-elevated);
}

.avx-cs__next-media {
	flex: none;
	width: 400px;
}

.avx-cs__next-media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 280px;
	object-fit: cover;
}

.avx-cs__next-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 14px;
	padding: 40px;
}

.avx-cs__next-eyebrow {
	color: var(--avx-orange-500);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.avx-cs__next-title {
	color: var(--avx-text-primary);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
}

.avx-cs__next-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 24px;
	border-radius: 12px;
	background: var(--avx-navy-900);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
}

@media (max-width: 1024px) {
	.avx-cs__hero-grid {
		flex-direction: column;
		gap: 32px;
	}

	.avx-cs__facts {
		width: 100%;
	}

	.avx-cs h1.avx-cs__title {
		font-size: 44px;
	}

	.avx-cs__featured img {
		height: 420px;
	}

	.avx-cs__story-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.avx-cs__nav {
		position: static;
	}

	.avx-cs__nav ul {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.avx-cs__story,
	.avx-cs__next {
		padding: 80px 0;
	}
}

@media (max-width: 767px) {
	.avx-cs__container {
		padding: 0 16px;
	}

	.avx-cs__hero {
		padding-top: 32px;
	}

	.avx-cs h1.avx-cs__title {
		font-size: 32px;
		letter-spacing: -0.8px;
	}

	.avx-cs__featured {
		border-radius: 20px 20px 0 0;
	}

	.avx-cs__featured img {
		height: 240px;
	}

	.avx-cs__metrics {
		padding: 40px 0;
	}

	.avx-cs__metrics ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.avx-cs__metrics strong {
		font-size: 34px;
	}

	.avx-cs__story,
	.avx-cs__next {
		padding: 56px 0;
	}

	.avx-cs__content {
		font-size: 16px;
	}

	.avx-cs__content h2 {
		font-size: 24px;
	}

	.avx-cs-stats,
	.avx-cs-gallery {
		grid-template-columns: minmax(0, 1fr);
	}

	.avx-cs__next-card {
		flex-direction: column;
	}

	.avx-cs__next-media {
		width: 100%;
	}

	.avx-cs__next-media img {
		min-height: 200px;
		height: 200px;
	}

	.avx-cs__next-body {
		padding: 24px;
	}

	.avx-cs__next-title {
		font-size: 22px;
	}
}
