/* core/group, style "case-study-specs": peach gradient + the triangles watermark bottom right; Columns: two stacked
   photos | heading + the structures, one per paragraph ("<strong>Name -</strong>
   size") or as a list. No mobile frame: the columns stack, text first.
   Figma: Event Structures Case Study › Specifications 7511:23311 */

.wp-block-group.is-style-case-study-specs {
	--wp--preset--gradient--peach: linear-gradient(108deg, var(--wp--preset--color--peach) 0%, var(--wp--preset--color--peach-deep) 100%);
	padding-block: 3.125rem;
	color: var(--wp--preset--color--ink);
}

.wp-block-group.is-style-case-study-specs::after {
	right: -8.625rem;
	inline-size: 34.375rem;
	block-size: 30.15875rem;
}

.wp-block-group.is-style-case-study-specs > .wp-block-columns {
	align-items: center;
	gap: 4.5rem;
	margin: 0 auto;
	max-inline-size: 80.9375rem;
}

.wp-block-group.is-style-case-study-specs .wp-block-column:first-child {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.wp-block-group.is-style-case-study-specs .wp-block-image {
	margin: 0;
}

.wp-block-group.is-style-case-study-specs .wp-block-image img {
	inline-size: 100%;
	aspect-ratio: 611.5 / 366;
	object-fit: cover;
}

.wp-block-group.is-style-case-study-specs .wp-block-column:last-child {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.9375rem;
}

.wp-block-group.is-style-case-study-specs .wp-block-column:last-child > * {
	margin: 0;
}

.wp-block-group.is-style-case-study-specs .wp-block-heading {
	line-height: 1.1;
	color: var(--wp--preset--color--contrast);
}

/* migrated headings keep their blocks as they were (scripts/migrate-case-studies.php): the section heading, then
   sub-headings ("Main Structure") in the body font */
.wp-block-group.is-style-case-study-specs .wp-block-column:last-child > .wp-block-heading:first-child:not([class*="-font-size"]) {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--text-3);
	font-weight: 600;
}

.wp-block-group.is-style-case-study-specs .wp-block-column:last-child > .wp-block-heading:not(:first-child, [class*="-font-size"]) {
	margin-block-start: 0.625rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--text-9);
	font-weight: 600;
}

.wp-block-group.is-style-case-study-specs .wp-block-column:last-child :is(p, li) {
	font-size: var(--wp--preset--font-size--text-10);
	line-height: 1.5;
}

.wp-block-group.is-style-case-study-specs .wp-block-column:last-child strong {
	font-weight: 600;
}

/* a list reads like the paragraphs: no bullets, same gap */
.wp-block-group.is-style-case-study-specs .wp-block-list {
	display: flex;
	flex-direction: column;
	gap: 0.9375rem;
	padding: 0;
	list-style: none;
}

.wp-block-group.is-style-case-study-specs .wp-block-list li {
	margin: 0;
}

@media (width < 782px) {
	.wp-block-group.is-style-case-study-specs > .wp-block-columns {
		flex-direction: column-reverse;
		gap: 1.875rem;
	}
}
