/**
 * Building blocks — "Components & effects" category (class-based; survives TinyMCE/kses).
 *
 * @package Campus
 */

/* ── Spacers ───────────────────────────────────────────────────────────── */

.cp-bb-spacer {
	display: block;
	line-height: 0;
	font-size: 0;
	overflow: hidden;
	width: 100%;
	border: 0;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.cp-bb-spacer--sm {
	height: 8px;
}

.cp-bb-spacer--lg {
	height: 32px;
}

.cp-bb-spacer--preview-sm {
	height: 6px;
	background: #e2e8f0;
	border-radius: 2px;
	line-height: 0;
	font-size: 0;
}

.cp-bb-spacer--preview-lg {
	height: 10px;
	background: #e2e8f0;
	border-radius: 2px;
	line-height: 0;
	font-size: 0;
}

/* ── Status pill ───────────────────────────────────────────────────────── */

.cp-bb-pill {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	box-sizing: border-box;
}

.cp-bb-pill--green {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.cp-bb-pill--blue {
	background: #eff6ff;
	color: #1e40af;
	border: 1px solid #bfdbfe;
}

.cp-bb-pill--amber {
	background: #fffbeb;
	color: #92400e;
	border: 1px solid #fde68a;
}

.cp-bb-pill--slate {
	background: #f1f5f9;
	color: #334155;
	border: 1px solid #e2e8f0;
}

.cp-bb-pill--preview {
	padding: 4px 10px;
	font-size: 11px;
}

/* ── Soft gradient rule ───────────────────────────────────────────────── */

.cp-bb-rule-soft {
	height: 3px;
	border-radius: 3px;
	margin: 20px 0;
	background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
}

.cp-bb-rule-soft--preview {
	margin: 0;
	height: 3px;
	background: linear-gradient(90deg, #e2e8f0, #94a3b8, #e2e8f0);
	border-radius: 2px;
}

/* ── Fine print ────────────────────────────────────────────────────────── */

.cp-bb-fine-print {
	margin: 12px 0;
	font-size: 11px;
	line-height: 1.5;
	color: #94a3b8;
}

.cp-bb-fine-print--preview {
	margin: 0;
	font-size: 10px;
}

/* ── Glass panel ───────────────────────────────────────────────────────── */

.cp-bb-glass {
	margin: 16px 0;
	padding: 20px 22px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(226, 232, 240, 0.9);
	box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-sizing: border-box;
}

.cp-bb-glass__text {
	margin: 0;
	color: #334155;
	font-size: 14px;
	line-height: 1.65;
}

.cp-bb-glass--preview {
	margin: 0;
	padding: 8px;
	border-radius: 10px;
	font-size: 10px;
}

/* ── Gradient headline ─────────────────────────────────────────────────── */

.cp-bb-h2-gradient {
	margin: 16px 0;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 900;
	background: linear-gradient(90deg, #4f46e5, #db2777);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.cp-bb-h2-gradient--preview {
	margin: 0;
	font-size: 14px;
	display: inline-block;
}

/* ── Feature chips ─────────────────────────────────────────────────────── */

.cp-bb-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0;
	justify-content: center;
	box-sizing: border-box;
}

.cp-bb-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: #334155;
}

.cp-bb-chips--preview {
	gap: 4px;
	margin: 0;
	font-size: 9px;
}

.cp-bb-chips--preview .cp-bb-chip {
	padding: 4px 6px;
	font-size: 9px;
}

/* ── Stat strip (3) ───────────────────────────────────────────────────── */

.cp-bb-stat-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 18px 0;
	justify-content: center;
	box-sizing: border-box;
}

.cp-bb-stat-strip__cell {
	flex: 1;
	min-width: 80px;
	text-align: center;
	padding: 14px 10px;
	background: linear-gradient(180deg, #f8fafc, #fff);
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-sizing: border-box;
}

.cp-bb-stat-strip__val {
	margin: 0;
	font-size: 22px;
	font-weight: 900;
	color: #0f172a;
}

.cp-bb-stat-strip__lab {
	margin: 6px 0 0;
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cp-bb-stat-strcp--preview {
	gap: 6px;
	margin: 0;
	padding: 0;
}

.cp-bb-stat-strcp--preview .cp-bb-stat-strip__cell {
	min-width: 0;
	padding: 4px;
	font-size: 9px;
}

.cp-bb-stat-strcp--preview .cp-bb-stat-strip__val {
	font-size: 10px;
	font-weight: 800;
}

.cp-bb-stat-strcp--preview .cp-bb-stat-strip__lab {
	font-size: 8px;
	margin: 2px 0 0;
}

/* ── Quote spotlight ───────────────────────────────────────────────────── */

.cp-bb-quote {
	margin: 18px 0;
	padding: 18px 22px;
	border-left: 4px solid #6366f1;
	background: #f8fafc;
	border-radius: 0 12px 12px 0;
	box-sizing: border-box;
}

.cp-bb-quote__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #1e293b;
	font-style: italic;
}

.cp-bb-quote__by {
	margin: 10px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
}

.cp-bb-quote--preview {
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	font-size: 10px;
	font-style: italic;
	color: #475569;
}

/* ── Tag row ───────────────────────────────────────────────────────────── */

.cp-bb-tags {
	margin: 14px 0;
	line-height: 1.8;
}

.cp-bb-tag {
	display: inline-block;
	margin: 3px;
	padding: 6px 10px;
	background: #eef2ff;
	color: #3730a3;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
}

.cp-bb-tag--preview {
	margin: 0;
	padding: 2px 6px;
	font-size: 9px;
}

/* ── Mini KPI ──────────────────────────────────────────────────────────── */

.cp-bb-mini-kpi {
	margin: 16px auto;
	max-width: 220px;
	text-align: center;
	padding: 18px 16px;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	background: #fff;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
	box-sizing: border-box;
}

.cp-bb-mini-kpi__val {
	margin: 0;
	font-size: 34px;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: #0f172a;
}

.cp-bb-mini-kpi__label {
	margin: 6px 0 0;
	font-size: 13px;
	font-weight: 700;
	color: #475569;
}

.cp-bb-mini-kpi__sub {
	margin: 4px 0 0;
	font-size: 11px;
	color: #94a3b8;
}

.cp-bb-mini-kpi--preview {
	margin: 0 auto;
	padding: 4px;
	max-width: none;
	box-shadow: none;
	border: none;
}

.cp-bb-mini-kpi--preview .cp-bb-mini-kpi__val {
	font-size: 18px;
}

.cp-bb-mini-kpi--preview .cp-bb-mini-kpi__label,
.cp-bb-mini-kpi--preview .cp-bb-mini-kpi__sub {
	font-size: 9px;
	margin: 0;
}

/* ── Vertical timeline (dots) ─────────────────────────────────────────── */

.cp-bb-v-timeline {
	margin: 18px 0;
	padding: 16px 18px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	background: #fafafa;
	box-sizing: border-box;
}

.cp-bb-v-timeline__row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.cp-bb-v-timeline__row:last-child {
	margin-bottom: 0;
}

.cp-bb-v-timeline__dot {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.cp-bb-v-timeline__txt {
	font-size: 14px;
	font-weight: 700;
	color: #1e293b;
}

.cp-bb-v-timeline--preview {
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	font-size: 9px;
	color: #64748b;
}

/* ── Ribbon badge ─────────────────────────────────────────────────────── */

.cp-bb-ribbon-wrap {
	position: relative;
	display: inline-block;
	margin: 16px 0;
	padding: 16px 20px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	background: #fff;
	overflow: hidden;
	box-sizing: border-box;
}

.cp-bb-ribbon {
	position: absolute;
	top: 12px;
	right: -32px;
	background: linear-gradient(90deg, #ef4444, #f97316);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	padding: 6px 40px;
	transform: rotate(35deg);
	box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
	white-space: nowrap;
}

.cp-bb-ribbon-body {
	margin: 0;
	font-size: 14px;
	color: #334155;
}

.cp-bb-ribbon-wrap--preview {
	margin: 0;
	width: 60px;
	height: 36px;
	padding: 0;
	min-height: 36px;
}

/* ── Event card ───────────────────────────────────────────────────────── */

.cp-bb-event-card {
	margin: 18px 0;
	padding: 20px 22px;
	border-radius: 14px;
	background: linear-gradient(135deg, #0f172a, #1e293b);
	color: #fff;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
	box-sizing: border-box;
}

.cp-bb-event-card__eyebrow {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.75;
}

.cp-bb-event-card__title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 800;
}

.cp-bb-event-card__line {
	margin: 0;
	font-size: 13px;
	opacity: 0.9;
}

.cp-bb-event-card__line + .cp-bb-event-card__line {
	margin-top: 6px;
}

.cp-bb-event-card--preview {
	margin: 0;
	padding: 8px;
	font-size: 10px;
}

/* ── Elevated card ────────────────────────────────────────────────────── */

.cp-bb-card-elevated {
	margin: 18px 0;
	padding: 22px 24px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid #f1f5f9;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
	box-sizing: border-box;
}

.cp-bb-card-elevated__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: #334155;
}

.cp-bb-card-elevated--preview {
	margin: 0;
	padding: 8px;
	font-size: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ── Expandable (native <details>; no inline JS) ─────────────────────── */

details.cp-bb-expand {
	margin: 16px 0;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-sizing: border-box;
}

details.cp-bb-expand summary.cp-bb-expand__toggle {
	width: 100%;
	padding: 14px 16px;
	border: none;
	background: #f8fafc;
	text-align: left;
	font-size: 14px;
	font-weight: 700;
	color: #1e293b;
	cursor: pointer;
	font-family: inherit;
	box-sizing: border-box;
	list-style: none;
}

details.cp-bb-expand summary.cp-bb-expand__toggle::-webkit-details-marker {
	display: none;
}

.cp-bb-expand__body {
	padding: 0 16px 16px;
	font-size: 14px;
	line-height: 1.6;
	color: #475569;
}

details.cp-bb-expand.cp-bb-expand--preview {
	margin: 0;
	font-size: 10px;
}

details.cp-bb-expand.cp-bb-expand--preview summary.cp-bb-expand__toggle {
	padding: 4px 6px;
	font-size: 10px;
}

details.cp-bb-expand.cp-bb-expand--preview .cp-bb-expand__body {
	padding: 0 6px 6px;
	font-size: 9px;
}

/* ── Progress bar (fill width via inline style %) ───────────────────── */

.cp-bb-progress {
	margin: 16px 0;
}

.cp-bb-progress__label {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	color: #475569;
}

.cp-bb-progress__track {
	height: 10px;
	border-radius: 999px;
	background: #e2e8f0;
	overflow: hidden;
}

.cp-bb-progress__fill {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #3b82f6, #6366f1);
	min-width: 0;
}

.cp-bb-progress__pct {
	margin: 6px 0 0;
	font-size: 11px;
	color: #94a3b8;
}

.cp-bb-progress--preview .cp-bb-progress__track {
	height: 6px;
}

/* ── Star rating ──────────────────────────────────────────────────────── */

.cp-bb-stars {
	margin: 12px 0;
	font-size: 20px;
	letter-spacing: 2px;
	color: #f59e0b;
}

.cp-bb-stars--preview {
	margin: 0;
	font-size: 12px;
}

/* ── Compare columns ─────────────────────────────────────────────────── */

.cp-bb-compare {
	display: flex;
	gap: 14px;
	margin: 18px 0;
	flex-wrap: wrap;
	box-sizing: border-box;
}

.cp-bb-compare__col {
	flex: 1;
	min-width: 160px;
	padding: 16px;
	border-radius: 12px;
	box-sizing: border-box;
}

.cp-bb-compare__col--before {
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.cp-bb-compare__col--after {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

.cp-bb-compare__title {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.cp-bb-compare__col--before .cp-bb-compare__title {
	color: #991b1b;
}

.cp-bb-compare__col--after .cp-bb-compare__title {
	color: #065f46;
}

.cp-bb-compare__body {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.cp-bb-compare__col--before .cp-bb-compare__body {
	color: #7f1d1d;
}

.cp-bb-compare__col--after .cp-bb-compare__body {
	color: #14532d;
}

.cp-bb-compare--preview {
	gap: 4px;
	margin: 0;
}

.cp-bb-compare--preview .cp-bb-compare__col {
	min-width: 0;
	padding: 4px;
	font-size: 9px;
}

/* ── Quick links grid ────────────────────────────────────────────────── */

.cp-bb-quick-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin: 18px 0;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.cp-bb-quick-grid__link {
	display: block;
	padding: 12px 10px;
	text-align: center;
	border-radius: 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: #1d4ed8;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.cp-bb-quick-grid--preview {
	margin: 0;
	gap: 4px;
	font-size: 8px;
	max-width: none;
	color: #3b82f6;
}

/* ── Gradient border card ─────────────────────────────────────────────── */

.cp-bb-border-card-outer {
	margin: 18px 0;
	padding: 2px;
	border-radius: 16px;
	background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
	box-shadow: 0 12px 32px rgba(236, 72, 153, 0.2);
	box-sizing: border-box;
}

.cp-bb-border-card-inner {
	padding: 20px 22px;
	border-radius: 14px;
	background: #fff;
}

.cp-bb-border-card-inner p {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: #334155;
}

.cp-bb-border-card--preview {
	margin: 0;
	padding: 2px;
	border-radius: 8px;
}

.cp-bb-border-card--preview .cp-bb-border-card-inner {
	padding: 6px;
	font-size: 9px;
}

/* ── Live status dot ─────────────────────────────────────────────────── */

.cp-bb-live-status {
	margin: 14px 0;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #15803d;
}

.cp-bb-live-status__dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35);
	flex-shrink: 0;
}

.cp-bb-live-status--preview {
	margin: 0;
	font-size: inherit;
}

.cp-bb-live-status--preview .cp-bb-live-status__dot {
	width: 10px;
	height: 10px;
}

/* ── Utility buttons (Copy ID, Back to top) ─────────────────────────── */

.cp-bb-btn-copy-wrap {
	text-align: center;
	margin: 16px 0;
}

.cp-bb-btn-copy {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 10px;
	border: 1px solid #cbd5e1;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	font-family: inherit;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
	box-sizing: border-box;
}

.cp-bb-link-top-wrap {
	text-align: center;
	margin: 14px 0;
}

.cp-bb-link-top {
	border: none;
	background: none;
	color: #2563eb;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: underline;
	font-family: inherit;
}
