/* Category page intro + type chips (inc/pfp-catalog-intro.php).
   Fonts, colours and the green link style come from the theme (.eyebrow, .catalog__title,
   .text-link--green, .rich). Only layout and the chips/tags are defined here. */

.cat-intro {
	--intro-muted: #5f6368;
	--intro-line: #d9d9d4;
	--intro-ink: #1f1f1f;
	display: grid;
	gap: 28px;
	margin-bottom: 36px;
}

@media (min-width: 1024px) {
	.cat-intro--photo {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 48px;
		align-items: start;
	}
}

/* Text column ------------------------------------------------------------- */

.cat-intro__eyebrow { margin-top: 18px; }

.cat-intro__desc {
	max-width: 60ch;
	margin-top: 16px;
	color: var(--intro-muted);
	font-size: 16px;
	line-height: 1.6;
}

.cat-intro__desc p { margin: 0 0 12px; }

.cat-intro__toggle {
	margin-top: 2px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	font: inherit;
}

/* "Complete your patio: Cushions | Rugs | Umbrellas" */
.cat-intro__links {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid var(--intro-line);
	font-size: 15px;
}

.cat-intro__links-label {
	display: block;
	margin-bottom: 6px;
	color: var(--intro-ink);
	font-weight: 600;
}

.cat-intro__links ul {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cat-intro__links li + li::before {
	content: "|";
	margin: 0 10px;
	color: var(--intro-line);
}

.cat-intro__links a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cat-intro__links a:hover { text-decoration-thickness: 2px; }

/* Photo + tags (same look as the swim spa tiles) -------------------------- */

.cat-intro__photo { margin: 0; }

.cat-intro__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #ecebe6;
}

.cat-intro__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cat-intro__tags {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cat-intro__tag {
	padding: 4px 9px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	background: rgba(0, 0, 0, 0.28);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
	backdrop-filter: blur(2px);
}

.cat-intro__caption { margin-top: 12px; font-size: 13px; }

/* Type chips above the grid ------------------------------------------------ */

.cat-types { margin: 0 0 18px; }

.cat-types__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cat-types__chip {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--intro-line, #d9d9d4);
	border-radius: 999px;
	background: #fff;
	color: #1f1f1f;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color 150ms ease, background-color 150ms ease;
}

.cat-types__chip:hover { border-color: #1f1f1f; }

.cat-types__chip.is-active {
	border-color: #1f1f1f;
	background: #1f1f1f;
	color: #fff;
}