/* V3 homepage sections shared by the front end and the block editor. */
:is(.theme-hero, .theme-steps, .theme-training, .theme-proof, .theme-notes, .theme-proposal).wp-block-group:has(> .theme-section-inner) {
	margin-block-start: 0;
	padding: clamp(3.75rem, 8vw, 7rem) 0;
	font: 1rem/1.55 var(--wp--preset--font-family--body);
}

.wp-block-group > .theme-section-inner.alignwide {
	box-sizing: border-box;
	width: min(calc(100% - clamp(2rem, 9vw, 9rem)), 78rem);
	max-width: 78rem;
	margin-inline: auto;
	padding-inline: 0;
}

.theme-section-inner :is(h1, h2) {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 550;
	line-height: 1.02;
	letter-spacing: -0.038em;
}

.theme-section-inner > h2,
.theme-proposal-grid h2 {
	margin-block: 0 1.5rem;
	font-size: clamp(2.1rem, 4.75vw, 4.6rem);
	text-align: start;
}

.theme-section-inner :where(p) {
	max-inline-size: 66ch;
}

.theme-section-inner :focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 4px;
}

.theme-hero.wp-block-group:has(> .theme-section-inner) {
	padding-block: clamp(2.25rem, 5vw, 4.75rem) 1.5rem;
	border-block-end: 0;
}

.theme-hero.wp-block-group,
.theme-training.wp-block-group,
.theme-notes.wp-block-group,
.theme-proposal.wp-block-group {
	background: var(--wp--preset--color--soft);
}

.theme-section-inner :is(.theme-hero-grid, .theme-workflow, .theme-photo-grid, .theme-editorial-grid, .theme-proposal-grid) {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	margin-inline: 0;
	margin-block-end: 0;
}

.theme-section-inner .theme-hero-grid {
	gap: clamp(1.5rem, 4vw, 3.5rem);
}

.theme-hero-grid > .wp-block-column {
	align-self: center;
}

.theme-hero-copy h1 {
	margin-block: 0;
	font-size: clamp(2.7rem, 5.25vw, 5.25rem);
	text-align: start;
}

.theme-section-inner :is(.theme-lede, .theme-hero-copy > p:first-of-type),
.theme-training .theme-section-inner > h2 + p {
	color: var(--wp--preset--color--muted);
	font-size: clamp(1.075rem, 1.6vw, 1.25rem);
	line-height: 1.47;
}

.theme-section-inner .theme-hero-copy > p:first-of-type {
	max-inline-size: 34ch;
	margin-block: 1.5rem;
}

.theme-section-inner .wp-block-buttons {
	align-items: center;
	gap: .5rem 1.5rem;
}

.theme-section-inner :is(.wp-block-button__link, .theme-need-list a) {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	box-sizing: border-box;
	min-block-size: 2.75rem;
	font-weight: 700;
}

.theme-section-inner .wp-block-button__link {
	border-radius: .4rem;
}

.theme-section-inner :is(.wp-block-button__link, .theme-need-list a)::after {
	content: "";
	flex: 0 0 .9em;
	block-size: .67em;
	background: currentColor;
	clip-path: polygon(0 44%, 85% 44%, 57% 8%, 63% 0, 100% 50%, 63% 100%, 57% 92%, 85% 56%, 0 56%);
}

.theme-section-inner .wp-block-image {
	margin: 0;
}

.theme-section-inner .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}

.theme-section-inner .wp-block-image figcaption {
	margin: .5rem 0 0;
	color: var(--wp--preset--color--muted);
	font-size: .875rem;
	text-align: start;
}

.theme-section-inner .theme-needs {
	display: grid;
	gap: 0 1.5rem;
	margin-block-start: clamp(1.5rem, 3vw, 2.5rem);
	padding: 1rem 1.5rem;
	background: var(--wp--preset--color--base);
}

.theme-needs h2 {
	margin-block: .5rem;
	font: 700 1.05rem/1.25 var(--wp--preset--font-family--body);
	letter-spacing: 0;
	text-wrap: wrap;
}

.theme-needs .theme-need-list {
	display: grid;
	gap: 0 1.5rem;
	margin: 0;
	padding: 0;
}

.theme-need-list li {
	min-inline-size: 0;
	margin: 0;
}

.theme-need-list li::marker {
	content: "";
}

.theme-section-inner .theme-need-list a {
	display: flex;
	justify-content: space-between;
	gap: .5rem;
	min-block-size: 3rem;
	border-block-start: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--contrast);
	font-size: .925rem;
	font-weight: 650;
	text-decoration: none;
}

.theme-section-inner .theme-need-list a:hover {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
	text-underline-offset: .23em;
}

