/**
 * Candex typography block styles (Gutenberg presets).
 *
 * Select in the editor: block sidebar → Styles → e.g. "Body/M", "Heading/Large".
 * Token values come from Appearance → Typography (CSS variables on :root).
 */

/* -------------------------------------------------------------------------- */
/* Shared type preset mixin pattern                                           */
/* -------------------------------------------------------------------------- */

.is-style-candex-body-m,
.editor-styles-wrapper .is-style-candex-body-m {
	font-family: var(--type-body-m-font);
	font-size: var(--type-body-m-size);
	font-weight: var(--type-body-m-weight);
	line-height: var(--type-body-m-lh);
	font-style: var(--type-body-m-style);
}

.is-style-candex-body-xl,
.editor-styles-wrapper .is-style-candex-body-xl {
	font-family: var(--type-body-xl-font);
	font-size: var(--type-body-xl-size);
	font-weight: var(--type-body-xl-weight);
	line-height: var(--type-body-xl-lh);
	font-style: var(--type-body-xl-style);
}

.is-style-candex-body-xxs,
.editor-styles-wrapper .is-style-candex-body-xxs {
	font-family: var(--type-body-xxs-font);
	font-size: var(--type-body-xxs-size);
	font-weight: var(--type-body-xxs-weight);
	line-height: var(--type-body-xxs-lh);
	font-style: var(--type-body-xxs-style);
}

.is-style-candex-body-l,
.editor-styles-wrapper .is-style-candex-body-l {
	font-family: var(--type-body-l-font);
	font-size: var(--type-body-l-size);
	font-weight: var(--type-body-l-weight);
	line-height: var(--type-body-l-lh);
	font-style: var(--type-body-l-style);
}

.is-style-candex-body-s,
.editor-styles-wrapper .is-style-candex-body-s {
	font-family: var(--type-body-s-font);
	font-size: var(--type-body-s-size);
	font-weight: var(--type-body-s-weight);
	line-height: var(--type-body-s-lh);
	font-style: var(--type-body-s-style);
}

.is-style-candex-body-xs,
.editor-styles-wrapper .is-style-candex-body-xs {
	font-family: var(--type-body-xs-font);
	font-size: var(--type-body-xs-size);
	font-weight: var(--type-body-xs-weight);
	line-height: var(--type-body-xs-lh);
	font-style: var(--type-body-xs-style);
}

.is-style-candex-body-quote,
.editor-styles-wrapper .is-style-candex-body-quote {
	font-family: var(--type-body-quote-font);
	font-size: var(--type-body-quote-size);
	font-weight: var(--type-body-quote-weight);
	line-height: var(--type-body-quote-lh);
	font-style: var(--type-body-quote-style);
}

.is-style-candex-body-quote-l,
.editor-styles-wrapper .is-style-candex-body-quote-l {
	font-family: var(--type-body-quote-l-font);
	font-size: var(--type-body-quote-l-size);
	font-weight: var(--type-body-quote-l-weight);
	line-height: var(--type-body-quote-l-lh);
	font-style: var(--type-body-quote-l-style);
}

.is-style-candex-heading-giant,
.editor-styles-wrapper .is-style-candex-heading-giant {
	font-family: var(--type-heading-giant-font);
	font-size: var(--type-heading-giant-size);
	font-weight: var(--type-heading-giant-weight);
	line-height: var(--type-heading-giant-lh);
	font-style: var(--type-heading-giant-style);
}

.is-style-candex-heading-huge,
.editor-styles-wrapper .is-style-candex-heading-huge {
	font-family: var(--type-heading-huge-font);
	font-size: var(--type-heading-huge-size);
	font-weight: var(--type-heading-huge-weight);
	line-height: var(--type-heading-huge-lh);
	font-style: var(--type-heading-huge-style);
}

.is-style-candex-heading-large,
.editor-styles-wrapper .is-style-candex-heading-large {
	font-family: var(--type-heading-large-font);
	font-size: var(--type-heading-large-size);
	font-weight: var(--type-heading-large-weight);
	line-height: var(--type-heading-large-lh);
	font-style: var(--type-heading-large-style);
}

