/**
 * Contributors block
 */

.contributors-block {
	padding-top: 4rem;
	padding-bottom: 4rem;
	width: 100%;
}

@media (min-width: 1024px) {
	.contributors-block {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}
}

.contributors-block.alignfull {
	max-width: none;
	width: 100%;
}

.contributors-block__container {
	max-width: 87.5rem;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.contributors-block__title {
	font-family: "Clash Display Variable", Figtree, ui-sans-serif, system-ui, sans-serif;
	font-size: 2rem;
	font-weight: 500;
	line-height: 0.95;
	margin: 0 0 2.5rem;
}

@media (min-width: 1024px) {
	.contributors-block__title {
		font-size: 3.5rem;
		margin-bottom: 3.5rem;
	}
}

.contributors-block--text-light .contributors-block__title,
.contributors-block--text-light .contributors-block__footer {
	color: #ffffff;
}

.contributors-block--text-light .contributors-block__footer {
	opacity: 0.92;
}

.contributors-block--text-dark .contributors-block__title {
	color: var(--wp--preset--color--primary, #113743);
}

.contributors-block--text-dark .contributors-block__footer {
	color: var(--wp--preset--color--primary, #113743);
}

.contributors-block__groups {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.contributors-block__group + .contributors-block__group {
	border-top: 1px dashed rgba(17, 55, 67, 0.18);
	margin-top: 2.5rem;
	padding-top: 2.5rem;
}

.contributors-block--text-light .contributors-block__group + .contributors-block__group {
	border-top-color: rgba(255, 255, 255, 0.22);
}

@media (min-width: 1024px) {
	.contributors-block__group + .contributors-block__group {
		margin-top: 3.5rem;
		padding-top: 3.5rem;
	}
}

.contributors-block__group-title {
	font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	margin: 0 0 1.25rem;
	text-transform: uppercase;
}

.contributors-block--text-light .contributors-block__group-title {
	color: rgba(255, 255, 255, 0.75);
}

.contributors-block--text-dark .contributors-block__group-title {
	color: rgba(17, 55, 67, 0.65);
}

/* Cards layout */
.contributors-block__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 640px) {
	.contributors-block__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

@media (min-width: 1024px) {
	.contributors-block__grid {
		gap: 1.5rem;
	}
}

.contributors-card {
	border-radius: 1rem;
	display: flex;
	overflow: hidden;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contributors-card.bg-background,
.contributors-card:not([class*="bg-"]) {
	box-shadow: 0 1px 3px rgba(17, 55, 67, 0.08);
}

.contributors-block--cards.bg-secondary .contributors-card.bg-background,
.contributors-block--cards.bg-filter .contributors-card.bg-background {
	box-shadow: 0 2px 8px rgba(17, 55, 67, 0.1);
}

.contributors-card:hover {
	transform: translateY(-2px);
}

.contributors-card.bg-background:hover,
.contributors-card:not([class*="bg-"]):hover {
	box-shadow: 0 8px 24px rgba(17, 55, 67, 0.12);
}

.contributors-card__accent {
	background-color: var(--wp--preset--color--secondary, #abf4c4);
	flex-shrink: 0;
	width: 4px;
}

.contributors-block--text-light .contributors-card__accent {
	background-color: rgba(171, 244, 196, 0.85);
}

.contributors-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.375rem;
	padding: 1.125rem 1.25rem;
}

@media (min-width: 1024px) {
	.contributors-card__body {
		padding: 1.25rem 1.5rem;
	}
}

.contributors-card__name {
	font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
	text-decoration: none;
}

@media (min-width: 1024px) {
	.contributors-card__name {
		font-size: 1.0625rem;
	}
}

.contributors-card__affiliation {
	font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
	font-size: 0.9375rem;
	line-height: 1.45;
	margin: 0;
}

.contributors-card--text-light .contributors-card__name,
.contributors-card--text-light .contributors-card__affiliation {
	color: #ffffff;
}

.contributors-card--text-light .contributors-card__affiliation {
	opacity: 0.8;
}

.contributors-card--text-dark .contributors-card__name {
	color: var(--wp--preset--color--primary, #113743);
}

.contributors-card--text-dark .contributors-card__affiliation {
	color: rgba(17, 55, 67, 0.72);
}

a.contributors-card__name:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* List layout */
.contributors-block__list {
	display: flex;
	flex-direction: column;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.contributors-block__list-item {
	border-bottom: 1px solid rgba(17, 55, 67, 0.1);
	font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
	font-size: 1rem;
	line-height: 1.55;
	padding: 1rem 0;
}

.contributors-block--text-light .contributors-block__list-item {
	border-bottom-color: rgba(255, 255, 255, 0.15);
}

.contributors-block__list-item:first-child {
	padding-top: 0;
}

.contributors-block__list-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.contributors-block__list-name {
	font-weight: 700;
	text-decoration: none;
}

.contributors-block__list-affiliation {
	font-weight: 400;
}

.contributors-block__list--text-light .contributors-block__list-name,
.contributors-block__list--text-light .contributors-block__list-affiliation {
	color: #ffffff;
}

.contributors-block__list--text-light .contributors-block__list-affiliation {
	opacity: 0.85;
}

.contributors-block__list--text-dark .contributors-block__list-name {
	color: var(--wp--preset--color--primary, #113743);
}

.contributors-block__list--text-dark .contributors-block__list-affiliation {
	color: rgba(17, 55, 67, 0.78);
}

a.contributors-block__list-name:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.contributors-block__footer {
	border-top: 1px dashed rgba(17, 55, 67, 0.18);
	font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.55;
	margin: 2.5rem 0 0;
	max-width: none;
	padding-top: 2.5rem;
	width: 100%;
}

.contributors-block--text-light .contributors-block__footer {
	border-top-color: rgba(255, 255, 255, 0.22);
}

@media (min-width: 1024px) {
	.contributors-block__footer {
		font-size: 1.125rem;
		line-height: 1.5;
		margin-top: 3.5rem;
		padding-top: 3.5rem;
	}
}

.entry-content > .contributors-block.alignfull,
.single-post-content > .contributors-block.alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
}