.theme-section-inner .theme-workflow {
	gap: 0 1.5rem;
	margin-block-start: 2.5rem;
	counter-reset: theme-phase;
}

.theme-steps .theme-workflow > .wp-block-column {
	position: relative;
	padding: 1.5rem 0 1.5rem 3.4rem;
	border-block-start: 1px solid var(--wp--preset--color--line);
	counter-increment: theme-phase;
}

.theme-workflow > .wp-block-column::before {
	content: counter(theme-phase, decimal-leading-zero);
	content: counter(theme-phase, decimal-leading-zero) / "";
	position: absolute;
	inset-block-start: 1.5rem;
	inset-inline-start: 0;
	color: var(--wp--preset--color--accent);
	font: 540 1.2rem var(--wp--preset--font-family--display);
}

.theme-workflow h3 {
	margin: 0 0 .5rem;
	font: 700 1.2rem/1.2 var(--wp--preset--font-family--body);
}

.theme-workflow p {
	margin: 0;
	color: var(--wp--preset--color--muted);
}

.theme-training .theme-section-inner > h2 + p {
	margin-block: 0;
}

.theme-section-inner .theme-program-list {
	max-inline-size: 61rem;
	margin-block-start: 2.5rem;
	margin-inline: 0;
	border-block-start: 1px solid var(--wp--preset--color--line);
}

.theme-program-list .wp-block-details {
	margin-block: 0;
	border-block-end: 1px solid var(--wp--preset--color--line);
}

.theme-program-list .wp-block-details > summary {
	position: relative;
	align-content: center;
	box-sizing: border-box;
	min-block-size: 4.75rem;
	padding: 1rem 2.5rem 1rem 0;
	list-style: none;
	font-size: clamp(1.08rem, 2.25vw, 1.5rem);
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: anywhere;
	cursor: pointer;
}

.theme-program-list summary::-webkit-details-marker {
	display: none;
}

.theme-program-list summary:hover {
	color: var(--wp--preset--color--accent);
}

.theme-program-list summary::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 0;
	box-sizing: border-box;
	inline-size: 1.75rem;
	block-size: 1.75rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 50%;
	background:
		linear-gradient(currentColor, currentColor) center / .62rem 1px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1px .62rem no-repeat;
	transform: translateY(-50%);
}

.theme-program-list .wp-block-details[open] > summary::after {
	background: linear-gradient(currentColor, currentColor) center / .62rem 1px no-repeat;
}

.theme-program-list summary :is(small, .theme-program-meta, .theme-program-duration) {
	display: block;
	color: var(--wp--preset--color--muted);
	font-size: .875rem;
	font-weight: 450;
}

.theme-program-list summary :is(small, .theme-program-meta) {
	margin-block-end: .14rem;
}

.theme-program-list .wp-block-details > p {
	margin-block: 0 1rem;
	color: var(--wp--preset--color--muted);
}

.theme-program-list .wp-block-details > .wp-block-buttons,
.theme-program-list .wp-block-details > .wp-block-buttons + p {
	display: inline-flex;
	margin-block-start: 0;
	vertical-align: middle;
}

.theme-program-list .wp-block-details > .wp-block-buttons {
	margin: 0 1.5rem .75rem 0;
}

.theme-program-list .wp-block-details > p a,
.theme-program-list + p a {
	display: inline-flex;
	align-items: center;
	min-block-size: 2.75rem;
	font-weight: 700;
	text-underline-offset: .23em;
}

.theme-program-list .wp-block-details > :last-child:not(summary) {
	margin-block-end: 1.5rem;
}

.theme-section-inner .theme-photo-grid {
	gap: 1rem;
	margin-block: 2.5rem;
}

.theme-photo-grid > .wp-block-column {
	align-self: end;
}

.theme-section-inner .theme-reference {
	padding-block: 1.5rem;
	border-block-start: 1px solid var(--wp--preset--color--line);
}

.theme-reference h3 {
	margin: 0;
	font: 620 1.4rem/1.2 var(--wp--preset--font-family--display);
}

.theme-reference p {
	margin-block: .5rem 0;
}

.theme-reference p + p {
	color: var(--wp--preset--color--muted);
	font-size: .875rem;
}

.theme-editorial-grid .theme-feature-note {
	align-content: center;
	box-sizing: border-box;
	min-block-size: 16rem;
	padding: clamp(1.25rem, 4vw, 3rem);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--surface);
}

.theme-feature-note :is(h3, p, a:not(.wp-element-button)) {
	color: inherit;
}

.theme-feature-note :focus-visible {
	outline-color: var(--wp--preset--color--surface);
}

