  .hx-profile{
	--hxp-red:var(--wp--preset--color--primary,#cd262d);
	--hxp-charcoal:#2f3030;
	--hxp-gray:#515251;
	--hxp-light:#f4f4f4;
	--hxp-warm:#eeeae3;
	--hxp-border:#d5d5d5;
	margin-block:1.75rem
}

.hx-profile__filters{
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr)) auto;
	gap:1rem;
	align-items:end;
	margin-bottom:1rem;
	padding:1.25rem;
	border-top:4px solid var(--hxp-red);
	background:var(--hxp-light)
}

.hx-profile__filter label{
	display:block;
	margin-bottom:.4rem;
	font-weight:700
}

.hx-profile__filter input,
.hx-profile__filter select,
.hx-profile__clear{
	width:100%;
	min-height:44px;
	padding:.65rem .75rem;
	font:inherit
}

.hx-profile__filter input,
.hx-profile__filter select{
	border:1px solid #777;
	background:#fff
}

.hx-profile__clear{
	border:2px solid var(--hxp-charcoal);
	background:transparent;
	font-weight:700;
	cursor:pointer
}

.hx-profile__clear:hover,
.hx-profile__clear:focus-visible{
	background:var(--hxp-charcoal);
	color:#fff
}

.hx-profile__count{
	margin-bottom:1rem;
	font-weight:700
}

.hx-profile__item[hidden]{
	display:none!important
}

.hx-profile__name{
	margin:0 0 .25rem;
	font-size:1.25rem;
	line-height:1.25
}

.hx-profile__title{
	margin:0;
	font-size:.92rem;
	font-weight:700;
	line-height:1.35
}

.hx-profile__department{
	margin:.25rem 0 0;
	color:var(--hxp-gray);
	font-size:.92rem;
	line-height:1.35
}

.hx-profile__summary{
	margin-top:1rem;
	font-size:.92rem;
	line-height:1.45
}

.hx-profile__summary>:last-child{
	margin-bottom:0
}

.hx-profile__summary-title{
	font-size:1.1rem;
	line-height:1.3
}

.hx-profile__terms{
	display:flex;
	flex-wrap:wrap;
	gap:.5rem;
	max-width:820px;
	margin:1rem 0;
	padding:0;
	list-style:none
}

.hx-profile__pill{
	flex:0 0 auto;
	width:auto;
	padding:.38rem .75rem;
	border:1px solid #d8d8d8;
	border-radius:.65rem;
	background:#f4f4f4;
	color:#3f4040;
	font-size:.8rem;
	font-weight:700;
	line-height:1.2
}

/* Soft gray */
.hx-profile__pill:nth-child(3n+1){
	border-color:#d8d8d8;
	background:#f4f4f4;
	color:#3f4040
}

/* Warm cream */
.hx-profile__pill:nth-child(3n+2){
	border-color:#d5cdc0;
	background:var(--hxp-warm);
	color:#4b4740
}

/* Very light warm gray */
.hx-profile__pill:nth-child(3n+3){
	border-color:#d2d2cf;
	background:#e9e9e6;
	color:#3f4040
}

/* Keep the subtle variation compatible with the existing block setting */
.hx-profile--pills-subtle .hx-profile__pill{
	border-color:#d8d8d8;
	background:#f7f7f7;
	color:#3f4040
}

/* Override the legacy red/gray/cream class cycle.
   The nth-child rules above now control the restrained 3-color pattern. */
.hx-profile--pills-tinted .hx-profile__pill--1,
.hx-profile--pills-tinted .hx-profile__pill--2,
.hx-profile--pills-tinted .hx-profile__pill--3{
	border-color:#d8d8d8;
	background:#f4f4f4;
	color:#3f4040
}

.hx-profile--pills-tinted .hx-profile__pill:nth-child(3n+1){
	border-color:#d8d8d8;
	background:#f4f4f4;
	color:#3f4040
}

.hx-profile--pills-tinted .hx-profile__pill:nth-child(3n+2){
	border-color:#d5cdc0;
	background:var(--hxp-warm);
	color:#4b4740
}

