/**
* Fuel Theme
* Version 6.4.0
**/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Content Header
# Content
# Sidebar
# Secondary Pages
## Meet Our Team page
## Single Bio Pages
## Single Career page
## Manufacturer Pages
## Blog
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Content Header
--------------------------------------------------------------*/
body:not(.post-template-default.single-post) header.main-header .wp-block-post-date {
	display: none;
}

.author-block {
	padding-left: var(--contain-padding);
	padding-right: var(--contain-padding);
	margin: 0;
}

.author-type {
	color: var(--content-color);
}

.hero-bottom {
	min-width: calc(100% + var(--padding-2x));
	margin-left: calc(var(--padding-1x) * -1) !important;
	margin-top: -1px;
}

.main-title {
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.20);
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/

.entry-wrapper {
	padding-top: 2rem;
	padding-bottom: clamp(2rem, 5vw, 4rem);
	gap: 2rem clamp(0.9rem, -4rem + 11.667vw, 3rem);
	margin: 0;
	position: relative;
}

/* @see https://hover.fuel.team/ */
.entry-content :where(p, li):not([class]) a {
	padding: 0 0.2em;
	text-decoration-color: var(--primary-color);
	background: transparent;
	transition: background-color 350ms, color 350ms;
	color: var(--primary-color);
}

.entry-content :where(p, li):not([class]) a:is(:hover, :focus-visible) {
	color: var(--white);
	background: var(--primary-color);
}

@media (max-width: 68.49em) {
	.main-header {
		padding-bottom: 3.5rem !important;
		min-height: unset !important;
	}
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.wp-block-template-part:has(#sidebar),
#sidebar {
	height: 100%;
}

#sidebar ul {
	list-style: none;
}

/*--------------------------------------------------------------
# Secondary Pages
--------------------------------------------------------------*/

/* Remvoe these two rules if you are displaying the teams as a bio grid */
.bio .wp-block-column:has(.wp-block-post-featured-image) {
	order: -1;
	/* Move bio image to top on mobile */
}

@media (max-width: 48.8125em) {

	.bio .wp-block-post-title,
	.bio .wp-block-post-title+p {
		text-align: center;
		;
	}
}

.entry-content {
	line-height: 1.8;
}

.entry-content figure:not(.wp-block-media-text figure) {
	border-radius: 8px;
	overflow: hidden;
}

.bio-details figure {
	border-radius: 50%;
	overflow: hidden;
	position: relative;
}

.bio-details img {
	height: 100%;
}

.bio-svg {
	position: absolute;
	min-width: 116%;
	max-width: 116%;
	top: -6%;
	left: -6%;
}

.toggle {
	outline: unset;
}

.toggle summary {
	background-color: var(--medium-gray);
	color: var(--dark-gray);
	position: relative;
}

.toggle summary::before {
	content: '';
	width: 2rem;
	aspect-ratio: 1/1;
	border-radius: 50%;
	background-color: var(--primary-color);
	position: absolute;
	top: calc(50% - 1.1rem);
	right: 0.55rem;
}

.toggle summary:hover::after {
	background-color: var(--white);
}

