.ost-case-single-main,
.ost-case-archive-main {
	color: var(--wp--preset--color--foreground, #0b0620);
}

body.single-case_study .is-content-justification-space-between {
	justify-content: space-between;
}

body.single-case_study .wp-block-navigation.is-content-justification-right {
	justify-content: flex-end;
}

.ost-case-single,
.ost-case-archive-main {
	margin-left: auto;
	margin-right: auto;
	max-width: 980px;
	padding: var(--wp--preset--spacing--70, 72px) var(--wp--preset--spacing--50, 32px);
}

.ost-case-header,
.ost-case-archive-header {
	margin-bottom: var(--wp--preset--spacing--50, 48px);
}

.ost-case-back {
	font-size: 0.95rem;
	margin-bottom: 1.5rem;
}

.ost-case-back a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.ost-case-kicker,
.ost-case-badge {
	background: #f2f0f6;
	border: 1px solid #d8d3c8;
	border-radius: 999px;
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	margin: 0 0 1rem;
	padding: 0.5rem 0.7rem;
	text-transform: uppercase;
}

.ost-case-header h1,
.ost-case-archive-header h1 {
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	line-height: 1.08;
	margin: 0;
	max-width: 920px;
}

.ost-case-summary,
.ost-case-archive-intro p {
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	line-height: 1.45;
	margin-top: 1.5rem;
	max-width: 860px;
}

.ost-case-meta {
	border-bottom: 1px solid #d8d3c8;
	border-top: 1px solid #d8d3c8;
	display: grid;
	gap: 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: var(--wp--preset--spacing--40, 32px) 0;
}

.ost-case-meta div,
.ost-case-card-meta div {
	border-top: 1px solid #e8e4dc;
	padding: 1rem 0;
}

.ost-case-meta div:nth-child(1),
.ost-case-meta div:nth-child(2),
.ost-case-card-meta div:nth-child(1) {
	border-top: 0;
}

.ost-case-meta dt,
.ost-case-card-meta dt {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	margin-bottom: 0.3rem;
	text-transform: uppercase;
}

.ost-case-meta dd,
.ost-case-card-meta dd {
	margin: 0;
}

.ost-case-note,
.ost-case-empty,
.ost-case-visual-placeholder {
	background: #f8f7f4;
	border: 1px solid #d8d3c8;
	border-radius: 4px;
	margin: var(--wp--preset--spacing--40, 32px) 0;
	padding: var(--wp--preset--spacing--40, 32px);
}

.ost-case-note p,
.ost-case-empty p {
	margin: 0;
}

.ost-case-featured-image {
	margin: 0 0 var(--wp--preset--spacing--50, 48px);
}

.ost-case-featured-image img,
.ost-case-card-image img {
	border-radius: 4px;
	display: block;
	height: auto;
	width: 100%;
}

.ost-case-featured-image figcaption,
.ost-case-content figcaption,
.ost-case-visual-caption {
	color: #4e485e;
	font-size: 0.9rem;
	line-height: 1.5;
	margin-top: 0.75rem;
}

.ost-case-content {
	max-width: 760px;
}

.ost-case-content h2 {
	border-top: 1px solid #d8d3c8;
	margin-top: var(--wp--preset--spacing--60, 56px);
	padding-top: var(--wp--preset--spacing--50, 40px);
}

.ost-case-content h2:first-child {
	border-top: 0;
	margin-top: 0;
	padding-top: 0;
}

.ost-case-content p,
.ost-case-content li {
	line-height: 1.7;
}

.ost-case-content figure {
	margin-bottom: var(--wp--preset--spacing--40, 32px);
	margin-top: var(--wp--preset--spacing--40, 32px);
}

.ost-case-visual-placeholder {
	max-width: 100%;
}

.ost-case-visual-placeholder p:first-child {
	margin-top: 0;
}

.ost-case-related {
	border-top: 1px solid #d8d3c8;
	margin-top: var(--wp--preset--spacing--60, 64px);
	padding-top: var(--wp--preset--spacing--40, 32px);
}

.ost-case-link-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ost-case-related-grid,
.ost-case-archive-grid {
	display: grid;
	gap: var(--wp--preset--spacing--40, 32px);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: var(--wp--preset--spacing--40, 32px);
}

.ost-case-card,
.ost-case-related-card {
	border: 1px solid #d8d3c8;
	border-radius: 4px;
	overflow: hidden;
}

.ost-case-card-body,
.ost-case-related-card {
	padding: var(--wp--preset--spacing--40, 32px);
}

.ost-case-card-title {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1.15;
	margin: 0.75rem 0 1rem;
}

.ost-case-card-title a,
.ost-case-related-card a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.ost-case-card-meta {
	border-top: 1px solid #d8d3c8;
	display: grid;
	gap: 0;
	margin: 1.5rem 0 0;
}

.ost-case-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 var(--wp--preset--spacing--40, 32px);
}

.ost-case-filter {
	border: 1px solid #d8d3c8;
	border-radius: 999px;
	color: inherit;
	padding: 0.55rem 0.85rem;
	text-decoration: none;
}

.ost-case-filter.is-active,
.ost-case-filter:hover,
.ost-case-filter:focus {
	background: #0b0620;
	color: #fff;
}

@media (max-width: 760px) {
	.ost-case-single,
	.ost-case-archive-main {
		padding-left: var(--wp--preset--spacing--40, 24px);
		padding-right: var(--wp--preset--spacing--40, 24px);
	}

	.ost-case-meta,
	.ost-case-related-grid,
	.ost-case-archive-grid {
		grid-template-columns: 1fr;
	}

	.ost-case-meta div:nth-child(2) {
		border-top: 1px solid #e8e4dc;
	}
}
