/*
 * Header actions (October 2026): ma-header-actions.php.
 * Primary  — Get Training Insights →: smoky charcoal, white lettering, fine gold rule.
 * Secondary — Get Featured: white, thin charcoal border, dark lettering.
 * Both share the Site Menu control's height so the masthead row reads as one line.
 */

.ma-header-cta {
	align-items: center;
	border-radius: 2px;
	box-sizing: border-box;
	display: inline-flex;
	flex: 0 0 auto;
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 11.5px;
	font-style: normal;
	font-weight: 700;
	gap: 10px;
	height: 38px;
	justify-content: center;
	letter-spacing: .11em;
	line-height: 1;
	margin: 0;
	padding: 0 18px;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
	white-space: nowrap;
}

.ma-header-cta--primary {
	background: #24261f;
	border: 1px solid #24261f;
	box-shadow: inset 0 -2px 0 #b99a5e;
	color: #ffffff !important;
	font-size: 12.5px; /* one step larger than Get Featured; height stays 38px to align with search and theme */
	letter-spacing: .1em;
}

.ma-header-cta__label {
	color: inherit !important;
}

.ma-header-cta__arrow {
	color: #d6bd84;
	display: inline-block;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1;
	transition: transform .18s ease;
}

.ma-header-cta--primary:hover,
.ma-header-cta--primary:focus-visible {
	background: #171714;
	border-color: #b99a5e;
	box-shadow: inset 0 -2px 0 #b99a5e;
	color: #ffffff !important;
}

.ma-header-cta--primary:hover .ma-header-cta__arrow,
.ma-header-cta--primary:focus-visible .ma-header-cta__arrow {
	transform: translateX(2px);
}

/* Get Featured: the editorial invitation — muted antique gold (the newsletter button's gold), bold charcoal lettering. */
.ma-header-cta--secondary {
	background: #c29a50;
	border: 1px solid #c29a50;
	color: #171714 !important;
	font-size: 12.5px;
	letter-spacing: .1em;
	padding: 0 20px;
}

.ma-header-cta--secondary .ma-header-cta__arrow {
	color: #171714;
}

.ma-header-cta--secondary:hover,
.ma-header-cta--secondary:focus-visible {
	background: #b08b45;
	border-color: #9b7731;
	color: #171714 !important;
}

.ma-header-cta--secondary:hover .ma-header-cta__arrow,
.ma-header-cta--secondary:focus-visible .ma-header-cta__arrow {
	transform: translateX(2px);
}

.ma-header-cta:focus-visible {
	outline: 2px solid #b99a5e;
	outline-offset: 3px;
}

.ma-header-cta--secondary:focus-visible {
	outline-color: #24261f;
}

/* ---------- Desktop: the shared Elementor header template ---------- */

.elementor-1954 .elementor-element-5a699ca > .elementor-widget-container {
	align-items: center;
	display: flex;
	gap: 12px;
}

.ma-header-actions {
	align-items: center;
	display: flex;
}

.elementor-1954 .elementor-element-db6a733 {
	flex: 0 0 auto !important;
	margin-right: 10px !important; /* replaces the old 47px offset kept for the retired right-menu button */
	width: auto !important;
}

.ma-header-actions--right {
	justify-content: flex-end;
}

@media (min-width: 900px) {
	/* Site Menu keeps its own width; Get Featured sits beside it. */
	body.ma-frontier-nav #site-header .elementor-element-5a699ca {
		flex: 0 0 auto !important;
		width: auto !important;
	}

	body.ma-frontier-nav #site-header .elementor-element-ca60ed3 {
		column-gap: 6px !important;
		flex-wrap: nowrap !important;
		justify-content: flex-end !important;
	}
}

/* Narrower desktops: the same buttons, set a little tighter so nothing crowds the masthead. */
@media (min-width: 900px) and (max-width: 1199px) {
	.elementor-1954 .ma-header-cta {
		font-size: 11px;
		gap: 8px;
		letter-spacing: .07em;
		padding: 0 13px;
	}

	.elementor-1954 .ma-header-cta--primary,
	.elementor-1954 .ma-header-cta--secondary {
		font-size: 12px;
	}

	.elementor-1954 .elementor-element-feef8c7 > .elementor-widget-container {
		padding-left: 4px !important;
	}
}

@media (min-width: 900px) and (max-width: 1099px) {
	.elementor-1954 .ma-header-cta {
		letter-spacing: .05em;
		padding: 0 12px;
	}

	.elementor-1954 .ma-header-cta__arrow {
		display: none;
	}

	.elementor-1954 .elementor-element-db6a733 {
		margin-right: 4px !important;
	}
}

/* Dark appearance */
body[data-theme="dark"] .ma-header-cta--primary {
	background: #24261f;
	border-color: #60543c;
	color: #ffffff !important;
}

body[data-theme="dark"] .ma-header-cta--primary:hover,
body[data-theme="dark"] .ma-header-cta--primary:focus-visible {
	background: #2e3028;
	border-color: #d0a64e;
}

body[data-theme="dark"] .ma-header-cta--secondary {
	background: #c29a50;
	border-color: #c29a50;
	color: #11110f !important;
}

body[data-theme="dark"] .ma-header-cta--secondary:hover,
body[data-theme="dark"] .ma-header-cta--secondary:focus-visible {
	background: #d0a64e;
	border-color: #e2c376;
	color: #11110f !important;
}

body[data-theme="dark"] .ma-header-cta--secondary:focus-visible {
	outline-color: #e2c376;
}

/* ---------- Tablet and mobile: slim row under the Foxiz mobile header ---------- */

.ma-mobile-actions {
	display: none;
}

@media (max-width: 1024px) {
	#header-mobile .ma-mobile-actions {
		align-items: center;
		box-sizing: border-box;
		display: flex;
		gap: 10px;
		justify-content: center;
		padding: 2px 20px 14px;
		width: 100%;
	}

	#header-mobile .ma-mobile-actions .ma-header-cta {
		font-size: 11.5px;
		height: 44px;
		padding: 0 20px;
	}

	#header-mobile .ma-mobile-actions .ma-header-cta--primary,
	#header-mobile .ma-mobile-actions .ma-header-cta--secondary {
		font-size: 12.5px;
	}
}

@media (max-width: 767px) {
	#header-mobile .ma-mobile-actions {
		padding: 0 14px 12px;
	}

	#header-mobile .ma-mobile-actions .ma-header-cta {
		letter-spacing: .09em;
		padding: 0 14px;
	}

	#header-mobile .ma-mobile-actions .ma-header-cta--primary {
		flex: 1 1 auto;
	}
}

/* Narrow phones: the two invitations stack as full-width buttons, so neither label is squeezed. */
@media (max-width: 479px) {
	#header-mobile .ma-mobile-actions {
		align-items: stretch;
		flex-direction: column;
		gap: 8px;
	}

	#header-mobile .ma-mobile-actions .ma-header-cta {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ma-header-cta,
	.ma-header-cta__arrow {
		transition: none;
	}
}
