/*
 * ArneIron Blocks — arneiron/testimonial, style "Quote Card" (is-style-quote-card).
 * Moved from the ArneIron theme (blocks.css §2b) so the style works under any theme.
 */

/* Sizing as in any modern theme: padding and borders inside the width. */
.wp-block-arneiron-testimonial.is-style-quote-card,
.wp-block-arneiron-testimonial.is-style-quote-card *,
.wp-block-arneiron-testimonial.is-style-quote-card *::before,
.wp-block-arneiron-testimonial.is-style-quote-card *::after {
	box-sizing: border-box;
}

/* --- 2b: arneiron/testimonial, is-style-quote-card ------------------------
   The retired arneiron/testimonials card look, applied to arneiron/testimonial.

   CSS ONLY, and that is a constraint not a preference. arneiron/testimonial is
   STATIC-SAVED: its compiled save() writes real markup into post_content (dev
   stores it paired, 11 closing delimiters, 0 self-closing), so a style variation
   cannot introduce the retired block's <figure> markup without desynchronising
   render.php from save() and making every instance invalid in the editor. See
   the long note in blocks/build/testimonial/render.php.

   So these rules restyle the markup the block ACTUALLY emits:

     .news-card-people  >  .arneiron-overlay
                        +  .news-card-people__image  (avatar)
                        +  .arneiron-block-content   >  h5.arneiron-block-title
                                                        ( NAME <span>ROLE</span> )
                                                     +  p  ( the quote )
                                                     +  a.arneiron-socials*

   The retired card read quote-first, then avatar + author + role on one row.
   This markup is in the other order and nests the byline one level deeper, so
   the card is a grid and .arneiron-block-content is display:contents, which
   promotes its h5/p to grid items and lets both orders be expressed. Every
   colour, size, radius and shadow below is copied value-for-value from the
   retired blocks/build/testimonials/style.css; only the selectors are new. */

