.onf-project-listing {
	width: 100%;
}

.onf-project-filters {
	--onf-filter-accent: #00ad24;
	width: 100%;
	max-width: 310px;
	min-width: 0;
	color: inherit;
}

.onf-project-filters__heading {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 2px 0 16px;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.onf-project-filters__heading-icon {
	width: 26px;
	height: 26px;
	flex: none;
	color: var(--onf-filter-accent);
}

.onf-project-filters__chevron {
	width: 16px;
	height: 16px;
	flex: none;
	margin-left: auto;
	transition: transform 180ms ease;
}

.onf-project-filters__heading[aria-expanded="false"] .onf-project-filters__chevron {
	transform: rotate(180deg);
}

.onf-project-filters__controls {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
}

.onf-project-filters__field {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.onf-project-filters__label {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
}

.onf-project-filters__field select,
.onf-project-filters__multi-toggle {
	width: 100%;
	min-width: 0;
	height: 38px;
	min-height: 38px;
	padding: 0 12px;
	border: 1px solid var(--theme-border-color, #e6f0ee);
	border-radius: 5px;
	background-color: #fff;
	color: inherit;
	font: inherit;
	font-size: 13px;
	text-align: left;
}

.onf-project-filters__field select {
	padding-right: 36px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234c4c4c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
	background-position: right 12px center;
	background-repeat: no-repeat;
	background-size: 16px;
	cursor: pointer;
}

.onf-project-filters__multi {
	position: relative;
	min-width: 0;
}

.onf-project-filters__multi-toggle {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	cursor: pointer;
}

.onf-project-filters--enhanced .onf-project-filters__multi-toggle {
	display: flex;
}

.onf-project-filters__multi-value {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.onf-project-filters__multi-toggle svg {
	width: 16px;
	height: 16px;
	flex: none;
}

.onf-project-filters__multi-options {
	display: grid;
	gap: 2px;
	padding: 8px;
	background: #fff;
}

.onf-project-filters--enhanced .onf-project-filters__multi-options {
	position: absolute;
	z-index: 20;
	top: calc(100% + 4px);
	left: 0;
	width: 100%;
	max-height: min(220px, 50vh);
	overflow-y: auto;
	border: 1px solid var(--theme-border-color, #ddd);
	border-radius: 5px;
}

.onf-project-filters--enhanced .onf-project-filters__multi--open-up .onf-project-filters__multi-options {
	top: auto;
	bottom: calc(100% + 4px);
}

.onf-project-filters__multi-options[hidden] {
	display: none;
}

.onf-project-filters__option {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	padding: 7px 8px;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.3;
	cursor: pointer;
}

.onf-project-filters__option:hover,
.onf-project-filters__option:focus-within {
	background: var(--theme-palette-color-6, #f3f3f3);
}

.onf-project-filters__option input {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	accent-color: var(--onf-filter-accent);
}

.onf-project-filters__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin-top: 16px;
}

.onf-project-filters button.onf-project-filters__apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	height: 36px;
	min-height: 36px;
	padding: 4px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--onf-filter-accent);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.onf-project-filters__apply svg {
	width: 18px;
	height: 18px;
}

.onf-project-filters__clear svg {
	width: 21px;
	height: 21px;
}

.onf-project-filters button.onf-project-filters__apply:hover {
	background: color-mix(in srgb, var(--onf-filter-accent) 88%, black);
	color: #fff;
}

.onf-project-filters__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: #5f5f5f;
}

.onf-project-filters__clear:hover {
	color: var(--onf-filter-accent);
}

.onf-project-filters__heading:focus-visible,
.onf-project-filters__field select:focus-visible,
.onf-project-filters__multi-toggle:focus-visible,
.onf-project-filters__option input:focus-visible,
.onf-project-filters__apply:focus-visible,
.onf-project-filters__clear:focus-visible {
	outline: 2px solid var(--onf-filter-accent);
	outline-offset: 3px;
}

@media (max-width: 600px) {
	.onf-project-filters {
		max-width: none;
	}

	.onf-project-filters__field select,
	.onf-project-filters__multi-toggle {
		height: 44px;
		min-height: 44px;
	}
}

.onf-project-listing__header {
	margin-bottom: 40px;
}

.onf-project-listing__header::before {
	content: "";
	display: block;
	width: 76px;
	height: 2px;
	margin-bottom: 28px;
	background: currentColor;
}

.onf-project-listing__header .onf-project-listing__count {
	margin: 0;
}

.onf-project-card {
	display: grid;
	grid-template-columns: minmax(0, 28%) minmax(0, 1fr);
	gap: clamp(20px, 4vw, 48px);
	padding: 28px 0;
	border-top: 1px solid var(--theme-border-color, currentColor);
}

.onf-project-card--no-media {
	grid-template-columns: minmax(0, 1fr);
}

.onf-project-card__media img {
	display: block;
	width: 100%;
	height: auto;
}

.onf-project-card__content,
.onf-project-card__main {
	min-width: 0;
}

.onf-project-card__content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 20px;
	row-gap: 18px;
	align-content: start;
}

.onf-project-card__main {
	grid-column: 1;
	grid-row: 1;
}

.onf-project-card__title {
	margin: 0 0 12px;
}

.onf-project-card__title a {
	color: inherit;
}

.onf-project-card__intro {
	margin: 0;
	font-size: calc(var(--theme-font-size) - 2px);
}

.onf-project-card__expertise {
	display: flex;
	flex-wrap: wrap;
	grid-column: 1;
	grid-row: 2;
	gap: 6px;
}

.onf-project-card__pill {
	padding: 3px 12px;
	border: 0;
	border-radius: 999px;
	background-color: #acacad70;
	color: #4b4b4d;
	font-size: 11px;
}

.onf-project-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	justify-self: end;
	padding: 8px 16px;
	border-radius: 999px;
	background: #00ad24;
	color: #fff;
	font-size: 14px;
}

.onf-project-card__button:hover,
.onf-project-card__button:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.onf-project-listing__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
}

.onf-project-listing__pagination a,
.onf-project-listing__pagination span {
	display: inline-block;
	min-width: 0;
	min-height: 0;
	padding: 4px 0;
	color: #606060;
	font-family: inherit;
	font-size: 13px;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	text-decoration: none;
}

.onf-project-listing__pagination span[aria-current="page"] {
	color: #333333;
	font-weight: 700;
}

.onf-project-listing__pagination a:is(:hover, :focus-visible) {
	color: #054f11;
}

.onf-project-listing__pagination a:focus-visible {
	outline: 3px solid #1b1b1b;
	outline-offset: 3px;
}

@media (max-width: 800px) {
	.onf-project-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.onf-project-card__media {
		max-width: 320px;
	}

	.onf-project-card__content {
		grid-template-columns: minmax(0, 1fr);
	}

	.onf-project-card__button {
		grid-column: 1;
		grid-row: 3;
		justify-self: start;
	}
}
