/**
 * Admission notice modal — front page only.
 */
.dbcte-an {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.35s ease,
		visibility 0.35s ease;
}

.dbcte-an.is-open {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
}

.dbcte-an__backdrop {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(125deg, rgba(14, 165, 233, 0.2) 0%, transparent 40%),
		linear-gradient(225deg, rgba(139, 92, 246, 0.18) 0%, transparent 45%),
		linear-gradient(315deg, rgba(249, 115, 22, 0.15) 0%, transparent 40%),
		rgba(15, 23, 42, 0.52);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.dbcte-an.is-open .dbcte-an__backdrop {
	opacity: 1;
}

.dbcte-an__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: min(36rem, 100%);
	max-height: min(90vh, 640px);
	overflow: auto;
	margin: auto;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, #f0f9ff 35%, #faf5ff 70%, #fff7ed 100%);
	border-radius: 16px;
	box-shadow:
		0 0 0 2px rgba(255, 255, 255, 0.85) inset,
		0 4px 6px rgba(15, 23, 42, 0.06),
		0 24px 48px rgba(30, 58, 138, 0.22),
		0 0 0 1px rgba(14, 165, 233, 0.2),
		0 0 40px rgba(139, 92, 246, 0.12);
	transform: scale(0.96) translateY(0.75rem);
	opacity: 0;
	transition:
		transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1),
		opacity 0.35s ease;
	pointer-events: auto;
}

.dbcte-an__dialog::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	border-radius: 16px 16px 0 0;
	background: linear-gradient(
		90deg,
		#0ea5e9 0%,
		#6366f1 25%,
		#a855f7 50%,
		#f97316 75%,
		#eab308 100%
	);
	z-index: 2;
	pointer-events: none;
}

.dbcte-an.is-open .dbcte-an__dialog {
	transform: scale(1) translateY(0);
	opacity: 1;
}

.dbcte-an__close {
	position: absolute;
	top: 0.65rem;
	right: 0.65rem;
	z-index: 3;
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.06);
	color: #334155;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.dbcte-an__close:hover,
.dbcte-an__close:focus-visible {
	background: rgba(30, 58, 138, 0.12);
	color: #0f172a;
	transform: scale(1.05);
	outline: none;
}

.dbcte-an__close:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0, 168, 225, 0.5);
}

