/**
 * Camber Projects: archive + single styling.
 *
 * Mirrors the site's News & Insights patterns (GP Elements "Blog Header",
 * "Blog Archive", "Singular Blog Post Layout") using the GeneratePress global
 * colors: --global-color-8 navy #002f67, --global-color-9 blue #0f75bc,
 * --global-color-11 yellow #ffd400, --base-2 #f7f8f9, --base #f0f0f0.
 * Type inherits the site font (Albert Sans).
 */

.cp-hero,
.cp-projects,
.cp-single {
	--cp-navy: var(--global-color-8, #002f67);
	--cp-blue: var(--global-color-9, #0f75bc);
	--cp-yellow: var(--global-color-11, #ffd400);
	--cp-panel: var(--base-2, #f7f8f9);
	--cp-line: var(--base, #f0f0f0);
	--cp-text: var(--contrast, #222222);
	--cp-muted: var(--contrast-2, #575760);
	--cp-width: var(--gb-container-width, 1200px);
}

.cp-projects ::selection,
.cp-single ::selection {
	color: var(--cp-navy);
	background: var(--cp-yellow);
}

/* Hero (matches the News & Insights header) ------------------------------ */

.cp-hero {
	position: relative;
	margin-bottom: 60px;
	background-color: var(--cp-navy);
	background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--cp-blue));
}

.cp-hero__inner {
	max-width: var(--cp-width);
	margin: 0 auto;
	padding: 13% 30px 60px;
	position: relative;
}

.cp-hero__title {
	margin: 0 0 20px;
	font-size: 3em;
	line-height: 1em;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-align: center;
	color: var(--base-3, #fff);
}

.cp-hero__intro {
	width: 65%;
	margin: 0 auto;
	text-align: center;
	color: #fff;
}

.cp-hero__shape {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	overflow: hidden;
	line-height: 0;
	pointer-events: none;
	color: var(--base-3, #fff);
	transform: scaleX(-1);
}

.cp-hero__shape svg {
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% + 1.3px);
	min-width: 100%;
	height: 45px;
	fill: currentColor;
}

/* Shared button (matches the site's "Read More" outline button) ----------- */

.cp-button {
	display: inline-flex;
	align-items: center;
	column-gap: 0.5em;
	min-height: 44px;
	padding: 8px 20px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	color: var(--cp-navy);
	background-color: #fff;
	background-image: linear-gradient(90deg, var(--cp-blue) 50%, transparent 50%);
	background-position: bottom right;
	background-size: 200% 200%;
	border: 2px solid var(--cp-blue);
	border-left-width: 5px;
	border-radius: 0;
	cursor: pointer;
	transition: background-position 0.7s, color 0.3s;
}

.cp-button:focus-visible {
	color: #fff;
	background-color: #fff;
	background-position: top left;
	outline: 2px solid var(--cp-navy);
	outline-offset: 2px;
}

@media (hover: hover) {
	.cp-button:hover {
		color: #fff;
		background-color: #fff;
		background-position: top left;
	}
}

.cp-button svg {
	flex: 0 0 auto;
	width: 1em;
	height: 1em;
}

/* Archive layout ---------------------------------------------------------- */

.cp-projects {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	margin-bottom: 90px;
}

/* Filter panel ------------------------------------------------------------ */

.cp-projects__sidebar {
	position: sticky;
	top: 30px;
	max-height: calc(100vh - 60px);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--cp-blue) transparent;
}

.admin-bar .cp-projects__sidebar {
	top: 62px;
	max-height: calc(100vh - 92px);
}

.cp-filters {
	position: relative;
	background: var(--cp-panel);
	border-top-right-radius: 30px;
	padding: 34px 30px 30px;
}

.cp-filters__summary {
	display: flex;
	align-items: center;
	gap: 10px;
	list-style: none;
	cursor: default;
}

.cp-filters__summary::-webkit-details-marker {
	display: none;
}

.cp-filters__heading {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--cp-navy);
}

/* Numbered circle showing how many filters are on. */
.cp-filters__active-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: var(--cp-blue);
}

.cp-filters__active-count:empty {
	display: none;
}

.cp-filters__form {
	margin-top: 24px;
}

.cp-facet {
	margin: 0 0 26px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.cp-facet__legend {
	display: block;
	width: 100%;
	margin: 0 0 12px;
	padding: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cp-navy);
	border-bottom: 2px solid var(--cp-line);
}

.cp-facet__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cp-facet__item {
	margin: 0;
	padding: 0;
}

.cp-facet__label {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 0;
	font-size: 16px;
	line-height: 1.35;
	color: var(--cp-text);
	cursor: pointer;
}

.cp-facet__checkbox {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 auto;
	display: inline-grid;
	place-content: center;
	width: 20px;
	height: 20px;
	margin: 0;
	background: #fff;
	border: 2px solid var(--cp-blue);
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cp-facet__checkbox::after {
	content: "";
	width: 10px;
	height: 10px;
	transform: scale(0);
	transition: transform 0.12s ease;
	background: #fff;
	clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 4%, 38% 70%);
}

.cp-facet__checkbox:checked {
	background: var(--cp-navy);
	border-color: var(--cp-navy);
}

.cp-facet__checkbox:checked::after {
	transform: scale(1);
}

.cp-facet__checkbox:focus-visible {
	outline: 2px solid var(--cp-navy);
	outline-offset: 2px;
}

.cp-facet__name {
	flex: 1 1 auto;
}

@media (hover: hover) {
	.cp-facet__label:hover .cp-facet__name {
		color: var(--cp-blue);
	}
}

.cp-facet__count {
	flex: 0 0 auto;
	min-width: 26px;
	padding: 1px 7px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	text-align: center;
	font-variant-numeric: tabular-nums;
	color: var(--cp-navy);
	background: #fff;
	border-radius: 10px;
}

.cp-facet__item.is-disabled .cp-facet__label {
	opacity: 0.4;
	cursor: not-allowed;
}

.cp-facet__item.is-disabled .cp-facet__label:hover .cp-facet__name {
	color: inherit;
}

.cp-facet__item.is-disabled .cp-facet__checkbox {
	cursor: not-allowed;
}

/* States & Provinces: regions that open to their states. */
.cp-region__row {
	display: flex;
	align-items: center;
	gap: 4px;
}

.cp-region__label {
	flex: 1 1 auto;
}

.cp-region__label .cp-facet__name {
	font-weight: 600;
}

.cp-projects .cp-region__toggle {
	display: inline-grid;
	place-content: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	margin-right: -6px;
	padding: 0;
	color: var(--cp-navy);
	background: transparent;
	border: 0;
	cursor: pointer;
}

.cp-projects .cp-region__toggle:hover,
.cp-projects .cp-region__toggle:focus {
	color: var(--cp-blue);
	background: transparent;
}

.cp-region__toggle:focus-visible {
	outline: 2px solid var(--cp-navy);
	outline-offset: 0;
}

.cp-region__toggle::before {
	content: "";
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s;
}

.cp-region__toggle[aria-expanded="true"]::before {
	margin-top: 4px;
	transform: rotate(-135deg);
}

.cp-region__states {
	padding-left: 32px;
}

.cp-region.is-disabled > .cp-region__row .cp-facet__label {
	opacity: 0.4;
	cursor: not-allowed;
}

.cp-region.is-disabled > .cp-region__row .cp-facet__checkbox {
	cursor: not-allowed;
}

/* Some but not all of a region's states are on. */
.cp-facet__checkbox:indeterminate {
	background: var(--cp-navy);
	border-color: var(--cp-navy);
}

.cp-facet__checkbox:indeterminate::after {
	height: 2px;
	transform: scale(1);
	clip-path: none;
}

.cp-filters__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	margin-top: 6px;
}

.cp-filters__reset {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--cp-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cp-filters__reset:hover,
.cp-filters__reset:focus-visible {
	color: var(--cp-navy);
}

/* Mobile only "Show N projects" button, revealed by JS. */
.cp-filters__show {
	display: none;
}

/* Live filtering replaces the explicit submit. */
.cp-js .cp-filters__apply {
	display: none;
}

/* Results ----------------------------------------------------------------- */

.cp-projects__count {
	margin: 0 0 24px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cp-muted);
}

.cp-results {
	transition: opacity 0.18s ease;
}

.cp-results[aria-busy="true"] {
	opacity: 0.45;
	pointer-events: none;
}

.cp-results__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 20px;
}

.cp-results__more {
	display: flex;
	justify-content: center;
	margin-top: 50px;
}

.cp-results__more-link[aria-disabled="true"] {
	opacity: 0.6;
	pointer-events: none;
}

.cp-results__empty {
	padding: 40px;
	background: var(--cp-panel);
	border-top-right-radius: 30px;
	scroll-margin-top: 100px; /* Clears the sticky header when a card only project's anchor is opened. */
}

.cp-results__empty p {
	max-width: 46ch;
	margin: 0 0 16px;
	font-size: 18px;
	color: var(--cp-navy);
}

/* Card (matches the News & Insights post cards) --------------------------- */

.cp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding-right: 40px;
	background: var(--cp-panel);
	border-top-right-radius: 30px;
}

