/* ============================================================
   KODIF — CASE STUDY (DETAIL)
   Tokens (--primary, --bg-reverse, --type-pink, …) live in css/style.css.
   Order: components → @media (breakpoints at the end of the file).
   ============================================================ */

/* ============ HERO ============ */
/* Dark intro band: eyebrow + headline, then the result-stat row. */
.section-cs-detail-hero {
	padding-top: 80px;
	padding-bottom: 80px;
	background: var(--bg-reverse);
}

/* Eyebrow: uppercase label with a brand-bullet separator */
.cs-detail__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* The "•" sits between the two label parts */
.cs-detail__dot {
	color: #a3a3a3;
}

/* Headline is smaller than the shared 72px .title — long, two-line measure */
.cs-detail__title {
	margin-bottom: 64px;
	font-size: 48px;
	line-height: 1.1;
}

/* ============ STATS ============ */
/* Fixed 3-column track: with only 2 boxes each still keeps a 1/3 width */
.cs-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.cs-stats__item {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	background: rgba(250, 248, 242, 0.1);
	text-align: center;
}

/* Big result figure; color comes from the per-item modifier */
.cs-stats__figure {
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
}

.cs-stats__figure--white {
	color: white;
}
.cs-stats__figure--orange {
	color: var(--primary);
}
.cs-stats__figure--pink {
	color: var(--type-pink);
}
.cs-stats__figure--yellow {
	color: var(--type-yellow);
}

.cs-stats__label {
	line-height: 1.5;
	color: white;
}

/* ============ AGENT CONTENT ============ */
/* Light body band below the dark hero. */
.agent-content {
	background: #faf8f2;
}

/* Two-column track: fixed 400px rail + 32px gutter + fluid article. */
.agent-content__inner {
	display: grid;
	grid-template-columns: 400px 1fr;
	gap: 32px;
	align-items: start;
}

/* Sticky rail that scrolls within itself if taller than the viewport
   (header is 72px tall). */
.agent-side {
	position: sticky;
	top: 72px;
	max-height: calc(100vh - 72px);
	padding-top: 40px;
	padding-bottom: 20px;
	overflow-y: auto;
	/* Hide the scrollbar while keeping scroll behaviour */
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge */
}
/* Hide the scrollbar in WebKit/Blink browsers */
.agent-side::-webkit-scrollbar {
	display: none;
}

/* ----- Collapsible group ----- */
.agent-side__group {
	margin-bottom: 16px;
	padding: 0;
}

.agent-side__head {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 0;
	background: none;
	border: 0;
	color: var(--text-title);
	font-size: 24px;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
}

/* Caret points right when closed, rotates down when the group is open. */
.agent-side__caret {
	flex: none;
	width: 24px;
	height: 24px;
	transform: rotate(-90deg);
	transition: transform 0.25s ease;
}
.agent-side__group.is-open > .agent-side__head .agent-side__caret {
	transform: rotate(0deg);
}

/* Collapse via grid rows: 0fr (closed) -> 1fr (open). */
.agent-side__body {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease;
}
.agent-side__group.is-open > .agent-side__body {
	grid-template-rows: 1fr;
}

/* Inner wrapper must clip so children don't bleed out while collapsed. */
.agent-side__body-inner {
	overflow: hidden;
	min-height: 0;
}
/* Padding on the child so it's clipped (not held open) while collapsed. */
.agent-side__body-inner > * {
	padding-top: 16px;
	padding-bottom: 16px;
}

.agent-side__text {
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
}

/* ----- Use cases list ----- */
.agent-side__list {
	list-style-type: none;
}
.agent-side__list-item {
	position: relative;
	padding-left: 18px;
	margin-bottom: 16px;
	font-size: 16px;
	line-height: 1.4;
	color: var(--text);
}
.agent-side__list-item:last-child {
	margin-bottom: 0;
}
/* Muted dot marker */
.agent-side__list-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 8px;
	height: 8px;
	background: #a3a3a3;
	border-radius: 50%;
}

/* ----- Tech stack ----- */
.agent-side__stack {
	list-style-type: none;
}
.agent-side__stack-item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	font-size: 16px;
	color: var(--text);
}
.agent-side__stack-item:last-child {
	margin-bottom: 0;
}
.agent-side__stack-icon {
	flex: none;
	width: 24px;
	height: 24px;
}

