/* ========================================
	TEAM MEMBERS
======================================== */

.ww-team-members {
	--ww-team-columns-desktop: 4;
	--ww-team-columns-tablet: 2;
	--ww-team-columns-mobile: 1;

	--ww-team-heading-color: #2d483f;
	--ww-team-text-color: #303133;
	--ww-team-border-color: #b8b8b8;

	--ww-team-column-gap: 28px;
	--ww-team-row-gap: 40px;

	width: 100%;
}


/* ========================================
	SECTIONS
======================================== */

.ww-team-section + .ww-team-section {
	margin-top: 80px;
}

.ww-team-section-heading {
	margin: 0 0 38px;
	padding: 0;
	color: var(--ww-team-heading-color);
	font-size: 32px;
	line-height: 1.15;
	font-weight: 700;
}


/* ========================================
	GRID
======================================== */

.ww-team-grid {
	display: grid;
	grid-template-columns: repeat(
		var(--ww-team-columns-desktop),
		minmax(0, 1fr)
	);
	gap:
		var(--ww-team-row-gap)
		var(--ww-team-column-gap);
	width: 100%;
}


/* ========================================
	CARD
======================================== */

.ww-team-card {
	min-width: 0;
	margin: 0;
	padding: 0;
}

.ww-team-card-image {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #f2f2f2;
	text-decoration: none;
	border-radius: 8px;
}

.ww-team-card-image img,
.ww-team-portrait {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
}

.ww-team-card-image:hover img,
.ww-team-card-image:focus-visible img {
	transform: scale(1.02);
}

.ww-team-card-image:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.ww-team-image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: #f2f2f2;
}


/* ========================================
	CARD CONTENT
======================================== */

.ww-team-card-content {
	padding-top: 17px;
}

.ww-team-name {
	margin: 0;
	padding: 0;
	color: var(--ww-team-heading-color);
	font-size: 23px;
	line-height: 1.2;
	font-weight: 700;
}

.ww-team-position {
	margin-top: 5px;
	color: var(--ww-team-text-color);
	font-size: 16px;
	line-height: 1.45;
	font-weight: 400;
}


/* ========================================
	PRACTICE AREAS ACCORDION
======================================== */

.ww-team-practice {
	width: 100%;
	margin-top: 12px;
	padding: 0;
	border-top: 1px solid var(--ww-team-border-color);
	border-bottom: 1px solid var(--ww-team-border-color);
}

.ww-team-practice-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 9px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--ww-team-text-color);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.ww-team-practice-toggle:hover,
.ww-team-practice-toggle:focus,
.ww-team-practice-toggle:active {
	margin: 0;
	padding: 9px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--ww-team-heading-color);
}

.ww-team-practice-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.ww-team-practice-label {
	display: block;
}


/* ========================================
	PLUS / MINUS ICON
======================================== */

.ww-team-practice-icon {
	position: relative;
	display: block;
	flex: 0 0 12px;
	width: 12px;
	height: 12px;
}

.ww-team-practice-icon::before,
.ww-team-practice-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition:
		transform 0.25s ease,
		opacity 0.25s ease;
}

.ww-team-practice-icon::before {
	width: 11px;
	height: 1px;
}

.ww-team-practice-icon::after {
	width: 1px;
	height: 11px;
}

.ww-team-practice-toggle[aria-expanded="true"]
	.ww-team-practice-icon::after {
	opacity: 0;
	transform:
		translate(-50%, -50%)
		rotate(90deg);
}


/* ========================================
	ANIMATED PRACTICE AREA PANEL
======================================== */

.ww-team-practice-panel {
	height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	visibility: hidden;
	transition:
		height 0.35s ease,
		visibility 0.35s ease;
}

.ww-team-practice-panel.is-open {
	visibility: visible;
}

.ww-team-practice-panel-inner {
	margin: 0;
	padding: 2px 0 13px;
}


/* ========================================
	PRACTICE AREAS LIST
======================================== */

.ww-team-practice .ww-team-practice-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.ww-team-practice .ww-team-practice-list > li,
.ww-team-practice .ww-team-practice-item {
	display: block;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--ww-team-text-color);
	font-size: 16px;
	line-height: 1.45;
	font-weight: 400;
	list-style: none !important;
}

.ww-team-practice .ww-team-practice-list > li::before,
.ww-team-practice .ww-team-practice-list > li::after,
.ww-team-practice .ww-team-practice-item::before,
.ww-team-practice .ww-team-practice-item::after {
	display: none !important;
	content: none !important;
}

.ww-team-practice-link,
.ww-team-practice-static {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--ww-team-text-color);
	font-size: 16px;
	line-height: 1.45;
	font-weight: 400;
	text-decoration: none !important;
}

.ww-team-practice-link:visited {
	color: var(--ww-team-text-color);
}

.ww-team-practice-link:hover,
.ww-team-practice-link:focus-visible {
	color: var(--ww-team-heading-color);
	text-decoration: none !important;
}

.ww-team-practice-name {
	display: inline;
	margin: 0;
	padding: 0;
}

.ww-team-practice-arrow {
	display: inline-block;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	transition: transform 0.2s ease;
}

.ww-team-practice-link:hover
	.ww-team-practice-arrow {
	transform: translateX(3px);
}


/* ========================================
	REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {

	.ww-team-card-image img,
	.ww-team-portrait,
	.ww-team-practice-icon::before,
	.ww-team-practice-icon::after,
	.ww-team-practice-panel,
	.ww-team-practice-arrow {
		transition: none;
	}

}


/* ========================================
	TABLET
======================================== */

@media (max-width: 959px) {

	.ww-team-grid {
		grid-template-columns: repeat(
			var(--ww-team-columns-tablet),
			minmax(0, 1fr)
		);
	}

	.ww-team-section + .ww-team-section {
		margin-top: 60px;
	}

}


/* ========================================
	MOBILE
======================================== */

@media (max-width: 569px) {

	.ww-team-members {
		--ww-team-row-gap: 34px;
	}

	.ww-team-grid {
		grid-template-columns: repeat(
			var(--ww-team-columns-mobile),
			minmax(0, 1fr)
		);
	}

	.ww-team-section-heading {
		margin-bottom: 28px;
		font-size: 28px;
	}

	.ww-team-name {
		font-size: 21px;
	}

}