/* ============================================================
   Senti Blocks — frontend + editor shared styles
   ============================================================ */

.section-wrapper { position: relative; }

.senti-section {
	position: relative;
	width: 100%;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	overflow: hidden;
	color: inherit;
	z-index: 5;
}

.senti-section__background {
	background-image: var(--senti-bg-image, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.refract .senti-section__background {
	display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
	.senti-section__inner {
		display: grid;
		grid-template-columns: 1fr 2fr 3fr;
		max-width: 1320px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		z-index: initial;
	}
}

.senti-section__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, calc(var(--senti-overlay, 40) / 100));
	z-index: 0;
}

.senti-section__inner {
	position: relative;
	z-index: 100;
	width: 100%;
	max-width: 860px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.senti-section .components-toggle-control__label {
	color: inherit;
}

.senti-section__context {
	margin: 0;
	font-size: clamp(0.7rem, 1.2vw, 0.85rem);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: inherit;
	line-height: 1.4;
	opacity: .65;
}

.senti-section__context::before {
	content: "";
	opacity: 1;
}

.senti-section__title {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: inherit;
	text-wrap: balance;
}

.senti-section__subtitle {
	margin: 0;
	font-size: clamp(1.1rem, 2vw, 1.5rem);
	font-weight: 400;
	line-height: 1.3;
	color: inherit;
	text-wrap: balance;
}

.senti-section__image {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.senti-section__background .senti-section__image { 
	display: block;
	position:absolute;
	top:50%; left: 50%; transform:translate(-50%,-50%);
	max-width: 80%;
	height: auto;
}

.refract .senti-section__background .senti-section__image { 
	display: block;
	position:relative;
	transform: none;
	max-width: 80%;
	height: auto;
	top:initial; left: initial; transform: none; 
	z-index: 10;
}

.senti-section__body {
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	line-height: 1.75;
	color: inherit;
}

.senti-section__body p {
	margin: 0 0 1em;
}

.senti-section__body p:last-child {
	margin-bottom: 0;
}

.senti-section__body a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.senti-section__body a:hover {
	opacity: 0.8;
}

.senti-section__body strong {
	color: inherit;
	font-weight: 700;
}

.senti-section__cta {
	display: inline-block;
	padding: 1rem;
	border-radius: 100rem;
	background-color: var(--accent);
	color: var(--bg);
	transition: var(--transition-base);
}

.senti-section__cta:hover {
	background-color: var(--accent);
	color: var(--text);
}

.alignfull .senti-section,
.senti-section.alignfull {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

/* ── Canvas ──────────────────────────────────────────────── */

.senti-section__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}
