/**
 * Quote variation: Side Rule
 *
 * Clean serif body with a thick brand-color rule on the inline-start.
 * The most minimal of the 16 — intentionally so. Suggested as the
 * pattern default in patterns/quote.php; reads as "edited" without
 * locking authors into a strong aesthetic. Citation flush left under
 * body in muted color.
 *
 * @package PostFormatsBlockThemes
 * @since 2.2.0
 */

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

/* Cite-link color inheritance — prevents theme link color from
   bleeding into citation text. Underline preserved as the
   standard interactive cue. */
.wp-block-quote.is-style-side-rule-editorial cite a,
.wp-block-pullquote.is-style-side-rule-editorial cite a {
	color: inherit;
	text-decoration-color: currentColor;
}

/* Variation */
.wp-block-quote.is-style-side-rule-editorial,
.wp-block-pullquote.is-style-side-rule-editorial {
	border-inline-start: var(--pfbt-side-rule-width, 0.25rem) solid var(--pfbt-side-rule-color, var(--wp--preset--color--primary, var(--wp--preset--color--accent-1, #2271b1)));
	padding-inline-start: var(--wp--preset--spacing--medium, 1.5rem);
	font-family: var(--wp--preset--font-family--primary, "Georgia", serif);
	max-inline-size: 38rem;
	margin-block: var(--wp--preset--spacing--medium, 1.5rem);
}

.wp-block-quote.is-style-side-rule-editorial p,
.wp-block-pullquote.is-style-side-rule-editorial p {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium, 1.125rem);
	line-height: 1.6;
}

.wp-block-quote.is-style-side-rule-editorial cite,
.wp-block-pullquote.is-style-side-rule-editorial cite {
	display: block;
	margin-block-start: var(--wp--preset--spacing--small, 0.75rem);
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	color: var(--pfbt-side-rule-cite, var(--wp--preset--color--secondary, var(--wp--preset--color--contrast, #666666)));
	font-style: normal;
}

.wp-block-quote.is-style-side-rule-editorial cite::before,
.wp-block-pullquote.is-style-side-rule-editorial cite::before {
	content: "— ";
}
