/*
 * BHNN Transcript Lightbox styles.
 * Warm/dark blurred backdrop, rounded responsive modal.
 */

.bhnn-transcript-lightbox[hidden] {
	display: none !important;
}

.bhnn-transcript-button-wrap {
	margin: 8px 0 22px;
	padding-bottom: 4px;
	font: 16px/20px "Arimo", sans-serif;
}

.bhnn-transcript-button {
	display: inline-block;
	border: 0;
	background: transparent;
	color: #5d5c5c;
	font: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(248, 176, 24, 0.65);
	text-underline-offset: 3px;
	transition: color 150ms ease, text-decoration-color 150ms ease;
}

.bhnn-transcript-button:hover,
.bhnn-transcript-button:focus-visible {
	background: transparent;
	color: #103346;
	outline: none;
	text-decoration: underline;
	text-decoration-color: #f8b018;
}

.bhnn-transcript-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.bhnn-transcript-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(30, 20, 14, 0.72);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	cursor: pointer;
	animation: bhnn-transcript-fade 180ms ease-out;
}

.bhnn-transcript-lightbox__dialog {
	position: relative;
	z-index: 1;
	background: #fbf6ee;
	color: #1c140d;
	width: 100%;
	max-width: 900px;
	max-height: 85vh;
	border-radius: 8px;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), 0 10px 30px -10px rgba(0, 0, 0, 0.35);
	padding: 32px 36px 28px;
	box-sizing: border-box;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	outline: none;
	animation: bhnn-transcript-rise 220ms ease-out;
}

.bhnn-transcript-lightbox__dialog:focus-visible {
	outline: none;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), 0 10px 30px -10px rgba(0, 0, 0, 0.35);
}

.bhnn-transcript-lightbox__title {
	margin: 0 48px 16px 0;
	font-size: 1.5rem;
	line-height: 1.2;
	color: #103346;
	letter-spacing: 0.01em;
}

.bhnn-transcript-lightbox__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid #f8b018;
	background: transparent;
	color: #f8b018;
	line-height: 1;
	cursor: pointer;
	display: inline-block;
	box-sizing: border-box;
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

/* Geometric X: two 1.5px bars, 16px long, centered in the 40px circle. */
.bhnn-transcript-lightbox__close::before,
.bhnn-transcript-lightbox__close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 1.5px;
	background: currentColor;
	border-radius: 1px;
	transform-origin: center;
}

.bhnn-transcript-lightbox__close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.bhnn-transcript-lightbox__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.bhnn-transcript-lightbox__close:hover,
.bhnn-transcript-lightbox__close:focus-visible {
	background: #f8b018;
	color: #fff;
	outline: none;
}

.bhnn-transcript-lightbox__content {
	overflow-y: auto;
	flex: 1 1 auto;
	padding-right: 8px;
	font: 16px/20px "Arimo", sans-serif;
	color: #5d5c5c;
	-webkit-overflow-scrolling: touch;
}

.bhnn-transcript-lightbox__content p {
	margin: 0 0 1em;
}

.bhnn-transcript-lightbox__content p:last-child {
	margin-bottom: 0;
}

body.bhnn-transcript-lightbox-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.bhnn-transcript-lightbox {
		padding: 12px;
	}
	.bhnn-transcript-lightbox__dialog {
		padding: 24px 18px 20px;
		border-radius: 8px;
		max-height: 92vh;
	}
	.bhnn-transcript-lightbox__title {
		font-size: 1.25rem;
		margin-right: 44px;
	}
}

@keyframes bhnn-transcript-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes bhnn-transcript-rise {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.bhnn-transcript-lightbox__backdrop,
	.bhnn-transcript-lightbox__dialog {
		animation: none;
	}
	.bhnn-transcript-lightbox__close {
		transition: none;
	}
}
