/* List styles */
.is-style-list-tick,
.is-style-list-cross,
.is-style-list-tick-white {
	list-style: none;
	padding-left: 0;
}

/* Lead paragraph */
.is-style-lead-paragraph,
body .editor-styles-wrapper .wp-block-paragraph.is-style-lead-paragraph {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.3;
	margin-block-end: var(--wp--preset--spacing--40);
	font-family: var(--wp--preset--font-family--eb-garamond);
}

.is-style-list-tick li,
.is-style-list-cross li,
.is-style-list-tick-white li {
	list-style: none;
	margin-left: 0;
	padding-left: 3rem;
	position: relative;
	margin-bottom: 1em;
	padding-top: 0.4em;
}

.is-style-list-tick li::before,
.is-style-list-cross li::before,
.is-style-list-tick-white li::before {
	content: "";
	height: 2em;
	left: 0;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
	position: absolute;
	top: 0.2em;
	width: 2em;
}

.is-style-list-tick li::before {
	background-image: url(../../images/fc-list-tick.svg);
}

.is-style-list-cross li::before {
	background-image: url(../../images/fc-list-cross.svg);
}

.is-style-list-tick-white li::before {
	background-color: transparent;
	background-image: url(../../images/fc-white-tick.svg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	mask-image: none;
	-webkit-mask-image: none;
}

/* Post-type accent tokens */
body.single-article,
body.post-type-article {
	--fc-post-accent: var(--wp--preset--color--custom-mallorca-blue);
}

body.single-client-story,
body.post-type-client-story {
	--fc-post-accent: var(--wp--preset--color--custom-money-green);
}

body.single-ceo-briefings,
body.post-type-ceo-briefings {
	--fc-post-accent: var(--wp--preset--color--custom-rose-pink);
}

body.single-newsletter,
body.post-type-newsletter {
	--fc-post-accent: var(--wp--preset--color--custom-crystal-sea-blue);
}

body.single-video,
body.post-type-video {
	--fc-post-accent: var(--wp--preset--color--custom-mid-grey);
}

body.single-product,
body.post-type-product {
	--fc-post-accent: var(--wp--preset--color--custom-fern-green);
}

body.single-tool,
body.post-type-tool {
	--fc-post-accent: var(--wp--preset--color--custom-bronzed-orange);
}

.wp-block-post-content h2,
.wp-block-post-content h3 {
	color: var(--fc-post-accent, inherit);
}

.wp-block-post-content h2 {
	margin-block-start: var(--wp--preset--spacing--50);
}

body .editor-styles-wrapper .wp-block-post-content h2,
body .editor-styles-wrapper .wp-block-post-content h3 {
	color: var(--fc-post-accent, inherit);
}

body .editor-styles-wrapper .wp-block-post-content h2,
body .editor-styles-wrapper .wp-block-heading h2 {
	margin-block-start: var(--wp--preset--spacing--50);
}

/* Blockquotes */
blockquote,
.wp-block-quote {
	font-family: var(--wp--preset--font-family--eb-garamond);
	font-size: var(--wp--preset--font-size--medium);
	font-style: normal;
	margin: 1.5em 0 2em;
	padding: 0 1.5em;
}

blockquote:not(.wp-block-quote) {
	border-left:
		0.5em solid
		var(--fc-post-accent, var(--wp--preset--color--custom-mid-grey));
}

.wp-block-quote:not(.is-style-plain) {
	border-left:
		0.5em solid
		var(--fc-post-accent, var(--wp--preset--color--custom-mid-grey));
}

blockquote p,
.wp-block-quote p {
	margin: 0 0 var(--wp--preset--spacing--40) 0;
	/* stylelint-disable-next-line property-no-unknown */
	text-box: trim-both cap alphabetic;
}

blockquote cite,
.wp-block-quote cite {
	color: var(--fc-post-accent, var(--wp--preset--color--custom-mid-grey));
	display: block;
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--x-small);
	font-style: normal;
	font-weight: 600;
	margin: 0;
	text-transform: none;
}

blockquote cite::before,
.wp-block-quote cite::before {
	content: "";
}

.wp-block-quote.is-style-plain {
	background: none;
	border-left: none;
}

/* Pullquotes */
.wp-block-pullquote {
	color: var(--wp--preset--color--custom-dark-grey);
	margin: var(--wp--preset--spacing--60) 0;
	padding: 0 0 0 32px;
	position: relative;
}