.hx-profile--pills-tinted .hx-profile__pill:nth-child(3n+3){
	border-color:#d2d2cf;
	background:#e9e9e6;
	color:#3f4040
}

.hx-profile__contact{
	margin-top:1rem;
	font-size:.92rem;
	line-height:1.45
}

.hx-profile__contact p{
	margin:.2rem 0
}

.hx-profile__profile-link{
	margin:1rem 0 0;
	font-weight:700
}

.hx-profile__profile-link a::after{
	content:" →"
}

.hx-profile__empty{
	padding:1rem;
	background:var(--hxp-light);
	font-weight:700
}

.hx-profile__publications{
	font-size:.92rem;
	line-height:1.45
}

.hx-profile__publications h4{
	font-size:1.1rem;
	line-height:1.3
}

.hx-profile p{
	font-size:.92rem;
	line-height:1.45
}


/* ==================================================
   Research Editorial
   ================================================== */

.hx-profile--research_editorial .hx-profile__results{
	border-top:1px solid var(--hxp-border)
}

.hx-profile--research_editorial .hx-profile__item{
	display:grid;
	grid-template-columns:minmax(140px,190px) minmax(0,1fr);
	gap:1.75rem;
	padding-block:2rem;
	border-bottom:1px solid var(--hxp-border)
}

.hx-profile--research_editorial .hx-profile__image img{
	display:block;
	width:100%;
	aspect-ratio:4/5;
	object-fit:cover
}


/* ==================================================
   Research Cards
   ================================================== */

.hx-profile--research_cards .hx-profile__results{
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:1.5rem
}

.hx-profile--research_cards .hx-profile__item{
	display:flex;
	flex-direction:column;
	overflow:hidden;
	border:1px solid var(--hxp-border);
	background:#fff;
	box-shadow:0 .35rem 1rem rgba(0,0,0,.07)
}

.hx-profile--research_cards .hx-profile__image img{
	display:block;
	width:100%;
	aspect-ratio:4/3;
	object-fit:cover
}

.hx-profile--research_cards .hx-profile__content{
	display:flex;
	flex:1;
	flex-direction:column;
	padding:1.35rem
}

.hx-profile--research_cards .hx-profile__profile-link{
	margin-top:auto;
	padding-top:1rem
}


/* ==================================================
   Research Compact
   ================================================== */

.hx-profile--research_compact .hx-profile__results{
	display:grid;
	grid-template-columns:1fr;
	gap:1rem
}

.hx-profile--research_compact .hx-profile__item{
	position:relative;
	display:grid;
	grid-template-columns:140px minmax(0,1fr);
	gap:2rem;
	align-items:center;
	padding:2.25rem;
	background:var(--hxp-light)
}

.hx-profile--research_compact .hx-profile__item::before{
	content:"";
	position:absolute;
	left:0;
	top:3rem;
	bottom:3rem;
	width:3px;
	background:var(--hxp-red)
}

.hx-profile--research_compact .hx-profile__image img{
	display:block;
	width:140px;
	height:140px;
	border-radius:50%;
	object-fit:cover
}

.hx-profile--research_compact .hx-profile__summary{
	font-size:.95rem
}


/* ==================================================
   Responsive
   ================================================== */

@media(max-width:950px){

	.hx-profile__filters{
		grid-template-columns:1fr 1fr
	}

	.hx-profile--research_cards .hx-profile__results{
		grid-template-columns:repeat(2,minmax(0,1fr))
	}

}

@media(max-width:650px){

	.hx-profile__filters,
	.hx-profile--research_cards .hx-profile__results,
	.hx-profile--research_compact .hx-profile__results{
		grid-template-columns:1fr
	}

	.hx-profile--research_editorial .hx-profile__item{
		grid-template-columns:1fr
	}

	.hx-profile--research_editorial .hx-profile__image{
		max-width:190px
	}

	.hx-profile--research_compact .hx-profile__item{
		grid-template-columns:100px minmax(0,1fr);
		gap:1rem;
		padding:1rem
	}

	.hx-profile--research_compact .hx-profile__image img{
		width:100px;
		height:100px
	}

}