/* MyLivora — language switcher + Simplified Chinese typography (inc/i18n.php). */

/* ---------- EN | 中文 switcher ---------- */
.mlv-lang { display: inline-flex; align-items: center; gap: .45rem; font-size: 12px; line-height: 1; letter-spacing: .12em; white-space: nowrap; color: inherit; }
.mlv-lang a { color: inherit; opacity: .55; text-decoration: none; padding: .5rem .1rem; transition: opacity .3s; }
.mlv-lang a:hover, .mlv-lang a:focus-visible { opacity: 1; }
.mlv-lang a[aria-current] { opacity: 1; font-weight: 600; }
.mlv-lang span { opacity: .35; }
.mlv-lang a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }
/* homepage header */
#site-header .mlv-lang { color: var(--foreground, #2f3127); margin-right: .35rem; }
/* sub-page header: white while over the photo banner (same rule as the nav) */
.pg-header .mlv-lang { color: var(--foreground, #2f3127); margin-right: .5rem; }
.pg--banner:not(.menu-open) .pg-header:not(.is-scrolled) .mlv-lang { color: #fff; }

/* ---------- Simplified Chinese ---------- */
html[lang^="zh"] {
	--font-display: 'Cormorant Garamond', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', serif;
	--font-sans: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
}
html[lang^="zh"] body { font-family: var(--font-sans); }
html[lang^="zh"] .display, html[lang^="zh"] .pg-display { font-family: var(--font-display); letter-spacing: 0; line-height: 1.25; }
/* No fake (slanted) Chinese characters: Latin keeps its real italic, Han glyphs stay upright. */
html[lang^="zh"] * { font-synthesis-style: none; font-synthesis: weight; }
/* Wide tracking on uppercase labels looks broken with Han characters. */
html[lang^="zh"] .label, html[lang^="zh"] .pg-label, html[lang^="zh"] .pg-card__eyebrow,
html[lang^="zh"] [class*="tracking-["], html[lang^="zh"] .pg-btn, html[lang^="zh"] .pg-lcard__price small { letter-spacing: .06em; }
html[lang^="zh"] p, html[lang^="zh"] li { line-break: strict; }
html[lang^="zh"] .pg-text, html[lang^="zh"] .pg-lead { line-height: 1.9; }
