/* Site Translator – language switcher */
.sst-switcher {
	--sst-bg: #fff;
	--sst-fg: #1d2327;
	--sst-muted: #646970;
	--sst-border: rgba(0, 0, 0, .12);
	--sst-hover: rgba(0, 0, 0, .05);
	font-size: 14px;
	line-height: 1.3;
	position: relative;
	display: inline-block;
	color: var(--sst-fg);
}
@media (prefers-color-scheme: dark) {
	.sst-switcher.sst-floating {
		--sst-bg: #1f2327;
		--sst-fg: #f0f0f1;
		--sst-muted: #a7aaad;
		--sst-border: rgba(255, 255, 255, .15);
		--sst-hover: rgba(255, 255, 255, .08);
	}
}
.sst-switcher ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sst-switcher a {
	display: flex;
	align-items: center;
	gap: .5em;
	padding: .45em .8em;
	color: inherit;
	text-decoration: none;
	border-radius: 6px;
	white-space: nowrap;
}
.sst-switcher a:hover,
.sst-switcher a:focus-visible { background: var(--sst-hover); }
.sst-switcher .sst-current { font-weight: 600; }
.sst-switcher .sst-flag { font-size: 1.15em; line-height: 1; }
.sst-switcher .sst-code { font-weight: 600; letter-spacing: .03em; }

/* Dropdown (<details>) */
.sst-style-dropdown summary {
	display: flex;
	align-items: center;
	gap: .5em;
	padding: .45em .8em;
	cursor: pointer;
	list-style: none;
	border: 1px solid var(--sst-border);
	border-radius: 8px;
	background: var(--sst-bg);
	user-select: none;
}
.sst-style-dropdown summary::-webkit-details-marker { display: none; }
.sst-style-dropdown summary::after {
	content: "";
	width: .4em;
	height: .4em;
	margin-left: .2em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	opacity: .6;
}
.sst-style-dropdown[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.sst-style-dropdown ul {
	position: absolute;
	z-index: 99999;
	top: calc(100% + 4px);
	left: 0;
	min-width: 100%;
	max-height: 60vh;
	overflow: auto;
	padding: 4px;
	background: var(--sst-bg);
	border: 1px solid var(--sst-border);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

/* Inline list */
.sst-style-list ul { display: flex; flex-wrap: wrap; gap: 2px; }

/* Floating */
.sst-floating {
	position: fixed;
	z-index: 99998;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
	border-radius: 8px;
}
.sst-floating summary { border-color: transparent; }
.sst-bottom-right { right: 16px; bottom: 16px; }
.sst-bottom-left { left: 16px; bottom: 16px; }
.sst-top-right { right: 16px; top: 16px; }
.sst-top-left { left: 16px; top: 16px; }
.admin-bar .sst-top-right,
.admin-bar .sst-top-left { top: 48px; }
.sst-bottom-right ul,
.sst-bottom-left ul { top: auto; bottom: calc(100% + 4px); }
.sst-bottom-right ul,
.sst-top-right ul { left: auto; right: 0; }

/* Menu integration */
.sst-menu-item .sst-flag { margin-right: .35em; }

.sst-switcher .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* Language suggestion banner */
.sst-suggest {
	position: fixed;
	z-index: 99998;
	left: 50%;
	top: 16px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: calc(100vw - 32px);
	padding: 10px 12px 10px 16px;
	background: #fff;
	color: #1d2327;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 999px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
	font: 15px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.sst-suggest a { color: inherit; font-weight: 600; text-decoration: none; }
.sst-suggest a:hover { text-decoration: underline; }
.sst-suggest button {
	appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	opacity: .6;
	font-size: 20px;
	line-height: 1;
	padding: 0 4px;
	cursor: pointer;
}
.sst-suggest button:hover { opacity: 1; }
@media (prefers-color-scheme: dark) {
	.sst-suggest { background: #1f2327; color: #f0f0f1; border-color: rgba(255, 255, 255, .15); }
}
