/* ====================================================================
   Committee Section  (#committee)
   Matches the dark accent aesthetic of the rest of the site.
   ==================================================================== */

/* ── Section shell ── */
#committee {
	--cm-bg:         #0f0f11;
	--cm-card-bg:    rgba(255, 255, 255, 0.035);
	--cm-card-hover: rgba(255, 255, 255, 0.065);
	--cm-border:     rgba(255, 255, 255, 0.07);
	--cm-accent:     #ff1f6b;
	--cm-accent-dim: rgba(255, 31, 107, 0.18);
	--cm-name:       #ffffff;
	--cm-role:       rgba(255, 31, 107, 0.9);
	--cm-sub:        rgba(255, 255, 255, 0.5);
	--cm-photo-bg:   rgba(255, 255, 255, 0.06);

	position: relative;
	background: var(--cm-bg);
	padding: 5rem 0 5rem;
	overflow: hidden;
	z-index: 2;
}

/* ── Subtle top/bottom diagonal cuts to match site flow ── */
#committee::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 35% at 50% 0%,   rgba(255, 31, 107, 0.06) 0%, transparent 70%),
		radial-gradient(ellipse 50% 25% at 80% 100%, rgba(255, 31, 107, 0.04) 0%, transparent 70%);
	pointer-events: none;
}

/* ── Inner container ── */
#committee .cm-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

/* ── Section heading ── */
.cm-heading-wrap {
	text-align: center;
	margin-bottom: 3.5rem;
}

.cm-kicker {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--cm-accent);
	margin-bottom: 0.8rem;
	opacity: 0.85;
}

.cm-title-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 0.88;
}

.cm-title-line1,
.cm-title-line2 {
	font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
	font-size: clamp(2rem, 4vw, 3.2rem);
	color: #fff;
	letter-spacing: 0.04em;
}

.cm-title-line2 {
	color: var(--cm-accent);
}

.cm-rule {
	width: 36px;
	height: 3px;
	background: var(--cm-accent);
	margin: 1.2rem auto 0;
	border-radius: 2px;
}

.cm-intro {
	text-align: center;
	font-size: 1rem;
	color: var(--cm-sub);
	max-width: 640px;
	margin: 1.2rem auto 0;
	line-height: 1.7;
}

/* ── Empty / pending state ── */
.cm-pending-block {
	position: relative;
	max-width: 680px;
	margin: 0 auto;
	text-align: center;
	padding: 3rem 2rem 3.2rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 18px;
	background:
		linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
		radial-gradient(circle at 50% 0%, rgba(255,31,107,0.18), transparent 52%);
	box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
	overflow: hidden;
}

.cm-pending-block::before {
	content: '';
	display: block;
	width: 54px;
	height: 54px;
	margin: 0 auto 1.25rem;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.16);
	background:
		linear-gradient(135deg, rgba(255,31,107,.28), rgba(255,255,255,.08));
	box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 18px 48px rgba(255,31,107,.16);
}

.cm-pending-block::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
	background-size: 34px 34px;
	opacity: .3;
	pointer-events: none;
}

.cm-pending-headline {
	position: relative;
	z-index: 1;
	font-family: 'Bebas Neue', Impact, sans-serif;
	font-size: clamp(2rem, 5vw, 3.4rem);
	letter-spacing: 0.08em;
	color: #ffffff;
	margin-bottom: 0.6rem;
	text-transform: uppercase;
}

.cm-pending-text {
	position: relative;
	z-index: 1;
	font-size: 0.92rem;
	color: rgba(255,255,255,.62);
	line-height: 1.7;
	margin: 0;
}

/* ── Committee group ── */
.cm-group {
	margin-bottom: 3.5rem;
}

.cm-group:last-child {
	margin-bottom: 0;
}

.cm-group-title {
	font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
	font-size: 1.4rem;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.7);
	text-transform: uppercase;
	margin-bottom: 1.4rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid var(--cm-border);
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.cm-group-title::before {
	content: '';
	display: inline-block;
	width: 4px;
	height: 1.1em;
	background: var(--cm-accent);
	border-radius: 2px;
	flex-shrink: 0;
}

/* ── Cards grid ── */
.cm-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.4rem;
}

/* ── Individual card ── */
.cm-card {
	background: var(--cm-card-bg);
	border: 1px solid var(--cm-border);
	border-radius: 12px;
	padding: 1.6rem 1.2rem 1.4rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0;
	transition: background 0.28s ease, border-color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
	position: relative;
	overflow: hidden;
}

.cm-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 31, 107, 0.08) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.cm-card:hover {
	background: var(--cm-card-hover);
	border-color: rgba(255, 31, 107, 0.22);
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 31, 107, 0.1);
}

.cm-card:hover::before {
	opacity: 1;
}

/* ── Photo ── */
.cm-photo {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--cm-photo-bg);
	border: 2px solid var(--cm-border);
	flex-shrink: 0;
	display: block;
	margin-bottom: 1rem;
	transition: border-color 0.28s ease;
}

.cm-card:hover .cm-photo {
	border-color: rgba(255, 31, 107, 0.35);
}

/* Placeholder avatar when no photo */
.cm-photo-placeholder {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: var(--cm-photo-bg);
	border: 2px solid var(--cm-border);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
	font-size: 2rem;
	color: rgba(255, 255, 255, 0.18);
	transition: border-color 0.28s ease;
}

.cm-card:hover .cm-photo-placeholder {
	border-color: rgba(255, 31, 107, 0.3);
}

/* ── Text info ── */
.cm-name {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--cm-name);
	line-height: 1.3;
	margin-bottom: 0.3rem;
}

.cm-role {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--cm-role);
	margin-bottom: 0.45rem;
}

.cm-affil {
	font-size: 0.78rem;
	color: var(--cm-sub);
	line-height: 1.5;
}

.cm-country {
	font-size: 0.73rem;
	color: rgba(255, 255, 255, 0.28);
	margin-top: 0.2rem;
}

#committee-body.photos-off .cm-cards {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.cm-card-featured {
	border-color: rgba(255, 31, 107, 0.34);
	box-shadow: 0 16px 44px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(255, 31, 107, 0.16);
	background: linear-gradient(180deg, rgba(255, 31, 107, 0.14), rgba(255, 255, 255, 0.04));
}

.cm-card-featured .cm-name {
	font-size: 1rem;
}

.cm-card.no-photo {
	align-items: flex-start;
	text-align: left;
	min-height: 130px;
	padding: 1.25rem;
}

.cm-card.no-photo .cm-name {
	font-size: 1rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
	.cm-cards {
		grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
		gap: 1.1rem;
	}
}

@media (max-width: 640px) {
	#committee {
		padding: 3.5rem 0 3.5rem;
	}

	#committee .cm-inner {
		padding: 0 1.1rem;
	}

	.cm-cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.85rem;
	}

	.cm-photo,
	.cm-photo-placeholder {
		width: 72px;
		height: 72px;
		font-size: 1.6rem;
	}

	.cm-name {
		font-size: 0.85rem;
	}

	.cm-heading-wrap {
		margin-bottom: 2.5rem;
	}

	.cm-group {
		margin-bottom: 2.5rem;
	}

	.cm-group-title {
		font-size: 1.15rem;
	}

	.cm-pending-block {
		padding: 2.4rem 1.2rem 2.6rem;
		border-radius: 14px;
	}
}

@media (max-width: 360px) {
	.cm-cards {
		grid-template-columns: 1fr;
	}
}
