/* Shop / breed archive SEO intro (template-parts/section-archive-intro-woo.php).
   Two quiet lines above the puppy grid; the full text stays in the DOM for crawlers. */
.archive-intro {
	--archive-intro-lh: 1.6;
	margin-bottom: 1rem;
	font-size: .9375rem;
	line-height: var(--archive-intro-lh);
	color: var(--bs-secondary-color, rgba(76, 76, 76, .75));
}

.archive-intro__text {
	max-height: calc(2em * var(--archive-intro-lh));
	overflow: hidden;
	transition: max-height .35s ease;
}

.archive-intro.is-clamped:not(.is-open) .archive-intro__text {
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, .35));
	mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, .35));
}

/* Editors paste <h2>s and spans with their own styles: flatten everything to body
   size so "two lines" is always exactly two lines. */
.archive-intro__text > * {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
}

/* Paragraph spacing only once expanded, so the collapsed view is two flush lines. */
.archive-intro.is-open .archive-intro__text > * + * {
	margin-top: .5em;
}

.archive-intro__text :is(h1, h2, h3, h4, h5, h6) {
	font-family: inherit;
	font-weight: 600;
	color: var(--bs-primary, #018c6e);
}

.archive-intro__text ul,
.archive-intro__text ol {
	padding-left: 1.25em;
}

.archive-intro__text a {
	color: var(--bs-primary, #018c6e);
}

.archive-intro__toggle {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	margin-top: .125rem;
	padding: 0;
	border: 0;
	background: none;
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--bs-primary, #018c6e);
	cursor: pointer;
}

.archive-intro__toggle[hidden] {
	display: none;
}

.archive-intro__toggle:hover .archive-intro__more,
.archive-intro__toggle:hover .archive-intro__less {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.archive-intro__toggle:focus-visible {
	outline: 2px solid var(--bs-primary, #018c6e);
	outline-offset: 3px;
	border-radius: 2px;
}

.archive-intro__toggle svg {
	transition: transform .25s ease;
}

.archive-intro__less,
.archive-intro.is-open .archive-intro__more {
	display: none;
}

.archive-intro.is-open .archive-intro__less {
	display: inline;
}

.archive-intro.is-open .archive-intro__toggle svg {
	transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
	.archive-intro__text,
	.archive-intro__toggle svg {
		transition: none;
	}
}
