/**
 * Module: Team Section (Roster)
 * Loaded when `team_section` layout is present on the page.
 */

:root {
	--indigo: #002B5C;
	--crimson: #ED1C24;
	--slate: #060606;
	--mist: #A5A4A4;
	--frost: #EDEDED;
	--white: #FFFFFF;
	--indigo-deep: #001A3A;
	--indigo-tint: #F2F5F9;
	--ink: #1C2230;
	--ink-soft: #4A5568;
	--line: #D9DCE1;
	--display: 'Gotham', 'Montserrat', system-ui, sans-serif;
	--body: 'Open Sans', system-ui, sans-serif;
	--max: 1180px;
	--gutter: clamp(20px, 4vw, 48px);
	--radius: 6px;
}

/* ==========================================================================
   Roster Section Container
   ========================================================================== */
.roster,
section.roster,
section.people-section {
	background: var(--frost);
	padding-top: 40px;
	padding-bottom: 56px;
}

.roster .wrap,
.people-section .wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.roster .inner {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 36px 32px;
}

/* ==========================================================================
   Department / Category Row
   ========================================================================== */
.dept,
.people-category {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 40px;
	padding: 36px 0;
	border-top: 1px solid var(--line);
}

.dept:first-of-type,
.people-category:first-of-type {
	border-top: 0;
	padding-top: 0;
}

/* Category Left Column (Sticky Key) */
.dept .key,
.people-category .people-category-info {
	position: sticky;
	top: 104px;
	align-self: start;
}

.dept .key h3,
.dept .key .category-title,
.people-category-info h2,
.people-category-info h3 {
	font-family: var(--display);
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.05;
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--indigo);
	margin: 0;
}

.dept .key h3::before,
.dept .key .category-title::before,
.people-category-info h2::before,
.people-category-info h3::before {
	content: "";
	width: 8px;
	height: 30px;
	background: var(--crimson);
	border-radius: 2px;
	flex: none;
}

.dept .key p,
.dept .key .category-description,
.dept .key .category-description p,
.people-category-info .category-description,
.people-category-info .category-description p {
	font-size: 14.5px;
	color: var(--ink-soft);
	margin-top: 12px;
	max-width: 240px;
	line-height: 1.5;
	font-family: var(--body);
}

.dept .key .category-description p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   People Grid (Right Column)
   ========================================================================== */
.people,
ul.people,
.people-category-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Individual Person Card */
.person,
li.person,
.person-item {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.person:hover,
li.person:hover,
.person-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 36px rgba(0, 43, 92, .12);
	border-color: transparent;
}

/* Photo */
.person .photo,
.person .person-image {
	aspect-ratio: 4/5;
	overflow: hidden;
	background: var(--indigo-tint);
	position: relative;
}

.person .photo img,
.person .person-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.person:hover .photo img,
.person:hover .person-image img {
	transform: scale(1.04);
}

.person .photo::after,
.person .person-image::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: var(--crimson);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.person:hover .photo::after,
.person:hover .person-image::after {
	transform: scaleX(1);
}

/* Card Content / Meta */
.person .meta,
.person .person-details {
	padding: 14px 16px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.person h4,
.person .person-name {
	font-family: var(--display);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--indigo);
	margin: 0;
}

.person .role,
.person .person-designation {
	font-size: 13px;
	color: var(--ink-soft);
	margin-top: 3px;
	font-family: var(--body);
	line-height: 1.35;
}

/* Social & Contact Links */
.person .links {
	display: flex;
	gap: 6px;
	margin-top: auto;
}

.person .links a,
.person-email a,
.person-linkedin a {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid var(--line);
	display: grid;
	place-items: center;
	color: var(--indigo);
	transition: background .15s ease, color .15s ease, border-color .15s ease;
	text-decoration: none;
}

.person .links a:hover,
.person-email a:hover,
.person-linkedin a:hover {
	background: var(--indigo);
	color: var(--white);
	border-color: var(--indigo);
}

.person .links svg,
.person-email svg,
.person-linkedin svg {
	width: 15px;
	height: 15px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
	.dept,
	.people-category {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.dept .key,
	.people-category .people-category-info {
		position: static;
	}
}

@media (max-width: 768px) {
	.people,
	ul.people,
	.people-category-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
}

@media (max-width: 520px) {
	.people,
	ul.people,
	.people-category-list {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.person .meta,
	.person .person-details {
		padding: 12px 12px 10px;
	}

	.roster .inner {
		padding: 20px 16px;
	}
}

@media (max-width: 380px) {
	.people,
	ul.people,
	.people-category-list {
		grid-template-columns: 1fr;
	}
}
