/**
 * JMAA Board of Directors - public styles.
 * Brand colours come from the JMAA Brand Kit variables, with fallbacks.
 */

.jmaa-board {
	font-family: var(--jmaa-font, inherit);
	color: var(--jmaa-ink, #121212);
	text-align: left;
}
.elementor-widget-shortcode:has(.jmaa-board) { width: 100%; }

.jmaa-board__heading {
	margin: 0 0 26px;
	font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--jmaa-ink, #121212);
}
.jmaa-board__heading::after {
	content: '';
	display: block;
	width: 64px;
	height: 4px;
	margin-top: 12px;
	border-radius: 2px;
	background: var(--jmaa-gold, #FFC20E);
}

.jmaa-board ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Officers: one card per role ---------- */
.jmaa-board__officers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin: 0 0 38px;
}
.jmaa-board__card {
	background: #fff;
	border: 1px solid var(--jmaa-grey-light, #E4E5E7);
	border-top: 4px solid var(--jmaa-gold, #FFC20E);
	border-radius: 8px;
	padding: 18px 20px 20px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.jmaa-board__role {
	display: inline-block;
	margin: 0 0 14px;
	padding: 4px 9px;
	border-radius: 3px;
	background: var(--jmaa-gold, #FFC20E);
	color: #111;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .1em;
	line-height: 1.3;
	text-transform: uppercase;
}
.jmaa-board__names .jmaa-board__person + .jmaa-board__person {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--jmaa-grey-light, #E4E5E7);
}
.jmaa-board__card .jmaa-board__name { font-size: 1.06rem; }

/* ---------- Board members: a grid of names ---------- */
.jmaa-board__group { margin: 0 0 38px; }
.jmaa-board__group-title {
	margin: 0 0 16px;
	padding-left: 12px;
	border-left: 4px solid var(--jmaa-gold, #FFC20E);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--jmaa-ink, #121212);
}
.jmaa-board__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 10px 16px;
}
.jmaa-board__list .jmaa-board__person {
	background: var(--jmaa-off-white, #F6F6F7);
	border-left: 3px solid var(--jmaa-gold, #FFC20E);
	border-radius: 4px;
	padding: 10px 14px;
}

/* ---------- A person ---------- */
.jmaa-board__person { line-height: 1.4; }
.jmaa-board__name { font-weight: 700; }
.jmaa-board__year {
	margin-left: 2px;
	color: #6f7174; /* light grey; the lightest that stays readable (4.5:1) on white and on the name tiles */
	font-weight: 400;
	text-decoration: none;
	border: 0;
	cursor: help;
}
.jmaa-board__past {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	border: 1px solid var(--jmaa-gold-dark, #D99F00);
	border-radius: 3px;
	color: var(--jmaa-ink, #121212);
	font-size: .62rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	vertical-align: 2px;
	white-space: nowrap;
}
.jmaa-board__note {
	display: block;
	margin-top: 2px;
	color: #5f6165; /* readable on white; the kit grey is for outlines */
	font-size: .88rem;
	font-style: italic;
}

@media (max-width: 520px) {
	.jmaa-board__officers { grid-template-columns: 1fr; gap: 14px; }
	.jmaa-board__list { grid-template-columns: 1fr; }
}

@media print {
	.jmaa-board__card, .jmaa-board__list .jmaa-board__person { box-shadow: none; background: #fff; border-color: #999; }
	.jmaa-board__role { background: none; border: 1px solid #000; }
}