.wp-block-pullquote::before {
	aspect-ratio: 51 / 39;
	background-color: var(--fc-post-accent, var(--wp--preset--color--custom-mid-grey));
	content: "";
	left: 0;
	mask-image: url(../../images/fc-quote-mark.svg);
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
	opacity: 1;
	position: absolute;
	width: clamp(40px, 5vw, 50px);
	-webkit-mask-image: url(../../images/fc-quote-mark.svg);
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
}

.wp-block-pullquote blockquote {
	background: none;
	border: none;
	font-family: var(--wp--preset--font-family--eb-garamond);
	font-size: var(--wp--preset--font-size--large);
	font-style: normal;
	line-height: 1.5;
	position: relative;
	text-align: left;
	z-index: 1;
}

.wp-block-pullquote p {
	margin: 0 0 var(--wp--preset--spacing--40) 0;
}

.wp-block-pullquote p:last-child {
	margin-bottom: 0;
}

/* sort out spacing between paragraphs and lists */
body .wp-block-post-content > p:has(+ ul.wp-block-list) {
	margin-bottom: 0 !important;
}

.wp-block-pullquote cite {
	color: var(--fc-post-accent, var(--wp--preset--color--custom-mid-grey));
	display: block;
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--x-small);
	font-style: normal;
	font-weight: 600;
	margin: 0;
	text-transform: none;
}

.wp-block-pullquote cite::before {
	content: "";
}

body .wp-block-pullquote.has-text-align-center blockquote {
	text-align: center;
}

body .wp-block-pullquote.has-text-align-right blockquote {
	text-align: right;
}

body .wp-block-pullquote.alignfull,
body .wp-block-pullquote.alignwide {
	padding-left: clamp(32px, 4vw, 64px);
	padding-right: clamp(32px, 4vw, 64px);
}

/* testimonial with pull quote */
@media (min-width: 1210px) {

	.testimonial-logo-credit {
		border-left: 1px solid var(--wp--preset--color--custom-mid-grey);
	}
}

@media (max-width: 1209px) {

	.testimonial-logo-credit {
		padding-top: var(--wp--preset--spacing--50);
		border-left: none;
		padding-left: 43px !important;
	}
}

/* Query pagination */
.wp-block-query-pagination {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	justify-content: center;
	margin: var(--wp--preset--spacing--50) 0;
}

.wp-block-query-pagination > * {
	margin: 0;
}

.wp-block-query-pagination .wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
}

.wp-block-query-pagination-previous a,
.wp-block-query-pagination-next a,
.wp-block-query-pagination-numbers .page-numbers {
	align-items: center;
	background-color: var(--wp--preset--color--custom-white);
	border: 1px solid var(--wp--preset--color--custom-dark-grey);
	border-radius: 9999px;
	color: var(--wp--preset--color--custom-dark-grey);
	display: inline-flex;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	gap: var(--wp--preset--spacing--10);
	line-height: 1;
	padding: 10px 18px;
	text-decoration: none;
}

.wp-block-query-pagination-numbers .page-numbers.current,
.wp-block-query-pagination-numbers .page-numbers.current:hover {
	background-color: var(--wp--preset--color--custom-dark-grey);
	border-color: var(--wp--preset--color--custom-dark-grey);
	color: var(--wp--preset--color--custom-white);
}

.wp-block-query-pagination-previous svg,
.wp-block-query-pagination-next svg {
	display: none;
}

