/* Faculty pages — Design A. WGC blue #17407B, WGC red #b3171b. */

/* ---------- Overview grid ---------- */

.wgc-faculty-search {
	display: block;
	width: 100%;
	max-width: 400px;
	padding: 8px 10px;
	margin-bottom: 1.5em;
	font-size: 0.95em;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.wgc-faculty-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
}

.wgc-faculty-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: inherit;
	padding: 16px 12px;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	transition: box-shadow 0.15s, border-color 0.15s;
}

.wgc-faculty-card:hover {
	border-color: #17407B;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wgc-faculty-card-name {
	font-weight: 600;
	color: #222;
	margin-bottom: 4px;
	line-height: 1.25;
}

.wgc-faculty-card-country {
	font-size: 0.85em;
	color: #777;
}

.wgc-faculty-card-country i {
	color: #17407B;
}

.wgc-faculty-empty {
	padding: 1em;
	background: #f5f5f5;
	border-radius: 4px;
	color: #555;
}

/* ---------- Photo / initials tile (grid + profile) ---------- */

.wgc-faculty-photo {
	display: block;
	object-fit: cover;
	border-radius: 14px;
	background: #f5f5f5;
	flex-shrink: 0;
}

.wgc-faculty-photo--card {
	width: 88px;
	height: 88px;
	margin-bottom: 10px;
}

.wgc-faculty-photo--profile {
	width: 110px;
	height: 110px;
}

.wgc-faculty-initials {
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.wgc-faculty-photo--card.wgc-faculty-initials {
	font-size: 26px;
}

.wgc-faculty-photo--profile.wgc-faculty-initials {
	font-size: 34px;
}

/* Stable per-person tint for the initials tile (PersonID % 5). */
.wgc-faculty-tint-0 { background: #e8eef7; color: #17407B; }
.wgc-faculty-tint-1 { background: #e6f4ea; color: #1e6b3a; }
.wgc-faculty-tint-2 { background: #efe9f8; color: #5a3b8c; }
.wgc-faculty-tint-3 { background: #fdf1dc; color: #8a5a00; }
.wgc-faculty-tint-4 { background: #fbe9e9; color: #a01417; }

/* ---------- Profile ---------- */

.wgc-faculty-back {
	margin-bottom: 1em;
}

.wgc-faculty-back a {
	text-decoration: none;
	color: #17407B;
}

.wgc-faculty-profile-header {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	margin-bottom: 1.5em;
}

.wgc-faculty-profile-name {
	margin: 0 0 4px 0;
	color: #17407B;
}

.wgc-faculty-profile-country {
	color: #555;
	margin: 0 0 8px 0;
}

.wgc-faculty-profile-country i,
.wgc-faculty-profile-wga i {
	color: #17407B;
}

.wgc-faculty-profile-wga {
	margin: 0;
	font-size: 0.9em;
}

.wgc-faculty-profile-wga a {
	text-decoration: none;
}

.wgc-faculty-field {
	padding: 12px 0;
	border-top: 1px solid #eee;
}

.wgc-faculty-field-label {
	font-size: 0.8em;
	color: #777;
	margin-bottom: 2px;
}

.wgc-faculty-field-label i {
	width: 16px;
	text-align: center;
	color: #17407B;
}

.wgc-faculty-field-value {
	color: #222;
	line-height: 1.5;
}

/* ---------- Commitments ---------- */

.wgc-faculty-commitments {
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid #eee;
}

.wgc-faculty-commitments-heading {
	margin: 0 0 4px 0;
	color: #17407B;
	font-size: 1.15em;
}

.wgc-faculty-commitments-heading i {
	width: 20px;
	text-align: center;
}

.wgc-faculty-day-heading {
	margin: 1.4em 0 0.4em 0;
	padding-bottom: 6px;
	border-bottom: 2px solid #17407B;
	color: #17407B;
	font-size: 1em;
	font-weight: 600;
}

.wgc-faculty-commitment {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}

.wgc-faculty-commitment:last-child {
	border-bottom: none;
}

/* Role pills — filled, uppercase, fixed min-width so titles align. */
.wgc-faculty-role {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 108px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #fff;
	flex-shrink: 0;
	line-height: 1.4;
}

.wgc-faculty-role--chair {
	background: #17407B;
}

.wgc-faculty-role--presenter {
	background: #b3171b;
}

.wgc-faculty-commitment-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.wgc-faculty-commitment-title {
	font-weight: 500;
	color: #222;
	text-decoration: none;
	line-height: 1.35;
}

a.wgc-faculty-commitment-title:hover {
	text-decoration: underline;
}

.wgc-faculty-commitment-time {
	font-size: 0.85em;
	color: #777;
}

.wgc-faculty-commitment-time i {
	color: #17407B;
}

@media (max-width: 540px) {
	.wgc-faculty-profile-header {
		flex-direction: column;
		gap: 14px;
	}
	.wgc-faculty-commitment {
		flex-direction: column;
		gap: 6px;
	}
}
