/* Language switchers: "Language" dropdown in the header menus + footer bottom bar. */
.qb-lang-switcher {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	line-height: 1.5;
}

.qb-lang-switcher .qb-lang-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	opacity: 0.7;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.qb-lang-switcher .qb-lang-link:hover,
.qb-lang-switcher .qb-lang-link:focus-visible,
.qb-lang-switcher .qb-lang-link.is-active {
	opacity: 1;
}

.qb-lang-switcher .qb-lang-link.is-active {
	font-weight: 600;
}

.qb-lang-switcher .qb-lang-sep {
	opacity: 0.4;
}

/* Header menu: "Language" dropdown with flags. */
.qb-flag {
	flex: none;
	width: 21px;
	height: 14px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
	object-fit: fill;
}

.qb-lang-option > .ct-menu-link {
	gap: 10px;
	white-space: nowrap;
}

/* Footer bar, under the copyright line (flag + name per language). */
.qb-lang-switcher--footer .qb-flag {
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.qb-lang-switcher--footer {
	justify-content: center;
	width: 100%;
	color: #fff;
	font-size: 14px;
}

/* Chinese pages: proper CJK fallback fonts after the Latin ones. */
html:lang(zh) body {
	font-family: var(--theme-font-family, sans-serif), "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
}