.wp-block-query-pagination-previous-arrow.is-arrow-arrow,
.wp-block-query-pagination-next-arrow.is-arrow-arrow {
	background-image: url(../../images/fc-green-arrow.svg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	display: inline-block;
	height: 40px;
	flex-shrink: 0;
	font-size: 0;
	overflow: hidden;
	text-indent: -9999px;
	width: 40px;
}

.wp-block-query-pagination-previous-arrow.is-arrow-arrow {
	margin-right: var(--wp--preset--spacing--10);
	rotate: 180deg;
}

.wp-block-query-pagination-next-arrow.is-arrow-arrow {
	margin-left: var(--wp--preset--spacing--10);
}

/* horizontal rule */
hr {
	padding-bottom: var(--wp--preset--spacing--40);
	color: var(--fc-post-accent, var(--wp--preset--color--custom-mid-grey));
}

/* Lists and ordered lists */

body
.wp-block-post-content
ul:not(.is-style-list-tick):not(.is-style-list-cross) > li::marker,
body
ul.wp-block-list:not(.is-style-list-tick):not(.is-style-list-cross) > li::marker,
body
.editor-styles-wrapper
ul.wp-block-list:not(.is-style-list-tick):not(.is-style-list-cross) > li::marker {
	color: var(--fc-post-accent, var(--wp--preset--color--custom-mid-grey));
	font-size: 1.6em;
}

body .wp-block-post-content ol {
	counter-reset: fc-ordered-counter;
	list-style: none;
	padding: 0;
}

body .wp-block-post-content ol > li {
	background: transparent;
	color: inherit;
	display: block;
	margin: 0 0 var(--wp--preset--spacing--20) 0;
	min-height: 1.75rem;
	padding:
		var(--wp--preset--spacing--20) var(--wp--preset--spacing--10)
		var(--wp--preset--spacing--10) calc(var(--wp--preset--spacing--20) + 3rem);
	position: relative;
}

body .wp-block-post-content ol > li::before {
	align-items: flex-start;
	background: transparent;
	content: counter(fc-ordered-counter);
	counter-increment: fc-ordered-counter;
	display: inline-flex;
	font-weight: 700;
	height: 100%;
	justify-content: center;
	left: 0;
	line-height: 38px;
	min-width: 2.5rem;
	position: absolute;
	top: 0;
}

body .wp-block-post-content ol > li:nth-child(odd) {
	background: color-mix(in srgb, var(--fc-post-accent, var(--wp--preset--color--custom-mid-grey)) 20%, transparent);
}

body .wp-block-post-content ol > li:nth-child(odd)::before {
	background: var(--fc-post-accent, var(--wp--preset--color--custom-mid-grey));
	color: var(--wp--preset--color--custom-white);
}

body .wp-block-post-content ol > li:nth-child(even) {
	background: none;
	color: inherit;
}

body .wp-block-post-content ol > li:nth-child(even)::before {
	background: transparent;
}

body .wp-block-post-content ol > li:nth-child(odd) a {
	color: inherit;
}

body .editor-styles-wrapper .wp-block-post-content ol {
	counter-reset: fc-ordered-counter;
	list-style: none;
	padding: 0;
}

body .editor-styles-wrapper .wp-block-post-content ol > li {
	background: transparent;
	color: inherit;
	display: block;
	margin: 0 0 var(--wp--preset--spacing--20) 0;
	min-height: 1.75rem;
	padding:
		var(--wp--preset--spacing--20) var(--wp--preset--spacing--10)
		var(--wp--preset--spacing--10) calc(var(--wp--preset--spacing--20) + 3rem);
	position: relative;
}

body .editor-styles-wrapper .wp-block-post-content ol > li::before {
	align-items: center;
	background: transparent;
	content: counter(fc-ordered-counter);
	counter-increment: fc-ordered-counter;
	display: inline-flex;
	font-weight: 700;
	height: 2.5rem;
	justify-content: center;
	left: 0;
	line-height: 1;
	min-width: 2.5rem;
	position: absolute;
	top: 0;
}

body .editor-styles-wrapper .wp-block-post-content ol > li:nth-child(odd) {
	background: color-mix(in srgb, var(--fc-post-accent, var(--wp--preset--color--custom-mid-grey)) 20%, transparent);
}

body .editor-styles-wrapper .wp-block-post-content ol > li:nth-child(odd)::before {
	background: var(--fc-post-accent, var(--wp--preset--color--custom-mid-grey));
	color: var(--wp--preset--color--custom-white);
}

body .editor-styles-wrapper .wp-block-post-content ol > li:nth-child(even) {
	background: none;
	color: inherit;
}

body .editor-styles-wrapper .wp-block-post-content ol > li:nth-child(even)::before {
	background: transparent;
}

body .editor-styles-wrapper .wp-block-post-content ol > li:nth-child(odd) a {
	color: inherit;
}

/* Media embeds */
.youtube-embed-rounded iframe,
.youtube-embed-rounded .youtube-player {
	border-radius: var(--wp--preset--border-radius--large);
	overflow: hidden;
}
