.cxmpa-directory {
	--cxmpa-page: #f4f5f7;
	--cxmpa-surface: #ffffff;
	--cxmpa-involved: #eef2f6;
	--cxmpa-heading: #2b2e34;
	--cxmpa-text: #4a5560;
	--cxmpa-secondary: #6c757d;
	--cxmpa-muted: #8d96a0;
	--cxmpa-blue: #215b9d;
	--cxmpa-blue-hover: #1a4b81;
	--cxmpa-gold: #d6a84a;
	--cxmpa-border: #d9dee5;
	--cxmpa-shadow: 0 2px 9px rgba(43, 46, 52, 0.06);
	color: var(--cxmpa-text);
	width: 100%;
}

.cxmpa-directory *,
.cxmpa-directory *::before,
.cxmpa-directory *::after {
	box-sizing: border-box;
}

.cxmpa-directory__recognition-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	justify-content: center;
	margin: 28px 0 0;
	color: var(--cxmpa-secondary);
	font-size: 0.86rem;
}

.cxmpa-directory__recognition-legend span {
	align-items: center;
	display: inline-flex;
	gap: 7px;
}

.cxmpa-directory__recognition-legend i {
	color: var(--cxmpa-blue);
}

.cxmpa-directory__tools {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-bottom: 18px;
}

.cxmpa-directory__search-label {
	color: var(--cxmpa-heading);
	display: block;
	font-size: 0.84rem;
	font-weight: 700;
	max-width: 620px;
	width: 100%;
}

.cxmpa-directory__search-box {
	display: block;
	margin-top: 6px;
	position: relative;
}

.cxmpa-directory__search-box i {
	color: var(--cxmpa-muted);
	left: 14px;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.cxmpa-directory__search {
	background: var(--cxmpa-surface);
	border: 1px solid var(--cxmpa-border);
	border-radius: 5px;
	color: var(--cxmpa-heading);
	min-height: 44px;
	padding: 9px 13px 9px 40px;
	width: 100%;
}

.cxmpa-directory__search:focus {
	border-color: var(--cxmpa-blue);
	box-shadow: 0 0 0 3px rgba(33, 91, 157, 0.18);
	outline: 0;
}

.cxmpa-directory__filters {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	width: 100%;
}

.cxmpa-directory__filter {
	background: transparent;
	border: 1px solid var(--cxmpa-blue);
	border-radius: 5px;
	color: var(--cxmpa-blue);
	cursor: pointer;
	font-size: 0.86rem;
	font-weight: 700;
	min-height: 40px;
	padding: 7px 13px;
}

.cxmpa-directory__filter:hover,
.cxmpa-directory__filter:focus,
.cxmpa-directory__filter.is-active,
.cxmpa-directory__filter[aria-pressed="true"] {
	background: var(--cxmpa-blue);
	color: #fff;
}

.cxmpa-directory__filter:focus-visible {
	box-shadow: 0 0 0 3px rgba(33, 91, 157, 0.2);
	outline: 0;
}

.cxmpa-directory__results-summary {
	color: var(--cxmpa-secondary);
	font-size: 0.86rem;
	margin: 0 0 10px;
}

.cxmpa-directory__list {
	display: grid;
	gap: 14px;
}

.cxmpa-directory-row {
	align-items: start;
	background: var(--cxmpa-surface);
	border: 1px solid var(--cxmpa-border);
	border-left: 5px solid transparent;
	border-radius: 8px;
	box-shadow: var(--cxmpa-shadow);
	display: grid;
	gap: 24px;
	grid-template-columns: 175px minmax(0, 1fr);
	padding: 24px;
}

.cxmpa-directory-row.is-involved {
	background: var(--cxmpa-involved);
	border-left-color: var(--cxmpa-blue);
}

.cxmpa-directory-row[hidden] {
	display: none;
}

.cxmpa-directory-row__logo {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 86px;
	width: 175px;
}

.cxmpa-directory-row__logo a {
	display: block;
	width: 100%;
}

.cxmpa-directory-row__logo img {
	display: block;
	height: auto;
	width: 100%;
}

.cxmpa-directory-row__content {
	min-width: 0;
}

.cxmpa-directory-row__name-line {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-bottom: 2px;
}

.cxmpa-directory-row__name {
	color: var(--cxmpa-heading);
	font-size: clamp(1.18rem, 2vw, 1.35rem);
	font-weight: 700;
	line-height: 1.22;
	margin: 0;
	padding: 0;
}

.cxmpa-directory-row__recognition-icons {
	color: var(--cxmpa-blue);
	display: inline-flex;
	font-size: 0.9rem;
	gap: 12px;
}

.cxmpa-directory-row__recognition-icons i {
	text-align: center;
	width: 1.1rem;
}

.cxmpa-directory-row__type {
	color: var(--cxmpa-secondary);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.055em;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.cxmpa-directory-row__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0 0 12px;
	width: auto;
}

.cxmpa-directory-row__badges img {
	display: block;
	height: auto;
	width: 149px;
}

.cxmpa-directory-row__description {
	color: var(--cxmpa-text);
	font-size: 0.96rem;
	line-height: 1.58;
	margin: 0 0 14px;
}

.cxmpa-directory-row__links {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 9px 16px;
}

.cxmpa-directory-row__profile {
	align-items: center;
	background: var(--cxmpa-blue);
	border-radius: 5px;
	color: #fff;
	display: inline-flex;
	font-size: 0.86rem;
	font-weight: 700;
	min-height: 38px;
	padding: 7px 13px;
	text-decoration: none;
}

.cxmpa-directory-row__profile:hover,
.cxmpa-directory-row__profile:focus {
	background: var(--cxmpa-blue-hover);
	color: #fff;
}

.cxmpa-directory-row__website {
	color: var(--cxmpa-blue);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cxmpa-directory-row__website:hover,
.cxmpa-directory-row__website:focus {
	color: var(--cxmpa-blue-hover);
}

.cxmpa-directory__no-results,
.cxmpa-directory--empty,
.cxmpa-directory--unavailable {
	background: var(--cxmpa-surface);
	border: 1px solid var(--cxmpa-border);
	border-radius: 8px;
	padding: 28px;
	text-align: center;
}

.cxmpa-directory__no-results p,
.cxmpa-directory--empty p,
.cxmpa-directory--unavailable p {
	margin: 4px 0 0;
}

@media (max-width: 980px) {
	.cxmpa-directory-row {
		grid-template-columns: 150px minmax(0, 1fr);
	}

	.cxmpa-directory-row__logo {
		width: 150px;
	}
}

@media (max-width: 620px) {
	.cxmpa-directory__filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cxmpa-directory-row {
		gap: 16px;
		grid-template-columns: 1fr;
		padding: 19px;
	}

	.cxmpa-directory-row__logo {
		justify-content: flex-start;
		min-height: 0;
		width: 140px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cxmpa-directory *,
	.cxmpa-directory *::before,
	.cxmpa-directory *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
