/* Fig Tree Edition enhancements. Kept separate from the vendor stylesheet. */

.figtree-skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100000;
	padding: 10px 16px;
	border-radius: 6px;
	background: #1c2539;
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	transform: translateY(-180%);
	transition: transform 0.2s ease;
}

.figtree-skip-link:focus {
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
	margin: 0;
	transform: translateY(0);
}

.figtree-invena-edition :where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid #eaa638;
	outline-offset: 3px;
}

.figtree-invena-edition img {
	max-width: 100%;
	height: auto;
}

.figtree-menu-toggle,
.figtree-menu-close {
	border: 0;
	padding: 10px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	line-height: 1;
}

.figtree-menu-toggle svg {
	display: block;
}

.figtree-floating-actions {
	pointer-events: none;
}


/*
 * Remove obsolete third-party scroll-to-top controls.
 *
 * Some Elementor/vendor add-ons append #scrollUp or a similarly named link
 * directly below #page. When that add-on's companion CSS is missing, the link
 * falls back into normal document flow and creates a white strip below the
 * footer. Fig Tree already provides #figtree-back-to-top, so these duplicates
 * are intentionally suppressed.
 */
body > #scrollUp,
body > #scroll-up,
body > #scroll-top,
body > #back-to-top,
body > #top-to-bottom,
body > .scrollUp,
body > .scroll-up,
body > .scroll-top,
body > .scroll-to-top,
body > .back-to-top:not(#figtree-back-to-top),
body > .go-top,
body > .to-top,
body > .rts-scroll-top,
body > a[href="#top"]:not(#figtree-back-to-top),
body > a[href="#page"]:not(#figtree-back-to-top) {
	display: none !important;
	position: fixed !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
}

html,
body,
#page {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

/* Both controls live in one fixed dock by default. The arrow can optionally use its own saved position. */
.figtree-floating-actions.is-dock {
	position: fixed !important;
	right: max(var(--figtree-dock-right, 20px), env(safe-area-inset-right, 0px)) !important;
	bottom: calc(var(--figtree-dock-bottom, 20px) + env(safe-area-inset-bottom, 0px)) !important;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	width: 90px;
	margin: 0;
	padding: 0;
	isolation: isolate;
}

.ftt-wa-wrap {
	position: relative;
	flex: 0 0 90px;
	width: 90px;
	height: 90px;
	pointer-events: none;
}

.ftt-wa-ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	animation: figtree-wa-spin 12s linear infinite;
	pointer-events: none;
	user-select: none;
}

.ftt-wa-ring text {
	fill: #1c2539;
	font-size: var(--figtree-wa-ring-font-size, 8.5px);
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.ftt-wa-float {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	min-width: 52px;
	min-height: 52px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	pointer-events: auto;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.ftt-wa-float:hover,
.ftt-wa-float:focus-visible {
	color: #fff;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.3);
	transform: translate(-50%, -50%) scale(1.06);
}

#figtree-back-to-top.figtree-back-to-top {
	position: fixed !important;
	right: max(var(--figtree-btt-desktop-right, 41px), env(safe-area-inset-right, 0px)) !important;
	bottom: calc(var(--figtree-btt-desktop-bottom, 120px) + env(safe-area-inset-bottom, 0px)) !important;
	z-index: 100050 !important;
	display: none;
	align-items: center;
	justify-content: center;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	background: var(--e-global-color-primary, #1c2539);
	color: #fff;
	line-height: 1;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
	cursor: pointer;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	pointer-events: auto;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

#figtree-back-to-top.figtree-back-to-top:hover,
#figtree-back-to-top.figtree-back-to-top:focus-visible {
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.3);
	transform: translateY(0) scale(1.05);
}

#figtree-back-to-top.figtree-back-to-top.scroll_visible {
	display: flex;
	opacity: 1 !important;
	transform: translateY(0) !important;
}


@keyframes figtree-wa-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
	.figtree-floating-actions.is-dock {
		right: max(var(--figtree-dock-mobile-right, 14px), env(safe-area-inset-right, 0px)) !important;
		bottom: calc(var(--figtree-dock-mobile-bottom, 16px) + env(safe-area-inset-bottom, 0px)) !important;
		gap: 8px;
		width: 82px;
	}

	.ftt-wa-wrap {
		flex-basis: 82px;
		width: 82px;
		height: 82px;
	}

	.ftt-wa-ring text {
		font-size: var(--figtree-wa-ring-font-size-mobile, 8px);
	}

	.ftt-wa-float {
		width: 50px;
		height: 50px;
		min-width: 50px;
		min-height: 50px;
	}

	#figtree-back-to-top.figtree-back-to-top {
		right: max(var(--figtree-btt-mobile-right, 32px), env(safe-area-inset-right, 0px)) !important;
		bottom: calc(var(--figtree-btt-mobile-bottom, 106px) + env(safe-area-inset-bottom, 0px)) !important;
		flex-basis: 46px;
		width: 46px;
		height: 46px;
		min-width: 46px;
		min-height: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.ftt-wa-ring {
		animation: none;
	}
}