/* ----- Divider between info groups and the TOC ----- */
.agent-side__divider {
	height: 1px;
	margin-top: 32px;
	margin-bottom: 32px;
	border: 0;
	background: rgba(1, 1, 1, 0.1);
}

/* ----- Contents / TOC ----- */
.agent-side__toc {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.agent-side__toc-link {
	position: relative;
	font-size: 16px;
	line-height: 1.4;
	color: var(--text-mute);
	text-decoration: none;
	transition: all ease .4s;
}
.agent-side__toc-link:hover {
	color: var(--text);
}
/* Active item: bold + an orange marker bar on the left. */
.agent-side__toc-link.is-active {
	padding-left: 12px;
	border-left: 4px solid var(--primary);
	color: var(--text-title);
	font-weight: 700;
}

/* ----- Right column: article body ----- */
.agent-content__main {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding-top: 40px;
	padding-bottom: 40px;
}

/* Lead hero image */
.agent-figure {
	margin: 0;
}
/* Stacked-layout copy of the lead image — hidden until the rail stacks */
.agent-figure--top {
	display: none;
	margin-top: 40px;
}
.agent-figure__img {
	display: block;
	width: 100%;
	height: auto;
}

/* ----- Article section: title + stacked items, 16px apart ----- */
.agent-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.agent-section__title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--text-title);
}

/* Prose block: paragraphs 16px apart */
.agent-item-content {
	display: flex;
	flex-direction: column;
	line-height: 1.6;
	color: var(--text);
}
.agent-item-content p,
.agent-item-content h1,
.agent-item-content h2,
.agent-item-content h3,
.agent-item-content h4,
.agent-item-content h5,
.agent-item-content h6,
.agent-item-content ul,
.agent-item-content ol,
.agent-item-list-content__text p,
.agent-item-list-content__text h1,
.agent-item-list-content__text h2,
.agent-item-list-content__text h3,
.agent-item-list-content__text h4,
.agent-item-list-content__text h5,
.agent-item-list-content__text h6,
.agent-item-list-content__text ul,
.agent-item-list-content__text ol,
.agent-item-quote-3__text p {
	margin-bottom: 16px;
}
.agent-item-content > :last-child,
.agent-item-list-content__text > :last-child,
.agent-item-quote-3__text > :last-child {
	margin-bottom: 0;
}

/* Stack callout: white card listing the tools in play */
.agent-item-stack {
	padding: 16px;
	background: var(--white);
}
.agent-item-stack__title {
	margin-bottom: 16px;
	font-size: 16px;
	font-weight: 700;
	color: var(--text-title);
}
.agent-item-stack__list {
	list-style-type: none;
}
.agent-item-stack__item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	font-size: 16px;
	color: var(--text);
}
.agent-item-stack__item:last-child {
	margin-bottom: 0;
}
.agent-item-stack__icon {
	flex: none;
	width: 32px;
	height: 32px;
}

/* Pull quote: colored band (--color) + faint grid behind a white card */
.agent-item-quote-1 {
	margin: 0;
	padding: 20px;
	background-color: var(--color, var(--bg-reverse));
	background-image: linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
	background-size: 44px 44px;
}
.agent-item-quote-1__card {
	display: flex;
	align-items: stretch;
	gap: 24px;
	padding: 32px;
	background: var(--white);
}
.agent-item-quote-1__body {
	flex: 1;
}
/* Right column: portrait on top, brand logo pinned to the bottom */
.agent-item-quote-1__aside {
	flex: none;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
}
.agent-item-quote-1__mark,
.agent-item-quote-2__mark {
	display: block;
	width: 14px;
	height: auto;
	margin-bottom: 24px;
}
.agent-item-quote-1__text,
.agent-item-quote-2__text {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--text-title);
}
.agent-item-quote-1__divider,
.agent-item-quote-2__divider {
	height: 1px;
	margin: 24px 0;
	border: 0;
	background: rgba(1, 1, 1, 0.1);
}
/* Footer row: person on the left, brand logo on the right */
.agent-item-quote-1__foot,
.agent-item-quote-2__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}
.agent-item-quote-1__name,
.agent-item-quote-2__name {
	margin-bottom: 4px;
	font-weight: 700;
	color: var(--text-title);
}
.agent-item-quote-1__role,
.agent-item-quote-2__role {
	font-size: 14px;
}
/* Portrait image on the right */
.agent-item-quote-1__media {
	flex: none;
	width: 180px;
	height: 180px;
	object-fit: cover;
}
/* Brand logo under the portrait */
.agent-item-quote-1__logo,
.agent-item-quote-2__logo {
	display: block;
	width: auto;
}