/* Line up title, image and text across each row of cards. */
@supports (grid-template-rows: subgrid) {
	.cp-card {
		display: grid;
		grid-row: span 3;
		grid-template-rows: subgrid;
		row-gap: 0;
	}
}

.cp-card__head {
	padding: 40px 0 30px 40px;
}

.cp-card__meta {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--cp-muted);
}

.cp-card__client {
	display: block;
	font-weight: 700;
	color: var(--cp-text);
}

.cp-card__location {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 10px 0 0;
}

.cp-card__location svg {
	flex: 0 0 auto;
	color: var(--cp-blue);
}

.cp-card__title {
	margin: 0;
	font-size: 24px;
	line-height: 1.2;
	color: var(--cp-navy);
}

.cp-card__title a {
	color: var(--cp-blue);
	text-decoration: none;
}

.cp-card__title a:hover,
.cp-card__title a:focus-visible {
	color: var(--cp-navy);
}

.cp-card__media {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 220px;
	background-color: var(--cp-navy);
	border-top-right-radius: 25px;
}

.cp-card__media-link {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-top-right-radius: 25px;
}

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

/* Projects with no photo: the logo on white, navy behind "BER", split along
   the slant of the M (about 7 degrees). The split's left edge is tied to the
   join in placeholder-logo.png, so it lines up at any card width. */
