/**
 * Herd Profiles styles.
 *
 * Class names follow BEM (block__element--modifier), and every block starts
 * with "herd-profiles-" so it cannot collide with a theme or another plugin.
 * The theme hooks entry-title, entry-content, marsha-row, columns, and the
 * table classes stay in the markup for themes that style them.
 *
 * Breakpoints: md 768px, lg 1024px, xl 1440px.
 */

:root {
	--herd-profiles-font-sans: "Nunito Sans", sans-serif;
	--herd-profiles-color-green: #00ac3e;
	--herd-profiles-color-green-dark: #028833;
	--herd-profiles-color-white: #fff;
	--herd-profiles-color-gray-50: #fafafa;
	--herd-profiles-color-gray-100: #edeeee;
	--herd-profiles-color-gray-200: #cbcece;
	--herd-profiles-color-gray-500: #535c5c;
	--herd-profiles-color-gray-600: #3a4040;
	--herd-profiles-color-gray-700: #313737;
	--herd-profiles-color-gray-900: #131716;
}

/* Page: wrapper and title of the single profile and department archive pages. */

.herd-profiles-page {
	box-sizing: border-box;
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	padding: 1rem 1.5rem 4rem;
}

.herd-profiles-page__title {
	margin-bottom: 1rem;
	color: var(--herd-profiles-color-gray-700);
	font-family: var(--herd-profiles-font-sans);
	font-size: 1.875rem;
	font-weight: 600;
	line-height: calc(2.25 / 1.875);
	text-transform: uppercase;
}

@media (min-width: 1024px) {
	.herd-profiles-page {
		padding-top: 3rem;
	}

	.herd-profiles-page__title {
		font-size: 2.25rem;
		line-height: calc(2.5 / 2.25);
	}
}

@media (min-width: 1536px) {
	.herd-profiles-page {
		max-width: 1536px;
	}
}

/* Profile: the single profile page. */

.herd-profiles-profile__pronouns {
	text-transform: lowercase;
}

.herd-profiles-profile__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
}

.herd-profiles-profile__sidebar {
	overflow-wrap: anywhere;
}

.herd-profiles-profile__headshot {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 0.5rem;
}

.herd-profiles-profile__summary {
	margin-top: 1.5rem;
	margin-bottom: 2rem;
}

.herd-profiles-profile__position {
	margin-block: 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: calc(1.75 / 1.125);
}

.herd-profiles-profile__contact {
	display: flex;
	align-items: center;
	margin-block: 1rem;
}

.herd-profiles-profile__contact--top {
	align-items: flex-start;
}

.herd-profiles-profile__contact--compact {
	margin-block: 0.5rem;
}

.herd-profiles-profile__contact-icon {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin-right: 1rem;
	stroke: var(--herd-profiles-color-gray-200);
}

.herd-profiles-profile__contact--top .herd-profiles-profile__contact-icon {
	margin-top: 0.25rem;
}

.herd-profiles-profile__social {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 3rem;
}

.herd-profiles-profile__social-link {
	padding: 0.5rem;
	border-radius: 0.25rem;
	background-color: var(--herd-profiles-color-green);
	color: var(--herd-profiles-color-white);
}

.herd-profiles-profile__social-icon {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	fill: var(--herd-profiles-color-white);
}

.herd-profiles-profile__videos {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin-bottom: 3rem;
}

.herd-profiles-profile__video {
	aspect-ratio: 16 / 9;
}

.herd-profiles-profile__video-frame {
	display: block;
	width: 100%;
	height: 100%;
}

.herd-profiles-profile__biography {
	margin-top: 1rem;
	margin-bottom: 3rem;
}

.herd-profiles-profile__toggle-content {
	overflow-x: auto;
}

.herd-profiles-profile__list {
	display: flex;
	flex-direction: column;
}

.herd-profiles-profile__list-item {
	display: flex;
	align-items: flex-start;
	margin-block: 0.5rem;
	padding-inline: 0.75rem;
}

.herd-profiles-profile__list-icon {
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	margin-top: 0.25rem;
	margin-right: 1rem;
	fill: var(--herd-profiles-color-green);
}

.herd-profiles-profile__list-text {
	flex: 1;
}

@media (hover: hover) {
	.herd-profiles-profile__social-link:hover {
		background-color: var(--herd-profiles-color-green-dark);
		color: var(--herd-profiles-color-white);
	}
}

