/**
 * Intro card — the lead-in a screen opens with: a gold icon disc beside a
 * title and one line of what the screen covers, in a softly tinted card with
 * a white rim.
 *
 * Shared by both places that draw one, so they can't drift apart:
 * - `src/admin/style.scss` — every React section's `SectionIntro`
 *   (`.aureon-admin__section-head`), in the Customizer and on the admin page;
 * - `src/customize-controls/style.scss` — a native panel's lede
 *   (`Customizer::set_panel_lede()`), e.g. WooCommerce's.
 *
 * The two stylesheets name their colours differently (CSS custom properties
 * that follow the admin's dark mode, vs. the Customizer's fixed Sass
 * values), so each passes its own in.
 */

@mixin intro-card($surface, $brand, $shadow) {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	border: 5px solid $surface;
	border-radius: 16px;
	background: color-mix(in srgb, $brand 9%, $surface);
	box-shadow: $shadow;
}

@mixin intro-card-icon($brand, $on-brand) {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: $brand;
	color: $on-brand;

	svg {
		width: 24px;
		height: 24px;
	}
}

@mixin intro-card-title($ink) {
	margin: 0 0 3px;
	padding: 0;
	border: 0;
	color: $ink;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

@mixin intro-card-text($muted) {
	margin: 0;
	color: $muted;
	font-size: 13px;
	line-height: 1.45;
}
