:root {
  color-scheme: light;
  --bg: #f7f7fa;
  --panel: #fff;
  --ink: #252333;
  --muted: #686473;
  --line: #e8e6ed;
  --accent: #6744c3;
  --tint: #eeebf6;
}
:root.dark {
  color-scheme: dark;
  --bg: #15141b;
  --panel: #1d1c25;
  --ink: #f0eef5;
  --muted: #aaa5b8;
  --line: #34313e;
  --accent: #b69bec;
  --tint: #2b233d;
}
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    color-scheme: dark;
    --bg: #15141b;
    --panel: #1d1c25;
    --ink: #f0eef5;
    --muted: #aaa5b8;
    --line: #34313e;
    --accent: #b69bec;
    --tint: #2b233d;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 10px 16px; background: var(--panel); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px max(20px, calc((100vw - 1180px) / 2)); background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 20px; text-decoration: none; }
.site-header nav, footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 14px; }
.site-header nav a, footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
main { max-width: 1180px; margin: 0 auto; padding: 40px 20px 64px; }
.hero { max-width: 790px; margin: 0 0 36px 264px; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 550; line-height: 1.15; letter-spacing: -1.4px; }
.summary { color: var(--muted); margin: 16px 0; max-width: 66ch; }
.action { display: inline-flex; gap: 24px; align-items: center; min-height: 44px; padding: 10px 18px; background: #6744c3; color: #fff; border-radius: 9px; text-decoration: none; }
.layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 40px; align-items: start; }
article { grid-column: 2; grid-row: 1; min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); overflow-wrap: anywhere; }
aside { grid-column: 1; grid-row: 1; min-width: 0; }
.side-title { margin: 0 0 8px; padding: 0 12px; font-size: 13px; color: var(--muted); font-weight: 500; }
aside nav { display: grid; gap: 3px; }
aside a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; line-height: 1.45; }
aside a:hover, aside a[aria-current] { color: var(--accent); background: var(--tint); }
.contents { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
summary { cursor: pointer; min-height: 44px; align-content: center; padding: 6px 12px; font-size: 14px; }
.doc-shortcuts { display: none; }
.article-prose > :first-child { margin-top: 0; }
.article-prose h2 { margin: 32px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 24px; font-weight: 550; letter-spacing: -.4px; line-height: 1.3; }
.article-prose h3 { margin: 26px 0 12px; font-size: 19px; line-height: 1.4; }
.article-prose h4 { font-size: 16px; }
.article-prose h2 a, .article-prose h3 a { color: inherit; text-decoration: none; }
.article-prose p { margin: 12px 0; }
.article-prose ul, .article-prose ol { padding-left: 24px; }
.article-prose li { margin: 8px 0; }
.article-prose blockquote { border-left: 3px solid var(--accent); margin: 20px 0; padding: 1px 16px; color: var(--muted); }
code { font: .86em/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; border-radius: 4px; padding: 2px 4px; background: var(--tint); }
pre { max-width: 100%; overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); white-space: pre; }
pre code { padding: 0; background: none; }
.table-scroll { max-width: 100%; overflow: auto; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--tint); font-weight: 600; }
figure { margin: 24px 0; }
figure img { display: block; width: 100%; max-height: 520px; object-fit: contain; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
footer { max-width: 1140px; margin: auto; padding: 24px 20px; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 13px; }
[id] { scroll-margin-top: 24px; }
@media (max-width: 860px) {
  .hero { margin-left: 0; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  article, aside { grid-column: 1; grid-row: auto; }
  .doc-shortcuts { display: flex; gap: 20px; margin-top: 12px; }
  .doc-shortcuts a { min-height: 44px; display: flex; align-items: center; }
  aside nav { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (max-width: 480px) {
  .site-header { padding: 12px 16px; flex-wrap: wrap; gap: 4px; }
  .site-header nav { gap: 16px; }
  main { padding: 28px 12px 40px; }
  article { padding: 20px 16px; }
  h1 { letter-spacing: -.8px; }
  .hero { padding: 0 4px; margin-bottom: 24px; }
  th, td { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