.cp-card__media--placeholder {
	background-color: transparent;
}

.cp-card__placeholder {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: #fff;
	border-top-right-radius: 25px;
}

.cp-card__placeholder::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid #e3e6ea;
	border-top-right-radius: 25px;
	pointer-events: none;
}

.cp-card__placeholder-mark {
	position: relative;
	display: block;
	width: 58%;
	max-width: 230px;
}

.cp-card__placeholder-split {
	position: absolute;
	top: -600px;
	bottom: -600px;
	left: 54.06%;
	width: 1600px;
	background-color: var(--cp-navy);
	transform: skewX(6.957deg);
	transform-origin: 0 600px;
}

.cp-card__placeholder-logo {
	position: relative;
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
}

.cp-card__pill {
	position: relative;
	z-index: 1;
	display: inline-flex;
	margin: 0 0 -20px 40px;
	padding: 5px 15px;
	font-size: 15px;
	line-height: 1.5;
	color: #fff;
	background-color: var(--cp-navy);
}

.cp-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 40px 0 40px 40px;
}

.cp-card__excerpt {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--cp-text);
}

.cp-card__body .cp-button {
	margin-top: auto;
}

/* Featured projects sort first and take the full row, photo beside the text. */
.cp-card.cp-card--featured {
	display: grid;
	grid-column: 1 / -1;
	grid-row: auto;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	grid-template-rows: auto 1fr;
	grid-template-areas:
		"head media"
		"body media";
	column-gap: 40px;
}

