/* STL Article Gate — frontend styles */

.stl-gate-wrap {
	position: relative;
}

html.stl-gate-scroll-lock,
body.stl-gate-scroll-lock {
	overflow: hidden;
}

/* Load-bearing for the "end of preview" trigger — needs real area. */
.stl-gate-sentinel {
	display: block;
	width: 100%;
	height: 1px;
}

/* Honeypot field: hidden from people, still submitted by bots. */
.stl-gate-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- The blur pane ---------- */

/* The article renders normally on load. When the gate fires, this pane is
   painted over everything below the preview — it blurs whatever sits behind
   it, so the article's own markup is never touched and the page never jumps. */
.stl-gate-frost {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 9999;
	pointer-events: none;
	background: rgba(255, 255, 255, 0.35);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	animation: stl-gate-fade-in 0.3s ease-out;
}

/* Browsers without backdrop-filter get an opaque veil instead. */
@supports not ( ( backdrop-filter: blur(6px) ) or ( -webkit-backdrop-filter: blur(6px) ) ) {
	.stl-gate-frost {
		background: rgba(255, 255, 255, 0.94);
	}
}

.stl-gate-wrap.is-gate-shown {
	user-select: none;
}

/* ---------- Overlay ---------- */

.stl-gate-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: flex-end;
	justify-content: center;
	background: rgba(17, 17, 17, 0.6);
}

.stl-gate-overlay.is-visible {
	display: flex;
	animation: stl-gate-fade-in 0.25s ease-out;
}

@keyframes stl-gate-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.stl-gate-panel {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: 92vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px 12px 0 0;
	padding: 32px 32px 28px;
	box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.25);
	animation: stl-gate-slide-up 0.3s ease-out;
}

@media (min-width: 640px) {
	.stl-gate-overlay {
		align-items: center;
	}
	.stl-gate-panel {
		border-radius: 12px;
	}
}

@keyframes stl-gate-slide-up {
	from { transform: translateY(24px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.stl-gate-headline {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	color: #111;
}

.stl-gate-subtext {
	margin: 0 0 20px;
	font-size: 15px;
	color: #555;
}

.stl-gate-field-row {
	display: flex;
	gap: 12px;
}

.stl-gate-field-row .stl-gate-field {
	flex: 1;
}

.stl-gate-field {
	margin-bottom: 14px;
}

.stl-gate-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 4px;
}

.stl-gate-field input[type="text"],
.stl-gate-field input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	font-size: 14px;
	border: 1px solid #ccc;
	border-radius: 6px;
}

.stl-gate-field input[type="text"]:focus,
.stl-gate-field input[type="email"]:focus {
	outline: none;
	border-color: #e3051c;
	box-shadow: 0 0 0 2px rgba(227, 5, 28, 0.15);
}

.stl-gate-disclaimer {
	background: #f7f7f7;
	border-radius: 8px;
	padding: 12px 14px;
}

.stl-gate-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: #444;
	font-weight: 400;
	cursor: pointer;
}

.stl-gate-checkbox-label input {
	margin-top: 3px;
	flex-shrink: 0;
}

.stl-gate-error {
	color: #c0142c;
	font-size: 13px;
	margin: 0 0 12px;
}

.stl-gate-submit {
	display: block;
	width: 100%;
	padding: 13px 20px;
	margin-top: 6px;
	background: #e3051c;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

.stl-gate-submit:hover {
	background: #c0142c;
}

.stl-gate-submit:disabled {
	opacity: 0.6;
	cursor: default;
}
