/* May 2026 update modal — matches ta2026 site theme */
body.ta-popup-open {
	overflow: hidden;
}

#fb-back.ta-popup {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

#fb-back.ta-popup[hidden] {
	display: none !important;
}

.ta-popup__backdrop {
	position: absolute;
	inset: 0;
	cursor: pointer;
}

.ta-popup__panel {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(700px, 92vw);
	max-height: min(88vh, 720px);
	margin: 0;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-hover);
	overflow: hidden;
	font-family: var(--font);
}

.ta-popup__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	max-height: min(88vh, 720px);
	padding: 0;
	margin: 0;
	text-align: center;
}

.ta-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	margin: 0;
	font-family: var(--font);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	color: var(--text);
	cursor: pointer;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 50%;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.ta-popup__close:hover {
	color: var(--accent);
	border-color: var(--accent);
	background: var(--accent-light);
}

.ta-popup__inner h3 {
	margin: 0;
	padding: 1.5rem 3rem 0.75rem;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--accent) !important;
}

.ta-popup__body {
	flex: 1;
	padding: 0 1.75rem 1.25rem;
	overflow-y: auto;
}

.ta-popup__body p {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--text-muted) !important;
}

.ta-popup__body p:last-child {
	margin-bottom: 0;
}

.ta-popup__footer {
	flex-shrink: 0;
	height: 12px;
	background: var(--bg);
	border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
	.ta-popup__inner h3 {
		padding: 1.25rem 2.75rem 0.5rem 1rem;
		font-size: 1.15rem;
	}

	.ta-popup__body {
		padding: 0 1.25rem 1rem;
	}

	.ta-popup__body p {
		font-size: 0.875rem;
	}
}
