/**
 * Revita: core/quote block style "Honey quote".
 * A lavender card with a large honey hexagon quote mark on its top edge.
 */

.wp-block-quote.is-style-honey-quote {
	position: relative;
	margin-block-start: calc(1.75rem + var(--wp--preset--spacing--30));
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50) var(--wp--preset--spacing--50);
	border: 0;
	border-radius: var(--wp--custom--radius--lg);
	background-color: var(--wp--preset--color--lavender);
	color: var(--wp--preset--color--primary-deep);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
}

.wp-block-quote.is-style-honey-quote::before,
.wp-block-quote.is-style-honey-quote::after {
	position: absolute;
	inset-block-start: -1.75rem;
	inset-inline-start: var(--wp--preset--spacing--50);
	inline-size: 4rem;
	block-size: 3.5rem;
}

/* The hexagon… */
.wp-block-quote.is-style-honey-quote::before {
	content: "";
	background-color: var(--wp--preset--color--accent);
	clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

/* …and the quote mark on it. */
.wp-block-quote.is-style-honey-quote::after {
	content: "\201C";
	display: grid;
	place-items: center;
	padding-block-start: 0.32em;
	box-sizing: border-box;
	color: var(--wp--custom--color--on-accent);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 3rem;
	font-weight: 700;
	line-height: 1;
}

.wp-block-quote.is-style-honey-quote.has-text-align-center::before,
.wp-block-quote.is-style-honey-quote.has-text-align-center::after {
	inset-inline-start: 50%;
	translate: -50% 0;
}

.wp-block-quote.is-style-honey-quote.has-text-align-right::before,
.wp-block-quote.is-style-honey-quote.has-text-align-right::after {
	inset-inline: auto var(--wp--preset--spacing--50);
}

.wp-block-quote.is-style-honey-quote.has-text-align-right {
	padding-inline: var(--wp--preset--spacing--50);
	border: 0;
}

.wp-block-quote.is-style-honey-quote cite {
	display: block;
	margin-block-start: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.04em;
}