.wp-block-arneiron-testimonial.is-style-quote-card .news-card-people {
	display: grid;
	grid-template-columns: 44px 1fr;
	grid-template-areas:
		"quote  quote"
		"avatar byline"
		"social social";
	align-items: center;
	column-gap: var(--wp--preset--spacing--4, 12px);
	row-gap: var(--wp--preset--spacing--4, 12px);
	margin: 0;
	padding: var(--wp--preset--spacing--6, 24px);
	background: var(--c-bg,var(--wp--preset--color--base,#fff));
	border: 1px solid var(--c-border,color-mix(in srgb,var(--wp--preset--color--contrast,#14181f) 16%,var(--wp--preset--color--base,#fff)));
	border-radius: var(--wp--custom--radius--lg, 12px);
	box-shadow: var(--wp--custom--shadow--sm, 0 1px 2px rgba(20,24,31,.06));
}

/* The overlay is a pix-theme-g hover wash. It has no stylesheet in this theme,
   so it is already inert; it is removed from the grid so it cannot claim a
   cell. */
.wp-block-arneiron-testimonial.is-style-quote-card .arneiron-overlay {
	display: none;
}

/* Lift h5 and p out of their wrapper so the grid can place them. */
.wp-block-arneiron-testimonial.is-style-quote-card .arneiron-block-content {
	display: contents;
}

/* The quote. */
.wp-block-arneiron-testimonial.is-style-quote-card .arneiron-block-content > p {
	grid-area: quote;
	margin: 0;
	font-family: var(--wp--preset--font-family--prose, Georgia, serif);
	font-size: var(--wp--preset--font-size--lg, 1.125rem);
	line-height: 1.6;
	color: var(--c-ink,var(--wp--preset--color--contrast,#14181f));
	font-style: italic;
}

/* Avatar: a 44px circle, falling back to the empty circle when the block has
   no image (the div is emitted either way). */
.wp-block-arneiron-testimonial.is-style-quote-card .news-card-people__image {
	grid-area: avatar;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: var(--wp--custom--radius--pill, 999px);
	background: var(--c-surface-2,color-mix(in srgb,var(--wp--preset--color--contrast,#14181f) 5%,var(--wp--preset--color--base,#fff)));
	border: 1px solid var(--c-border,color-mix(in srgb,var(--wp--preset--color--contrast,#14181f) 16%,var(--wp--preset--color--base,#fff)));
	overflow: hidden;
}
.wp-block-arneiron-testimonial.is-style-quote-card .news-card-people__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Byline. The h5 holds the author with the role in a nested <span>, so the two
   are stacked with the span on its own line. */
.wp-block-arneiron-testimonial.is-style-quote-card .arneiron-block-title {
	grid-area: byline;
	display: grid;
	gap: 2px;
	margin: 0;
	font-style: normal;
	font-weight: 700;
	color: var(--c-ink,var(--wp--preset--color--contrast,#14181f));
	font-size: var(--wp--preset--font-size--base, 1rem);
	line-height: 1.3;
}
.wp-block-arneiron-testimonial.is-style-quote-card .arneiron-block-title span {
	font-weight: 400;
	color: var(--c-ink-3,color-mix(in srgb,var(--wp--preset--color--contrast,#14181f) 62%,var(--wp--preset--color--base,#fff)));
	font-size: var(--wp--preset--font-size--sm, 0.875rem);
}
.wp-block-arneiron-testimonial.is-style-quote-card .arneiron-block-title a {
	color: inherit;
	text-decoration: none;
}

/* Social links, when the block carries any. */
.wp-block-arneiron-testimonial.is-style-quote-card .arneiron-socials {
	grid-area: social;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-inline-end: var(--wp--preset--spacing--2, 4px);
	border: 1px solid var(--c-border,color-mix(in srgb,var(--wp--preset--color--contrast,#14181f) 16%,var(--wp--preset--color--base,#fff)));
	border-radius: var(--wp--custom--radius--pill, 999px);
	color: var(--c-ink-2,color-mix(in srgb,var(--wp--preset--color--contrast,#14181f) 78%,var(--wp--preset--color--base,#fff)));
	text-decoration: none;
}

/* The block's OTHER layout (any `style` value that is not news-card-people)
   renders .arneiron-testimonial instead. It gets the same card surface and the
   same type scale, without the reordering — that markup already reads
   role, name, quote top to bottom. */
.wp-block-arneiron-testimonial.is-style-quote-card .arneiron-testimonial {
	display: grid;
	gap: var(--wp--preset--spacing--3, 8px);
	margin: 0;
	padding: var(--wp--preset--spacing--6, 24px);
	background: var(--c-bg,var(--wp--preset--color--base,#fff));
	border: 1px solid var(--c-border,color-mix(in srgb,var(--wp--preset--color--contrast,#14181f) 16%,var(--wp--preset--color--base,#fff)));
	border-radius: var(--wp--custom--radius--lg, 12px);
	box-shadow: var(--wp--custom--shadow--sm, 0 1px 2px rgba(20,24,31,.06));
}
.wp-block-arneiron-testimonial.is-style-quote-card .arneiron-testimonial-img {
	width: 44px;
	height: 44px;
	border-radius: var(--wp--custom--radius--pill, 999px);
	background: var(--c-surface-2,color-mix(in srgb,var(--wp--preset--color--contrast,#14181f) 5%,var(--wp--preset--color--base,#fff)));
	border: 1px solid var(--c-border,color-mix(in srgb,var(--wp--preset--color--contrast,#14181f) 16%,var(--wp--preset--color--base,#fff)));
	overflow: hidden;
}
.wp-block-arneiron-testimonial.is-style-quote-card .arneiron-testimonial-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wp-block-arneiron-testimonial.is-style-quote-card .arneiron-testimonial-job span,
.wp-block-arneiron-testimonial.is-style-quote-card .arneiron-testimonial-name {
	font-size: var(--wp--preset--font-size--sm, 0.875rem);
	color: var(--c-ink-3,color-mix(in srgb,var(--wp--preset--color--contrast,#14181f) 62%,var(--wp--preset--color--base,#fff)));
}
.wp-block-arneiron-testimonial.is-style-quote-card .arneiron-testimonial-name {
	font-weight: 700;
	font-size: var(--wp--preset--font-size--base, 1rem);
	color: var(--c-ink,var(--wp--preset--color--contrast,#14181f));
}
.wp-block-arneiron-testimonial.is-style-quote-card .arneiron-testimonial-text > p {
	margin: 0;
	font-family: var(--wp--preset--font-family--prose, Georgia, serif);
	font-size: var(--wp--preset--font-size--lg, 1.125rem);
	line-height: 1.6;
	color: var(--c-ink,var(--wp--preset--color--contrast,#14181f));
	font-style: italic;
}

/* The retired block's section heading, preserved for content migrated by
   hub design/theme-build/tools/arneiron/migrate-testimonials-pricing.php, which re-emits it as a core/heading
   carrying this class. Declarations copied verbatim. */
.arneiron-testimonials-heading {
	margin: 0 0 var(--wp--preset--spacing--7, 32px);
	color: var(--c-ink,var(--wp--preset--color--contrast,#14181f));
	font-size: var(--wp--preset--font-size--2-xl, 1.75rem);
	font-weight: 700;
	line-height: 1.15;
}