/* ----- Pull quote variant 2 -----
   Same inner card as quote-1, but the portrait sits on the left band and
   overlaps the white card (which is offset right). */
.agent-item-quote-2 {
	margin: 0;
	padding: 80px;
	background-color: var(--color, #a9cde9);
	background-image: linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
	background-size: 44px 44px;
}
.agent-item-quote-2__inner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.agent-item-quote-2__media {
	flex: none;
	width: 200px;
	height: 200px;
	object-fit: cover;
}
/* Card padding + typography mirror quote-1. */
.agent-item-quote-2__card {
	flex: 1;
	min-width: 0;
	padding: 32px;
	background: var(--white);
}

/* ----- Pull quote variant 3 -----
   Colored band (--color) + grid behind a white card: title + logo, divider, body. */
.agent-item-quote-3 {
	margin: 0;
	padding: 24px;
	background-color: var(--color, #55634f);
	background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
	background-size: 44px 44px;
}
.agent-item-quote-3__card {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	padding: 32px;
	background: var(--white);
}
/* Content column (title + divider + text); logo sits to its right */
.agent-item-quote-3__body {
	flex: 1;
	min-width: 0;
}
.agent-item-quote-3__title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--text-title);
}
.agent-item-quote-3__logo {
	flex: none;
	width: 80px;
	height: 80px;
	object-fit: contain;
}
.agent-item-quote-3__divider {
	height: 1px;
	margin: 24px 0;
	border: 0;
	background: rgba(1, 1, 1, 0.1);
}
.agent-item-quote-3__text {
	line-height: 1.6;
	color: #282828;
}

/* ----- List-content 2: white card of title + text blocks, divided ----- */
.agent-item-list-content-2 {
	padding: 16px;
	background: var(--white);
}
.agent-item-list-content-2__list {
	list-style-type: none;
}
.agent-item-list-content-2__item {
	padding: 16px 0;
	border-top: 1px solid rgba(1, 1, 1, 0.1);
}
.agent-item-list-content-2__item:first-child {
	padding-top: 0;
	border-top: 0;
}
.agent-item-list-content-2__item:last-child {
	padding-bottom: 0;
}
.agent-item-list-content-2__title {
	margin-bottom: 8px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--text-title);
}
.agent-item-list-content-2__text {
	font-size: 16px;
	line-height: 1.6;
	color: #7a7a7a;
}

/* ----- List-content card -----
   White card with a fixed left aside (image or text) + main content.
   The --empty variant drops the aside so the content runs full width. */
.agent-item-list-content {
	display: flex;
	gap: 24px;
	padding: 24px;
	background: var(--white);
}
/* Consecutive boxes sit 8px apart (trims the section's 16px gap). */
.agent-item-list-content + .agent-item-list-content {
	margin-top: -8px;
}
.agent-item-list-content__aside {
	flex: none;
}
.agent-item-list-content__main {
	flex: 1;
	min-width: 0;
}

/* Aside: icon (image variant) */
.agent-item-list-content__icon {
	display: block;
	width: 64px;
	height: 64px;
}
/* Aside: label (text variant) */
.agent-item-list-content__label {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--primary);
}

/* Main: heading */
.agent-item-list-content__title {
	margin-bottom: 16px;
	font-size: 16px;
	font-weight: 900;
	line-height: 1.4;
	color: var(--text-title);
}

/* Main: prose */
.agent-item-list-content__text {
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
}

