/**
 * leadership: loaded only on pages that show it.
 *
 * Split out of the shared stylesheets by bin/split-css.py; loaded by
 * inc/feature-styles.php when something on the page has the class.
 */

/* ---------- From blocks.css ---------- */
/* ---------- Lay leadership ------------------------------------------------ *
 *
 * Nine committees, each running on three rotating classes. The old page was
 * one column of a hundred and two names; this is a card per committee with
 * its classes side by side, so the committee you came for is one glance away
 * and the year headings can say what they actually mean.
 * ------------------------------------------------------------------------- */

.cong-leaders__nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	margin-block-end: var(--wp--preset--spacing--60);
}

.cong-committee {
	padding: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--cong-line);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--preset--shadow--card);

	/* Enough room that a jump link does not land it under the sticky header. */
	scroll-margin-block-start: 6rem;
}

.cong-committee + .cong-committee {
	margin-block-start: var(--wp--preset--spacing--40);
}

.cong-committee__head {
	padding-block-end: var(--wp--preset--spacing--30);
	border-block-end: 1px solid var(--cong-line);
}

.cong-committee__name {
	margin: 0;
	font-size: var(--wp--preset--font-size--xl);
}

/* What the committee is for, when somebody has written it down. */
.cong-committee__blurb {
	max-width: 46rem;
	margin: 0.6rem 0 0;
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--sm);
}

.cong-committee__officers {
	margin: 0.4rem 0 0;
	color: var(--wp--preset--color--ink-muted);
}

/* The meeting time is the one thing on the card somebody might act on. */
.cong-committee__meets {
	display: inline-block;
	margin: 0.6rem 0 0;
	padding: 0.3em 0.8em;
	background: var(--wp--preset--color--surface);
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--ink);
}

.cong-committee__classes {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	margin-block-start: var(--wp--preset--spacing--30);
}

.cong-committee__year {
	margin: 0;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-muted);
}

/*
 * A group with a name rather than a year.
 *
 * "Class of 2026" is three short words and reads well in spaced capitals;
 * "Revenue Models/Stewardship" is not, and set the same way it ran straight
 * out of its column and into the one beside it. A named team keeps its own
 * case and breaks where it has to.
 */
.cong-committee__class.is-named .cong-committee__year {
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: normal;
	text-transform: none;
	color: var(--wp--preset--color--ink);
	overflow-wrap: break-word;
	hyphens: auto;
}

/* The class whose term is up this year — the fact the old page had and could
   not express. */
.cong-committee__class.is-ending .cong-committee__year {
	color: var(--wp--preset--color--ink);
}

.cong-committee__note {
	margin: 0.15rem 0 0;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--ink-muted);
}

.cong-committee__class.is-ending .cong-committee__note {
	display: inline-block;
	padding: 0.15em 0.6em;
	background: var(--wp--preset--color--lime);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	font-weight: 700;
}

.cong-committee__class.is-past {
	opacity: 0.55;
}

.cong-committee__members {
	list-style: none;
	margin: 0.6rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.3rem;
	line-height: 1.35;
}