.cp-card--featured .cp-card__head {
	grid-area: head;
}

.cp-card--featured .cp-card__media {
	grid-area: media;
	min-height: 380px;
	margin: 40px 0;
}

.cp-card--featured .cp-card__pill {
	margin: 0 0 20px 20px;
}

.cp-card--featured .cp-card__body {
	grid-area: body;
	padding-top: 0;
}

.cp-card--featured .cp-card__title {
	font-size: 30px;
}

/* Tablet ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.cp-hero__inner {
		padding-bottom: 90px;
	}

	.cp-hero__intro {
		width: 75%;
	}

	.cp-projects {
		grid-template-columns: 240px minmax(0, 1fr);
		gap: 32px;
	}

}

/* Side gutters once the screen is narrower than the 1200px container plus
   gutters, so the filter and cards don't touch the screen edges. Phones keep
   their own layout below. */
@media (767px < width <= 1320px) {
	.cp-projects {
		padding-right: 30px;
		padding-left: 30px;
	}
}

/* Mobile ------------------------------------------------------------------ */

@media (max-width: 900px) {
	.cp-projects {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.cp-projects__sidebar,
	.admin-bar .cp-projects__sidebar {
		position: static;
		max-height: none;
		overflow: visible;
	}

	.cp-filters {
		padding: 30px 24px 20px;
	}

	.cp-filters__summary {
		cursor: pointer;
	}

	/* Expand/collapse chevron. */
	.cp-filters__summary::after {
		content: "";
		flex: 0 0 auto;
		width: 10px;
		height: 10px;
		margin-left: auto;
		border-right: 2px solid var(--cp-navy);
		border-bottom: 2px solid var(--cp-navy);
		transform: rotate(45deg) translateY(-3px);
		transition: transform 0.18s ease;
	}

	.cp-filters[open] .cp-filters__summary::after {
		transform: rotate(225deg) translateY(-3px);
	}

	.cp-filters__summary {
		padding-bottom: 10px;
	}

	.cp-facet__label {
		min-height: 44px;
		padding: 10px 0;
	}

	.cp-facet__checkbox {
		width: 24px;
		height: 24px;
	}

	.cp-js .cp-filters__actions {
		position: sticky;
		bottom: 0;
		z-index: 2;
		margin: 0 -24px -20px;
		padding: 14px 24px;
		background: var(--cp-panel);
		box-shadow: 0 -6px 12px -8px rgba(0, 0, 0, 0.15);
	}

	.cp-js .cp-filters__show {
		display: inline-flex;
	}
}

@media (max-width: 767px) {
	.cp-hero__inner {
		padding: 90px 30px;
	}

	.cp-hero__title {
		font-size: 2.5em;
	}

	.cp-hero__intro {
		width: 100%;
	}

	.cp-results__grid {
		grid-template-columns: 1fr;
	}

	/* Same side gutters as the single project pages. */
	.cp-projects {
		padding-right: 20px;
		padding-left: 20px;
	}

	.cp-card {
		padding-right: 20px;
	}

	.cp-card__head {
		padding: 34px 0 24px 24px;
	}

	.cp-card__title {
		font-size: 22px;
	}

	.cp-card__pill {
		margin-left: 24px;
	}

	.cp-card__body {
		padding: 36px 0 30px 24px;
	}

	/* One column: featured cards stack like the others. */
	.cp-card.cp-card--featured {
		display: flex;
		flex-direction: column;
	}

	.cp-card--featured .cp-card__media {
		min-height: 220px;
		margin: 0;
	}

	.cp-card--featured .cp-card__pill {
		margin: 0 0 -20px 24px;
	}

	.cp-card--featured .cp-card__body {
		padding-top: 36px;
	}

	.cp-card--featured .cp-card__title {
		font-size: 22px;
	}
}

@media (max-width: 359px) {
	.cp-button {
		font-size: 14px;
		letter-spacing: 0.04em;
	}
}

/* Single project (from the "Refined" Claude Design canvas) --------------- */

.cp-single {
	--cp-line: #e3e6ea;
}

.cp-wrap {
	max-width: var(--cp-width);
	margin: 0 auto;
	padding: 0 30px;
}

/* Gradient band behind the intro card. */
.cp-single .cp-hero {
	margin-bottom: 0;
	background-image: linear-gradient(100deg, var(--cp-navy) 35%, var(--cp-blue));
}

.cp-single .cp-hero__inner {
	padding: 160px 30px 150px;
}

.cp-single .cp-hero__shape svg {
	display: block;
	left: 0;
	width: 100%;
	height: 60px;
	transform: none;
}

.cp-button--back svg {
	transform: scaleX(-1);
}

.cp-button--solid {
	color: var(--cp-navy);
	background-color: var(--cp-yellow);
	background-image: linear-gradient(90deg, #fff 50%, transparent 50%);
	border-color: var(--cp-yellow);
}

.cp-button--solid:focus-visible {
	color: var(--cp-navy);
}

@media (hover: hover) {
	.cp-button--solid:hover {
		color: var(--cp-navy);
	}
}

/* Intro card: photo beside the title and a ruled details table. */
.cp-single__intro {
	position: relative;
	z-index: 2;
	margin-top: -130px;
}

.cp-single__card {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	background: #fff;
	box-shadow: 0 20px 50px -20px rgba(0, 47, 103, 0.35);
}

.cp-single__card--no-image {
	grid-template-columns: 1fr;
}

.cp-single__media {
	position: relative;
	min-height: 480px;
	background: var(--cp-navy);
}

.cp-single__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cp-single__summary {
	padding: 56px 56px 48px;
}

.cp-single__accent {
	display: block;
	width: 60px;
	height: 30px;
	margin-bottom: 14px;
	background-image: linear-gradient(203deg, #fff 50%, var(--cp-yellow) 50%);
}

.cp-single__back {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cp-single__back a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--cp-blue);
	text-decoration: none;
}

.cp-single__back a:hover,
.cp-single__back a:focus-visible {
	color: var(--cp-navy);
}

.cp-single__back svg {
	width: 12px;
	height: 12px;
	transform: scaleX(-1);
}

.cp-single__title {
	margin: 0 0 36px;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-align: left;
	color: var(--cp-navy);
}

.cp-single__label {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cp-navy);
}

.cp-single__details {
	margin: 0;
	border-top: 2px solid var(--cp-navy);
}

.cp-single__detail {
	display: grid;
	grid-template-columns: 118px minmax(0, 1fr);
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--cp-line);
}

