/**
 * Single Grantee / Recipient profile.
 */

.grantee-profile {
	background: var(--color-surface);
	color: var(--color-text);
}

.grantee-profile__hero-inner {
	max-width: var(--taf-page-max);
}

.grantee-profile__title {
	margin: 0;
	color: var(--color-text);
}

.grantee-profile__org {
	margin: 0;
	max-width: 45rem;
	font-family: var(--taf-font);
	font-weight: var(--font-light);
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	line-height: 1.35;
	color: var(--color-text);
}

.grantee-profile__body-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--taf-section-pad);
	align-items: start;
}

.grantee-profile__body-grid--solo {
	grid-template-columns: minmax(0, 1fr);
	max-width: 40.625rem;
}

.grantee-profile__media {
	margin: 0;
	aspect-ratio: 1328 / 678;
	overflow: hidden;
	background: var(--color-surface-muted);
}

.grantee-profile__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.grantee-profile__aside {
	min-width: 0;
}

.grantee-profile__logo {
	margin: 0;
	width: 7.8125rem;
	height: 7.8125rem;
	overflow: hidden;
	background: var(--color-surface-muted);
}

.grantee-profile__logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.grantee-profile__copy {
	color: var(--color-text);
}

.grantee-profile__copy > *:first-child {
	margin-top: 0;
}

.grantee-profile__copy > *:last-child {
	margin-bottom: 0;
}

.grantee-profile__links {
	width: 100%;
	max-width: 40.625rem;
}

.grantee-profile__info-header,
.grantee-profile__read-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: var(--taf-section-pad);
}

.grantee-profile__info-title,
.grantee-profile__read-title {
	margin: 0;
	color: var(--color-text);
}

.grantee-profile__info-all,
.grantee-profile__read-all {
	color: var(--color-text);
	text-decoration: none;
	white-space: nowrap;
}

.grantee-profile__info-all:hover,
.grantee-profile__info-all:focus-visible,
.grantee-profile__read-all:hover,
.grantee-profile__read-all:focus-visible {
	text-decoration: underline;
}

.grantee-profile__read {
	padding-block: var(--taf-section-pad);
	border-bottom: 1px solid var(--color-border);
}

.grantee-profile__read .container {
	position: relative;
}

@media (max-width: 900px) {
	.grantee-profile__body-grid {
		grid-template-columns: 1fr;
	}

	.grantee-profile__info-header,
	.grantee-profile__read-header {
		flex-direction: column;
		align-items: flex-start;
	}
}
