.wp-block-harris-expandable-info.harris-expandable-info {
	--harris-expandable-width: 1280px;
	--harris-expandable-gutter: 2rem;
	--harris-expandable-black: var(--wp--preset--color--harris-black, #212122);
	--harris-expandable-red: var(--wp--preset--color--harris-red, #b62025);
	--harris-expandable-red-dark: var(--wp--preset--color--harris-red-dark, #8f171b);
	--harris-expandable-muted: #666a70;
	--harris-expandable-surface: #ffffff;
	--harris-expandable-answer-surface: #f4f5f6;
	--harris-expandable-border: #d7dade;

	width: 100%;
	margin: 0;
	padding-block: clamp(3rem, 6vw, 5.5rem);
	background: var(--harris-expandable-surface);
	color: var(--harris-expandable-black);
}

.harris-expandable-info *,
.harris-expandable-info *::before,
.harris-expandable-info *::after {
	box-sizing: border-box;
}

.harris-expandable-info__inner {
	display: grid;
	width: min(calc(100% - (var(--harris-expandable-gutter) * 2)), var(--harris-expandable-width));
	margin-inline: auto;
	gap: clamp(2rem, 5vw, 5rem);
}

.harris-expandable-info--layout-stacked .harris-expandable-info__inner {
	grid-template-columns: 1fr;
}

.harris-expandable-info--layout-stacked .harris-expandable-info__intro {
	max-width: 48rem;
}

.harris-expandable-info--layout-split .harris-expandable-info__inner {
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	align-items: start;
}

.harris-expandable-info--layout-split.harris-expandable-info--intro-left .harris-expandable-info__intro {
	grid-column: 1;
	grid-row: 1;
}

.harris-expandable-info--layout-split.harris-expandable-info--intro-left .harris-expandable-info__items {
	grid-column: 2;
	grid-row: 1;
}

.harris-expandable-info--layout-split.harris-expandable-info--intro-right .harris-expandable-info__intro {
	grid-column: 2;
	grid-row: 1;
}

.harris-expandable-info--layout-split.harris-expandable-info--intro-right .harris-expandable-info__items {
	grid-column: 1;
	grid-row: 1;
}

.harris-expandable-info__intro,
.harris-expandable-info__items {
	min-width: 0;
}

.harris-expandable-info__heading {
	max-width: 18ch;
	margin: 0;
	color: var(--harris-expandable-black);
	font-size: clamp(2rem, 3.6vw, 3.15rem);
	font-weight: 850;
	letter-spacing: -0.04em;
	line-height: 1.05;
	text-wrap: balance;
}

.harris-expandable-info__description {
	max-width: 42rem;
	margin: 1rem 0 0;
	color: var(--harris-expandable-muted);
	font-size: 1rem;
	line-height: 1.7;
	text-wrap: pretty;
}

.harris-expandable-info__items {
	display: grid;
	gap: 1rem;
}

.harris-expandable-info__item {
	--expandable-chevron-space: 3.7rem;
	--expandable-chevron-width: 2.2rem;
	--expandable-summary-bg: var(--harris-expandable-red);

	margin: 0 var(--expandable-chevron-space) 0 0;
	border: 0;
	background: transparent;
}

.harris-expandable-info__summary {
	position: relative;
	display: flex;
	min-height: 3.9rem;
	align-items: center;
	padding: 0.9rem 1.8rem 0.9rem 1.55rem;
	overflow: visible;
	border: 0;
	border-radius: 3px 0 0 3px;
	background: var(--expandable-summary-bg);
	color: #ffffff;
	cursor: pointer;
	list-style: none;
	transition: background-color 180ms ease, transform 180ms ease;
}

.harris-expandable-info__summary::-webkit-details-marker {
	display: none;
}

.harris-expandable-info__summary::marker {
	content: "";
}

.harris-expandable-info__item-title {
	position: relative;
	z-index: 2;
	font-size: clamp(1rem, 1.45vw, 1.15rem);
	font-weight: 800;
	letter-spacing: 0.015em;
	line-height: 1.35;
}

.harris-expandable-info__summary-chevron {
	position: absolute;
	top: 0;
	width: var(--expandable-chevron-width);
	height: 100%;
	clip-path: polygon(0 0, 56% 0, 100% 50%, 56% 100%, 0 100%, 44% 50%);
	pointer-events: none;
	transform: translateX(0);
	transform-origin: center;
	transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 180ms ease;
}

/*
 * These three shapes intentionally mirror the working CTA button.
 * On this white section the surface layer is also white, so visually it
 * becomes a clean white separator/gap between the red body and red chevron.
 */
.harris-expandable-info__summary-chevron--white {
	right: -0.8rem;
	background: #ffffff;
}

.harris-expandable-info__summary-chevron--surface {
	right: -1.32rem;
	background: var(--harris-expandable-surface);
}

.harris-expandable-info__summary-chevron--red {
	right: -1rem;
	background: var(--harris-expandable-red);
}

.harris-expandable-info__summary:hover,
.harris-expandable-info__summary:focus-visible {
	--expandable-summary-bg: var(--harris-expandable-red-dark);
	transform: translateX(2px);
}

.harris-expandable-info__summary:hover .harris-expandable-info__summary-chevron--white,
.harris-expandable-info__summary:focus-visible .harris-expandable-info__summary-chevron--white {
	transform: translateX(0.12rem);
}

.harris-expandable-info__summary:hover .harris-expandable-info__summary-chevron--surface,
.harris-expandable-info__summary:focus-visible .harris-expandable-info__summary-chevron--surface {
	transform: translateX(0.16rem);
}

.harris-expandable-info__summary:hover .harris-expandable-info__summary-chevron--red,
.harris-expandable-info__summary:focus-visible .harris-expandable-info__summary-chevron--red {
	transform: translateX(0.24rem);
}

.harris-expandable-info__item[open] .harris-expandable-info__summary-chevron--red {
	background: var(--harris-expandable-black);
}

.harris-expandable-info__item[open] .harris-expandable-info__summary:hover .harris-expandable-info__summary-chevron--red,
.harris-expandable-info__item[open] .harris-expandable-info__summary:focus-visible .harris-expandable-info__summary-chevron--red {
	background: var(--harris-expandable-black);
	transform: translateX(0.24rem);
}

.harris-expandable-info__summary:active {
	transform: translateX(2px) translateY(2px);
}

.harris-expandable-info__summary:focus-visible {
	outline: 3px solid var(--harris-expandable-black);
	outline-offset: 4px;
}

.harris-expandable-info__answer {
	margin-top: 0.65rem;
	padding: 1.1rem 1.35rem 1.25rem;
	border-radius: 3px;
	background: var(--harris-expandable-answer-surface);
}

.harris-expandable-info__answer-copy {
	color: var(--harris-expandable-muted);
	font-size: 0.95rem;
	line-height: 1.7;
}

.harris-expandable-info__answer-copy > :first-child {
	margin-top: 0;
}

.harris-expandable-info__answer-copy > :last-child {
	margin-bottom: 0;
}

.harris-expandable-info__answer-copy a {
	color: var(--harris-expandable-red-dark);
}

@media (max-width: 850px) {
	.harris-expandable-info--layout-split .harris-expandable-info__inner {
		grid-template-columns: 1fr;
	}

	.harris-expandable-info--layout-split.harris-expandable-info--intro-left .harris-expandable-info__intro,
	.harris-expandable-info--layout-split.harris-expandable-info--intro-right .harris-expandable-info__intro {
		grid-column: 1;
		grid-row: 1;
	}

	.harris-expandable-info--layout-split.harris-expandable-info--intro-left .harris-expandable-info__items,
	.harris-expandable-info--layout-split.harris-expandable-info--intro-right .harris-expandable-info__items {
		grid-column: 1;
		grid-row: 2;
	}
}

@media (max-width: 640px) {
	.wp-block-harris-expandable-info.harris-expandable-info {
		--harris-expandable-gutter: 1.5rem;
		padding-block: 2.5rem;
	}

	.harris-expandable-info__item {
		--expandable-chevron-space: 3rem;
		--expandable-chevron-width: 1.9rem;
	}

	.harris-expandable-info__summary {
		min-height: 3.6rem;
		padding: 0.8rem 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.harris-expandable-info *,
	.harris-expandable-info *::before,
	.harris-expandable-info *::after {
		transition-duration: 0.01ms !important;
	}
}