.cp-single__detail dt {
	padding-top: 3px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cp-muted);
}

.cp-single__detail dd {
	margin: 0;
	font-size: 17px;
	line-height: 1.45;
	color: var(--cp-text);
}

/* Body: story beside a summary sidebar. */
.cp-single__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 80px;
	align-items: start;
	padding-top: 100px;
	padding-bottom: 100px;
}

.cp-single .entry-content:not(:first-child) {
	margin-top: 0;
}

.cp-single__story h2 {
	margin: 60px 0 16px;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--cp-navy);
}

.cp-single__story h2:first-child {
	margin-top: 0;
}

.cp-single__story p {
	max-width: 66ch;
	margin: 0 0 1em;
	font-size: 18px;
	line-height: 1.7;
}

.cp-single__story ul {
	max-width: 66ch;
	margin: 0 0 1.5em;
	padding: 0;
	list-style: none;
}

.cp-single__story ul li {
	position: relative;
	margin: 0 0 10px;
	padding-left: 24px;
}

.cp-single__story ul li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: 0;
	width: 9px;
	height: 9px;
	background: var(--cp-yellow);
}

.cp-aside {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.cp-panel {
	padding: 34px 32px;
	background: var(--cp-panel);
	border-top-right-radius: 30px;
}

.cp-panel__title {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cp-navy);
}

