/* ============================================================
   COMPASS CTA — DMO posts (category slug: dmo)
   Loaded only on single posts (functions.php).
   Scoped to .compass-cta so it cannot leak into other CTAs.
   Brand colours via lib.css CSS variables — no hardcoded hex.
   ============================================================ */

.compass-cta {
	position: relative;
	max-width: 960px !important;
	margin: 2.5rem auto !important;
	padding: 0 !important;
	/* Mini-hero: the playbook hero photo (visitor-information-centre.webp)
	   under a navy→deep-teal brand scrim. The scrim sits ABOVE the photo so
	   the white heading, white move labels and sub-line all keep strong
	   contrast across the full card width. Darker / more even than the
	   left-weighted hero overlay because this card is centred text-over-photo.
	   rgba values = brand navy #0A1E3F and a navy→deep-teal #0D3B54 blend
	   (lib.css colour vars can't carry alpha for a photographic scrim). */
	background-image:
		linear-gradient(
			150deg,
			rgba(10, 30, 63, 0.93) 0%,
			rgba(10, 30, 63, 0.84) 45%,
			rgba(13, 59, 84, 0.82) 100%
		),
		url('https://www.tourismtribe.com/wp-content/uploads/visitor-information-centre.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 20px;
	overflow: hidden;
}

/* Coral bloom — top right */
.compass-cta::before {
	content: "";
	position: absolute;
	top: -70px;
	right: -50px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: var(--salmon);
	opacity: 0.14;
	filter: blur(70px);
	pointer-events: none;
}

/* Teal bloom — bottom left */
.compass-cta::after {
	content: "";
	position: absolute;
	bottom: -50px;
	left: -40px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: var(--teal);
	opacity: 0.18;
	filter: blur(55px);
	pointer-events: none;
}

.compass-cta .compass-cta-inner {
	position: relative;
	z-index: 1;
	max-width: none !important;
	padding: 44px 48px;
	margin: 0 !important;
	text-align: left;
}

.compass-cta .compass-cta-eyebrow {
	font-family: var(--font-body) !important;
	font-size: 0.7rem !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.14em !important;
	color: var(--salmon) !important;
	margin: 0 0 0.65rem !important;
}

.compass-cta .compass-cta-heading {
	font-family: var(--font-display) !important;
	font-size: clamp(1.5rem, 3vw, 2rem) !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.02em !important;
	color: var(--white) !important;
	/* Soft drop shadow keeps the headline crisp over the photo. */
	text-shadow: 0 2px 12px rgba(10, 30, 63, 0.55) !important;
	margin: 0 0 0.75rem !important;
}

.compass-cta .compass-cta-sub {
	font-family: var(--font-body) !important;
	font-size: 1.02rem !important;
	line-height: 1.6 !important;
	color: rgba(255, 255, 255, 0.86) !important;
	text-shadow: 0 1px 8px rgba(10, 30, 63, 0.5) !important;
	margin: 0 0 1.6rem !important;
	max-width: 620px;
}

/* ── COMPASS wordmark motif ──────────────────────────────────────
   Seven circular letter badges (C O M P A S S) in one tight inline row
   so they read as the word COMPASS. C is the gate in a coral→orange
   fill; the rest alternate teal / deep-teal, mirroring the playbook
   framework graphic. The seven move names sit once below the row in a
   single caption (.compass-cta-moves). Native <ul>/<li>, fills via CSS. */
.compass-cta .compass-cta-badges {
	list-style: none !important;
	display: flex !important;
	flex-wrap: nowrap;
	/* Tight wordmark: circles nearly touching, left-aligned with the eyebrow
	   + heading. ~56px circles + 9px gaps ≈ 450px, comfortably one row. */
	justify-content: flex-start !important;
	align-items: center;
	gap: 9px;
	margin: 0 0 0.7rem !important;
	padding: 0 !important;
}

.compass-cta .compass-cta-badges li.compass-badge {
	list-style: none;
	margin: 0 !important;
	padding: 0;
	display: flex;
	flex: 0 0 auto;
}

.compass-cta .compass-badge .compass-badge__letter {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	font-family: var(--font-display) !important;
	font-size: 1.4rem;
	font-weight: 800;
	line-height: 1;
	color: var(--white) !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

/* C — the gate. Coral→orange, matches the playbook gate card. */
.compass-cta .compass-badge--gate .compass-badge__letter {
	background-image: linear-gradient(135deg, var(--salmon) 0%, var(--orange) 100%);
}

/* O M P A S S — alternating teal / deep-teal. */
.compass-cta .compass-badge--teal .compass-badge__letter {
	background-color: var(--teal);
}
.compass-cta .compass-badge--teal-dark .compass-badge__letter {
	background-color: var(--teal-dark);
}

/* Move names: one muted caption line under the wordmark, dot-separated,
   wraps naturally. Replaces the old per-badge labels that forced each
   circle into a wide column and spread the wordmark apart. */
.compass-cta .compass-cta-moves {
	font-family: var(--font-body) !important;
	font-size: 0.8rem !important;
	font-weight: 600 !important;
	line-height: 1.5 !important;
	letter-spacing: 0.01em !important;
	color: rgba(255, 255, 255, 0.8) !important;
	text-shadow: 0 1px 6px rgba(10, 30, 63, 0.6) !important;
	margin: 0 0 1.4rem !important;
	max-width: 560px;
}

.compass-cta .compass-cta-buttons {
	margin: 0 !important;
}

/* Coral action button — mirrors lib-btn-coral / playbook coral CTA */
.compass-cta .compass-cta-button .wp-block-button__link,
.compass-cta .compass-cta-button .wp-element-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-body) !important;
	font-size: 1.02rem !important;
	font-weight: 700 !important;
	color: var(--white) !important;
	background-color: var(--salmon) !important;
	background-image: none !important;
	padding: 0.9rem 2.1rem !important;
	border: none !important;
	border-radius: 100px !important;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
	text-decoration: none !important;
	text-shadow: none !important;
	transition: background-color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Button text is a bare text node — guarantee nothing paints behind it.
   Kills any inherited prose-link underline, any global/plugin <mark>-style
   highlight, and any selection/target highlight inside the pill. */
.compass-cta .compass-cta-button .wp-block-button__link *,
.compass-cta .compass-cta-button .wp-element-button * {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--white) !important;
	text-decoration: none !important;
}