.dbcte-an__body {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.dbcte-an__media {
	flex: 0 0 auto;
	background: linear-gradient(145deg, #e0f2fe 0%, #dbeafe 50%, #eef2ff 100%);
	border-radius: 16px 16px 0 0;
	overflow: hidden;
	max-height: 12rem;
}

@media (min-width: 560px) {
	.dbcte-an__body--has-media {
		flex-direction: row;
		align-items: stretch;
	}

	.dbcte-an__body--has-media .dbcte-an__media {
		width: 38%;
		max-height: none;
		min-height: 100%;
		border-radius: 16px 0 0 16px;
	}

	.dbcte-an__body--has-media .dbcte-an__main {
		flex: 1 1 auto;
		padding: 1.75rem 1.75rem 1.5rem;
		border-radius: 0 16px 16px 0;
	}
}

.dbcte-an__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.dbcte-an__main {
	padding: 1.75rem 1.35rem 1.35rem;
}

.dbcte-an__title {
	margin: 0 0 0.75rem;
	padding-right: 2.25rem;
	padding-bottom: 0.35rem;
	font-size: clamp(1.25rem, 2.5vw, 1.55rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.03em;
	color: #0f172a;
	background: linear-gradient(100deg, #1e3a8a 0%, #0369a1 38%, #7c3aed 72%, #c2410c 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.dbcte-an__title + .dbcte-an__alert-h2 {
	margin-top: -0.25rem;
}

.dbcte-an__alert-h2 {
	position: relative;
	margin: 0 0 1rem;
	padding: 0.5rem 0.75rem;
	font-size: clamp(1.02rem, 2.3vw, 1.22rem);
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: -0.01em;
	color: #9f1239;
	background: linear-gradient(90deg, rgba(254, 205, 211, 0.55) 0%, rgba(254, 249, 195, 0.4) 100%);
	border: 1px solid rgba(225, 29, 72, 0.35);
	border-left: 4px solid #e11d48;
	border-radius: 10px;
	box-shadow: 0 2px 14px rgba(225, 29, 72, 0.12);
	-webkit-text-fill-color: #9f1239;
	overflow: hidden;
	animation: dbcte-an-alert-blink 2.1s ease-in-out infinite;
}

.dbcte-an__alert-h2-inner {
	position: relative;
	z-index: 1;
	display: block;
}

/* sweeping highlight — reads as a gentle "scroll" of light */
.dbcte-an__alert-h2::before {
	content: "";
	position: absolute;
	left: -40%;
	top: 0;
	width: 45%;
	height: 100%;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.65) 50%, transparent 100%);
	opacity: 0.85;
	animation: dbcte-an-alert-sweep 3.2s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
}

@keyframes dbcte-an-alert-blink {
	0%,
	100% {
		opacity: 1;
		box-shadow: 0 2px 14px rgba(225, 29, 72, 0.12);
		border-left-color: #e11d48;
	}
	40% {
		opacity: 1;
		box-shadow:
			0 0 0 2px rgba(244, 63, 94, 0.28),
			0 4px 22px rgba(225, 29, 72, 0.32);
		border-left-color: #fb7185;
	}
	55% {
		opacity: 0.97;
		box-shadow: 0 2px 18px rgba(225, 29, 72, 0.2);
		border-left-color: #f43f5e;
	}
}

@keyframes dbcte-an-alert-sweep {
	0% {
		transform: translateX(0);
		opacity: 0;
	}
	12% {
		opacity: 1;
	}
	88% {
		opacity: 1;
	}
	100% {
		transform: translateX(320%);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dbcte-an__alert-h2,
	.dbcte-an__alert-h2::before {
		animation: none;
	}

	.dbcte-an__alert-h2::before {
		display: none;
	}
}

.dbcte-an__message {
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #475569;
}

.dbcte-an__message p {
	margin: 0 0 0.65em;
}

.dbcte-an__message p:last-child {
	margin-bottom: 0;
}

.dbcte-an__message .dbcte-an__list {
	margin: 0;
	padding-left: 1.2rem;
	list-style: disc;
}

.dbcte-an__message .dbcte-an__list li {
	margin: 0 0 0.5em;
	padding-left: 0.12rem;
}

.dbcte-an__message .dbcte-an__list li:last-child {
	margin-bottom: 0;
}

.dbcte-an__message .dbcte-an__list strong {
	color: #334155;
	font-weight: 800;
}

.dbcte-an__message a {
	color: #0369a1;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dbcte-an__message a:hover {
	color: #7c3aed;
}

.dbcte-an__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0 0 1rem;
}

.dbcte-an__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.65rem;
	padding: 0.55rem 1.15rem;
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff !important;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	box-shadow:
		0 4px 16px rgba(15, 23, 42, 0.2),
		0 1px 0 rgba(255, 255, 255, 0.22) inset;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		filter 0.2s ease;
	flex: 1 1 auto;
	min-width: min(100%, 10.5rem);
	text-align: center;
}

.dbcte-an__btn--orange {
	background: linear-gradient(135deg, #ea580c 0%, #f97316 45%, #fb923c 100%);
	box-shadow:
		0 4px 18px rgba(234, 88, 12, 0.45),
		0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.dbcte-an__btn--sky {
	background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 50%, #38bdf8 100%);
	box-shadow:
		0 4px 18px rgba(14, 165, 233, 0.4),
		0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.dbcte-an__btn--violet {
	background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 45%, #a855f7 100%);
	box-shadow:
		0 4px 18px rgba(124, 58, 237, 0.4),
		0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.dbcte-an__btn:hover,
.dbcte-an__btn:focus-visible {
	filter: brightness(1.07);
	transform: translateY(-2px);
	color: #fff !important;
	outline: none;
}

.dbcte-an__btn:focus-visible {
	box-shadow:
		0 0 0 2px #fff,
		0 0 0 5px rgba(14, 165, 233, 0.45),
		0 8px 24px rgba(30, 58, 138, 0.3);
}

.dbcte-an__noshow {
	margin: 0;
	font-size: 0.8125rem;
	color: #64748b;
}

.dbcte-an__noshow label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	cursor: pointer;
	user-select: none;
}

.dbcte-an__noshow input {
	width: 1.05rem;
	height: 1.05rem;
	accent-color: #1e3a8a;
}

@media (max-width: 559px) {
	.dbcte-an__main {
		padding-top: 1.5rem;
	}

	.dbcte-an__title {
		padding-right: 2rem;
	}
}

body.dbcte-an-open {
	overflow: hidden;
}
