/* [seo_text_collapsible] — згортання SEO-тексту (значення як у старій темі). */
.jn-seo-text {
	position: relative;
	margin: 0;
}

.jn-seo-text__content {
	position: relative;
}

.jn-seo-text h1,
.jn-seo-text h2,
.jn-seo-text h3 {
	margin-bottom: 15px;
	color: #1a1a1a;
	font-size: 24px;
	line-height: 1.4;
}

.jn-seo-text h4,
.jn-seo-text h5,
.jn-seo-text h6 {
	margin-bottom: 12px;
	color: #2a2a2a;
	font-size: 18px;
	line-height: 1.4;
}

.jn-seo-text__preview,
.jn-seo-text__more {
	color: #333;
	font-size: 15px;
	line-height: 1.7;
}

.jn-seo-text__preview p,
.jn-seo-text__more p {
	margin-bottom: 15px;
}

/* Згорнуто: внизу видимого тексту — затухання. */
.jn-seo-text:not(.is-expanded) .jn-seo-text__content::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 80px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 50%, #fff 100%);
	pointer-events: none;
}

.jn-seo-text__more {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.5s ease, opacity 0.4s ease;
}

.jn-seo-text.is-expanded .jn-seo-text__more {
	max-height: 10000px;
	opacity: 1;
}

.jn-seo-text .jn-seo-text__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto;
	height: auto;
	min-height: 0;
	margin: 20px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #0274be;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: normal;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
}

.jn-seo-text .jn-seo-text__toggle:hover {
	background: transparent;
	color: #025a9a;
}

.jn-seo-text .jn-seo-text__toggle:hover .jn-seo-text__label {
	text-decoration: underline;
}

.jn-seo-text .jn-seo-text__toggle:focus-visible {
	outline: 2px solid rgba(2, 116, 190, 0.4);
	outline-offset: 4px;
	border-radius: 2px;
}

.jn-seo-text__icon {
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.jn-seo-text.is-expanded .jn-seo-text__icon {
	transform: rotate(180deg);
}

@media (max-width: 767px) {
	.jn-seo-text h1,
	.jn-seo-text h2,
	.jn-seo-text h3 {
		font-size: 18px;
	}

	.jn-seo-text h4,
	.jn-seo-text h5,
	.jn-seo-text h6 {
		font-size: 16px;
	}

	.jn-seo-text__preview,
	.jn-seo-text__more {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jn-seo-text__more,
	.jn-seo-text__icon {
		transition: none;
	}
}