.compass-cta .compass-cta-button .wp-block-button__link::selection,
.compass-cta .compass-cta-button .wp-element-button::selection {
	background: transparent;
	color: var(--white);
}

.compass-cta .compass-cta-button .wp-block-button__link::target-text,
.compass-cta .compass-cta-button .wp-element-button::target-text {
	background: transparent;
	color: var(--white);
}

.compass-cta .compass-cta-button .wp-block-button__link:hover,
.compass-cta .compass-cta-button .wp-element-button:hover {
	background: var(--salmon-dark) !important;
	color: var(--white) !important;
	transform: translateY(-2px);
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.compass-cta {
		margin: 2rem auto !important;
		border-radius: 16px;
		/* Narrow card: bias toward the navy end of the scrim and lift opacity
		   so the photo never washes the badges/labels out as the card narrows. */
		background-image:
			linear-gradient(
				160deg,
				rgba(10, 30, 63, 0.95) 0%,
				rgba(10, 30, 63, 0.88) 55%,
				rgba(13, 59, 84, 0.86) 100%
			),
			url('https://www.tourismtribe.com/wp-content/uploads/visitor-information-centre.webp');
	}
	.compass-cta .compass-cta-inner {
		padding: 30px 22px;
	}
	.compass-cta .compass-cta-sub {
		font-size: 0.98rem !important;
	}
	.compass-cta .compass-cta-button .wp-block-button__link,
	.compass-cta .compass-cta-button .wp-element-button {
		width: 100%;
		justify-content: center;
		font-size: 1rem !important;
	}
	.compass-cta .compass-cta-badges {
		/* Stay a tight one-line wordmark; smaller circles keep all seven on
		   one row even on the narrowest phones. */
		gap: 6px;
	}
	.compass-cta .compass-badge .compass-badge__letter {
		width: 40px;
		height: 40px;
		font-size: 1.05rem;
	}
	/* Caption may wrap to 2-3 lines on small screens — keep it legible. */
	.compass-cta .compass-cta-moves {
		font-size: 0.78rem !important;
	}
}

/* Force visible in block editor (no JS-based reveal here, but keep parity) */
.editor-styles-wrapper .compass-cta { opacity: 1 !important; }
