/**
 * Component: attorney profile header (Attorney Profile template), plus the
 * spacing of the profile's body column (header with the content, lists, CTA).
 *
 * The header is components/media-flow (the About Us intro's layout):
 * - Mobile: headshot full width (Figma 328 × 380), then name, job title and
 *   the page content.
 * - Tablet (48em): headshot floated at 300 / 1050 of the column; name, job
 *   title and the first paragraphs of the content beside it, the rest full
 *   width below; job title in capitals as on desktop.
 */

.attorney-profile {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--50);
}

.attorney-profile__lists {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--50);
}

.attorney-profile__cta {
	margin-block-start: calc(var(--wp--preset--spacing--80) - var(--wp--preset--spacing--50));
}

.attorney-header {
	--firm-media-flow-ratio: 300 / 347;
	--firm-media-flow-width: calc(100% * 300 / 1050);
	--firm-media-flow-background: var(--wp--preset--color--surface);
}

.attorney-header__placeholder {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 50%;
	inline-size: 42%;
	block-size: auto;
	translate: -50% -50%;
}

.attorney-header__heading {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
	margin-block-end: var(--wp--preset--spacing--50);
}

.attorney-header__name {
	color: var(--wp--preset--color--primary);
	overflow-wrap: break-word;
}

.attorney-header__job-title {
	margin: 0;
	color: var(--wp--preset--color--foreground);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body-lg);
	font-weight: 700;
	line-height: var(--wp--custom--line-height--h-6);
}

/* tablet: job title in capitals, as on desktop. */
@media (min-width: 48em) {
	.attorney-header__heading {
		gap: var(--wp--preset--spacing--20);
	}

	.attorney-header__job-title {
		text-transform: uppercase;
	}
}

/* desktop: Figma's 32px between the lists. */
@media (min-width: 80em) {
	.attorney-profile__lists {
		gap: var(--wp--preset--spacing--60);
	}
}