.toggle summary::after {
	clip-path: url(#toggle_plus);
	margin-top: 0.3rem;
}

.toggle[open] summary::before {
	background-color: var(--white);
}

.toggle[open] summary::after {
	clip-path: url(#toggle_minus);
	background-color: var(--primary-color);
}

.toggle[open] summary:after {
	transform: unset;
}

.toggle-content {
	background-color: var(--light-gray);
}

@media (max-width: 68.49em) {
	.wp-block-group:has(>.bio-details) {
		max-width: fit-content;
		margin: auto;
	}

	.bio-details {
		max-width: clamp(12rem, 17rem, 79vw);
	}

	.toggle summary {
		padding-right: 3rem;
	}

	.toggle summary::after {
		    clear: both;
        position: absolute;
        top: calc(50% - 0.9rem);
        right: 1rem;
	}
}

.contact-list {
	column-gap: clamp(3rem, 8.5vw, 8rem);
}

/*--------------------------------------------------------------
## Meet Our Team page
--------------------------------------------------------------*/

/*--------------------------------------------------------------
## About Us page
--------------------------------------------------------------*/

.about-top {
	max-width: 36rem !important;
	font-size: 1.5rem;
}

.about-pics {
	justify-content: space-between;
	max-width: clamp(15rem, 100%, 76vw) !important;

}

.about-pics .wp-block-column {
	position: relative;
}

.about-pics svg {
	position: absolute;
	min-width: 138%;
	top: -40%;
	left: -29%;
	z-index: -1;
}

.about-pics .wp-block-column:last-of-type svg {
	top: unset;
	bottom: -40%;
	left: 20%;
	min-width: 105%;
}

.about-top-group {
	position: relative;
}

.about-top-group svg {
	position: absolute;
	top: -0.5rem;
	left: -0.2rem;
	width: 1.5rem;
}

.about-top::before {
	display: none;
}

@media (min-width: 68.5em) {
	.about-pics {
		width: 61vw;
		max-width: 1180px !important;
	}

	.about-top-group svg {
		width: 2.5rem;
		top: -0.5rem;
		left: -0.2rem;
	}
}

@media (prefers-reduced-motion: no-preference) and (min-width: 68.5em) {
	.about-pics svg {
		transform: rotate(180deg);
		transition: transform 1s;
	}

	.about-pics.js-intersected svg {
		transform: rotate(0deg);
	}
}

@media (max-width: 781px) {
	.about-pics .wp-block-column {
		max-width: fit-content;
		margin: auto;
	}

	.about-pics svg {
		transform: scale(0.7);
	}
}

/*--------------------------------------------------------------
## Single Bio pages
--------------------------------------------------------------*/
.single-bio .entry-wrapper {
	gap: 2rem clamp(2rem, 4.4vw, 4rem);
	justify-content: center;
}

@media (max-width: 68.49em) {
		.single-bio .entry-content {
			padding-left: 0 !important;
			padding-right: 0 !important;
		}
}

/*--------------------------------------------------------------
## Single Career page
--------------------------------------------------------------*/
.job-details {
	width: 100%;
}

.job-details.zebra tr:nth-child(odd) th::before {
	background: var(--grey);
}

.job-details th {
	width: 2rem;
}

/*--------------------------------------------------------------
## Manufacturer Pages
--------------------------------------------------------------*/
.manufacturer .wp-block-media-text {
	grid-template-columns: 32% 1fr;
}

.manufacturer .wp-block-media-text.has-media-on-the-right {
	grid-template-columns: 1fr 32%;
}

.manufacturer .wp-block-media-text__media::after {
	display: none;
}

.manufacturer .manu-logo figure img {
	width: auto;
	height: auto;
	max-width: 100%;
}

/* Hide old content CTA in manufacturer content since we are using content cta synced block pattern */
.manufacturer .use-content-cta-block {
	display: none;
}

@media (max-width: 37.5em) {
	.manufacturer .manu-logo figure {
		text-align: center;
	}

	#main .wp-block-media-text__content {
		padding: 0;
	}
}

/*--------------------------------------------------------------
## Overview Pages
--------------------------------------------------------------*/

/* Content CTA */

.dialog-trigger {
	margin-left: auto;
	margin-right: auto;
}
.dialog-box {
	width: calc(100% - 3rem);
	max-width: 33rem;
	border-radius: 16px;
}

.dialog-content-wrapper {
	display: flex;
	gap: 2.4rem;
	padding: 3rem;
	padding-left: 0.6rem;
}

.dialog-box .wp-block-query {
	width: 50%;
}

.dialog-box li {
	min-width: fit-content
}

.dialog-box .location:first-of-type h3 {
	font-size: 1rem;
	border-color: var(--primary-color) !important;
	font-family: var(--content-font);
	font-weight: bold;
}

.dialog-box .wp-block-group:has(> .phone) {
	margin-top: 1.5rem !important;
}

.dialog-box .wp-block-group:has(> .phone) svg {
	color: var(--primary-color);
}

.dialog-box .phone {
	color: var(--dark-gray);
	text-decoration: none;
}

.close-dialog {
	border: 2px solid var(--white);
	border-radius: 50%;
}

.wp-block-media-text>.wp-block-media-text__content {
	padding: 0 10%;
}

.wp-block-media-text figure::before {
	content: '';
	width: 119%;
	aspect-ratio: 450/412;
	background: url('../images/pink-ov1.svg');
	background-size: cover;
	position: absolute;
	top: -10%;
	left: -7%;
	z-index: -1;
}

.wp-block-media-text.has-media-on-the-right figure::before {
	background-image: url('../images/pink-ov2.svg');
	aspect-ratio: 450/414;
	left: -13%;
	top: -9%;
}

.page-id-85 .wp-block-media-text.has-media-on-the-right figure::before {
	background-image: url('../images/blue-ov1.svg');
	left: -9%;
	top: -10%;
}

.page-id-85 .wp-block-media-text figure::before {
	background-image: url('../images/blue-ov2.svg');
	left: -15%;
	top: -9%;
}

.page-id-206 .wp-block-media-text figure::before {
	background-image: url('../images/green-ov2.svg');
	top: -7%;
	left: -13%;
}

.page-id-206 .wp-block-media-text.has-media-on-the-right figure::before {
	background-image: url('../images/green-ov1.svg');
	left: -7%;
	top: -11%;
}


/*--------------------------------------------------------------
## Blog
--------------------------------------------------------------*/
.wp-block-query li:first-of-type .wp-block-post-title {
	margin-top: 0;
}

.wp-block-post {
	container-type: inline-size;
	container-name: post;
}

.sub-menu .wp-block-post {
		container-type: unset;
	container-name: unset;
}

/* @media (min-width: 40em) { */
@container post (min-width: 33rem) {
	.wp-block-query .wp-block-post-featured-image:where(.alignleft, .alignright) {
		max-width: 10rem;
	}
}

/* Pagination numbers */
.wp-block-query-pagination {
	margin-top: 2.5rem;
}

.wp-block-query-pagination-numbers {
	display: flex;
	gap: clamp(0.5rem, 2vw, 1rem);
}

.page-numbers {
	text-align: center;
	border: 1px solid;
	border-radius: 3rem;
	width: 2.4em;
	height: 2.4em;
	line-height: 2.2;
}

.page-numbers:is(:hover, .focus-visible),
.page-numbers.current {
	background: var(--accent-color);
	border: 1px solid var(--accent-color);
	color: #fff;
}

/* Pagination next/prev */
a[class^="wp-block-query-pagination-"] {
	color: transparent;
	overflow: hidden;
	white-space: nowrap;
	position: relative;
	width: 0.8em;
}

a[class^="wp-block-query-pagination-"]:hover {
	color: transparent;
}

a[class^="wp-block-query-pagination-"]::before {
	content: '';
	position: absolute;
	inset: 0 auto 0 0;
	margin: auto;
	background: var(--accent-color);
	clip-path: url(#menu_chevron);
	width: 0.8em;
	height: 0.5em;
	transition: background-color 0.3s;
}

.wp-block-query-pagination-next::before {
	transform: rotate(-90deg);
}

.wp-block-query-pagination-previous::before {
	transform: rotate(90deg);
}

a[class^="wp-block-query-pagination-"]:is(:hover, :focus-visible)::before {
	background: var(--primary-color);
}