@media (min-width: 1024px) {
	.herd-profiles-profile__layout {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.herd-profiles-profile__main {
		grid-column: span 3 / span 3;
	}

	.herd-profiles-profile__videos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.herd-profiles-profile__list-icon {
		margin-top: 0;
	}
}

/* Contact item: an icon followed by a contact detail, shared by listing layouts. */

.herd-profiles-contact-item {
	display: flex;
	align-items: center;
	margin-block: 0.5rem;
}

.herd-profiles-contact-item__icon {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin-right: 1rem;
	color: var(--herd-profiles-color-gray-200);
	fill: currentColor;
}

.herd-profiles-contact-item__icon--small {
	width: 1rem;
	height: 1rem;
}

.herd-profiles-contact-item__icon--dark {
	color: var(--herd-profiles-color-gray-500);
}

.herd-profiles-contact-item__icon--accent {
	color: var(--herd-profiles-color-green);
}

/*
 * Row: one profile per bordered row (row, enhanced, and full profile layouts).
 * --profile widens the main column for the enhanced and full profile layouts,
 * --large-photo widens the photo column, and --half fits a row into half a card grid.
 */

.herd-profiles-row {
	display: flex;
	flex-wrap: wrap;
	margin-inline: -0.5rem;
	padding-block: 1.5rem;
	border-bottom: 1px solid var(--herd-profiles-color-gray-100);
}

.herd-profiles-row--half {
	width: 100%;
}

.herd-profiles-row__photo,
.herd-profiles-row__main,
.herd-profiles-row__aside {
	box-sizing: border-box;
	width: 100%;
	margin-top: 1.5rem;
}

.herd-profiles-row__main {
	overflow-wrap: anywhere;
}

.herd-profiles-row__image {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 0.5rem;
}

.herd-profiles-row__image--centered {
	margin-inline: auto;
}

.herd-profiles-row--half .herd-profiles-row__image {
	width: 100%;
}

.herd-profiles-row__name {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: calc(1.75 / 1.125);
}

.herd-profiles-row--profile .herd-profiles-row__name {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: calc(1.75 / 1.25);
	text-transform: uppercase;
}

.herd-profiles-row__name-link {
	text-decoration-line: underline;
}

.herd-profiles-row__meta {
	margin-top: 0.75rem;
	margin-bottom: 1rem;
}

.herd-profiles-row__position {
	font-weight: 600;
}

.herd-profiles-row__position--spaced {
	margin-bottom: 0.25rem;
}

.herd-profiles-row__bio {
	margin-top: 1.5rem;
}

@media (hover: hover) {
	.herd-profiles-row__name-link:hover {
		text-decoration-line: none;
	}
}

@media (min-width: 1024px) {
	.herd-profiles-row {
		margin-inline: -1.5rem;
	}

	.herd-profiles-row__photo,
	.herd-profiles-row__main,
	.herd-profiles-row__aside {
		margin-top: 0;
		padding-inline: 1.5rem;
	}

	.herd-profiles-row__photo {
		width: calc(100% / 6);
	}

	.herd-profiles-row__main,
	.herd-profiles-row__aside {
		width: calc(500% / 12);
	}

	.herd-profiles-row--profile .herd-profiles-row__main {
		width: 75%;
	}

	.herd-profiles-row--large-photo .herd-profiles-row__photo {
		width: 25%;
	}

	.herd-profiles-row--half .herd-profiles-row__photo {
		width: calc(100% / 3);
	}

	.herd-profiles-row--half .herd-profiles-row__main {
		width: calc(200% / 3);
	}
}

/* Two-up: places rows side by side (the row shortcode's two_per_row attribute). */

.herd-profiles-two-up {
	display: flex;
	flex-wrap: wrap;
}

.herd-profiles-two-up__item {
	box-sizing: border-box;
	width: 100%;
}

@media (min-width: 1024px) {
	.herd-profiles-two-up {
		margin-inline: -1.5rem;
	}

	.herd-profiles-two-up__item {
		width: 50%;
		padding-inline: 1.5rem;
	}
}

/* Card: shaded cards, three per row on large screens. */

.herd-profiles-card {
	display: flex;
	flex-wrap: wrap;
	margin-inline: 0;
}

.herd-profiles-card__item {
	box-sizing: border-box;
	display: flex;
	width: 100%;
	margin-bottom: 1rem;
	padding-inline: 0;
}

.herd-profiles-card__box {
	overflow-wrap: anywhere;
	box-sizing: border-box;
	width: 100%;
	padding: 1rem;
	border: 1px solid var(--herd-profiles-color-gray-200);
	background-color: var(--herd-profiles-color-gray-100);
}

.herd-profiles-card__name {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: calc(1.75 / 1.25);
}

.herd-profiles-card__body {
	display: flex;
	padding-top: 0.75rem;
}

.herd-profiles-card__body--grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.herd-profiles-card__photo {
	width: calc(100% / 3);
	margin-right: 1rem;
}

.herd-profiles-card__details {
	width: calc(200% / 3);
}

.herd-profiles-card__body--grid .herd-profiles-card__photo {
	width: auto;
	margin-right: 0;
}

.herd-profiles-card__body--grid .herd-profiles-card__details {
	width: auto;
	grid-column: span 2 / span 2;
}

.herd-profiles-card__image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 0.5rem;
}

.herd-profiles-card__position {
	font-weight: 600;
}

.herd-profiles-card__email-full {
	display: none;
}

@media (min-width: 1024px) {
	.herd-profiles-card {
		margin-inline: -1rem;
	}

	.herd-profiles-card__item {
		width: calc(100% / 3);
		margin-bottom: 2rem;
		padding-inline: 1rem;
	}

	.herd-profiles-card__item--half {
		width: 50%;
	}
}

