/*
 * ZKM arhiva - "Povratak na zekaem.hr" button, always in the top right corner.
 *
 * Sizes per width are chosen from measurements of the theme header so the button never covers
 * the page title or the logo:
 *   >= 1260px  full pill (title ends well left of it)
 *   601-1259px slim pill above the title line (the title reaches the right edge at 768px)
 *   <= 600px   compact pill with the short label, right of the centred logo
 *   <= 379px   arrow only (the centred logo leaves no room for a label)
 * The label is nudged down by 0.125em: the theme font (Gill Sans Light) sits high in its line
 * box, so plain flex centring leaves the letters about 2px above the middle of the pill.
 */
.zkm-arhiva-povratak {
	position: fixed;
	top: 14px;
	right: 14px;
	z-index: 9000;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	height: 40px;
	padding: 0 14px 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.78);
	color: #fff !important;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.zkm-arhiva-povratak svg {
	display: block;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}

.zkm-arhiva-povratak__dugo,
.zkm-arhiva-povratak__kratko {
	position: relative;
	top: 0.125em;
	line-height: 1;
}

.zkm-arhiva-povratak__kratko {
	display: none;
}

.zkm-arhiva-povratak:hover,
.zkm-arhiva-povratak:focus {
	background: #fff;
	border-color: #fff;
	color: #000 !important;
}

.zkm-arhiva-povratak:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

@media (max-width: 1259px) {
	.zkm-arhiva-povratak {
		top: 4px;
		right: 10px;
		gap: 6px;
		height: 28px;
		padding: 0 11px 0 9px;
		font-size: 12px;
	}

	.zkm-arhiva-povratak svg {
		width: 14px;
		height: 14px;
	}
}

@media (max-width: 600px) {
	.zkm-arhiva-povratak {
		top: 10px;
		gap: 7px;
		height: 36px;
		padding: 0 12px 0 10px;
		font-size: 13px;
	}

	.zkm-arhiva-povratak svg {
		width: 16px;
		height: 16px;
	}

	.zkm-arhiva-povratak__dugo {
		display: none;
	}

	.zkm-arhiva-povratak__kratko {
		display: inline;
	}
}

@media (max-width: 379px) {
	.zkm-arhiva-povratak {
		width: 36px;
		padding: 0;
	}

	.zkm-arhiva-povratak__kratko {
		display: none;
	}
}

@media print {
	.zkm-arhiva-povratak {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zkm-arhiva-povratak {
		transition: none;
	}
}