/* Main: divided list — orange dot + divider between rows */
.agent-item-list-content__text ul,
.agent-item-list-content__text ol {
	list-style-type: none;
}
.agent-item-list-content__text ul li,
.agent-item-list-content__text ol li {
	position: relative;
	padding: 8px 0 8px 20px;
	line-height: 1.6;
	color: var(--text);
	border-top: 1px solid rgba(1, 1, 1, 0.1);
}
.agent-item-list-content__text ul li:first-child,
.agent-item-list-content__text ol li:first-child {
	padding-top: 0;
	border-top: 0;
}
.agent-item-list-content__text ul li:last-child,
.agent-item-list-content__text ol li:last-child {
	padding-bottom: 0;
}
/* Dot marker positioned against the line, clearing the left padding */
.agent-item-list-content__text ul li::before,
.agent-item-list-content__text ol li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 17px;
	width: 8px;
	height: 8px;
	background: var(--primary);
	border-radius: 50%;
}
.agent-item-list-content__text ul li:first-child::before,
.agent-item-list-content__text ol li:first-child::before {
	top: 9px;
}
/* Last block inside a list item shouldn't add trailing space */
.agent-item-list-content__text li > :last-child {
	margin-bottom: 0;
}
/* Nested (2-level) lists: dark dot, no divider, no vertical padding */
.agent-item-list-content__text li ul,
.agent-item-list-content__text li ol {
	list-style-type: none;
}
.agent-item-list-content__text li li {
	padding-top: 0;
	padding-bottom: 0;
	border-top: 0;
}
.agent-item-list-content__text li li::before {
	top: 9px;
	background: #1f1f1f;
}

/* Per-item heading (empty variant) */
.agent-item-list-content__item-title {
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--text-title);
}

/* ----- Metrics grid (box-info-1) -----
   12-col grid of white cells; each cell lays its content blocks out in a row. */
.agent-item-box-info-1 {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 4px;
}
.agent-item-box-info-1__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	padding: 24px;
	background: var(--white);
}
/* Column spans (1-12) */
.agent-item-box-info-1__item--1 {
	grid-column: span 1;
}
.agent-item-box-info-1__item--2 {
	grid-column: span 2;
}
.agent-item-box-info-1__item--3 {
	grid-column: span 3;
}
.agent-item-box-info-1__item--4 {
	grid-column: span 4;
}
.agent-item-box-info-1__item--5 {
	grid-column: span 5;
}
.agent-item-box-info-1__item--6 {
	grid-column: span 6;
}
.agent-item-box-info-1__item--7 {
	grid-column: span 7;
}
.agent-item-box-info-1__item--8 {
	grid-column: span 8;
}
.agent-item-box-info-1__item--9 {
	grid-column: span 9;
}
.agent-item-box-info-1__item--10 {
	grid-column: span 10;
}
.agent-item-box-info-1__item--11 {
	grid-column: span 11;
}
.agent-item-box-info-1__item--12 {
	grid-column: span 12;
}

/* Title + description break to their own full-width row */
.agent-item-box-info-1__title {
	flex-basis: 100%;
	margin: 0;
	font-size: 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--primary);
}
.agent-item-box-info-1__description {
	flex-basis: 100%;
}

/* Content cells share the row evenly */
.agent-item-box-info-1__content {
	flex: 1 1 140px;
}
.agent-item-box-info-1__value {
	margin-bottom: 8px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	color: var(--text-title);
}
.agent-item-box-info-1__text,
.agent-item-box-info-1__description,
.agent-item-box-info-2__text {
	font-size: 16px;
	line-height: 1.5;
	color: #7a7a7a;
}

/* ----- Info grid (box-info-2): 12-col, title + text cards ----- */
.agent-item-box-info-2 {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 8px;
}
.agent-item-box-info-2__item {
	padding: 24px;
	background: var(--white);
}
/* Column spans (1-12) */
.agent-item-box-info-2__item--1 {
	grid-column: span 1;
}
.agent-item-box-info-2__item--2 {
	grid-column: span 2;
}
.agent-item-box-info-2__item--3 {
	grid-column: span 3;
}
.agent-item-box-info-2__item--4 {
	grid-column: span 4;
}
.agent-item-box-info-2__item--5 {
	grid-column: span 5;
}
.agent-item-box-info-2__item--6 {
	grid-column: span 6;
}
.agent-item-box-info-2__item--7 {
	grid-column: span 7;
}
.agent-item-box-info-2__item--8 {
	grid-column: span 8;
}
.agent-item-box-info-2__item--9 {
	grid-column: span 9;
}
.agent-item-box-info-2__item--10 {
	grid-column: span 10;
}
.agent-item-box-info-2__item--11 {
	grid-column: span 11;
}
.agent-item-box-info-2__item--12 {
	grid-column: span 12;
}
.agent-item-box-info-2__title {
	margin-bottom: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--text-title);
}

