/* Committee team badge – colours from the DGS brand guideline */
.dgs-team-badge {
	--dgs-team-color: #1E2C60;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px 3px 3px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--dgs-team-color) 10%, #fff);
	color: var(--dgs-team-color);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}
.dgs-team-badge__icon {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	object-fit: contain;
}
.dgs-team--public-outreach { --dgs-team-color: #C83629; }
.dgs-team--technical-exchange { --dgs-team-color: #06397A; }
.dgs-team--professional-development { --dgs-team-color: #2C8942; }
.dgs-team--executive-officers,
.dgs-team--digital-media { --dgs-team-color: #1E2C60; }

/* Leadership: committee year filter – selected year matches the active tab */
.elementor-element-dgsyf01 .jet-radio-list__button {
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.elementor-element-dgsyf01 .jet-radio-list__input:checked + .jet-radio-list__button {
	background-color: #1E2C60;
	border-color: #1E2C60;
	color: #fff;
}
.elementor-element-dgsyf01 .jet-radio-list__input:checked + .jet-radio-list__button .jet-radio-list__label {
	color: #fff;
}

/* Leadership card: hide LinkedIn icon when the member has no LinkedIn URL */
.elementor-element-bc547fe:not(:has(a.elementor-icon)) {
	display: none;
}

/* Event Highlights gallery: even 4:3 tiles regardless of photo orientation */
.dgs-event-gallery .jet-engine-gallery-grid {
	align-items: stretch;
}
.dgs-event-gallery .jet-engine-gallery-grid__item-wrap {
	display: block;
	overflow: hidden;
	border-radius: 8px;
}
.dgs-event-gallery .jet-engine-gallery-grid__item-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .3s ease;
}
.dgs-event-gallery .jet-engine-gallery-grid__item-wrap:hover .jet-engine-gallery-grid__item-img {
	transform: scale(1.03);
}

/* ==========================================================
.dgs-committee * [dgs_committee] – Executive Committee grouped by team
 * ======================================================== */
.dgs-committee {
	--dgs-navy: #1E2C60;
	--dgs-muted: #5B6478;
	--dgs-card: #F4F6FA;
	display: flex;
	flex-direction: column;
	gap: 48px;
}
.dgs-committee .dgs-committee__years {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.dgs-committee button.dgs-committee__year {
	padding: 8px 18px;
	border: 1px solid var(--dgs-navy);
	border-radius: 8px;
	background: transparent;
	color: var(--dgs-navy);
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.dgs-committee button.dgs-committee__year:hover,
.dgs-committee button.dgs-committee__year:focus-visible {
	background: #E8ECF5;
	color: var(--dgs-navy);
}
.dgs-committee button.dgs-committee__year[aria-pressed="true"] {
	background: var(--dgs-navy);
	color: #fff;
}
.dgs-committee .dgs-committee__panel {
	display: flex;
	flex-direction: column;
	gap: 56px;
}
.dgs-committee .dgs-committee__panel[hidden] {
	display: none;
}

/* Featured President */
.dgs-committee .dgs-committee__feature {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.dgs-committee .dgs-member.dgs-member--feature {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	text-align: left;
	gap: 32px;
	width: 100%;
	padding: 32px 40px;
	border-radius: 16px;
	background: linear-gradient(120deg, #1E2C60 0%, #06397A 100%);
	color: #fff;
}
.dgs-committee .dgs-member.dgs-member--feature .dgs-member__photo {
	width: 160px;
	flex: 0 0 160px;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, .25);
}
.dgs-committee .dgs-member.dgs-member--feature .dgs-member__name {
	color: #fff;
	font-size: 32px;
	line-height: 1.15;
}
.dgs-committee .dgs-member.dgs-member--feature .dgs-member__role {
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	opacity: .9;
}
.dgs-committee .dgs-member.dgs-member--feature .dgs-member__org {
	margin: 0;
	color: rgba(255, 255, 255, .75);
	font-size: 15px;
}
.dgs-committee .dgs-member.dgs-member--feature .dgs-member__linkedin {
	color: #fff;
}
.dgs-committee .dgs-member.dgs-member--feature .dgs-member__body {
	align-items: flex-start;
	text-align: left;
}

/* Team sections – colours follow the brand initiative logos */
.dgs-committee .dgs-team {
	--dgs-team-color: var(--dgs-navy);
}
.dgs-committee .dgs-team--professional-development { --dgs-team-color: #2C8942; }
.dgs-committee .dgs-team--technical-exchange { --dgs-team-color: #06397A; }
.dgs-committee .dgs-team--public-outreach { --dgs-team-color: #C83629; }
.dgs-committee .dgs-team--digital-media { --dgs-team-color: #5B3E9B; }

.dgs-committee .dgs-team__header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
	padding-bottom: 14px;
	border-bottom: 1px solid color-mix(in srgb, var(--dgs-team-color) 25%, #fff);
}
.dgs-committee .dgs-team__icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
	object-fit: contain;
}
.dgs-committee .dgs-team__title {
	margin: 0;
	color: var(--dgs-team-color);
	font-size: 28px;
	line-height: 1.2;
}
.dgs-committee .dgs-team__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 20px;
}

/* Member card */
.dgs-committee .dgs-member {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 24px 16px;
	border-radius: 12px;
	background: var(--dgs-card);
	text-align: center;
}
.dgs-committee .dgs-member__photo {
	position: relative;
	width: 132px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: #fff;
}
.dgs-committee .dgs-member__photo img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	object-position: center top;
}
.dgs-committee .dgs-member--vp {
	background: color-mix(in srgb, var(--dgs-team-color) 8%, #fff);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dgs-team-color) 30%, #fff);
}
.dgs-committee .dgs-member--vp .dgs-member__photo {
	box-shadow: 0 0 0 4px var(--dgs-team-color);
}
.dgs-committee .dgs-member__chip {
	position: absolute;
	right: 0;
	bottom: 4px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--dgs-team-color);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
}
.dgs-committee .dgs-member__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.dgs-committee .dgs-member__name {
	margin: 0;
	color: var(--dgs-navy);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}
.dgs-committee .dgs-member__role {
	margin: 0;
	color: var(--dgs-muted);
	font-size: 14px;
	line-height: 1.4;
}
.dgs-committee .dgs-member__linkedin {
	display: inline-flex;
	margin-top: 6px;
	color: #0A66C2;
}

@media (max-width: 767px) {
.dgs-committee .dgs-committee__panel { gap: 40px; }
.dgs-committee .dgs-member.dgs-member--feature {
		flex-direction: column;
		padding: 28px 20px;
		gap: 20px;
		text-align: center;
	}
.dgs-committee .dgs-member.dgs-member--feature .dgs-member__body { align-items: center; text-align: center; }
.dgs-committee .dgs-member.dgs-member--feature .dgs-member__name { font-size: 26px; }
.dgs-committee .dgs-team__title { font-size: 22px; }
.dgs-committee .dgs-team__icon { width: 40px; height: 40px; }
.dgs-committee .dgs-team__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dgs-committee .dgs-member { padding: 18px 10px; }
.dgs-committee .dgs-member__photo { width: 104px; }
}
