/*
 * Spoločné pre ukážkové weby v /ukazky/*: pásik „Ukážka“ hore, plávajúci
 * odkaz späť po odscrollovaní a hláška (toast) pri prvkoch, ktoré v ukážke
 * nefungujú. Vlastné písmo (systémové), aby sa nemiešalo s dizajnom ukážky.
 */
.demo-bar,
.demo-pill,
.demo-toast {
	font-family:
		system-ui,
		-apple-system,
		'Segoe UI',
		Roboto,
		sans-serif;
	-webkit-font-smoothing: antialiased;
}

.demo-bar {
	background: #14110f;
	color: #f4f1ea;
	font-size: 14px;
	line-height: 1.35;
}
.demo-bar__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	width: min(1200px, 100% - 32px);
	min-height: 48px;
	margin-inline: auto;
	padding-block: 8px;
}
.demo-bar__text {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.demo-chip {
	flex: none;
	padding: 3px 8px;
	border-radius: 999px;
	background: #e8871e;
	color: #14110f;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.demo-bar__long {
	color: #c9c3b8;
}
.demo-bar__long a {
	color: #f4f1ea;
	font-weight: 600;
}
.demo-cta {
	flex: none;
	color: #f6a34b;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.demo-cta:hover {
	color: #ffc27f;
	text-decoration: underline;
}
@media (max-width: 767px) {
	.demo-bar__long {
		display: none;
	}
}
@media (min-width: 768px) {
	.demo-bar__short {
		display: none;
	}
}

/* plávajúci odkaz – ukáže sa, keď pásik zmizne z obrazovky */
.demo-pill {
	position: fixed;
	left: 50%;
	bottom: max(14px, env(safe-area-inset-bottom));
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 8px 8px 14px;
	border-radius: 999px;
	background: #14110f;
	color: #f4f1ea;
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 12px 30px -12px rgb(0 0 0 / 0.55);
	transform: translate(-50%, 140%);
	transition: transform 0.35s ease;
}
.demo-pill.is-visible {
	transform: translate(-50%, 0);
}
.demo-pill a {
	padding: 8px 12px;
	border-radius: 999px;
	background: #e8871e;
	color: #14110f;
	font-weight: 700;
	text-decoration: none;
}
.demo-pill a:hover {
	background: #f6a34b;
}
@media (prefers-reduced-motion: reduce) {
	.demo-pill {
		transition: none;
	}
}

.demo-toast {
	position: fixed;
	left: 50%;
	bottom: calc(max(14px, env(safe-area-inset-bottom)) + 62px);
	z-index: 60;
	width: max-content;
	max-width: min(440px, 100% - 32px);
	padding: 12px 16px;
	border-radius: 10px;
	background: #14110f;
	color: #f4f1ea;
	font-size: 14px;
	line-height: 1.45;
	box-shadow: 0 12px 30px -12px rgb(0 0 0 / 0.55);
	transform: translateX(-50%);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.25s,
		visibility 0.25s;
}
.demo-toast.is-visible {
	opacity: 1;
	visibility: visible;
}