/* Performance-safe font fallback used when Google Fonts is disabled. */
.figtree-system-fonts {
	--e-global-typography-primary-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--e-global-typography-secondary-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--e-global-typography-text-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-primary: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--body-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* The optional loader now exits after DOM readiness rather than waiting for
   every image and third-party request. */
#de-loader {
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

#de-loader.figtree-loader-hidden {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* Keep the first paint visually stable while remote fonts are still loading. */
:root {
	--e-global-typography-primary-font-family: "Red Hat Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--e-global-typography-secondary-font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--e-global-typography-text-font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* Global editorial header for every standard blog post. */
.single-post .figtree-single-post-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(54px, 7vw, 100px) 20px clamp(48px, 6vw, 86px);
	background:
		linear-gradient(170deg, rgba(193, 222, 213, 0.5) 0 17%, transparent 17.2%),
		linear-gradient(187deg, rgba(215, 235, 229, 0.68) 0 23%, transparent 23.2%),
		linear-gradient(180deg, #eef7f4 0%, #ffffff 76%);
	text-align: left;
}

.single-post .figtree-single-post-hero::before,
.single-post .figtree-single-post-hero::after {
	position: absolute;
	content: "";
	border: 8px solid rgba(28, 37, 57, 0.06);
	border-radius: 50%;
	pointer-events: none;
}

.single-post .figtree-single-post-hero::before {
	left: 5%;
	bottom: 12%;
	width: 92px;
	height: 92px;
}

.single-post .figtree-single-post-hero::after {
	right: 10%;
	top: 24%;
	width: 66px;
	height: 66px;
}

.single-post .figtree-single-post-hero .container {
	position: relative;
	z-index: 1;
	max-width: 1180px;
}

.figtree-single-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
	color: rgba(28, 37, 57, 0.58);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.figtree-single-breadcrumb a {
	color: rgba(28, 37, 57, 0.68);
	text-decoration: none;
}

.figtree-single-breadcrumb a:hover,
.figtree-single-breadcrumb a:focus-visible {
	color: var(--e-global-color-primary, #20282d);
}

.figtree-single-kicker {
	margin: 0 0 14px;
	color: #8fb7ab;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.3;
	text-transform: uppercase;
}

.single-post .reactheme-breadcrumbs .figtree-single-title {
	max-width: 980px;
	margin: 0;
	color: var(--e-global-color-secondary, #1c2539);
	font-size: clamp(38px, 4.4vw, 64px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.08;
	text-wrap: balance;
}

.figtree-single-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 11px;
	margin-top: 25px;
	color: rgba(28, 37, 57, 0.64);
	font-size: 15px;
	font-weight: 600;
}

.figtree-single-meta a {
	color: #82a99e;
	text-decoration: none;
}

.figtree-single-meta a:hover,
.figtree-single-meta a:focus-visible {
	color: var(--e-global-color-primary, #20282d);
}

.figtree-single-meta__separator {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(28, 37, 57, 0.28);
}

/* Single article spacing and image treatment. */
.single-post .reactheme-blog-details {
	padding-top: clamp(48px, 6vw, 82px) !important;
}

.single-post .news-details-inner > article {
	min-width: 0;
}

.figtree-single-featured-media,
.single-post .single-content-full .bs-desc > figure:first-child,
.single-post .single-content-full .bs-desc > .wp-block-image:first-child,
.single-post .single-content-full .bs-desc > p:first-child > img:only-child {
	margin: 0 0 clamp(30px, 4vw, 48px);
	border-radius: 18px;
	overflow: hidden;
	background: #f4f7f6;
}

.figtree-single-featured-media img,
.single-post .single-content-full .bs-desc > figure:first-child img,
.single-post .single-content-full .bs-desc > .wp-block-image:first-child img,
.single-post .single-content-full .bs-desc > p:first-child > img:only-child {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	border-radius: 18px;
}

.single-post .single-content-full .bs-desc > p:first-of-type:not(:has(img)) {
	color: #495561;
	font-size: 17px;
	line-height: 1.8;
}

.single-post .single-content-full .bs-desc h2 {
	margin-top: 38px;
	font-size: clamp(28px, 2.6vw, 38px);
	letter-spacing: -0.02em;
}

.single-post .single-content-full .bs-desc h3 {
	margin-top: 30px;
	font-size: clamp(23px, 2.1vw, 30px);
	letter-spacing: -0.015em;
}

@media (max-width: 991px) {
	.single-post .figtree-single-post-hero {
		padding-top: 48px;
		padding-bottom: 58px;
	}

	.single-post .reactheme-breadcrumbs .figtree-single-title {
		max-width: 820px;
		font-size: clamp(36px, 6vw, 52px);
	}
}

@media (max-width: 767px) {
	.single-post .figtree-single-post-hero {
		padding: 38px 14px 44px;
	}

	.single-post .figtree-single-post-hero::before,
	.single-post .figtree-single-post-hero::after {
		display: none;
	}

	.figtree-single-breadcrumb {
		margin-bottom: 20px;
		font-size: 12px;
	}

	.figtree-single-kicker {
		margin-bottom: 10px;
		font-size: 12px;
	}

	.single-post .reactheme-breadcrumbs .figtree-single-title {
		font-size: clamp(30px, 9.5vw, 42px);
		line-height: 1.12;
	}

	.figtree-single-meta {
		gap: 8px;
		margin-top: 18px;
		font-size: 13px;
	}

	.single-post .reactheme-blog-details {
		padding-top: 38px !important;
		padding-bottom: 50px !important;
	}

	.figtree-single-featured-media,
	.single-post .single-content-full .bs-desc > figure:first-child,
	.single-post .single-content-full .bs-desc > .wp-block-image:first-child,
	.single-post .single-content-full .bs-desc > p:first-child > img:only-child,
	.figtree-single-featured-media img,
	.single-post .single-content-full .bs-desc > figure:first-child img,
	.single-post .single-content-full .bs-desc > .wp-block-image:first-child img,
	.single-post .single-content-full .bs-desc > p:first-child > img:only-child {
		border-radius: 13px;
	}

	.single-post .single-content-full .bs-desc > p:first-of-type:not(:has(img)) {
		font-size: 16px;
	}
}
