/* Shared language links keep the existing page's typography and theme. */
.tk-locale-links{display:inline-flex;align-items:center;gap:3px;border:1px solid rgba(128,128,128,.22);border-radius:999px;padding:3px;flex-shrink:0}
.tk-locale-links a{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:4px 11px;border-radius:999px;color:inherit;text-decoration:none;font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;opacity:.65;transition:background-color .18s ease,opacity .18s ease}
.tk-locale-links a[aria-current=page]{opacity:1;background:rgba(128,128,128,.16)}
.tk-locale-links a:hover{opacity:1;background:rgba(128,128,128,.12)}
/* Content pages: back link on the left; text links and language form one group. */
.tk-content-topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px 24px}
.tk-content-topbar>a{flex-shrink:0}
.tk-content-nav-actions{display:flex;align-items:center;justify-content:flex-end;gap:24px;margin-inline-start:auto;min-width:0}
.tk-content-nav-links{display:flex;align-items:center;gap:24px}
.tk-content-nav-links>a{white-space:nowrap}
@media(max-width:480px){.tk-content-topbar{column-gap:12px;row-gap:12px}.tk-content-nav-actions,.tk-content-nav-links{gap:12px}}
.pn-locale-links{margin-left:4px;padding:2px;border-color:rgba(128,128,128,.18)}
.pn-locale-links a{min-height:30px;padding:4px 8px}
a[data-tk-lang]{text-decoration:none}
a[data-tk-lang]:focus-visible{outline:2px solid currentColor;outline-offset:3px}
a[data-tk-lang][aria-busy=true]{cursor:progress}
.tk-locale-bar{display:flex;justify-content:flex-end;max-width:1280px;margin:0 auto;padding:12px 24px;position:relative;z-index:2}
html[data-tk-page="/donate.html"] .tk-locale-bar{position:fixed;top:12px;right:12px;padding:6px;background:#111b;border-radius:999px;z-index:10010}
html[data-tk-page="/donate.html"][lang=en] .dialogue-line{white-space:normal;overflow-wrap:anywhere}
.tk-locale-status{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);max-width:min(90vw,560px);padding:12px 18px;border:1px solid #777;border-radius:12px;background:#111;color:#fff;font:500 14px/1.6 system-ui,sans-serif;box-shadow:0 8px 30px #0004;z-index:10010}
.tk-locale-status[hidden]{display:none}
html[lang=zh-CN] :is(.blog-content,.entry-body){line-height:1.85;word-break:normal;overflow-wrap:anywhere}
html[lang=zh-CN] :is(h1,h2,h3,h4,h5,h6){word-break:normal;overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){.tk-locale-links a{transition:none}}
