/* Wash core foundations. Generated from the final legacy cascade; edit this module only. */
html body { font-family: var(--font-sans); background: var(--color-bg); color: var(--color-text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-width: 0; }

.container { margin: 0 auto; padding: 0 var(--space-2); width: 100%; max-width: var(--container-max); box-sizing: border-box; }

/* 键盘和辅助技术：焦点只在需要时显示，不改变鼠标布局。 */
:root { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }
body :is(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  /* 覆盖旧样式中基于 ID 的 outline:0，确保评论输入框也有键盘焦点。 */
  outline: 2px solid var(--color-primary) !important;
  outline-offset: 3px;
}
.wash-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wash-skip-link { position: fixed; top: 12px; left: 16px; z-index: 10002; transform: translateY(-180%); max-width: calc(100% - 32px); padding: 12px 16px; border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-md); }
.wash-skip-link:focus { transform: none; }
#wash-main, .article-content :is(h2, h3, h4), .wash-toc { scroll-margin-top: 76px; }
@media screen and (max-width: 800px) {
  body .header-center-search input, body .wash-user-page input, body .wash-user-page textarea, body .wash-user-page select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
