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

/* Give the page that shows the roll more room than Divi's usual 1080px
   content area, still centered. Only containers holding the roll are
   affected, so the rest of the site keeps its layout. */
#main-content .container:has(.oppga-lm) {
	width: 94%;
	max-width: 1400px;
}

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

.oppga-lm__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0 0 16px;
	color: var(--lm-muted);
}
.oppga-lm__stats strong {
	color: var(--lm-purple);
	font-size: 1.35em;
	font-variant-numeric: tabular-nums;
}

.oppga-lm__controls:not([hidden]) {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 16px;
	margin-bottom: 12px;
}
.oppga-lm__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--lm-muted);
	margin-bottom: 4px;
}
.oppga-lm__search {
	flex: 1 1 280px;
}
.oppga-lm__filter {
	flex: 0 1 240px;
}
.oppga-lm input[type="search"],
.oppga-lm select {
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid #b9b2c3;
	border-radius: 6px;
	background: #fff;
	color: var(--lm-text);
	font: inherit;
}
.oppga-lm input[type="search"]:focus,
.oppga-lm select:focus {
	outline: 2px solid var(--lm-purple);
	outline-offset: 1px;
	border-color: var(--lm-purple);
}
.oppga-lm__count {
	flex-basis: 100%;
	margin: 0;
	padding: 0 !important; /* Divi pads every <p>. */
	font-size: 14px;
	color: var(--lm-muted);
}

.oppga-lm__scroll {
	max-height: 70vh;
	overflow: auto;
	border: 1px solid var(--lm-border);
	border-top: 3px solid var(--lm-gold);
	border-radius: 6px;
	background: #fff;
}
.oppga-lm__table {
	width: 100%;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: collapse;
}
.oppga-lm__table th,
.oppga-lm__table td {
	padding: 10px 14px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--lm-border) !important;
	text-align: left;
	vertical-align: middle;
}
.oppga-lm__table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--lm-purple);
	color: #fff;
	font-weight: 600;
	white-space: nowrap;
	padding: 0 !important;
}
.oppga-lm__table tbody tr:nth-child(even) {
	background: #faf9fc;
}
.oppga-lm__table tbody tr:hover {
	background: var(--lm-purple-soft);
}
.oppga-lm__num {
	font-variant-numeric: tabular-nums;
	color: var(--lm-muted);
	width: 7em;
}
.oppga-lm__table thead th:not(:has(button)) {
	padding: 12px 14px !important;
}

.oppga-lm__sort {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 12px 14px;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.oppga-lm__sort:hover {
	background: rgba(255, 255, 255, 0.1);
}
.oppga-lm__sort:focus-visible {
	outline: 2px solid var(--lm-gold);
	outline-offset: -2px;
}
.oppga-lm__arrow::after {
	content: "\2195";
	opacity: 0.45;
	font-size: 0.85em;
}
[aria-sort="ascending"] .oppga-lm__arrow::after {
	content: "\25B2";
	opacity: 1;
	color: var(--lm-gold);
}
[aria-sort="descending"] .oppga-lm__arrow::after {
	content: "\25BC";
	opacity: 1;
	color: var(--lm-gold);
}

.oppga-lm__omega {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 999px;
	background: #ece7f3;
	color: var(--lm-purple);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

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

/* Phones: each brother becomes a card. */
@media (max-width: 640px) {
	.oppga-lm__scroll {
		max-height: none;
		overflow: visible;
		border: 0;
		background: none;
	}
	/* The headers stay as a strip of sort buttons above the cards. */
	.oppga-lm__table thead,
	.oppga-lm__table thead tr {
		display: flex;
		flex-wrap: wrap;
		margin-bottom: 10px;
		border-radius: 6px;
		overflow: hidden;
	}
	.oppga-lm__table thead th {
		position: static;
		flex: 1 1 50%;
		box-sizing: border-box;
		border-bottom: 0 !important;
	}
	.oppga-lm__table,
	.oppga-lm__table tbody,
	.oppga-lm__table tr,
	.oppga-lm__table td {
		display: block;
		width: auto;
	}
	.oppga-lm__table tbody tr {
		margin-bottom: 10px;
		border: 1px solid var(--lm-border);
		border-left: 4px solid var(--lm-gold);
		border-radius: 6px;
		background: #fff !important;
	}
	.oppga-lm__table td {
		display: flex;
		gap: 12px;
		padding: 6px 12px !important;
		border-bottom: 0 !important;
	}
	.oppga-lm__table td::before {
		content: attr(data-label);
		flex: 0 0 6.5em;
		font-size: 13px;
		font-weight: 600;
		color: var(--lm-muted);
	}
}