/* ----- Icon grid (box-info-3): 12-col, icon top + text bottom ----- */
.agent-item-box-info-3 {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 8px;
}
.agent-item-box-info-3__item {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--min-height, 200px);
	padding: 24px;
	background: var(--white);
}
/* Column spans (1-12) */
.agent-item-box-info-3__item--1 {
	grid-column: span 1;
}
.agent-item-box-info-3__item--2 {
	grid-column: span 2;
}
.agent-item-box-info-3__item--3 {
	grid-column: span 3;
}
.agent-item-box-info-3__item--4 {
	grid-column: span 4;
}
.agent-item-box-info-3__item--5 {
	grid-column: span 5;
}
.agent-item-box-info-3__item--6 {
	grid-column: span 6;
}
.agent-item-box-info-3__item--7 {
	grid-column: span 7;
}
.agent-item-box-info-3__item--8 {
	grid-column: span 8;
}
.agent-item-box-info-3__item--9 {
	grid-column: span 9;
}
.agent-item-box-info-3__item--10 {
	grid-column: span 10;
}
.agent-item-box-info-3__item--11 {
	grid-column: span 11;
}
.agent-item-box-info-3__item--12 {
	grid-column: span 12;
}
.agent-item-box-info-3__icon {
	display: block;
	width: 24px;
	height: 24px;
}
.agent-item-box-info-3__text {
	line-height: 1.4;
	color: var(--text);
}
/* Smaller, muted detail under the main label */
.agent-item-box-info-3__sub {
	font-size: 14px;
	color: var(--text-mute);
}

/* ----- Numbered next-steps list ----- */
.agent-item-next {
	display: flex;
	flex-direction: column;
	gap: 6px;
	list-style-type: none;
}
.agent-item-next__item {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	padding: 16px 24px;
	background: var(--white);
}
.agent-item-next__num {
	flex: none;
	min-width: 1em;
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
	color: var(--primary);
	text-align: center;
}
.agent-item-next__content {
	flex: 1;
	min-width: 0;
}
.agent-item-next__title {
	margin-bottom: 16px;
	font-weight: bold;
	color: var(--text-title);
}
.agent-item-next__text {
	line-height: 1.6;
	color: var(--text);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1199px) {
	.agent-side__text {
		font-size: 14px;
	}
	/* Tighten the rail column on smaller desktops */
	.agent-content__inner {
		grid-template-columns: 270px 1fr;
		gap: 16px;
	}
	.agent-side__head,
	.agent-section__title {
		font-size: 18px;
	}
	.agent-side__caret {
		width: 18px;
		height: 18px;
	}
	.agent-side__group {
		margin-bottom: 8px;
	}
	.agent-side__body-inner > * {
		padding-top: 8px;
		padding-bottom: 8px;
	}
	.agent-side__divider {
		margin-top: 16px;
		margin-bottom: 16px;
	}
	.agent-side__toc-link,
	.agent-side__stack-item,
	.agent-side__list-item {
		font-size: 14px;
	}
	.agent-side__list-item {
		margin-bottom: 8px;
	}
	.agent-side__list-item::before {
		top: 6px;
		width: 6px;
		height: 6px;
	}
	.agent-side__toc {
		gap: 8px;
	}
	.agent-side__toc-link.is-active {
		padding-left: 8px;
		border-left-width: 2px;
	}
	.agent-item-quote-1__card,
	.agent-item-quote-2__card {
		padding: 16px;
	}
	.agent-item-quote-2 {
		padding: 40px;
	}
	.agent-item-quote-2__media {
		width: 150px;
		height: 150px;
	}
	.agent-item-quote-3__card {
		gap: 16px;
		padding: 16px;
	}
	.agent-item-quote-3__title {
		font-size: 20px;
	}
	.agent-item-quote-3__logo {
		width: 64px;
		height: 64px;
	}
	.agent-item-quote-3__divider {
		margin-top: 16px;
		margin-bottom: 16px;
	}
	.agent-item-list-content__icon {
		width: 40px;
		height: 40px;
	}
	.agent-item-list-content {
		padding: 16px;
	}
	.agent-item-list-content__label {
		font-size: 20px;
	}
	.agent-item-box-info-1__item {
		gap: 16px;
		padding: 16px;
	}
	.agent-item-box-info-2__item {
		padding: 16px;
	}
	.agent-item-box-info-3__item {
		padding: 16px;
	}
	.agent-item-box-info-3__icon {
		width: 20px;
		height: 20px;
	}
	.agent-item-next__item {
		gap: 28px;
		padding: 16px;
	}
	.agent-item-next__num {
		font-size: 32px;
	}
	.agent-item-box-info-1__value {
		font-size: 20px;
	}
	.agent-item-box-info-1__text,
	.agent-item-box-info-1__description,
	.agent-item-box-info-2__text {
		font-size: 14px;
	}
	.agent-item-box-info-2__title {
		margin-bottom: 10px;
	}
	.agent-item-list-content-2__text {
		font-size: 15px;
	}
	.agent-item-list-content-2__item {
		padding-top: 10px;
		padding-bottom: 10px;
	}
	.agent-item-quote-1__mark,
	.agent-item-quote-2__mark {
		margin-bottom: 16px;
	}
	.agent-item-quote-1__divider,
	.agent-item-quote-2__divider {
		margin-top: 16px;
		margin-bottom: 16px;
	}
	.agent-item-quote-1__text,
	.agent-item-quote-2__text {
		font-size: 20px;
	}
}

