:root { color-scheme: light; --ink: #1e293b; --muted: #64748b; --line: #e2e8f0; --accent: #0f766e; --soft: #f8fafc; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: #fff; font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #5eead4; outline-offset: 3px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 10; padding: 8px 16px; background: #fff; border: 1px solid var(--accent); }
.skip:focus { top: 8px; }
.header { height: 68px; position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 max(24px, calc((100vw - 1440px) / 2)); border-bottom: 1px solid var(--line); background: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 19px; font-weight: 750; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-icon { display: inline-grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; color: #fff; background: var(--accent); }
.brand-label { margin-left: 5px; padding-left: 15px; border-left: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.header-actions > a { color: var(--muted); white-space: nowrap; }
.search-open { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); color: var(--muted); font-size: 13px; }
kbd { border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; }
.layout { display: grid; grid-template-columns: 225px minmax(0, 1fr) 205px; max-width: 1440px; margin: 0 auto; }
.sidebar, .toc { position: sticky; top: 68px; align-self: start; height: calc(100vh - 68px); overflow: auto; padding: 30px 24px; }
.sidebar { border-right: 1px solid var(--line); }
.nav-section { margin-bottom: 23px; }
.nav-section > p { margin: 0 0 6px; font-size: 12px; font-weight: 650; color: var(--muted); }
.nav-section a { display: block; color: #475569; font-size: 14px; padding: 5px 10px; margin: 0 -10px; border-radius: 6px; }
.nav-section a:hover { background: var(--soft); text-decoration: none; }
.nav-section a[aria-current] { background: #ecfdf5; color: var(--accent); font-weight: 650; }
.downloads { border-top: 1px solid var(--line); padding-top: 18px; font-size: 12px; }
.downloads a { display: block; margin-bottom: 8px; }
main { min-width: 0; padding: 36px 48px 20px; }
.breadcrumb { color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.breadcrumb span { padding: 0 9px; color: #cbd5e1; }
.prose h1 { font-size: 31px; line-height: 1.35; letter-spacing: -.025em; margin: 0 0 22px; }
.prose h2 { font-size: 22px; line-height: 1.45; margin-top: 40px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 18px; margin-top: 30px; }
.heading-link { margin-left: 9px; opacity: 0; font-weight: 400; font-size: .75em; }
*:hover > .heading-link, .heading-link:focus { opacity: 1; }
.prose p { margin: 15px 0; }
.prose li { margin: 5px 0; }
.prose ul, .prose ol { padding-left: 24px; }
.prose code { font: .87em/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #f1f5f9; border-radius: 4px; padding: 2px 5px; overflow-wrap: anywhere; }
.prose pre { position: relative; background: #f8fafc; border: 1px solid var(--line); border-radius: 9px; padding: 18px; overflow-x: auto; line-height: 1.7; }
.prose pre code { padding: 0; background: none; overflow-wrap: normal; white-space: pre; }
.copy-code { float: right; position: sticky; right: 0; margin: -7px -7px 5px 10px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #fff; font-size: 11px; }
.prose table { display: block; width: 100%; overflow: auto; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 9px 13px; text-align: left; min-width: 110px; }
.prose th { background: var(--soft); font-weight: 650; }
.prose blockquote { margin: 20px 0; padding: 4px 18px; border-left: 3px solid #2dd4bf; background: #f0fdfa; }
.prose img { max-width: 100%; height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.toc { padding-top: 40px; font-size: 12px; }
.toc p { font-weight: 650; margin: 0 0 12px; }
.toc nav { border-left: 1px solid var(--line); padding-left: 14px; }
.toc a { display: block; margin: 10px 0; color: var(--muted); line-height: 1.6; }
.neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 48px 0 24px; }
.neighbors a { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; }
.neighbors a:last-child { text-align: right; }
.neighbors small { color: var(--muted); font-size: 12px; }
footer { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 32px; color: var(--muted); font-size: 11px; }
dialog { width: min(620px, calc(100vw - 32px)); max-height: 80vh; border: 1px solid var(--line); border-radius: 12px; padding: 22px; color: var(--ink); box-shadow: 0 20px 70px #0003; }
dialog::backdrop { background: #0f172a70; }
.search-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.search-heading h2 { font-size: 17px; margin: 0; }
.search-close { border: 0; background: transparent; color: var(--muted); font-size: 25px; }
#search-input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; }
#search-results { margin-top: 12px; }
#search-results a { display: block; border-bottom: 1px solid var(--line); padding: 12px 8px; }
#search-results a span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
#search-results p { color: var(--muted); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.not-found { max-width: 700px; margin: 10vh auto; }
@media (max-width: 1100px) { .layout { grid-template-columns: 205px minmax(0, 1fr); } .toc { display: none; } main { padding: 32px; } }
@media (max-width: 700px) { .header { padding: 0 16px; } .header-actions { gap: 12px; } .search-open { gap: 8px; } .search-open kbd, .brand-label { display: none; } .layout { display: block; } .sidebar { height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; } .sidebar nav { display: flex; flex-wrap: wrap; gap: 8px 16px; } .nav-section { margin: 0; } .nav-section p { display: none; } .nav-section a { display: inline-block; margin: 0; padding: 4px 8px; } .downloads { display: flex; gap: 16px; padding-top: 12px; margin-top: 12px; } .downloads a { margin: 0; } main { padding: 26px 18px; } .prose h1 { font-size: 26px; } .prose h2 { font-size: 20px; } }
@media print { .header, .sidebar, .toc, .neighbors, .copy-code, dialog, .breadcrumb { display: none; } .layout { display: block; } main { padding: 0; } .prose pre, .prose table { overflow: visible; } .prose pre code { white-space: pre-wrap; } .heading-link { display: none; } }
