/* Homepage: construction machinery guides and technical resources. */
.home-resources {
	position: relative;
	overflow: hidden;
	padding: clamp(48px, 5vw, 72px) 0 clamp(56px, 6vw, 88px);
	background-color: #242a2f;
	background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.3px);
	background-size: 20px 20px;
	color: #fff;
}

.home-resources-inner {
	width: min(calc(100% - 56px), 1440px);
	margin: 0 auto;
}

.home-resources-header {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	align-items: end;
	gap: clamp(32px, 4vw, 64px);
	margin-bottom: clamp(34px, 3vw, 42px);
}

.home-resources-heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.home-resources-eyebrow {
	margin: 0 0 16px;
	color: #ffc400;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.home-resources-eyebrow p,
.home-resources-intro p,
.home-resources-summary p {
	margin: 0;
}

/* Add home-resources-title to the Heading element in Bricks. */
.home-resources-title {
	max-width: 870px;
	margin: 0;
	color: #fff;
	font-size: clamp(36px, 4vw, 52px) !important;
	font-weight: 800;
	line-height: 1.28 !important;
	letter-spacing: -.03em;
}

/* Bricks may output the visible heading inside a styled child element. */
.home-resources-title * {
	color: inherit;
	font-size: inherit !important;
	font-weight: inherit;
	line-height: inherit !important;
	letter-spacing: inherit;
}

.home-resources .home-resources-heading::after {
	display: block;
	width: 46px;
	height: 3px;
	flex: 0 0 3px;
	margin-top: 16px;
	content: '';
	background: #ffc400;
}

.home-resources-intro {
	max-width: 610px;
	margin: 0 0 7px;
	color: #f1f1f1;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
}

/* Bricks Accordion (Nestable): keep Bricks' native click/keyboard behaviour. */
.home-resources-accordion {
	--home-resources-content-indent: 13px;
	--home-resources-content-indent-double: 26px;
	width: 100%;
	margin: 0;
}

.home-resources-accordion > * {
	position: relative;
	margin: 0;
	border: 1px solid #30393e;
	background: #141819;
	transition: border-color .2s ease;
}

.home-resources-accordion > * + * {
	border-top: 0;
}

.home-resources-accordion > *:hover {
	z-index: 1;
	border-color: #a6afb3;
	box-shadow: 0 0 0 1px #a6afb3;
}

.home-resources-accordion .accordion-title-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 64px;
	margin: 0;
	padding: 16px 52px 16px 21px;
	border: 0;
	background: #050505;
	color: #fff;
	transition: background-color .2s ease;
}

.home-resources-accordion .accordion-title-wrapper:hover,
.home-resources-accordion .accordion-title-wrapper:focus-visible {
	background: #050505;
}

.home-resources-accordion .home-resources-question,
.home-resources-accordion .accordion-title-wrapper .brxe-heading {
	margin: 0;
	color: #fff;
	font-size: clamp(16px, 1.3vw, 18px);
	font-weight: 800;
	line-height: 1.35;
	transition: color .2s ease;
}

/* Expanded items stay white until the visitor hovers or focuses the title. */
.home-resources-accordion .brx-open .home-resources-question,
.home-resources-accordion .brx-open .accordion-title-wrapper .brxe-heading {
	color: #fff;
}

.home-resources-accordion .accordion-title-wrapper:hover .home-resources-question,
.home-resources-accordion .accordion-title-wrapper:hover .brxe-heading,
.home-resources-accordion .accordion-title-wrapper:focus-visible .home-resources-question,
.home-resources-accordion .accordion-title-wrapper:focus-visible .brxe-heading {
	color: #ffc400;
}

/* Remove the default icon element in Bricks; these marks follow its open state. */
.home-resources-accordion .accordion-title-wrapper::after {
	position: absolute;
	top: 50%;
	right: 22px;
	width: 18px;
	content: '+';
	transform: translateY(-50%);
	color: #ffc400;
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	text-align: center;
}

