/* ==========================================================================
   CCR Elementor — TierBook bridge
   Dresses TierBook's Agenda / Speakers displays in the CCR design by mapping
   --ccrx-* tokens onto TierBook's public --tbe-* (Editorial) and --tbp-*
   (Classic) properties. TierBook's own defaults have zero specificity, so a
   plain .tbe rule wins regardless of load order; Elementor style controls on
   the TierBook widgets still override these.

   Colors read the container-skin tokens first (--ccrx-on, --ccrx-rule, …), so
   a display inside an Ink / West / East / Summit section turns light-on-dark
   like the CCR widgets around it, and fall back to the paper palette.
   ========================================================================== */

.tbe {
	--tbe-font: var(--ccrx-sans);
	--tbe-font-display: var(--ccrx-serif);
	--tbe-display-weight: 400; /* Instrument Serif ships one weight; never synthesize bold. */
	--tbe-display-tracking: 0;
	--tbe-ink: var(--ccrx-on, var(--ccrx-ink));
	--tbe-text: var(--ccrx-on-soft, var(--ccrx-body));
	--tbe-muted: var(--ccrx-on-muted, var(--ccrx-muted));
	--tbe-accent: var(--ccrx-em, var(--ccrx-accent));
	--tbe-accent-soft: var(--ccrx-cyan);
	--tbe-on-accent: #fff;
	--tbe-on-ink: var(--ccrx-surface, var(--ccrx-paper));
	--tbe-surface: var(--ccrx-surface, #fff);
	--tbe-tint: var(--ccrx-card, var(--ccrx-paper));
	--tbe-line: var(--ccrx-rule, var(--ccrx-line));
	--tbe-line-strong: color-mix(in srgb, var(--ccrx-on, var(--ccrx-ink)) 24%, transparent);
	--tbe-radius: 20px;
	--tbe-radius-sm: 12px;
	--tbe-shadow: 0 1px 2px rgb(11 31 51 / .06);
	--tbe-shadow-lg: 0 24px 64px rgb(11 31 51 / .16);
	--tbe-ease: cubic-bezier(.22, 1, .36, 1);
}

/* Classic style: type everywhere; colors only on the light theme, so the
   dark / auto / inherit options keep working. Kept at one class of
   specificity so Elementor controls ({{WRAPPER}} .tbp) still win. */
.tbp {
	--tbp-font: var(--ccrx-sans);
}

.tbp:where(.tbp-theme-light) {
	--tbp-accent: var(--ccrx-accent);
	--tbp-text: var(--ccrx-body);
	--tbp-muted: var(--ccrx-muted);
	--tbp-border: var(--ccrx-line);
	--tbp-soft: var(--ccrx-paper);
	--tbp-radius: 16px;
}
