/* The language switch and the Chinese letter fonts (languages session D, 12 Nov 2026; built in by integration/build-languages.mjs as /site/styles/languages.css). No script: the switch is a <details> list of links. 27 Nov 2026, the owner's design B: the globe and a short code, no box. */
.lang-switch{position:relative;font:500 14px/1.4 Geist,Arial,Helvetica,sans-serif}
.lang-switch>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;box-sizing:border-box;padding:7px 9px;border-radius:7px;color:#213970;font-weight:600;white-space:nowrap}
.lang-switch>summary:hover,.lang-switch[open]>summary{background:#eef3fa}
@media(pointer:coarse){.lang-switch>summary{min-height:44px}}
.lang-switch>summary::-webkit-details-marker{display:none}
.lang-switch>summary:before{content:"";width:17px;height:17px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3Cpath d='M3 12h18M4.8 7.5h14.4M4.8 16.5h14.4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3Cpath d='M3 12h18M4.8 7.5h14.4M4.8 16.5h14.4'/%3E%3C/svg%3E") center/contain no-repeat}
.lang-switch>summary:after{content:"";width:5px;height:5px;border-right:1.4px solid currentColor;border-bottom:1.4px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.lang-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:30;display:grid;min-width:170px;padding:6px;background:#fff;border:1px solid #d8e2f0;border-radius:10px;box-shadow:0 10px 30px rgba(15,23,42,.14)}
.lang-menu a{padding:10px 12px;border-radius:6px;color:#213970;text-decoration:none;font-size:15px}
.lang-menu a:hover{background:#f4f7fa}.lang-menu a[aria-current]{font-weight:600;background:#eef3fa}
html:lang(zh-Hant) body{font-family:Geist,"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif}
html:lang(zh-Hans) body{font-family:Geist,"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif}
html:lang(zh-Hant) :is(h1,h2,h3),html:lang(zh-Hans) :is(h1,h2,h3){letter-spacing:0;line-height:1.25}
html:lang(zh-Hant) :is(p,li),html:lang(zh-Hans) :is(p,li){line-height:1.8}
html:lang(zh-Hant) :is(h1,h2),html:lang(zh-Hans) :is(h1,h2){text-wrap:balance}
/* Header on a computer (from 961 px: below that the header has no room for it without wrapping its menu, e.g. an iPad held
   upright); at the foot of the page below 961 px, as a plain line of links. One switch on a page at any width. */
.lang-foot{display:none;flex-wrap:wrap;gap:4px 16px;align-items:center;font:500 14px/1.6 Geist,Arial,Helvetica,sans-serif}
.lang-foot:before{content:"";width:15px;height:15px;flex:none;background:#62718b;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3Cpath d='M3 12h18M4.8 7.5h14.4M4.8 16.5h14.4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3Cpath d='M3 12h18M4.8 7.5h14.4M4.8 16.5h14.4'/%3E%3C/svg%3E") center/contain no-repeat}
.lang-foot a{color:#213970;text-decoration:none;white-space:nowrap}.lang-foot a[aria-current]{font-weight:600;text-decoration:underline;text-underline-offset:4px}
.nb-footer .lang-foot{width:100%;padding-top:10px}
@media(max-width:960px){.lang-head{display:none}.lang-foot{display:flex}}
/* long German, Spanish and Portuguese words may break rather than push the page wider than the screen */
html:lang(de) body,html:lang(es) body,html:lang(pt-BR) body{overflow-wrap:break-word;hyphens:auto}
/* a link set never to wrap in English can be longer in another language (and with its "(English)" mark): it may wrap there */
html:not([lang="en"]) .shape-strip>a{white-space:normal}
/* last, so it wins over the globe rules above: in Windows' forced colours the globe takes the text colour */
@media(forced-colors:active){.lang-switch>summary:before,.lang-foot:before{forced-color-adjust:none;background:CanvasText}}