@media (min-width: 1440px) {
	.herd-profiles-card__email-full {
		display: block;
	}

	.herd-profiles-card__email-short {
		display: none;
	}
}

/* Basic: photo beside name, position, and biography; two per row (three on full-width pages). */

.herd-profiles-basic__list {
	display: flex;
	flex-wrap: wrap;
}

.herd-profiles-basic__item {
	box-sizing: border-box;
	width: 100%;
	margin-bottom: 2rem;
}

.herd-profiles-basic__inner {
	display: flex;
	flex-flow: row wrap;
}

.herd-profiles-basic__photo,
.herd-profiles-basic__body {
	box-sizing: border-box;
	width: 100%;
}

.herd-profiles-basic__body {
	margin-top: 1rem;
}

.herd-profiles-basic__image {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 0.5rem;
	object-fit: cover;
}

.herd-profiles-basic__heading {
	font-size: 1.125rem;
	font-weight: 600;
	line-height: calc(1.75 / 1.125);
}

.herd-profiles-basic__name {
	margin-bottom: 0.25rem;
}

.herd-profiles-basic__position,
.herd-profiles-basic__bio-text {
	color: var(--herd-profiles-color-gray-500);
}

.herd-profiles-basic__bio {
	margin-top: 0.25rem;
	font-size: 1.125rem;
	line-height: calc(1.75 / 1.125);
}

@media (min-width: 1024px) {
	.herd-profiles-basic__list {
		margin-inline: -1.5rem;
	}

	.herd-profiles-basic__item {
		width: 50%;
		padding-inline: 1.5rem;
	}

	.herd-profiles-basic__item--third {
		width: calc(100% / 3);
	}

	.herd-profiles-basic__inner {
		margin-inline: -0.5rem;
	}

	.herd-profiles-basic__photo,
	.herd-profiles-basic__body {
		padding-inline: 0.5rem;
	}

	.herd-profiles-basic__photo {
		width: 25%;
	}

	.herd-profiles-basic__body {
		width: 75%;
		margin-top: 0;
	}
}

/* Grid: large photos in a grid of up to four columns. */

.herd-profiles-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
}

.herd-profiles-grid__item {
	display: flex;
}

.herd-profiles-grid__inner {
	overflow-wrap: anywhere;
	box-sizing: border-box;
	width: 100%;
	padding: 1rem;
}

.herd-profiles-grid__content {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.herd-profiles-grid__image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
}

.herd-profiles-grid__name {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: calc(1.75 / 1.25);
}

.herd-profiles-grid__detail {
	margin-top: 0.25rem;
}

@media (min-width: 768px) {
	.herd-profiles-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.herd-profiles-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1440px) {
	.herd-profiles-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Icon card: white cards with the Marshall logo; --columns-2 and --columns-3 set cards per row. */

.herd-profiles-icon-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
}

.herd-profiles-icon-card__item {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--herd-profiles-color-gray-50);
	border-radius: 0.25rem;
	background-color: var(--herd-profiles-color-white);
	box-shadow:
		0 0 0 1px rgb(250 250 250 / 50%),
		0 4px 6px -1px rgb(0 0 0 / 10%),
		0 2px 4px -2px rgb(0 0 0 / 10%);
}

.herd-profiles-icon-card__image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-top-left-radius: 0.25rem;
	border-top-right-radius: 0.25rem;
}

.herd-profiles-icon-card__body {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding-inline: 1.5rem;
	padding-bottom: 2rem;
}

.herd-profiles-icon-card__header {
	display: flex;
	align-items: flex-start;
	padding-top: 1.5rem;
}

.herd-profiles-icon-card__icon {
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	margin-top: 0.5rem;
	margin-right: 1rem;
	fill: var(--herd-profiles-color-green);
}

.herd-profiles-icon-card__name {
	color: var(--herd-profiles-color-gray-900);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: calc(2 / 1.5);
}

.herd-profiles-icon-card__position {
	margin-top: 0.5rem;
	font-weight: 600;
}

.herd-profiles-icon-card__details {
	overflow-wrap: anywhere;
	flex: 1;
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--herd-profiles-color-gray-100);
	color: var(--herd-profiles-color-gray-600);
	font-weight: 400;
}

.herd-profiles-icon-card__detail {
	margin-top: 0.25rem;
}

.herd-profiles-icon-card__email {
	margin-block: 0.5rem;
}

@media (min-width: 768px) {
	.herd-profiles-icon-card {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.herd-profiles-icon-card {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.herd-profiles-icon-card--columns-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.herd-profiles-icon-card--columns-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Sidebar: compact name, position, phone, and email for narrow columns. */

.herd-profiles-sidebar {
	overflow-wrap: anywhere;
	margin-bottom: 2rem;
}

.herd-profiles-sidebar__name {
	font-weight: 700;
}

.herd-profiles-sidebar__position {
	margin-top: 0.25rem;
}

/* Table: one profile per table row. */

.herd-profiles-table {
	width: 100%;
}

.herd-profiles-table__cell {
	color: var(--herd-profiles-color-gray-900);
}

.herd-profiles-table__phone,
.herd-profiles-table__email {
	white-space: nowrap;
}
