/**
 * GLR Members Tabs — styles
 */

.glr-members {
	--glr-columns: 3;
	--glr-accent: #78d25c;
	--glr-accent-dark: #5fb845;
}

/* ---------- Grid ---------- */

.glr-members__grid {
	display: grid;
	grid-template-columns: repeat( var( --glr-columns ), minmax( 0, 1fr ) );
	background: #ffffff;
	border: 1px solid #e6e8ea;
	border-radius: 4px;
	overflow: hidden;
}

.glr-members__item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 18px;
	text-align: center;
	font-size: 16px;
	line-height: 1.4;
	color: #4a5568;
	word-break: break-word;
}

.glr-members__item.is-alt {
	background: #f7f8f9;
}

.glr-members__item.is-hidden {
	display: none;
}

.glr-members__payload {
	display: none;
}

/* Clickable name: strip all default button chrome */

button.glr-members__name {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	line-height: inherit;
	text-align: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	text-decoration-color: var( --glr-accent );
	transition: color .15s ease;
}

button.glr-members__name:hover,
button.glr-members__name:focus-visible {
	color: var( --glr-accent-dark );
}

button.glr-members__name:focus-visible {
	outline: 2px solid var( --glr-accent );
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---------- Pagination (reuses theme class names) ---------- */

.glr-members .pagination-container.is-hidden {
	display: none;
}

.glr-members .numbers .num {
	-webkit-appearance: none;
	appearance: none;
	background: none;
	border: 0;
	font: inherit;
	color: inherit;
	padding: 0 6px;
	cursor: pointer;
}

.glr-members .numbers .num.active {
	color: var( --glr-accent-dark );
	border-bottom: 2px solid var( --glr-accent );
}

.glr-members .prev-page,
.glr-members .next-page {
	-webkit-appearance: none;
	appearance: none;
	background: none;
	border: 0;
	font: inherit;
	color: inherit;
	padding: 0 6px;
	cursor: pointer;
}

.glr-members .prev-page[disabled],
.glr-members .next-page[disabled] {
	opacity: .35;
	cursor: default;
}

/* ---------- Modal ---------- */

body.glr-modal-open {
	overflow: hidden;
}

.glr-modal[hidden] {
	display: none;
}

.glr-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.glr-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba( 15, 23, 32, .55 );
}

.glr-modal__card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 660px;
	max-height: 86vh;
	overflow-y: auto;
	background: #ffffff;
	border: 3px solid #78d25c;
	border-radius: 10px;
	box-shadow: 0 18px 50px rgba( 0, 0, 0, .18 );
	padding: 44px 48px 48px;
	text-align: center;
}

.glr-modal__close {
	position: absolute;
	top: 14px;
	right: 18px;
	-webkit-appearance: none;
	appearance: none;
	background: none;
	border: 0;
	padding: 6px 10px;
	font-size: 22px;
	line-height: 1;
	font-weight: 400;
	color: #1f2933;
	cursor: pointer;
}

.glr-modal__close:hover,
.glr-modal__close:focus-visible {
	color: var( --glr-accent-dark, #5fb845 );
}

.glr-modal__logo {
	display: block;
	max-width: 260px;
	max-height: 110px;
	width: auto;
	height: auto;
	margin: 0 auto 26px;
	object-fit: contain;
}

.glr-modal__title {
	margin: 0 0 20px;
	font-size: 26px;
	line-height: 1.25;
	color: #1f2933;
}

/* When a logo is present the name is available to screen readers only. */
.glr-modal__title.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	white-space: nowrap;
	border: 0;
}

.glr-modal__desc {
	margin: 0 0 30px;
	font-size: 16px;
	line-height: 1.6;
	color: #3d4852;
}

.glr-modal__desc > *:last-child {
	margin-bottom: 0;
}

.glr-modal__cta {
	display: inline-block;
	background: #78d25c;
	color: #10240a;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 16px 44px;
	border-radius: 6px;
	transition: background .15s ease;
}

.glr-modal__cta:hover,
.glr-modal__cta:focus-visible {
	background: #5fb845;
	color: #10240a;
	text-decoration: none;
}

/* ---------- Responsive ---------- */

@media ( max-width: 900px ) {
	.glr-members__grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 600px ) {
	.glr-members__grid {
		grid-template-columns: minmax( 0, 1fr );
	}

	.glr-modal {
		padding: 14px;
	}

	.glr-modal__card {
		padding: 40px 22px 32px;
	}
}

/* Keep clickable names visually identical to the static ones in any theme context. */
.glr-members .glr-members__item,
.glr-members .glr-members__item .glr-members__name {
font: inherit !important;
color: inherit !important;
letter-spacing: inherit !important;
text-transform: none !important;
}

.glr-members .glr-members__item button.glr-members__name {
text-decoration-color: #78d25c !important;
}