/**
 * Section: FAQ (Figma "faq" 10513:23972).
 */

.hb-section.hb-section--faq {
	margin-top: 0;
	padding-top: var(--wp--preset--spacing--90);
	padding-bottom: 5rem;
	background-color: var(--wp--preset--color--base);
}

.hb-section.hb-section--faq > * {
	margin-block: 0;
}

/* Last section of a white tab panel: the panel gives the room below. */
.hb-panel--tab > .hb-section.hb-section--faq:last-child {
	padding-bottom: 0;
}

.hb-faq.hb-faq {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 3.75rem;
}

.hb-faq.hb-faq > * {
	margin-block: 0;
}

.hb-faq__intro.hb-faq__intro {
	display: flex;
	flex: 0 1 23.9375rem;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--70);
	min-width: 0;
}

.hb-faq__intro.hb-faq__intro > *,
.hb-press.hb-press > * {
	margin-block: 0;
}

.hb-faq__title.hb-faq__title {
	letter-spacing: -0.042em;
	line-height: 1;
}

.hb-press.hb-press {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--50);
	width: 100%;
}

.hb-press__title.hb-press__title {
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1;
}

.hb-press__marquee.hb-press__marquee {
	--hb-marquee-gap: 2.5rem;
	width: 100%;
}

.hb-press__marquee .hb-marquee__logo img {
	display: block;
	width: auto;
	height: 1.9375rem;
}

/* WPTuts: its artboard is drawn larger than its 107 × 32 slot (Figma 7508:68630). */
.hb-press__marquee .hb-marquee__logo:has(img[src*="wptuts"]) {
	width: 6.6875rem;
	height: 2rem;
	overflow: hidden;
}

.hb-press__marquee .hb-marquee__logo img[src*="wptuts"] {
	width: 117.497px;
	max-width: none;
	height: 43.1162px;
	margin: -7.83px 0 0 -5.14px;
}

/* White fades on both ends of the strip (Figma 10513:23350 / 10513:23351). */
.hb-press__marquee.hb-press__marquee::before,
.hb-press__marquee.hb-press__marquee::after {
	content: "";
	position: absolute;
	z-index: 1;
	top: 50%;
	width: 2.1875rem;
	height: 3rem;
	transform: translateY(-50%);
	pointer-events: none;
}

.hb-press__marquee.hb-press__marquee::before {
	left: 0;
	background: linear-gradient(90deg, var(--wp--preset--color--base), rgb(255 255 255 / 0));
}

.hb-press__marquee.hb-press__marquee::after {
	right: 0;
	background: linear-gradient(270deg, var(--wp--preset--color--base), rgb(255 255 255 / 0));
}

/* Accordion: core Details blocks inside the SEOPress FAQ block. */
.hb-faq__list.hb-faq__list {
	display: flex;
	flex: 0 1 40.25rem;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	min-width: 0;
}

.hb-faq__list.hb-faq__list > * {
	margin-block: 0;
}

.hb-faq__item.wp-block-details {
	padding: var(--wp--preset--spacing--60);
	border-radius: var(--wp--custom--radius--md);
	background-color: var(--wp--preset--color--surface);
}

.hb-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20);
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1;
	list-style: none;
	cursor: pointer;
	transition: color var(--wp--custom--transition);
}

.hb-faq__item summary:hover {
	color: var(--wp--preset--color--secondary);
}

.hb-faq__item summary::-webkit-details-marker {
	display: none;
}

/* Arrow down, turned up when the answer is open (Figma remix arrow-down / arrow-up). */
.hb-faq__item summary::after {
	content: "";
	flex: 0 0 1.5rem;
	height: 1.5rem;
	background-color: currentColor;
	-webkit-mask: url("../../icons/arrow-down-line.svg") center / contain no-repeat;
	mask: url("../../icons/arrow-down-line.svg") center / contain no-repeat;
	transition: rotate 0.3s ease;
}

.hb-faq__item[open] > summary {
	align-items: flex-start;
}

.hb-faq__item[open] > summary::after {
	rotate: 180deg;
}

/* The answer slides open (browsers that animate ::details-content; the
 * others open it at once). */
@media (prefers-reduced-motion: no-preference) {
	.hb-faq__item.wp-block-details {
		interpolate-size: allow-keywords;
	}

	.hb-faq__item::details-content {
		block-size: 0;
		overflow-y: clip;
		opacity: 0;
		transition: block-size 0.35s ease, opacity 0.35s ease, content-visibility 0.35s allow-discrete;
	}

	.hb-faq__item[open]::details-content {
		block-size: auto;
		opacity: 1;
	}
}

.hb-faq__item.hb-faq__item > :not(summary) {
	margin-block: var(--wp--preset--spacing--20) 0;
	letter-spacing: -0.04em;
	line-height: 1.3;
}

.hb-faq__item summary:focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--custom--focus--color);
	outline-offset: 0.5rem;
	border-radius: var(--wp--custom--radius--xs);
}

@media (max-width: 899.98px) {
	.hb-faq.hb-faq {
		flex-direction: column;
		gap: var(--wp--preset--spacing--60);
	}

	.hb-faq__intro.hb-faq__intro {
		display: contents;
	}

	.hb-faq__title {
		order: 1;
	}

	.hb-press {
		order: 2;
	}

	.hb-faq__list.hb-faq__list {
		order: 3;
		flex-basis: auto;
		width: 100%;
	}

	.hb-faq__more {
		order: 4;
		align-self: center;
	}

	.hb-faq__item.wp-block-details {
		padding: var(--wp--preset--spacing--50);
	}

	.hb-faq__item summary {
		font-size: var(--wp--preset--font-size--medium);
		letter-spacing: 0;
		line-height: 1.25;
	}

	.hb-faq__item.hb-faq__item > :not(summary) {
		font-size: var(--wp--preset--font-size--medium);
		line-height: 1.25;
	}
}