@media (max-width: 991px) {
	.section-cs-detail-hero {
		padding-top: 56px;
		padding-bottom: 56px;
	}
	/* Stack the rail above the article */
	.agent-content__inner {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.agent-side {
		position: static;
		max-height: none;
		padding: 0;
		margin-top: 16px;
	}
	/* Move the lead image to the top of the stack */
	.agent-figure--top {
		display: block;
	}
	.agent-content__main .agent-figure {
		display: none;
	}
	.agent-content__main {
		gap: 16px;
		padding-top: 16px;
		padding-bottom: 32px;
		border-top: 1px solid rgba(1, 1, 1, 0.1);
	}
	.cs-stats__item {
		gap: 8px;
	}
	.cs-stats__figure {
		font-size: 36px;
	}
	.cs-detail__title {
		font-size: 32px;
		margin-bottom: 40px;
	}
	.agent-item-stack__title {
		margin-bottom: 10px;
		font-size: 14px;
	}
	.agent-item-stack__item {
		margin-bottom: 10px;
		font-size: 14px;
	}
	.agent-section {
		gap: 10px;
	}
	.agent-item-quote-1 {
		padding: 16px;
	}
	.agent-item-quote-1__card {
		gap: 16px;
	}
	.agent-item-quote-1__text,
	.agent-item-quote-2__text {
		font-size: 18px;
	}
	.agent-item-quote-1__role,
	.agent-item-quote-2__role {
		font-size: 13px;
	}
	.agent-item-list-content__text,
	.agent-item-list-content__title {
		font-size: 14px;
	}
	.agent-item-list-content-2__text {
		font-size: 14px;
	}
	.agent-item-list-content__label {
		font-size: 18px;
	}
	.agent-item-list-content__text ul li,
	.agent-item-list-content__text ol li {
		padding: 6px 0 6px 20px;
	}
	.agent-item-list-content__text ul li::before,
	.agent-item-list-content__text ol li::before {
		top: 13px;
		width: 6px;
		height: 6px;
	}
	.agent-item-list-content__text ul li:first-child::before,
	.agent-item-list-content__text ol li:first-child::before {
		top: 8px;
	}
}

@media (max-width: 767px) {
	/* Stack the stat boxes once the row gets tight */
	.cs-stats {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.cs-stats__figure {
		font-size: 38px;
	}
	/* Metrics grid collapses to a single column */
	.agent-item-box-info-1 {
		grid-template-columns: 1fr;
	}
	.agent-item-box-info-1__item {
		grid-column: span 1 !important;
	}
	.agent-item-box-info-2 {
		grid-template-columns: 1fr;
	}
	.agent-item-box-info-2__item {
		grid-column: span 1 !important;
	}
	/* box-info-3: small spans go half width, large spans full width */
	.agent-item-box-info-3 {
		display: flex;
		flex-wrap: wrap;
	}
	.agent-item-box-info-3__item--1,
	.agent-item-box-info-3__item--2,
	.agent-item-box-info-3__item--3,
	.agent-item-box-info-3__item--4,
	.agent-item-box-info-3__item--5,
	.agent-item-box-info-3__item--6 {
		width: calc(50% - 4px);
	}
	.agent-item-box-info-3__item--7,
	.agent-item-box-info-3__item--8,
	.agent-item-box-info-3__item--9,
	.agent-item-box-info-3__item--10,
	.agent-item-box-info-3__item--11,
	.agent-item-box-info-3__item--12 {
		width: 100%;
	}
	/* Quote 2 stacks: portrait above, card full width */
	.agent-item-quote-2 {
		padding: 16px;
	}
	.agent-item-quote-3 {
		padding: 16px;
	}
	.agent-item-quote-3__title {
		font-size: 18px;
	}
	.agent-item-quote-3__logo {
		width: 56px;
		height: 56px;
	}
	.agent-item-quote-3__divider {
		margin-top: 10px;
	}
	.agent-item-quote-2__media {
		width: 120px;
		height: 120px;
	}
	.agent-item-stack__icon {
		width: 20px;
		height: 20px;
	}
	.agent-item-list-content__icon {
		width: 32px;
		height: 32px;
	}
	.agent-item-list-content__label {
		font-size: 17px;
	}
	.agent-item-box-info-1__value {
		font-size: 18px;
	}
	.agent-item-box-info-1__item {
		gap: 10px;
	}
	.agent-item-next__num {
		font-size: 28px;
	}
	.agent-item-next__item {
		gap: 16px;
	}
	.agent-item-next__title {
		margin-bottom: 10px;
	}
	.agent-item-quote-1__card {
		gap: 10px;
	}
	.agent-item-quote-1__media {
		width: 80px;
		height: 80px;
	}
	.agent-item-quote-1__divider,
	.agent-item-quote-2__divider {
		margin-top: 10px;
		margin-bottom: 10px;
	}
	.agent-item-quote-1__text,
	.agent-item-quote-2__text {
		font-size: 17px;
	}
}

@media (max-width: 575px) {
	.agent-item-quote-2 {
		padding: 10px;
	}
	.agent-item-quote-2__media {
		width: 80px;
		height: 80px;
	}
	.agent-item-list-content {
		flex-direction: column;
		gap: 10px;
	}
	.agent-item-list-content + .agent-item-list-content {
		margin-top: -4px;
	}
	.agent-item-next__item {
		padding: 10px 16px;
	}
}

@media (max-width: 539px) {
	.section-cs-detail-hero {
		padding-top: 40px;
		padding-bottom: 40px;
	}
	.cs-detail__title {
		font-size: 28px;
		margin-bottom: 32px;
	}
	.cs-stats__item {
		gap: 8px;
		padding: 16px;
	}
	.cs-stats__figure {
		font-size: 28px;
	}
	.agent-side__head {
		font-size: 18px;
	}
	.agent-item-content p,
	.agent-item-content h1,
	.agent-item-content h2,
	.agent-item-content h3,
	.agent-item-content h4,
	.agent-item-content h5,
	.agent-item-content h6,
	.agent-item-content ul,
	.agent-item-content ol,
	.agent-item-list-content__text p,
	.agent-item-list-content__text h1,
	.agent-item-list-content__text h2,
	.agent-item-list-content__text h3,
	.agent-item-list-content__text h4,
	.agent-item-list-content__text h5,
	.agent-item-list-content__text h6,
	.agent-item-list-content__text ul,
	.agent-item-list-content__text ol,
	.agent-item-quote-3__text p {
		margin-bottom: 10px;
	}
}
