/* OTSA Observatory — new news notice (loaded on every page when enabled). */

.otsa-toast {
	position: fixed;
	right: 24px;
	top: 150px;
	z-index: 9999;
	display: flex;
	gap: 14px;
	align-items: center;
	width: min(400px, calc(100vw - 32px));
	padding: 12px 44px 12px 12px;
	border-radius: 18px;
	background: #fff;
	color: #324149;
	font-family: Montserrat, system-ui, sans-serif;
	box-shadow: 0 24px 60px rgba(8, 48, 78, 0.28), 0 2px 6px rgba(8, 48, 78, 0.08);
	opacity: 0;
	transform: scale(0.6);
	transform-origin: top right;
	overflow: hidden;
	transition: opacity 0.3s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.otsa-toast::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	background: linear-gradient(180deg, #44965A, #297ABA);
}

.otsa-toast.is-in {
	opacity: 1;
	transform: none;
}

.otsa-toast__media {
	flex: 0 0 64px;
	align-self: stretch;
	margin-left: 4px;
	overflow: hidden;
	border-radius: 12px;
	background: linear-gradient(150deg, #9cc1b0, #44965A);
}

.otsa-toast__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 56px;
	object-fit: cover;
}

.otsa-toast__body {
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1;
	min-width: 0;
}

.otsa-toast__meta {
	grid-area: meta;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 0.72rem;
	color: #5f6d74;
}

.otsa-toast__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 8px 2px 6px;
	border-radius: 999px;
	background: #66AF96;
	color: #fff;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.otsa-toast__dot {
	position: relative;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #fff;
}

.otsa-toast__dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #fff;
	animation: otsa-toast-pulse 2s ease-out infinite;
}

@keyframes otsa-toast-pulse {
	from { transform: scale(1); opacity: 0.8; }
	to { transform: scale(3); opacity: 0; }
}

.otsa-toast__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #0D4D7B;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.otsa-toast__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: max-content;
	color: #44965A;
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
	transition: gap 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
}

.otsa-toast__link:hover,
.otsa-toast__link:focus-visible {
	gap: 10px;
	color: #367a49;
}

.otsa-toast__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #EEF1EE;
	color: #0D4D7B;
	cursor: pointer;
	transition: background-color 0.25s;
}

.otsa-toast__close:hover {
	background: #dfe5e0;
}

@media (max-width: 600px) {
	.otsa-toast {
		right: 16px;
		top: 110px;
	}

	.otsa-toast__media {
		flex-basis: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.otsa-toast,
	.otsa-toast__dot::after {
		transition: none;
		animation: none;
	}
}
