.hpf-plants-browser,
.hpf-plant-card-shortcode {
	--hpf-forest: #073f34;
	--hpf-leaf: #0b5b49;
	--hpf-mint: #dfeee4;
	--hpf-cream: #fbf7ef;
	--hpf-paper: #fffdf8;
	--hpf-ink: #1e2824;
	--hpf-muted: #62706a;
	--hpf-line: rgba(7, 63, 52, 0.16);
	--hpf-gold: #c88b2f;
	--hpf-shadow: 0 26px 80px rgba(22, 37, 29, 0.14);
	color: var(--hpf-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.hpf-plants-browser {
	background:
		linear-gradient(180deg, rgba(251, 247, 239, 0.2), var(--hpf-cream) 24rem),
		var(--hpf-cream);
	margin-inline: calc(50% - 50vw);
	padding: 3rem max(1.25rem, calc((100vw - 76rem) / 2)) 4rem;
	width: 100vw;
}

.hpf-plant-card-shortcode {
	margin: 1.5rem 0;
	max-width: 27rem;
}

.hpf-plant-card-shortcode.is-small {
	max-width: 38rem;
}

.hpf-plants-browser *,
.hpf-plants-browser *::before,
.hpf-plants-browser *::after,
.hpf-plant-card-shortcode *,
.hpf-plant-card-shortcode *::before,
.hpf-plant-card-shortcode *::after {
	box-sizing: border-box;
}

.hpf-plants-browser a,
.hpf-plant-card-shortcode a {
	color: inherit;
}

.hpf-plants-browser img,
.hpf-plant-card-shortcode img {
	display: block;
	max-width: 100%;
}

.hpf-plant-card-shortcode-error {
	background: #fff6e6;
	border: 1px solid rgba(200, 139, 47, 0.35);
	border-radius: 7px;
	color: #674a08;
	font-size: 0.92rem;
	margin: 1rem 0;
	padding: 0.75rem 0.9rem;
}

.hpf-screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.hpf-directory-header {
	display: grid;
	gap: 0.85rem;
	margin: 0 0 1.65rem;
	max-width: 43rem;
}

.hpf-kicker {
	color: var(--hpf-gold);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin: 0;
	text-transform: uppercase;
}

.hpf-directory-title,
.hpf-section-title,
.hpf-card-title {
	color: var(--hpf-forest);
	font-family: Fraunces, Georgia, "Times New Roman", serif;
	font-weight: 700;
	letter-spacing: 0;
}

.hpf-directory-title {
	font-size: clamp(2.35rem, 6vw, 4.25rem);
	line-height: 1.02;
	margin: 0;
}

.hpf-directory-copy {
	color: #4c5652;
	font-size: 1.08rem;
	line-height: 1.6;
	margin: 0;
	max-width: 38rem;
}

.hpf-directory-layout {
	align-items: start;
	display: grid;
	gap: 1.35rem;
	grid-template-columns: minmax(15rem, 17.5rem) minmax(0, 1fr);
}

.hpf-filter-panel {
	background: rgba(255, 253, 248, 0.96);
	border: 1px solid rgba(7, 63, 52, 0.12);
	border-radius: 8px;
	box-shadow: 0 16px 44px rgba(21, 38, 30, 0.1);
	padding: 1rem;
	position: sticky;
	top: 1rem;
}

.hpf-filter-top {
	align-items: center;
	border-bottom: 1px solid rgba(7, 63, 52, 0.1);
	display: flex;
	gap: 0.75rem;
	justify-content: space-between;
	margin-bottom: 0.9rem;
	padding-bottom: 0.85rem;
}

.hpf-filter-title {
	color: var(--hpf-forest);
	font-size: 1rem;
	font-weight: 850;
	margin: 0;
}

.hpf-reset-button {
	background: transparent;
	border: 0;
	border-bottom: 1px solid currentColor;
	color: var(--hpf-forest);
	cursor: pointer;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 800;
	padding: 0;
}

.hpf-filter-group {
	border: 0;
	margin: 0;
	min-inline-size: 0;
	padding: 0.9rem 0;
}

.hpf-filter-group + .hpf-filter-group {
	border-top: 1px solid rgba(7, 63, 52, 0.1);
}

.hpf-filter-legend {
	color: var(--hpf-ink);
	font-size: 0.87rem;
	font-weight: 850;
	line-height: 1.3;
	margin: 0 0 0.55rem;
	padding: 0;
}

.hpf-filter-options {
	display: grid;
	gap: 0.42rem;
}

.hpf-filter-option {
	align-items: center;
	border-radius: 7px;
	color: #34413c;
	cursor: pointer;
	display: flex;
	font-size: 0.88rem;
	font-weight: 700;
	gap: 0.5rem;
	line-height: 1.25;
	min-height: 2rem;
	padding: 0.34rem 0.42rem;
}

.hpf-filter-option:hover,
.hpf-filter-option:focus-within {
	background: rgba(223, 238, 228, 0.62);
}

.hpf-filter-option input {
	accent-color: var(--hpf-forest);
	flex: 0 0 auto;
	height: 1rem;
	margin: 0;
	width: 1rem;
}

.hpf-results-panel,
.hpf-results-region {
	min-width: 0;
}

.hpf-results-toolbar {
	align-items: end;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.hpf-section-title {
	font-size: 1.75rem;
	line-height: 1.2;
	margin: 0;
}

.hpf-result-count {
	color: var(--hpf-muted);
	font-size: 0.92rem;
	font-weight: 800;
	margin: 0;
	text-align: right;
}

.hpf-directory-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hpf-card,
.hpf-mini-card {
	background: #fff;
	border: 1px solid rgba(7, 63, 52, 0.11);
	border-radius: 8px;
	box-shadow: 0 14px 36px rgba(21, 38, 30, 0.1);
	color: inherit;
	display: block;
	margin: 0;
	min-width: 0;
	overflow: hidden;
	text-align: left;
	text-decoration: none;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hpf-card:hover,
.hpf-card:focus-within,
.hpf-mini-card:hover,
.hpf-mini-card:focus {
	border-color: rgba(7, 63, 52, 0.28);
	box-shadow: 0 22px 48px rgba(21, 38, 30, 0.16);
	color: inherit;
	outline: none;
	transform: translateY(-4px);
}

.hpf-card-link {
	color: inherit;
	display: block;
	height: 100%;
	text-decoration: none;
}

.hpf-card-image,
.hpf-mini-image {
	background: var(--hpf-paper);
	margin: 0;
	overflow: hidden;
}

.hpf-card-image {
	aspect-ratio: 4 / 3;
}

.hpf-mini-image {
	aspect-ratio: 1.18 / 1;
}

.hpf-card-image img,
.hpf-mini-image img {
	height: 100%;
	object-fit: cover;
	object-position: center 52%;
	width: 100%;
}

.hpf-card-image img {
	transform: scale(1.08);
}

.hpf-mini-image img {
	transform: scale(1.18);
}

.hpf-card-image-placeholder {
	background:
		linear-gradient(135deg, rgba(11, 91, 73, 0.12), rgba(200, 139, 47, 0.11)),
		var(--hpf-paper);
	height: 100%;
	width: 100%;
}

.hpf-card-body {
	display: grid;
	gap: 0.95rem;
	padding: 1rem;
}

.hpf-card-title {
	font-size: 1.25rem;
	line-height: 1.2;
	margin: 0;
}

.hpf-card-copy {
	color: #33403b;
	font-size: 0.92rem;
	line-height: 1.55;
	margin: 0.55rem 0 0;
}

.hpf-card-botanical {
	color: var(--hpf-muted);
	font-size: 0.84rem;
	line-height: 1.35;
	margin: 0.28rem 0 0;
}

.hpf-card-basic,
.hpf-card-meta,
.hpf-card-taxonomy {
	min-width: 0;
}

.hpf-card-meta,
.hpf-card-taxonomy {
	border-top: 1px solid rgba(7, 63, 52, 0.1);
	padding-top: 0.9rem;
}

.hpf-card-meta {
	display: grid;
	gap: 0.5rem;
	margin: 0;
}

.hpf-attribute {
	align-items: baseline;
	color: #34413c;
	display: grid;
	font-size: 0.84rem;
	gap: 0.45rem;
	grid-template-columns: 7.6rem minmax(0, 1fr);
	line-height: 1.35;
}

.hpf-attribute-label {
	color: var(--hpf-forest);
	font-weight: 850;
	margin: 0;
	white-space: nowrap;
}

.hpf-attribute-value {
	color: var(--hpf-muted);
	margin: 0;
	min-width: 0;
}

.hpf-card-taxonomy,
.hpf-mini-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	justify-content: flex-start;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.hpf-taxonomy-tag,
.hpf-mini-tag {
	background: #e6f0e8;
	border-radius: 7px;
	color: var(--hpf-forest);
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 850;
	line-height: 1.2;
	padding: 0.38rem 0.58rem;
}

.hpf-tag-light {
	background: #f6e9bf;
	color: #674a08;
}

.hpf-tag-watering {
	background: #dbeefa;
	color: #164b65;
}

.hpf-tag-pet {
	background: #f6dddd;
	color: #74312f;
}

.hpf-empty {
	background: rgba(255, 253, 248, 0.96);
	border: 1px solid rgba(7, 63, 52, 0.12);
	border-radius: 8px;
	box-shadow: var(--hpf-shadow);
	color: var(--hpf-forest);
	padding: 1rem 1.1rem;
}

.hpf-empty p {
	margin: 0;
}

.hpf-pagination {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	justify-content: center;
	margin-top: 1.35rem;
}

.hpf-page-button {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(7, 63, 52, 0.18);
	border-radius: 8px;
	color: var(--hpf-forest);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 850;
	justify-content: center;
	min-height: 2.6rem;
	min-width: 2.6rem;
	padding: 0.55rem 0.8rem;
}

.hpf-page-button:hover,
.hpf-page-button:focus {
	border-color: rgba(7, 63, 52, 0.42);
	box-shadow: 0 12px 24px rgba(21, 38, 30, 0.1);
}

.hpf-page-button.is-active {
	background: var(--hpf-forest);
	border-color: var(--hpf-forest);
	color: #fff;
}

.hpf-page-button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.hpf-page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	justify-content: center;
}

.hpf-plants-browser.is-loading .hpf-results-region {
	opacity: 0.55;
	pointer-events: none;
}

.hpf-reset-button:focus-visible,
.hpf-filter-option:focus-within,
.hpf-card-link:focus-visible,
.hpf-page-button:focus-visible {
	outline: 3px solid rgba(200, 139, 47, 0.58);
	outline-offset: 3px;
}

@media (max-width: 1080px) {
	.hpf-directory-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.hpf-plants-browser {
		padding: 2rem 0.9rem 3rem;
	}

	.hpf-directory-layout {
		grid-template-columns: 1fr;
	}

	.hpf-filter-panel {
		position: static;
	}

	.hpf-filter-form {
		display: grid;
		gap: 0;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hpf-filter-top {
		grid-column: 1 / -1;
	}

	.hpf-filter-group {
		padding-right: 0.7rem;
	}

	.hpf-results-toolbar {
		align-items: start;
		flex-direction: column;
	}

	.hpf-result-count {
		text-align: left;
	}
}

@media (max-width: 560px) {
	.hpf-filter-form,
	.hpf-directory-grid {
		grid-template-columns: 1fr;
	}

	.hpf-attribute {
		gap: 0.1rem;
		grid-template-columns: 1fr;
	}
}
