/* ========== The canvas in Chinese ==========
   The language switch (Jarred's web/coordxyz-i18n.js, in Settings → Account → Language) sets <html lang="zh-Hans">;
   the words come from app/i18n/zh.js. Here, what Chinese asks of the page itself:
   - Type: the Chinese faces after ours, as Settings has them (web/coordxyz-account.js), so our letters and figures stay
     and the characters come from the system's own: PingFang SC on Apple, Microsoft YaHei on Windows, Noto elsewhere.
     The book serif's are a Song face where there is a good one, else the same sans.
   - The small labels in tracked capitals (an instrument's labels: 8 to 10.5px mono, letter-spaced, uppercase): Chinese
     has no capitals, and spaced-out characters read as separate words, so none is spaced, and each is a little larger,
     the size a character can be read at (about 11px where a capital reads at 9.5).
   - Chinese has no italics: what leans in English stands upright.
   - The words the stylesheets write themselves (content: "…"), and Unsorted's name, which is saved in English. */
:root[lang^="zh"] {
  --f-ui: "Geist", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Newsreader", "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "PingFang SC", "Microsoft YaHei", Georgia, "Times New Roman", serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", monospace;
}

/* The labels, by the size they have in English (one selector each, so each keeps its own weight in the cascade). */
:root[lang^="zh"] #guide figcaption,
:root[lang^="zh"] .mai-h,
:root[lang^="zh"] .ib-k,
:root[lang^="zh"] .ap-t,
:root[lang^="zh"] .ab-l,
:root[lang^="zh"] .ab-k,
:root[lang^="zh"] .ak-t,
:root[lang^="zh"] .ak-s,
:root[lang^="zh"] .ak-src-k,
:root[lang^="zh"] .ak-hk,
:root[lang^="zh"] .mh-w,
:root[lang^="zh"] #itip,
:root[lang^="zh"] .ip-t,
:root[lang^="zh"] .ip-s,
:root[lang^="zh"] #bview,
:root[lang^="zh"] #tview,
:root[lang^="zh"] .tv-o,
:root[lang^="zh"] .obj.board[data-view="icon"] .bcount,
:root[lang^="zh"] .al-tx span,
:root[lang^="zh"] .cstack:empty::before,
:root[lang^="zh"] .obj.board:not([data-view="icon"]).into > .binner::after,
:root[lang^="zh"] .obj.image.lost::after,
:root[lang^="zh"] .obj.image.pic-try::after,
:root[lang^="zh"] .fc-lost::after { font-size: 11px; letter-spacing: 0; }
:root[lang^="zh"] .ip-l,
:root[lang^="zh"] .ip-tip { font-size: 10.5px; letter-spacing: 0; }
:root[lang^="zh"] .ip-o small,
:root[lang^="zh"] .ip-sw,
:root[lang^="zh"] .sf-o small,
:root[lang^="zh"] #ipop .sf-o small { font-size: 10px; letter-spacing: 0; }
:root[lang^="zh"] #empty small,
:root[lang^="zh"] #cards > * > .c3.org > .org-lab,
:root[lang^="zh"] .col { font-size: 11.5px; letter-spacing: 0; }
:root[lang^="zh"] .chip,
:root[lang^="zh"] .chip-probe,
:root[lang^="zh"] .ed-c { font-size: 12px; letter-spacing: 0; }   /* the probe measures the chip (preview.js) */
:root[lang^="zh"] .mi .mst,
:root[lang^="zh"] .ip-l em { letter-spacing: 0; }
:root[lang^="zh"] .tm-b { font-size: 5.3cqh; letter-spacing: 0; }
@media (min-width: 601px) and (max-width: 900px) { :root[lang^="zh"] #guide figcaption { font-size: 10px; } }
@media (max-width: 600px) { :root[lang^="zh"] #guide figcaption { font-size: 10.5px; } }
@media (max-width: 380px) { :root[lang^="zh"] #guide figcaption { font-size: 10px; } }

/* The empty canvas's key line breaks between its parts (at a space, a ·), never inside a word as Chinese otherwise may. */
:root[lang^="zh"] #empty small { word-break: keep-all; }

/* Upright. */
:root[lang^="zh"] #empty strong em,
:root[lang^="zh"] #boot .bt-w i,
:root[lang^="zh"] .ak-0,
:root[lang^="zh"] .crumb.mode { font-style: normal; }

/* Unsorted: its column keeps its English name, which is how CoordXYZ finds it again (UNSORTED, section 17); shown in Chinese. */
:root[lang^="zh"] #objs > .obj.column.us .ct,
:root[lang^="zh"] #usv .ct { font-size: 0; }
:root[lang^="zh"] #objs > .obj.column.us .ct::before,
:root[lang^="zh"] #usv .ct::before { content: "未分类"; font-size: 11px; letter-spacing: 0; }

/* The words written in app/css (cards.css, columns.css, shapes.css; a picture still loading says so in cards.css). */
:root[lang^="zh"] .obj.image.lost::after,
:root[lang^="zh"] .fc-lost::after { content: "未保存 · 再拖进来一次"; }
:root[lang^="zh"] .fc-lost::after { content: "把文件再拖到这里"; }
@media (pointer: coarse) {
  :root[lang^="zh"] .obj.image.lost::after { content: "未保存 · 轻点两下重新添加"; }
  :root[lang^="zh"] .fc-lost::after { content: "轻点两下重新添加"; }
}
@container (max-width: 240px) { :root[lang^="zh"] .obj.image.lost::after { content: "未保存"; } }
:root[lang^="zh"] .cstack:empty::before { content: "把内容拖到这里"; }
:root[lang^="zh"] .obj.board:not([data-view="icon"]).into > .binner::after { content: "放进看板"; }
:root[lang^="zh"] #objs:not(:has(> .sel ~ .sel)) > .obj.shape.sel:not(:focus-within) .sx:empty::before { content: "点击即可输入"; }
@media (pointer: coarse) { :root[lang^="zh"] #objs:not(:has(> .sel ~ .sel)) > .obj.shape.sel:not(:focus-within) .sx:empty::before { content: "轻点即可输入"; } }