.is-style-candex-heading-medium,
.editor-styles-wrapper .is-style-candex-heading-medium {
	font-family: var(--type-heading-medium-font);
	font-size: var(--type-heading-medium-size);
	font-weight: var(--type-heading-medium-weight);
	line-height: var(--type-heading-medium-lh);
	font-style: var(--type-heading-medium-style);
}

.is-style-candex-heading-small,
.editor-styles-wrapper .is-style-candex-heading-small {
	font-family: var(--type-heading-small-font);
	font-size: var(--type-heading-small-size);
	font-weight: var(--type-heading-small-weight);
	line-height: var(--type-heading-small-lh);
	font-style: var(--type-heading-small-style);
}

.is-style-candex-label-badge,
.editor-styles-wrapper .is-style-candex-label-badge {
	font-family: var(--type-label-badge-font);
	font-size: var(--type-label-badge-size);
	font-weight: var(--type-label-badge-weight);
	line-height: var(--type-label-badge-lh);
	font-style: var(--type-label-badge-style);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.is-style-candex-label-card-title,
.editor-styles-wrapper .is-style-candex-label-card-title {
	font-family: var(--type-label-card-title-font);
	font-size: var(--type-label-card-title-size);
	font-weight: var(--type-label-card-title-weight);
	line-height: var(--type-label-card-title-lh);
	font-style: var(--type-label-card-title-style);
}

.is-style-candex-label-eyebrow,
.editor-styles-wrapper .is-style-candex-label-eyebrow {
	font-family: var(--type-label-eyebrow-font);
	font-size: var(--type-label-eyebrow-size);
	font-weight: var(--type-label-eyebrow-weight);
	line-height: var(--type-label-eyebrow-lh);
	font-style: var(--type-label-eyebrow-style);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.is-style-candex-ui-diagram-label,
.editor-styles-wrapper .is-style-candex-ui-diagram-label {
	font-family: var(--type-ui-diagram-label-font);
	font-size: var(--type-ui-diagram-label-size);
	font-weight: var(--type-ui-diagram-label-weight);
	line-height: var(--type-ui-diagram-label-lh);
	font-style: var(--type-ui-diagram-label-style);
}

.is-style-candex-ui-group-label,
.editor-styles-wrapper .is-style-candex-ui-group-label {
	font-family: var(--type-ui-group-label-font);
	font-size: var(--type-ui-group-label-size);
	font-weight: var(--type-ui-group-label-weight);
	line-height: var(--type-ui-group-label-lh);
	font-style: var(--type-ui-group-label-style);
}

.is-style-candex-ui-nav,
.editor-styles-wrapper .is-style-candex-ui-nav {
	font-family: var(--type-ui-nav-font);
	font-size: var(--type-ui-nav-size);
	font-weight: var(--type-ui-nav-weight);
	line-height: var(--type-ui-nav-lh);
	font-style: var(--type-ui-nav-style);
}

/* Styles added from Figma (Heading/Compact, Body/XXL, Label/Tab, …) */
.is-style-candex-heading-compact,
.editor-styles-wrapper .is-style-candex-heading-compact {
	font-family: var(--type-heading-compact-font);
	font-size: var(--type-heading-compact-size);
	font-weight: var(--type-heading-compact-weight);
	line-height: var(--type-heading-compact-lh);
	font-style: var(--type-heading-compact-style);
}

.is-style-candex-body-xxl,
.editor-styles-wrapper .is-style-candex-body-xxl {
	font-family: var(--type-body-xxl-font);
	font-size: var(--type-body-xxl-size);
	font-weight: var(--type-body-xxl-weight);
	line-height: var(--type-body-xxl-lh);
	font-style: var(--type-body-xxl-style);
}

.is-style-candex-label-tab,
.editor-styles-wrapper .is-style-candex-label-tab {
	font-family: var(--type-label-tab-font);
	font-size: var(--type-label-tab-size);
	font-weight: var(--type-label-tab-weight);
	line-height: var(--type-label-tab-lh);
	font-style: var(--type-label-tab-style);
}

.is-style-candex-label-feature-title,
.editor-styles-wrapper .is-style-candex-label-feature-title {
	font-family: var(--type-label-feature-title-font);
	font-size: var(--type-label-feature-title-size);
	font-weight: var(--type-label-feature-title-weight);
	line-height: var(--type-label-feature-title-lh);
	font-style: var(--type-label-feature-title-style);
}

.is-style-candex-label-feature-label,
.editor-styles-wrapper .is-style-candex-label-feature-label {
	font-family: var(--type-label-feature-label-font);
	font-size: var(--type-label-feature-label-size);
	font-weight: var(--type-label-feature-label-weight);
	line-height: var(--type-label-feature-label-lh);
	font-style: var(--type-label-feature-label-style);
}

.is-style-candex-ui-news-title,
.editor-styles-wrapper .is-style-candex-ui-news-title {
	font-family: var(--type-ui-news-title-font);
	font-size: var(--type-ui-news-title-size);
	font-weight: var(--type-ui-news-title-weight);
	line-height: var(--type-ui-news-title-lh);
	font-style: var(--type-ui-news-title-style);
}

.is-style-candex-ui-tool-name,
.editor-styles-wrapper .is-style-candex-ui-tool-name {
	font-family: var(--type-ui-tool-name-font);
	font-size: var(--type-ui-tool-name-size);
	font-weight: var(--type-ui-tool-name-weight);
	line-height: var(--type-ui-tool-name-lh);
	font-style: var(--type-ui-tool-name-style);
}

.is-style-candex-ui-nav-active,
.editor-styles-wrapper .is-style-candex-ui-nav-active {
	font-family: var(--type-ui-nav-active-font);
	font-size: var(--type-ui-nav-active-size);
	font-weight: var(--type-ui-nav-active-weight);
	line-height: var(--type-ui-nav-active-lh);
	font-style: var(--type-ui-nav-active-style);
}

/* Quote block presets */
.is-style-candex-body-quote.wp-block-quote,
.is-style-candex-body-quote-l.wp-block-quote,
.editor-styles-wrapper .is-style-candex-body-quote.wp-block-quote,
.editor-styles-wrapper .is-style-candex-body-quote-l.wp-block-quote {
	border: 0;
	padding: 0;
}

.is-style-candex-body-quote.wp-block-quote p,
.editor-styles-wrapper .is-style-candex-body-quote.wp-block-quote p {
	font-family: var(--type-body-quote-font);
	font-size: var(--type-body-quote-size);
	font-weight: var(--type-body-quote-weight);
	line-height: var(--type-body-quote-lh);
	font-style: var(--type-body-quote-style);
}

.is-style-candex-body-quote-l.wp-block-quote p,
.editor-styles-wrapper .is-style-candex-body-quote-l.wp-block-quote p {
	font-family: var(--type-body-quote-l-font);
	font-size: var(--type-body-quote-l-size);
	font-weight: var(--type-body-quote-l-weight);
	line-height: var(--type-body-quote-l-lh);
	font-style: var(--type-body-quote-l-style);
}

.is-style-candex-body-quote-l.wp-block-quote cite,
.is-style-candex-body-quote.wp-block-quote cite,
.editor-styles-wrapper .is-style-candex-body-quote-l.wp-block-quote cite,
.editor-styles-wrapper .is-style-candex-body-quote.wp-block-quote cite,
.is-style-candex-body-s cite,
cite.is-style-candex-body-s {
	font-family: var(--type-body-s-font);
	font-size: var(--type-body-s-size);
	font-weight: var(--type-body-s-weight);
	line-height: var(--type-body-s-lh);
	font-style: normal;
}

/* -------------------------------------------------------------------------- */
/* Core button typography tokens (visual designs → buttons.css)               */
/* -------------------------------------------------------------------------- */

.is-style-candex-button-cta .wp-block-button__link,
.editor-styles-wrapper .is-style-candex-button-cta .wp-block-button__link {
	font-family: var(--type-button-cta-font);
	font-size: var(--type-button-cta-size);
	font-weight: var(--type-button-cta-weight);
	line-height: var(--type-button-cta-lh);
}

.is-style-candex-button-outline .wp-block-button__link,
.editor-styles-wrapper .is-style-candex-button-outline .wp-block-button__link {
	font-family: var(--type-button-outline-font);
	font-size: var(--type-button-outline-size);
	font-weight: var(--type-button-outline-weight);
	line-height: var(--type-button-outline-lh);
}

.is-style-candex-button-outline-dark .wp-block-button__link,
.editor-styles-wrapper .is-style-candex-button-outline-dark .wp-block-button__link {
	font-family: var(--type-button-outline-dark-font);
	font-size: var(--type-button-outline-dark-size);
	font-weight: var(--type-button-outline-dark-weight);
	line-height: var(--type-button-outline-dark-lh);
}

.is-style-candex-button-secondary .wp-block-button__link,
.editor-styles-wrapper .is-style-candex-button-secondary .wp-block-button__link {
	font-family: var(--type-button-secondary-font);
	font-size: var(--type-button-secondary-size);
	font-weight: var(--type-button-secondary-weight);
	line-height: var(--type-button-secondary-lh);
}

.is-style-candex-button-small .wp-block-button__link,
.editor-styles-wrapper .is-style-candex-button-small .wp-block-button__link {
	font-family: var(--type-button-small-font);
	font-size: var(--type-button-small-size);
	font-weight: var(--type-button-small-weight);
	line-height: var(--type-button-small-lh);
}

/* -------------------------------------------------------------------------- */
/* Page content defaults (native Gutenberg inside .c-page)                    */
/* -------------------------------------------------------------------------- */

.c-page .wp-block-post-content > .wp-block-paragraph:not([class*="is-style-candex-"]),
.c-page .entry-content > .wp-block-paragraph:not([class*="is-style-candex-"]),
.c-page > .wp-block-paragraph:not([class*="is-style-candex-"]),
.editor-styles-wrapper > .wp-block-paragraph:not([class*="is-style-candex-"]) {
	font-family: var(--type-body-m-font);
	font-size: var(--type-body-m-size);
	font-weight: var(--type-body-m-weight);
	line-height: var(--type-body-m-lh);
	color: var(--color-text);
}

.c-page .wp-block-post-content > .wp-block-heading:not([class*="is-style-candex-"]),
.c-page .entry-content > .wp-block-heading:not([class*="is-style-candex-"]),
.editor-styles-wrapper > .wp-block-heading:not([class*="is-style-candex-"]) {
	font-family: var(--type-heading-large-font);
	font-weight: var(--type-heading-large-weight);
	line-height: var(--type-heading-large-lh);
	color: var(--color-text);
}

.c-page .wp-block-post-content > .wp-block-heading.has-large-font-size,
.c-page .entry-content > .wp-block-heading.has-large-font-size {
	font-size: var(--type-heading-large-size);
}

.c-page .wp-block-post-content > .wp-block-heading.has-huge-font-size,
.c-page .entry-content > .wp-block-heading.has-huge-font-size {
	font-size: var(--type-heading-giant-size);
	font-family: var(--type-heading-giant-font);
	font-weight: var(--type-heading-giant-weight);
	line-height: var(--type-heading-giant-lh);
}

/* Responsive: display headings scale down on small screens. */
@media (max-width: 767px) {
	.is-style-candex-heading-giant,
	.editor-styles-wrapper .is-style-candex-heading-giant {
		font-size: clamp(2.75rem, 12vw, var(--type-heading-giant-size));
	}

	.is-style-candex-heading-huge,
	.editor-styles-wrapper .is-style-candex-heading-huge {
		font-size: clamp(2.5rem, 10vw, var(--type-heading-huge-size));
	}

	.is-style-candex-heading-large,
	.editor-styles-wrapper .is-style-candex-heading-large {
		font-size: clamp(2rem, 7vw, var(--type-heading-large-size));
	}

	.is-style-candex-heading-medium,
	.editor-styles-wrapper .is-style-candex-heading-medium {
		font-size: clamp(1.75rem, 5.5vw, var(--type-heading-medium-size));
	}

	.is-style-candex-heading-small,
	.editor-styles-wrapper .is-style-candex-heading-small {
		font-size: clamp(1.5rem, 4.5vw, var(--type-heading-small-size));
	}

	.is-style-candex-heading-compact,
	.editor-styles-wrapper .is-style-candex-heading-compact {
		font-size: clamp(1.375rem, 4vw, var(--type-heading-compact-size));
	}
}
