/* „Czytaj więcej” dla długich tekstów SEO (agencja/seo-more.js). Bez JS tekst jest cały widoczny, a przycisk ukryty;
   klasę .is-collapsible dodaje dopiero skrypt, gdy tekst jest dłuższy niż pierwsze akapity. */
.g2-more__body {
	position: relative;
}

.g2-more.is-collapsible .g2-more__body {
	overflow: hidden;
	transition: max-height 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Zanikanie ostatnich linii zwiniętego tekstu. */
.g2-more.is-collapsible .g2-more__body::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 76px; /* tylko początek następnego akapitu — widoczne akapity zostają ostre */
	background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%);
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.g2-more.is-open .g2-more__body::after {
	opacity: 0;
}

.g2-more__btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	height: 54px;
	margin-top: 20px;
	padding: 0 28px;
	border: 1px solid #000;
	border-radius: 0;
	background: #fff;
	color: #000;
	font-family: inherit;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
}

.g2-more__btn[hidden] {
	display: none;
}

.g2-more__btn:hover,
.g2-more__btn:focus-visible {
	background: #000;
	color: #fff;
}

.g2-more__btn:focus {
	outline: none;
}

.g2-more__btn:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}

.g2-more__btn svg {
	flex: none;
	transition: transform 0.4s ease;
}

.g2-more.is-open .g2-more__btn svg {
	transform: rotate(180deg);
}

.g2-more.is-open .g2-more__btn {
	margin-top: 24px;
}

/* Gwiazdki oceny (Rate My Post) zaraz pod przyciskiem — na stronie dla deweloperów; wtyczka ustawia margin: 1rem 0
   selektorem z trzema klasami, więc tu jest o jedną więcej. */
.g2-more + .rmp-widgets-container.rmp-wp-plugin.rmp-main-container {
	margin-top: 48px;
}

@media (max-width: 767px) {
	.g2-more__btn {
		justify-content: center;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.g2-more.is-collapsible .g2-more__body,
	.g2-more__btn svg {
		transition: none;
	}
}