.theme-feature-note h3 {
	max-inline-size: 17ch;
	font: 550 clamp(1.85rem, 4vw, 3.75rem)/1.03 var(--wp--preset--font-family--display);
	letter-spacing: -.035em;
}

.theme-editorial-grid :is(.theme-note-area, .theme-kicker) {
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: 0;
}

.theme-editorial-more > .wp-block-group,
.theme-editorial-more:has(> h3) {
	align-self: start;
	margin-block: 0;
	padding-block: 1.5rem;
	border-block-start: 1px solid var(--wp--preset--color--line);
}

.theme-editorial-more > .wp-block-group:last-child,
.theme-editorial-more:has(> h3) {
	border-block-end: 1px solid var(--wp--preset--color--line);
}

.theme-editorial-more h3 {
	font: 620 clamp(1.27rem, 2.3vw, 1.85rem)/1.15 var(--wp--preset--font-family--display);
	letter-spacing: -.022em;
}

.theme-editorial-grid :is(h3, p) {
	margin-block: .5rem 0;
}

.theme-editorial-grid :is(.theme-note-area, .theme-kicker, .theme-editorial-more > h3):first-child {
	margin-block-start: 0;
}

.theme-editorial-more p:not(.theme-note-area) {
	color: var(--wp--preset--color--muted);
}

.theme-editorial-grid p:last-child a {
	display: inline-flex;
	align-items: center;
	min-block-size: 2.75rem;
	font-weight: 700;
	text-underline-offset: .23em;
}

.theme-read-to-learn {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: .5rem 1.5rem;
	margin-block-start: 2.5rem;
	padding-block: 1rem;
	border-block: 1px solid var(--wp--preset--color--line);
}

.theme-read-to-learn p {
	margin: 0;
}

.theme-proposal.wp-block-group {
	border-block-start: 1px solid var(--wp--preset--color--line);
}

.theme-section-inner .theme-proposal-grid {
	gap: 2.5rem;
}

.theme-proposal-grid p {
	margin-block: .5rem 0;
}

.theme-proposal-grid .wp-block-details {
	margin: 0;
	padding-block: 1rem;
	border-block-start: 1px solid var(--wp--preset--color--line);
}

.theme-proposal-grid .wp-block-details:last-child {
	border-block-end: 1px solid var(--wp--preset--color--line);
}

.theme-proposal-grid summary {
	align-content: center;
	min-block-size: 2.75rem;
	list-style-position: inside;
	font-weight: 700;
	line-height: 1.35;
	cursor: pointer;
}

.theme-proposal .theme-proposal-action {
	margin-block-start: 2.5rem;
}

@media (min-width: 36rem) {
	.theme-section-inner .theme-workflow {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.theme-steps .theme-workflow > .wp-block-column {
		padding: 3rem 0 1.5rem;
	}

	.theme-workflow > .wp-block-column::before {
		inset-block-start: .75rem;
	}

	.theme-section-inner .theme-photo-grid {
		grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
	}

	.theme-program-list summary:has(> .theme-program-duration) {
		padding-inline-end: 6rem;
	}

	.theme-program-list summary > .theme-program-duration {
		position: absolute;
		inset-block-start: 50%;
		inset-inline-end: 2.5rem;
		transform: translateY(-50%);
	}
}

@media (min-width: 48rem) {
	.theme-section-inner .theme-hero-grid {
		grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	}

	.theme-section-inner .theme-editorial-grid {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
	}

	.theme-section-inner .theme-proposal-grid {
		grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
	}
}

@media (min-width: 48rem) and (max-width: 59.999rem) {
	.theme-needs h2 {
		grid-area: 1 / 1;
		z-index: 1;
		align-self: center;
		max-inline-size: calc(50% - .75rem);
	}

	.theme-needs .theme-need-list {
		grid-area: 1 / 1;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.theme-need-list li:first-child {
		grid-column: 2;
	}

	.theme-section-inner .theme-need-list li:first-child a {
		border-block-start: 0;
	}
}

@media (min-width: 60rem) {
	.theme-hero-copy h1 {
		max-inline-size: 14ch;
	}

	.theme-section-inner .theme-needs {
		grid-template-columns: minmax(0, .8fr) minmax(0, 3fr);
		align-items: center;
	}

	.theme-needs .theme-need-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.theme-section-inner .theme-need-list a {
		block-size: 100%;
		padding-inline-start: 1rem;
		border-block-start: 0;
		border-inline-start: 1px solid var(--wp--preset--color--line);
	}

	.theme-section-inner .theme-photo-grid {
		grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
		gap: 2.5rem;
	}
}
