/**
 * Quote variation: Plaque
 *
 * Engraved-look plaque with an ornamental border drawn in CSS, embossed
 * text via inset text-shadow, brushed-metal background via subtle
 * linear-gradient. Citation as smaller engraved line at the bottom.
 *
 * @package PostFormatsBlockThemes
 * @since 2.2.0
 */

/* @reset */
.wp-block-quote.is-style-plaque,
.wp-block-pullquote.is-style-plaque {
	border: 0;
	padding: 0;
	margin-inline-start: 0;
	font-style: inherit;
	background: transparent;
	color: inherit;
}
.wp-block-quote.is-style-plaque cite,
.wp-block-pullquote.is-style-plaque cite {
	font-style: inherit;
	text-align: inherit;
}
.wp-block-quote.is-style-plaque cite:empty,
.wp-block-pullquote.is-style-plaque cite:empty {
	display: none;
}

/* Variation
   v2.2.0-fix: lightened the gradient (image #162). Original used
   #b8b3a4 / #8e8a7d which gave the dark engraved text only ~4.17:1
   contrast at the gradient's mid-tone — failing WCAG AA. New
   palette tests at ~6.4:1 minimum across the gradient. */
.wp-block-quote.is-style-plaque,
.wp-block-pullquote.is-style-plaque {
	background:
		linear-gradient(
			135deg,
			var(--pfbt-plaque-light, #c4bfae) 0%,
			var(--pfbt-plaque-mid, #aea99b) 50%,
			var(--pfbt-plaque-light, #c4bfae) 100%
		);
	color: var(--pfbt-plaque-engraved, #2a2820);
	padding: var(--wp--preset--spacing--large, 2.5rem);
	border: 0.25rem solid var(--pfbt-plaque-frame, #4a4638);
	border-radius: var(--wp--preset--border-radius--sm, 0.375rem);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.4),
		inset 0 -1px 0 rgba(0, 0, 0, 0.3),
		var(--wp--preset--shadow--medium, 0 4px 12px rgba(0, 0, 0, 0.08));
	max-inline-size: 32rem;
	font-family: var(--wp--preset--font-family--expanded, "Georgia", serif);
	text-align: center;
	position: relative;
}

.wp-block-quote.is-style-plaque::before,
.wp-block-pullquote.is-style-plaque::before {
	content: "";
	position: absolute;
	inset: 0.5rem;
	border: 1px solid var(--pfbt-plaque-frame, #4a4638);
	border-radius: 0.125rem;
	pointer-events: none;
}

.wp-block-quote.is-style-plaque p,
.wp-block-pullquote.is-style-plaque p {
	margin: 0;
	font-size: var(--wp--preset--font-size--large, 1.25rem);
	font-weight: 600;
	line-height: 1.5;
	text-shadow:
		1px 1px 0 rgba(255, 255, 255, 0.3),
		-1px -1px 0 rgba(0, 0, 0, 0.4);
	letter-spacing: 0.03em;
}

.wp-block-quote.is-style-plaque cite,
.wp-block-pullquote.is-style-plaque cite {
	display: block;
	margin-block-start: var(--wp--preset--spacing--medium, 1.5rem);
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	color: var(--pfbt-plaque-engraved, #2a2820);
	font-style: normal;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-shadow:
		1px 1px 0 rgba(255, 255, 255, 0.3),
		-1px -1px 0 rgba(0, 0, 0, 0.4);
}

/* v2.2.0-fix: cite-link color leak (image #162). Same issue as
   chalkboard — the theme link color (cerulean) bled into the cite
   when the citation contained a link, producing low-contrast text. */
.wp-block-quote.is-style-plaque cite a,
.wp-block-pullquote.is-style-plaque cite a {
	color: inherit;
	text-decoration-color: currentColor;
}

@media print {
	.wp-block-quote.is-style-plaque,
	.wp-block-pullquote.is-style-plaque {
		background: transparent;
		box-shadow: none;
		text-shadow: none;
	}
	.wp-block-quote.is-style-plaque p,
	.wp-block-pullquote.is-style-plaque p {
		text-shadow: none;
	}
}
