/*
 * Dev Tools: Gutenberg to Bricks mapping.
 *
 * Loaded on the site and inside the block editor. Core blocks use the
 * blueprint's variables, so when a site's brand changes, Gutenberg follows.
 *
 * TO CONFIRM WITH CRYSTAL: the variable names on the right side below.
 * They must be the same on every site (only values change per site).
 * Fallbacks are neutral placeholders.
 */

:root,
.editor-styles-wrapper {
	/* Text and links */
	--vdt-text: var(--text-dark, #1e1e1e);
	--vdt-heading: var(--text-dark, #1e1e1e);
	--vdt-link: var(--link, #2271b1);
	--vdt-border: var(--border-color, #dcdcde);

	/* Primary button */
	--vdt-btn-primary-bg: var(--primary, #1e1e1e);
	--vdt-btn-primary-bg-hover: var(--primary, #1e1e1e);
	--vdt-btn-primary-text: var(--text-light, #ffffff);

	/* Secondary button */
	--vdt-btn-secondary-bg: transparent;
	--vdt-btn-secondary-bg-hover: var(--primary, #1e1e1e);
	--vdt-btn-secondary-text: var(--primary, #1e1e1e);
	--vdt-btn-secondary-text-hover: var(--text-light, #ffffff);
	--vdt-btn-secondary-border: var(--primary, #1e1e1e);

	/* Shared button shape */
	--vdt-btn-radius: 6px;
	--vdt-btn-padding: 0.75em 1.5em;
	--vdt-btn-font-weight: 600;
}

/* Buttons: Primary (default) */
.wp-block-button .wp-block-button__link,
.wp-block-button .wp-element-button {
	background: var(--vdt-btn-primary-bg);
	color: var(--vdt-btn-primary-text);
	border: 2px solid transparent;
	border-radius: var(--vdt-btn-radius);
	padding: var(--vdt-btn-padding);
	font-weight: var(--vdt-btn-font-weight);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus-visible {
	background: var(--vdt-btn-primary-bg-hover);
	color: var(--vdt-btn-primary-text);
}

/* Buttons: Secondary */
.wp-block-button.is-style-secondary .wp-block-button__link {
	background: var(--vdt-btn-secondary-bg);
	color: var(--vdt-btn-secondary-text);
	border-color: var(--vdt-btn-secondary-border);
}

.wp-block-button.is-style-secondary .wp-block-button__link:hover,
.wp-block-button.is-style-secondary .wp-block-button__link:focus-visible {
	background: var(--vdt-btn-secondary-bg-hover);
	color: var(--vdt-btn-secondary-text-hover);
}

/* Quote */
.wp-block-quote {
	border-left: 4px solid var(--vdt-link);
	padding-left: 1.25em;
	margin-left: 0;
}

/* Table */
.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table th,
.wp-block-table td {
	border: 1px solid var(--vdt-border);
	padding: 0.6em 0.8em;
	text-align: left;
}

/* Separator */
.wp-block-separator {
	border: none;
	border-top: 1px solid var(--vdt-border);
	opacity: 1;
}

/* Captions */
.wp-block-image figcaption,
.wp-block-table figcaption,
.wp-block-embed figcaption {
	font-size: 0.875em;
	opacity: 0.8;
}

/*
 * Editor only: typography so writing looks close to the published post.
 * On the site, Bricks Theme Styles handle this.
 */
.editor-styles-wrapper {
	color: var(--vdt-text);
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
	color: var(--vdt-heading);
}

.editor-styles-wrapper a {
	color: var(--vdt-link);
}

