.jx-sf {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	color: var(--jx-sf-color, #0f172a);
}

.jx-sf *,
.jx-sf *::before,
.jx-sf *::after {
	box-sizing: border-box;
}

.jx-sf-stage {
	position: relative;
}

.jx-sf--grow .jx-sf-stage,
.jx-sf--pin .jx-sf-stage,
.jx-sf--reveal .jx-sf-stage {
	height: var(--jx-sf-stage, 160vh);
}

.jx-sf-sticky {
	display: flex;
	justify-content: center;
	width: 100%;
}

.jx-sf--grow .jx-sf-sticky,
.jx-sf--pin .jx-sf-sticky,
.jx-sf--reveal .jx-sf-sticky {
	position: sticky;
	top: 12vh;
	z-index: 1;
}

.jx-sf-slot {
	display: flex;
	justify-content: center;
	width: 100%;
}

.jx-sf-card {
	position: relative;
	width: min(100%, var(--jx-sf-max, 720px));
	max-width: var(--jx-sf-max, 720px);
	margin-inline: auto;
	background: var(--jx-sf-bg, #fff);
	color: inherit;
	border-radius: var(--jx-sf-radius, 20px);
	border: var(--jx-sf-border, 0) solid var(--jx-sf-border-color, transparent);
	box-shadow: var(--jx-sf-shadow, 0 10px 30px rgba(15, 23, 42, 0.1));
	transform: scale(var(--jx-sf-scale, 1));
	transform-origin: center center;
	clip-path: inset(var(--jx-sf-inset, 0%) round var(--jx-sf-radius, 20px));
	transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.55s ease;
}

.jx-sf-card.is-linked,
.jx-sf--linked .jx-sf-card {
	transition: none;
}

.jx-sf.is-focused .jx-sf-card,
.jx-sf-card.is-focused {
	box-shadow: var(--jx-sf-shadow-focus, var(--jx-sf-shadow));
}

.jx-sf-card.is-portaled {
	position: fixed;
	z-index: var(--jx-sf-z, 10001);
	margin: 0;
	max-width: none;
}

.jx-sf-overlay {
	position: fixed;
	inset: 0;
	z-index: var(--jx-sf-z-overlay, 10000);
	background: var(--jx-sf-overlay, #0b1220);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	backdrop-filter: blur(var(--jx-sf-blur, 0px));
	-webkit-backdrop-filter: blur(var(--jx-sf-blur, 0px));
	transition: opacity 0.45s ease, visibility 0.45s ease;
}

.jx-sf--linked .jx-sf-overlay,
.jx-sf-overlay.is-linked {
	transition: none;
}

.jx-sf-overlay.is-on {
	visibility: visible;
}

.jx-sf-overlay.is-on:not(.is-inert) {
	pointer-events: auto;
}

.jx-sf-body {
	padding: var(--jx-sf-pad, 32px 36px);
	text-align: var(--jx-sf-align, center);
	overscroll-behavior: contain;
}

.jx-sf--closable .jx-sf-body,
.jx-sf-card--closable .jx-sf-body {
	padding-top: 52px;
}

.jx-sf--reveal .jx-sf-body {
	padding-right: calc(40px + var(--jx-sf-inset, 0%));
	padding-left: calc(40px + var(--jx-sf-inset, 0%));
	overflow-wrap: break-word;
}

.jx-sf--reveal .jx-sf-close {
	top: calc(12px + var(--jx-sf-inset, 0%));
	right: calc(12px + var(--jx-sf-inset, 0%));
}

.jx-sf-demo-title {
	margin: 0.25rem 0 0.35rem;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.jx-sf-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--jx-sf-color, #0f172a) 16%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--jx-sf-bg, #fff) 88%, transparent);
	color: var(--jx-sf-color, #0f172a);
	cursor: pointer;
}

.jx-sf-close:hover,
.jx-sf-close:focus-visible {
	outline: 2px solid var(--jx-sf-accent, #0f766e);
	outline-offset: 2px;
}

.jx-sf-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.jx-sf-kicker {
	margin: 0 0 0.55rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--jx-sf-accent, #0f766e);
}

.jx-sf-title,
.jx-sf-body h3 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.55rem, 3vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: var(--jx-sf-color, #0f172a);
}

.jx-sf-text,
.jx-sf-caption,
.jx-sf-body figcaption {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--jx-sf-muted, #475569);
}

.jx-sf-actions {
	margin: 0.35rem 0 0;
}

.jx-sf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.7rem 1.25rem;
	border-radius: 999px;
	background: var(--jx-sf-accent, #0f766e);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.jx-sf-btn:hover,
.jx-sf-btn:focus-visible {
	filter: brightness(1.08);
	color: #fff;
	outline: 2px solid var(--jx-sf-accent, #0f766e);
	outline-offset: 3px;
}

.jx-sf-hero,
.jx-sf-figure img,
.jx-sf-prose img {
	display: block;
	width: 100%;
	max-height: 320px;
	margin: 0 0 1rem;
	object-fit: cover;
	border-radius: 12px;
}

.jx-sf-figure {
	margin: 0;
}

.jx-sf-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
}

.jx-sf-gallery img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 12px;
}

.jx-sf-gallery figcaption,
.jx-sf-figure figcaption {
	margin: 0.4rem 0 0;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--jx-sf-muted, #475569);
}

.jx-sf-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 12px;
	background: #0f172a;
}

.jx-sf-embed iframe,
.jx-sf-embed video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.jx-sf-body p:last-child,
.jx-sf-caption:last-child {
	margin-bottom: 0;
}

.jx-sf--grow .jx-sf-body,
.jx-sf--pin .jx-sf-body,
.jx-sf--reveal .jx-sf-body,
.jx-sf.is-focused .jx-sf-body,
.jx-sf-card.is-focused .jx-sf-body {
	max-height: min(72vh, 820px);
	overflow: auto;
}

.jx-sf.is-static .jx-sf-stage {
	height: auto !important;
}

.jx-sf.is-static .jx-sf-sticky {
	position: static !important;
	top: auto !important;
}

.jx-sf.is-static .jx-sf-card {
	transform: none !important;
	clip-path: none !important;
}

.jx-sf.is-static .jx-sf-overlay,
.jx-sf.is-hidden {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.jx-sf-card,
	.jx-sf-overlay {
		transition: none !important;
	}
}

@media print {
	.jx-sf-overlay,
	.jx-sf-close {
		display: none !important;
	}

	.jx-sf-stage {
		height: auto !important;
	}

	.jx-sf-sticky {
		position: static !important;
	}

	.jx-sf-card {
		transform: none !important;
		clip-path: none !important;
		box-shadow: none !important;
	}
}
