/**
 * IMS NPE Callout
 *
 * Full-bleed trade-show invitation band:
 *  Left  — NPE exhibit graphic
 *  Right — eyebrow, heading, description, meta chips, Expo Pass CTA
 *
 * Background gradient sampled from the official NPE2027 exhibitor banner
 * (deep indigo → royal cobalt, left-to-right).
 */

.ims-npe-callout {
	/* Sampled from NPE2027 exhibitor banner artwork */
	--ims-npe-blue-deep: #10046a;
	--ims-npe-blue-mid: #0b177b;
	--ims-npe-blue-bright: #1b3f97;
	--ims-npe-teal: #00c4cc;
	--ims-npe-teal-hover: #00aeb5;
	--ims-npe-ink: #ffffff;
	--ims-npe-muted: rgba(255, 255, 255, 0.78);

	background:
		radial-gradient(ellipse 55% 80% at 8% 50%, rgba(34, 152, 188, 0.28), transparent 60%),
		radial-gradient(ellipse 45% 70% at 92% 45%, rgba(0, 229, 255, 0.12), transparent 55%),
		linear-gradient(
			90deg,
			var(--ims-npe-blue-deep) 0%,
			var(--ims-npe-blue-mid) 48%,
			var(--ims-npe-blue-bright) 100%
		);
	color: var(--ims-npe-ink);
	width: 100%;
	max-width: none;
	overflow: hidden;
}

/* Full-bleed band: edge-to-edge blue, matching stock/careers callouts. */
.ims-npe-callout.alignfull,
.wp-block-group:has(> .ims-npe-callout) {
	width: 100%;
	max-width: none;
}

.wp-block-group:has(> .ims-npe-callout) {
	/* Kill theme global side padding so the blue reaches the viewport edges.
	   Match the deep indigo so any wrapper peek matches the gradient start. */
	padding-left: 0 !important;
	padding-right: 0 !important;
	background-color: #10046a !important;
	background-image: linear-gradient(90deg, #10046a 0%, #0b177b 48%, #1b3f97 100%) !important;
}

.ims-npe-callout__inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: clamp(28px, 4vw, 48px) clamp(16px, 4vw, 32px);
	display: grid;
	/* Graphic ~25% smaller than equal split; copy gets the freed space. */
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	align-items: center;
	gap: clamp(24px, 4vw, 48px);
}

/* Graphic — capped at ~75% of the prior full-column size */
.ims-npe-callout__media {
	position: relative;
	min-width: 0;
	width: 100%;
	max-width: 560px;
	justify-self: start;
}

.ims-npe-callout__media-link {
	display: block;
	border-radius: 12px;
	overflow: hidden;
	box-shadow:
		0 12px 40px rgba(0, 0, 0, 0.35),
		0 0 0 1px rgba(255, 255, 255, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ims-npe-callout__media-link:hover,
.ims-npe-callout__media-link:focus-visible {
	transform: translateY(-2px);
	box-shadow:
		0 18px 48px rgba(0, 0, 0, 0.4),
		0 0 0 1px rgba(0, 196, 204, 0.35);
	outline: none;
}

.ims-npe-callout__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1024 / 614;
	object-fit: cover;
	border-radius: 12px;
	vertical-align: middle;
}

/* Logo is baked into the exhibit graphic; keep badge hidden. */
.ims-npe-callout__logo-badge {
	display: none;
}

/* Copy column */
.ims-npe-callout__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
}

.ims-npe-callout__eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ims-npe-teal);
	line-height: 1.3;
}

.ims-npe-callout__title {
	margin: 0;
	font-size: clamp(26px, 3.6vw, 40px);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ims-npe-ink);
	text-wrap: balance;
}

.ims-npe-callout__desc {
	margin: 0;
	font-size: clamp(14.5px, 1.15vw, 16.5px);
	line-height: 1.55;
	color: var(--ims-npe-muted);
	max-width: 42ch;
}

.ims-npe-callout__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
}

.ims-npe-callout__meta li {
	display: inline-flex;
	align-items: center;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--ims-npe-ink);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	padding: 6px 12px;
	line-height: 1.2;
}

.ims-npe-callout__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	background: var(--ims-npe-teal);
	color: #0b1f3a;
	font-weight: 800;
	font-size: 15px;
	padding: 14px 24px;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 0 0 0 rgba(0, 196, 204, 0.4);
}

.ims-npe-callout__button:hover,
.ims-npe-callout__button:focus-visible {
	background: var(--ims-npe-teal-hover);
	color: #071527;
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(0, 196, 204, 0.35);
	outline: none;
}

/* Editor preview */
.ims-npe-callout--editor .ims-npe-callout__button {
	cursor: text;
}

.ims-npe-callout--editor .ims-npe-callout__media-link {
	pointer-events: none;
}

@media (max-width: 900px) {
	.ims-npe-callout__inner {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.ims-npe-callout__media {
		max-width: 420px;
		justify-self: center;
	}
}

@media (max-width: 520px) {
	.ims-npe-callout__inner {
		padding: 24px 16px;
	}

	.ims-npe-callout__button {
		width: 100%;
		justify-content: center;
	}
}