.home-resources-accordion .brx-open .accordion-title-wrapper::after {
	content: '\2212';
}

.home-resources-accordion .accordion-content-wrapper {
	box-sizing: border-box;
	margin: 0;
	padding: 4px 8px 14px !important;
	border: 0;
	border-bottom: 8px solid #0E1113;
	background: linear-gradient(90deg, #0E1113 0 8px, #131719 8px calc(100% - 8px), #0E1113 calc(100% - 8px)) !important;
	color: #e8ecef;
}

.home-resources-summary {
	box-sizing: border-box;
	width: calc(100% - var(--home-resources-content-indent-double));
	max-width: 1100px;
	margin: 0 var(--home-resources-content-indent) 15px !important;
	color: #e8ecef;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.65;
}

.home-resources-link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	width: auto;
	margin-left: var(--home-resources-content-indent) !important;
	color: #ffc400;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: .04em;
	text-decoration: none;
	text-transform: uppercase;
}

.home-resources-link:hover,
.home-resources-link:focus-visible {
	color: #ffe073;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.home-resources-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 48px;
	margin-top: 28px;
	padding: 12px 22px;
	border: 0;
	border-radius: 0;
	background: #ffc400;
	color: #050505;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: .08em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .24s ease, transform .24s ease, box-shadow .24s ease;
}

.home-resources-all:hover,
.home-resources-all:focus-visible {
	background: #e9b400;
	color: #050505;
	transform: translateY(-3px) scale(1.025);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.home-resources-all:active {
	transform: translateY(-1px) scale(1.01);
}

@media (max-width: 991px) {
	.home-resources-inner {
		width: min(calc(100% - 48px), 900px);
	}

	.home-resources-header {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.home-resources-title {
		max-width: 850px;
	}

	.home-resources-intro {
		max-width: 760px;
		margin: 0;
	}
}

@media (max-width: 767px) {
	.home-resources {
		padding: 60px 0 68px;
	}

	.home-resources-inner {
		width: min(calc(100% - 36px), 560px);
	}

	.home-resources-header {
		margin-bottom: 28px;
	}

	.home-resources-eyebrow {
		font-size: 10px;
		letter-spacing: .1em;
	}

	.home-resources-title {
		font-size: clamp(29px, 7vw, 36px) !important;
		line-height: 1.24 !important;
	}

	.home-resources .home-resources-heading::after {
		width: 42px;
		margin-top: 14px;
	}

	.home-resources-intro {
		font-size: 14px;
	}

	.home-resources-accordion .accordion-title-wrapper {
		min-height: 60px;
		padding: 15px 46px 15px 16px;
	}

	.home-resources-accordion .accordion-title-wrapper::after {
		right: 15px;
	}

	.home-resources-accordion .home-resources-question,
	.home-resources-accordion .accordion-title-wrapper .brxe-heading {
		font-size: 15px;
	}

	.home-resources-accordion .accordion-content-wrapper {
		padding: 4px 8px 14px !important;
	}

	.home-resources-accordion {
		--home-resources-content-indent: 8px;
		--home-resources-content-indent-double: 16px;
	}

	.home-resources-summary {
		font-size: 13px;
	}

	.home-resources-link {
		font-size: 11px;
	}

	.home-resources-all {
		max-width: 100%;
		font-size: 11px;
	}
}

.home-resources a:focus-visible,
.home-resources button:focus-visible,
.home-resources .accordion-title-wrapper:focus-visible {
	outline: 2px solid #ffc400;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.home-resources-accordion > *,
	.home-resources-accordion .accordion-title-wrapper,
	.home-resources-accordion .home-resources-question,
	.home-resources-accordion .accordion-title-wrapper .brxe-heading,
	.home-resources-all {
		transition: none;
	}

	.home-resources-all:hover,
	.home-resources-all:focus-visible,
	.home-resources-all:active {
		transform: none;
	}
}
