/* [georgia_state_council] — Omega purple and old gold. */

/* Same wide, centered page area as the Life Members and Chapters pages, only
   on pages holding the roster. */
#main-content .container:has(.oppga-sc) {
	width: 94%;
	max-width: 1400px;
}

.oppga-sc {
	--sc-purple: #4b2c71;
	--sc-purple-soft: #f4f0f9;
	--sc-gold: #cfb53b;
	--sc-border: #e3dfe8;
	--sc-text: #4b2c71; /* Purple, not black, as on the other directories. */
	--sc-muted: #6e5a8a;
	color: var(--sc-text);
	font-size: 16px;
	line-height: 1.45;
}

.oppga-sc__controls:not([hidden]) {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 24px;
}
.oppga-sc__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--sc-muted);
	margin-bottom: 4px;
}
.oppga-sc__search {
	max-width: 420px;
}
.oppga-sc input[type="search"] {
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid #b9b2c3;
	border-radius: 6px;
	background: #fff;
	color: var(--sc-text);
	font: inherit;
}
.oppga-sc input[type="search"]:focus {
	outline: 2px solid var(--sc-purple);
	outline-offset: 1px;
	border-color: var(--sc-purple);
}

.oppga-sc__jump:not([hidden]) {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.oppga-sc__jump a {
	padding: 4px 12px;
	border: 1px solid var(--sc-border);
	border-radius: 999px;
	background: #fff;
	color: var(--sc-purple);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.oppga-sc__jump a:hover,
.oppga-sc__jump a:focus-visible {
	background: var(--sc-purple-soft);
	border-color: var(--sc-purple);
}

.oppga-sc__section {
	margin: 0 0 32px;
	scroll-margin-top: 120px; /* Clear Divi's fixed header when jumping. */
}
.oppga-sc__heading {
	margin: 0 0 14px !important;
	padding: 0 0 8px !important;
	border-bottom: 3px solid var(--sc-gold);
	color: var(--sc-purple);
	font-size: 22px !important;
	font-weight: 700;
}

.oppga-sc__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 14px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
/* A section with one officer, such as the District Officer, centers its card. */
.oppga-sc__grid:has(> .oppga-sc__card:only-child) {
	grid-template-columns: minmax(210px, 260px);
	justify-content: center;
}
/* The State Representative gets his own centered row above the other State Officers. */
.oppga-sc__card--lead {
	grid-column: 1 / -1;
	justify-self: center;
	width: 100%;
	max-width: 260px;
	box-sizing: border-box;
}
.oppga-sc__card:not([hidden]) {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
	padding: 18px 14px 16px;
	border: 1px solid var(--sc-border);
	border-top: 3px solid var(--sc-purple);
	border-radius: 8px;
	background: #fff;
}
.oppga-sc__photo {
	width: 96px;
	height: 96px;
	margin-bottom: 8px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--sc-gold);
}
.oppga-sc__card--vacant .oppga-sc__photo--placeholder {
	opacity: 0.45;
}
.oppga-sc__name {
	font-weight: 700;
	color: var(--sc-text);
}
.oppga-sc__position {
	font-size: 14px;
	color: var(--sc-muted);
}
.oppga-sc__card--vacant .oppga-sc__name {
	color: var(--sc-muted);
	font-style: italic;
}

.oppga-sc__empty:not([hidden]) {
	padding: 16px !important;
	text-align: center;
	color: var(--sc-muted);
	background: #faf9fc;
	border-radius: 6px;
}

@media (max-width: 640px) {
	.oppga-sc__grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 10px;
	}
	.oppga-sc__photo {
		width: 72px;
		height: 72px;
	}
}
