/* Solara Energy demo composition. Demo-only and loaded only after demo install. */

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-demo-header {
	position: absolute;
	inset-block-start: 1.5rem;
	inset-inline-start: 50%;
	z-index: 100;
	width: min(calc(100% - 2rem), var(--wp--style--global--wide-size));
	max-width: var(--wp--style--global--wide-size);
	transform: translateX(-50%);
	border: 0;
	box-shadow: none;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-demo-header :is(a, .wp-block-site-title a) {
	color: var(--wp--preset--color--ink-inverse);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-demo-header .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--canvas-inverse);
	border: 1px solid var(--wp--preset--color--border-inverse);
	border-radius: 0;
	color: var(--wp--preset--color--ink-inverse);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .executive-pattern--page-header-banner {
	min-height: clamp(22rem, 38vw, 30rem) !important;
	padding-block-start: clamp(8rem, 14vw, 11rem) !important;
	padding-block-end: clamp(2rem, 5vw, 4rem) !important;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .executive-pattern--page-header-banner > .wp-block-cover__inner-container {
	align-self: end;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-home-hero {
	min-height: clamp(38rem, 74vw, 52rem) !important;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-home-hero__panel {
	width: min(100%, 34rem);
	margin-inline: 0 auto;
	border-inline-start: 1px solid var(--wp--preset--color--primary);
}

:where(.wp-site-blocks, .editor-styles-wrapper) :is(.solara-home-facts, .solara-numbered-principles) > .wp-block-columns > .wp-block-column + .wp-block-column {
	border-inline-start: 1px solid var(--wp--preset--color--border);
	padding-inline-start: var(--wp--preset--spacing--medium);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-solution-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--large);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-solution-card {
	padding-block-start: var(--wp--preset--spacing--small);
}

:where(.wp-site-blocks, .editor-styles-wrapper) :is(.solara-solution-card, .solara-insight-card) .wp-block-image,
:where(.wp-site-blocks, .editor-styles-wrapper) .solara-insight-card .wp-block-post-featured-image {
	margin: 0 0 var(--wp--preset--spacing--small);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-home-stage-list {
	border-top: 1px solid var(--wp--preset--color--border-strong);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-home-stage-row {
	justify-content: flex-start;
	gap: var(--wp--preset--spacing--medium);
	padding-block: var(--wp--preset--spacing--small);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-home-stage-row .is-style-eyebrow {
	flex: 0 0 3rem;
	margin: 0;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-home-stage-row .wp-block-heading {
	margin: 0;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-home-storage__panel {
	width: min(100%, 48rem);
	margin-inline-start: 0;
	border-inline-start: 1px solid var(--wp--preset--color--primary);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-home-project-images {
	gap: .5rem;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-home-project-images .wp-block-image {
	margin: 0;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-insight-query .wp-block-post-template {
	gap: var(--wp--preset--spacing--large);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-insight-card {
	border-bottom: 1px solid var(--wp--preset--color--border-strong);
	padding-block-end: var(--wp--preset--spacing--medium);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-insight-card .wp-block-post-title a {
	text-decoration: none;
}

/* Process screenshot composition: one centre line with alternating stages. */
:where(.wp-site-blocks, .editor-styles-wrapper) .solara-process-stages {
	position: relative;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-process-stages::before {
	content: "";
	position: absolute;
	inset-block: clamp(14rem, 24vw, 20rem) var(--wp--preset--spacing--xx-large);
	inset-inline-start: 50%;
	width: 1px;
	background: var(--wp--preset--color--border);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-process-intro {
	margin-block-end: var(--wp--preset--spacing--x-large);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-process-stage {
	position: relative;
	width: calc(50% - 2rem);
	max-width: 34rem;
	margin-block: 0 var(--wp--preset--spacing--x-large);
	padding-block-start: var(--wp--preset--spacing--small);
	border-top: 1px solid var(--wp--preset--color--border-strong);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-process-stage::before {
	content: "";
	position: absolute;
	inset-block-start: -.29rem;
	width: .5rem;
	height: .5rem;
	background: var(--wp--preset--color--primary);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-process-stage.is-left {
	margin-inline: 0 auto;
	text-align: end;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-process-stage.is-left::before {
	inset-inline-end: -2.3rem;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-process-stage.is-right {
	margin-inline: auto 0;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-process-stage.is-right::before {
	inset-inline-start: -2.3rem;
}

/* Careers uses rows, not cards. */
:where(.wp-site-blocks, .editor-styles-wrapper) .solara-job-list {
	border-top: 1px solid var(--wp--preset--color--border);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-job-row {
	padding-block: var(--wp--preset--spacing--medium);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-job-row .wp-block-buttons {
	flex: 0 0 auto;
}

:where(.wp-site-blocks, .editor-styles-wrapper) :is(.solara-about-principles, .solara-ev-considerations),
:where(.wp-site-blocks, .editor-styles-wrapper) :is(.solara-about-principles, .solara-ev-considerations) > .wp-block-group {
	background: transparent;
}

@media (min-width: 782px) {
	:where(.wp-site-blocks, .editor-styles-wrapper) :is(.solara-about-principles, .solara-ev-considerations) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-demo-header {
		inset-block-start: .75rem;
		width: calc(100% - 1.5rem);
	}

	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-demo-header .executive-header-action {
		display: none;
	}

	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-demo-header .wp-block-navigation__responsive-container.is-menu-open {
		background: var(--wp--preset--color--canvas-inverse) !important;
		color: var(--wp--preset--color--ink-inverse) !important;
		padding: var(--wp--preset--spacing--large);
	}
}

@media (max-width: 781px) {
	:where(.wp-site-blocks, .editor-styles-wrapper) :is(.solara-home-facts, .solara-numbered-principles) > .wp-block-columns > .wp-block-column + .wp-block-column {
		border-inline-start: 0;
		border-top: 1px solid var(--wp--preset--color--border);
		padding-inline-start: 0;
		padding-block-start: var(--wp--preset--spacing--medium);
	}

	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-solution-grid {
		grid-template-columns: 1fr;
	}

	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-process-stages::before {
		inset-inline-start: calc(var(--wp--preset--spacing--medium) + .25rem);
	}

	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-process-stage,
	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-process-stage.is-left,
	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-process-stage.is-right {
		width: calc(100% - 2rem);
		max-width: none;
		margin-inline: 2rem 0;
		text-align: start;
	}

	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-process-stage.is-left::before,
	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-process-stage.is-right::before {
		inset-inline-start: -2rem;
		inset-inline-end: auto;
	}

	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-job-row {
		align-items: flex-start;
	}

	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-job-row .wp-block-buttons,
	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-job-row .wp-block-button,
	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-job-row .wp-block-button__link {
		width: 100%;
	}
}

/* Solara layout parity and wide/full-width correction
---------------------------------------------------------------------------- */
:where(.wp-site-blocks, .editor-styles-wrapper) .executive-page-root {
	width: 100%;
	max-width: none;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .executive-page-root > .alignfull {
	width: 100%;
	max-width: none;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .executive-page-root .alignwide {
	width: min(100%, var(--wp--style--global--wide-size));
	margin-inline: auto;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-home-hero > .wp-block-cover__inner-container {
	width: min(100%, var(--wp--style--global--wide-size));
	margin-inline: auto;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-home-hero__panel {
	margin-inline: 0 auto;
	max-width: 34rem;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-solution-grid {
	gap: 1px;
	background: var(--wp--preset--color--border);
	border: 1px solid var(--wp--preset--color--border);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-solution-card {
	padding: var(--wp--preset--spacing--large);
	background: var(--wp--preset--color--background);
	border: 0 !important;
	min-height: 100%;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-solution-card > .wp-block-image {
	margin: calc(var(--wp--preset--spacing--large) * -1) calc(var(--wp--preset--spacing--large) * -1) var(--wp--preset--spacing--medium);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-solution-card:nth-child(2),
:where(.wp-site-blocks, .editor-styles-wrapper) .solara-solution-card:nth-child(3) {
	background: var(--wp--preset--color--surface-strong);
	color: var(--wp--preset--color--text-on-strong);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-solution-card:nth-child(2) > .wp-block-image,
:where(.wp-site-blocks, .editor-styles-wrapper) .solara-solution-card:nth-child(3) > .wp-block-image {
	display: none;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-solution-card:nth-child(2) :is(h3,a),
:where(.wp-site-blocks, .editor-styles-wrapper) .solara-solution-card:nth-child(3) :is(h3,a) {
	color: var(--wp--preset--color--text-on-strong);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-solution-card:nth-child(2) .is-style-muted,
:where(.wp-site-blocks, .editor-styles-wrapper) .solara-solution-card:nth-child(3) .is-style-muted {
	color: var(--wp--preset--color--text-muted-on-strong);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-home-principles,
:where(.wp-site-blocks, .editor-styles-wrapper) .solara-home-expectations {
	border-block: 0;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-home-stage-row {
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr);
	align-items: start;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-home-storage .wp-block-cover__inner-container {
	width: min(100%, var(--wp--style--global--wide-size));
	margin-inline: auto;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-home-project-images img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-residential-assessment__layout,
:where(.wp-site-blocks, .editor-styles-wrapper) .solara-residential-faq__layout {
	gap: clamp(2rem, 5vw, 5rem);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-residential-assessment .wp-block-image,
:where(.wp-site-blocks, .editor-styles-wrapper) .solara-residential-faq .wp-block-image {
	margin: 0;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-residential-assessment .wp-block-image img {
	width: 100%;
	max-height: 42rem;
	object-fit: cover;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-assessment-list {
	border-top: 1px solid var(--wp--preset--color--border-strong);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-assessment-row {
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr);
	gap: 1rem;
	padding-block: 1rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-assessment-row > * {
	margin: 0;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-design-decisions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid var(--wp--preset--color--border);
	border-inline-start: 1px solid var(--wp--preset--color--border);
	margin-top: var(--wp--preset--spacing--x-large);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-design-decision {
	padding: var(--wp--preset--spacing--large);
	border-inline-end: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-stages-table {
	margin-top: var(--wp--preset--spacing--large);
	overflow-x: auto;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-stages-table table {
	width: 100%;
	min-width: 42rem;
	border-collapse: collapse;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-stages-table :is(th,td) {
	padding: .85rem 1rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	text-align: left;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-faq-list {
	border-top: 1px solid var(--wp--preset--color--border-strong);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-faq-list .wp-block-details {
	padding-block: 1rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-residential-faq .wp-block-image img {
	width: 100%;
	max-height: 32rem;
	object-fit: cover;
}

@media (max-width: 1024px) {
	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-design-decisions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 781px) {
	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-residential-assessment__layout,
	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-residential-faq__layout {
		flex-wrap: wrap;
	}

	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-residential-assessment__layout > .wp-block-column,
	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-residential-faq__layout > .wp-block-column {
		flex-basis: 100% !important;
	}

	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-design-decisions {
		grid-template-columns: 1fr;
	}

	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-solution-card:nth-child(2) > .wp-block-image,
	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-solution-card:nth-child(3) > .wp-block-image {
		display: block;
	}

	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-solution-card:nth-child(2),
	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-solution-card:nth-child(3) {
		min-height: auto;
	}
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-content-section > .alignwide {
	width: min(100%, 1000px);
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-three-points__grid {
	gap: 0;
	align-items: stretch;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-three-points__grid > .wp-block-column {
	padding: var(--wp--preset--spacing--large);
	border-top: 1px solid var(--wp--preset--color--border);
	min-height: 100%;
}

:where(.wp-site-blocks, .editor-styles-wrapper) .solara-three-points__grid > .wp-block-column + .wp-block-column {
	border-inline-start: 1px solid var(--wp--preset--color--border);
}

@media (max-width: 781px) {
	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-three-points__grid > .wp-block-column {
		padding-inline: 0;
	}
	:where(.wp-site-blocks, .editor-styles-wrapper) .solara-three-points__grid > .wp-block-column + .wp-block-column {
		border-inline-start: 0;
	}
}