.cp-highlights {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cp-highlights li {
	position: relative;
	margin: 0;
	padding: 12px 0 12px 24px;
	font-size: 16px;
	line-height: 1.45;
	border-top: 1px solid var(--cp-line);
}

.cp-highlights li:first-child {
	padding-top: 0;
	border-top: 0;
}

.cp-highlights li::before {
	content: "";
	position: absolute;
	top: calc(12px + 0.5em);
	left: 0;
	width: 9px;
	height: 9px;
	background: var(--cp-yellow);
}

.cp-highlights li:first-child::before {
	top: 0.5em;
}

.cp-cta {
	padding: 36px 32px;
	color: #fff;
	background: linear-gradient(141deg, var(--cp-navy), var(--cp-blue));
	border-top-right-radius: 30px;
}

.cp-cta__title {
	margin: 0 0 12px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.cp-cta p {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
}

/* No story: highlights and contact in a row (2/3 + 1/3), or a full width
   contact band when there are no highlights either. */
.cp-single__next {
	padding-top: 80px;
	padding-bottom: 80px;
}

.cp-single__next--split {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 24px;
	align-items: stretch;
}

.cp-panel--wide {
	padding: 44px 48px 36px;
}

.cp-single__next + .cp-single__actions {
	padding-top: 0;
}

/* Ruled like the intro card's details table. */
.cp-panel--wide .cp-highlights {
	display: grid;
	border-top: 2px solid var(--cp-navy);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 48px;
}

.cp-panel--wide .cp-highlights li,
.cp-panel--wide .cp-highlights li:first-child {
	padding: 18px 0 18px 26px;
	font-size: 17px;
	border-top: 0;
	border-bottom: 1px solid var(--cp-line);
}

.cp-panel--wide .cp-highlights li::before,
.cp-panel--wide .cp-highlights li:first-child::before {
	top: calc(18px + 0.5em);
}

.cp-cta--side {
	display: flex;
	flex-direction: column;
	padding: 44px 36px 40px;
}

.cp-cta--side .cp-button {
	align-self: flex-start;
	margin-top: auto;
}

.cp-cta--wide {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 48px;
	padding: 56px 64px;
	background: linear-gradient(100deg, var(--cp-navy) 35%, var(--cp-blue));
}

.cp-cta--wide .cp-cta__title {
	font-size: 30px;
}

.cp-cta--wide .cp-cta__text p {
	max-width: 56ch;
	margin-bottom: 0;
	font-size: 17px;
}

/* Testimonial band. */
.cp-quote {
	background: var(--cp-panel);
}

.cp-quote__inner {
	max-width: 1000px;
	margin: 0 auto;
	padding: 96px 30px;
}

.cp-quote__mark {
	display: block;
	width: 56px;
	height: 44px;
	margin-bottom: 24px;
	color: var(--cp-yellow);
}

.cp-quote blockquote {
	margin: 0;
	padding: 0;
	font-style: normal;
	border: 0;
	background: none;
}

.cp-quote blockquote p {
	margin: 0;
	font-size: 30px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--cp-navy);
}

.cp-quote blockquote p + p {
	margin-top: 0.6em;
}

.cp-quote__by {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 32px;
}

.cp-quote__name {
	font-size: 17px;
	font-weight: 700;
	color: var(--cp-text);
}

.cp-quote__role {
	font-size: 15px;
	color: var(--cp-muted);
}

.cp-single__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding-top: 60px;
	padding-bottom: 100px;
}

