/* STŠ Pismo 1.1.0 – switcher (shortcode) + dugme u meniju */
.sts-pismo-switcher {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 2px;
	border: 1px solid #D5DCE5;
	border-radius: 999px;
	background: #FFFFFF;
	font-size: 12px;
	line-height: 1;
	vertical-align: middle;
	white-space: nowrap;
}

.sts-pismo-switcher .sts-pismo-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 28px;
	margin: 0;
	padding: 0 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: #0D1826;
	font-family: inherit;
	font-size: inherit;
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.sts-pismo-switcher .sts-pismo-btn:hover {
	background: transparent;
	color: #0075AC;
}

.sts-pismo-switcher .sts-pismo-btn:focus {
	outline: none;
}

.sts-pismo-switcher .sts-pismo-btn:focus-visible {
	outline: 2px solid #0075AC;
	outline-offset: 2px;
}

/* Aktivno pismo: podrazumevano ЋИР; klasu html.sts-pismo-lat postavlja skripta u <head>. */
.sts-pismo-switcher .sts-pismo-btn--cir,
html.sts-pismo-lat .sts-pismo-switcher .sts-pismo-btn--lat {
	background: #0D1826;
	color: #FFFFFF;
	cursor: default;
}

html.sts-pismo-lat .sts-pismo-switcher .sts-pismo-btn--cir {
	background: transparent;
	color: #0D1826;
	cursor: pointer;
}

html.sts-pismo-lat .sts-pismo-switcher .sts-pismo-btn--cir:hover {
	color: #0075AC;
}

@media (max-width: 480px) {
	.sts-pismo-switcher {
		font-size: 11px;
	}
	.sts-pismo-switcher .sts-pismo-btn {
		min-width: 36px;
		padding: 0 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sts-pismo-switcher .sts-pismo-btn {
		transition: none;
	}
}

/* ---------- Dugme na kraju glavnog menija (1.1.0) ---------- */
.sts-pismo-menu-item {
	display: flex;
	align-items: center;
	margin: 0 0 0 10px;
	padding: 0;
	list-style: none;
}

.sts-pismo-menu-item .sts-pismo-menu-toggle {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	min-width: 44px;
	margin: 0;
	padding: 0 11px;
	border: 1px solid #D5DCE5;
	border-radius: 3px;
	background: #FFFFFF;
	box-shadow: none;
	color: #0D1826;
	font-family: "Oswald", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .04em;
	line-height: 1;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease;
}

.sts-pismo-menu-item .sts-pismo-menu-toggle:hover,
.sts-pismo-menu-item .sts-pismo-menu-toggle:focus-visible {
	border-color: #0075AC;
	background: #FFFFFF;
	color: #0075AC;
}

.sts-pismo-menu-item .sts-pismo-menu-toggle:focus {
	outline: none;
}

.sts-pismo-menu-item .sts-pismo-menu-toggle:focus-visible {
	outline: 2px solid #0075AC;
	outline-offset: 2px;
}

/* Prikazuje se samo DRUGO pismo: ćirilica aktivna → LAT, latinica aktivna → ЋИР. */
.sts-pismo-menu-label--cir,
html.sts-pismo-lat .sts-pismo-menu-label--lat {
	display: none;
}

html.sts-pismo-lat .sts-pismo-menu-label--cir {
	display: inline;
}

/* Mobilni / offcanvas meni: stavka ide ispod ostalih, bez levog razmaka. */
.sts-pismo-menu-item--mobile {
	margin: 12px 0 0;
}

.sts-pismo-menu-item--mobile .sts-pismo-menu-toggle {
	align-self: flex-start;
	width: auto;
}

@media (prefers-reduced-motion: reduce) {
	.sts-pismo-menu-item .sts-pismo-menu-toggle {
		transition: none;
	}
}
