/*
 * RC7137 R53 (Nov 28): floating blog call to action. Plain CSS, scoped to .rc-blog-cta.
 * Brand values as the micro-course pages: ink #171717, primary #E21B48 / hover #C9002D.
 * Phones: slim bar at the bottom. 768px and up: small card bottom right.
 * z-index 90 keeps it under the header menus (110), the mobile menu overlay (99) and the inquiry modal (9998).
 * --rc-blog-cta-lift is set by blog-cta.js to sit above any other bar fixed to the bottom (cookie banner, compare bar).
 */
.rc-blog-cta {
	--rc-blog-cta-lift: 0px;
	position: fixed;
	z-index: 90;
	left: 0;
	right: 0;
	bottom: var(--rc-blog-cta-lift);
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 8px 8px 16px;
	padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
	background: #171717;
	color: #fff;
	font-size: 14px;
	line-height: 1.3;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, .18);
	transform: translateY(0);
	opacity: 1;
	transition: transform .25s ease, opacity .25s ease;
}
.rc-blog-cta *, .rc-blog-cta *::before, .rc-blog-cta *::after { box-sizing: border-box; }
.rc-blog-cta[hidden] { display: none; }
.rc-blog-cta.is-entering { transform: translateY(16px); opacity: 0; }
.rc-blog-cta__heading {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-weight: 500;
	color: #fff;
	/* Phones: the button carries the message; the heading hides when space is short. */
}
.rc-blog-cta__link {
	flex: 0 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 10px 14px;
	border-radius: 16px;
	background: #E21B48;
	color: #fff;
	font-weight: 500;
	text-decoration: none;
	text-align: center;
}
.rc-blog-cta__link:hover { background: #C9002D; color: #fff; }
.rc-blog-cta__link svg { flex: 0 0 auto; }
.rc-blog-cta__close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.rc-blog-cta__close:hover { background: rgba(255, 255, 255, .12); }
.rc-blog-cta a:focus-visible, .rc-blog-cta button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 419px) {
	.rc-blog-cta__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.rc-blog-cta__link { flex: 1 1 auto; }
}

@media (min-width: 768px) {
	.rc-blog-cta {
		left: auto;
		right: 24px;
		bottom: calc(24px + var(--rc-blog-cta-lift));
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		width: 300px;
		padding: 20px;
		border-radius: 24px;
		font-size: 15px;
		box-shadow: 0 8px 32px rgba(0, 0, 0, .22);
	}
	.rc-blog-cta__heading { padding-right: 36px; font-size: 18px; line-height: 1.25; }
	.rc-blog-cta__close { position: absolute; top: 8px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.rc-blog-cta, .rc-blog-cta.is-entering { transition: none; transform: none; opacity: 1; }
}

@media print {
	.rc-blog-cta { display: none !important; }
}