/* The header's Contact button wraps under the nav between 768 and 1100px. */
@media (min-width: 768px) and (max-width: 1100px) {
	.cp-single .cp-hero__inner {
		padding-top: 190px;
	}
}

@media (max-width: 1024px) {
	.cp-single .cp-hero__inner {
		padding-bottom: 150px;
	}

	.cp-single__title {
		font-size: 36px;
	}

	.cp-single__summary {
		padding: 40px;
	}

	.cp-single__body {
		grid-template-columns: 1fr;
		gap: 56px;
	}

	.cp-aside {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
	.cp-single__next {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.cp-single__next--split {
		grid-template-columns: 1fr;
	}

	.cp-panel--wide {
		padding: 40px;
	}

	/* The contact box goes wide under the highlights. */
	.cp-cta--side {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 40px;
		padding: 40px;
	}

	.cp-cta--side .cp-cta__text p {
		margin-bottom: 0;
	}

	.cp-cta--side .cp-button {
		margin-top: 0;
	}

	.cp-cta--wide {
		gap: 40px;
		padding: 48px 40px;
	}

	.cp-cta--wide .cp-cta__title {
		font-size: 26px;
	}
}

@media (max-width: 767px) {
	.cp-wrap {
		padding: 0 20px;
	}

	.cp-single .cp-hero__inner {
		padding: 24px 20px 120px;
	}

	.cp-single__intro {
		margin-top: -110px;
	}

	.cp-single__card {
		grid-template-columns: 1fr;
	}

	.cp-single__media {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.cp-single__summary {
		padding: 28px 24px 32px;
	}

	.cp-single__title {
		margin-bottom: 28px;
		font-size: 32px;
	}

	.cp-single__detail {
		grid-template-columns: 1fr;
		gap: 4px;
		padding: 14px 0;
	}

	.cp-single__body {
		display: flex;
		flex-direction: column;
		gap: 40px;
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.cp-aside {
		display: contents;
	}

	.cp-panel {
		order: -1;
		padding: 28px 24px;
	}

	.cp-cta {
		order: 1;
		padding: 28px 24px;
	}

	.cp-cta .cp-button {
		width: 100%;
		justify-content: center;
	}

	.cp-single__next {
		padding-top: 48px;
		padding-bottom: 48px;
	}

	.cp-single__next--split {
		gap: 20px;
	}

	.cp-panel--wide {
		padding: 28px 24px 20px;
	}

	.cp-panel--wide .cp-highlights {
		grid-template-columns: 1fr;
	}

	.cp-panel--wide .cp-highlights li,
	.cp-panel--wide .cp-highlights li:first-child {
		padding: 14px 0 14px 24px;
		font-size: 16px;
	}

	.cp-panel--wide .cp-highlights li::before,
	.cp-panel--wide .cp-highlights li:first-child::before {
		top: calc(14px + 0.5em);
	}

	.cp-cta--side,
	.cp-cta--wide {
		display: block;
		padding: 32px 24px 36px;
	}

	.cp-cta--side .cp-cta__text p,
	.cp-cta--wide .cp-cta__text p {
		margin-bottom: 24px;
	}

	.cp-cta--wide .cp-cta__title {
		font-size: 24px;
	}

	.cp-single__story h2 {
		margin-top: 44px;
		margin-bottom: 12px;
		font-size: 26px;
	}

	.cp-single__story p {
		font-size: 17px;
	}

	.cp-quote__inner {
		padding: 56px 20px;
	}

	.cp-quote__mark {
		width: 40px;
		height: 32px;
		margin-bottom: 18px;
	}

	.cp-quote blockquote p {
		font-size: 22px;
	}

	.cp-quote__by {
		margin-top: 24px;
	}

	.cp-single__actions {
		padding-top: 40px;
		padding-bottom: 56px;
	}

	.cp-single__actions .cp-button {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 359px) {
	.cp-single__actions .cp-button {
		padding-right: 12px;
		padding-left: 12px;
		font-size: 13px;
		white-space: nowrap;
	}
}
