:root,
[data-theme="dark"] {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #526074;
  --line: #d5deea;
  --accent: #4c8bf5;
  --link: #1e4fbf;
  --paper: var(--bg);
  --surface-soft: #f3f6fa;
  --faint: #6b7585;
  --line-strong: #c5d0de;
  --accent-soft: #e7f0fe;
  --code: #12151c;
  --code-ink: #eef2f7;
  --green: #0f7a56;
  --shadow: 0 18px 50px rgb(23 32 51 / 10%);
  --topbar: 0px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

.docs-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0 0.35rem;
}
.docs-tools .search-trigger {
  position: static;
  flex: 1;
  max-width: 40rem;
  top: auto;
  left: auto;
  right: auto;
}
.docs-tools .menu-button { display: none; }

.shell { padding: 0.5rem 28px 3rem; }
.sidebar { top: 0; height: 100vh; }
.content { padding-top: 1.75rem; }
.content a { color: var(--link); }
.nav-group a.active { color: var(--link); background: var(--accent-soft); }
h1 {
  max-width: 40rem;
  font-size: clamp(1.75rem, 2.4vw, 2.125rem);
  font-weight: 650;
}
.lede { margin: 0.75rem 0 1.5rem; font-size: 1rem; }
.eyebrow { letter-spacing: 0.04em; text-transform: none; font-size: 0.82rem; font-weight: 600; }

.doc-shot { margin: 1.5rem 0 2rem; }
.doc-shot a { display: block; cursor: zoom-in; }
.doc-shot img,
.doc-shot video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px -12px rgb(0 0 0 / 0.18);
}
.doc-shot figcaption { margin-top: 0.65rem; color: var(--muted); font-size: 0.88rem; text-align: center; }

@media (max-width: 760px) {
  .docs-tools { flex-wrap: wrap; }
  .docs-tools .menu-button { display: inline-flex; align-items: center; min-height: 2.5rem; }
  .docs-tools .search-trigger { flex-basis: 100%; max-width: none; }
  .shell { display: block; padding: 0.25rem 20px 3rem; }
  .sidebar { top: 0; }
  .content { padding-top: 1.25rem; }
  h1 { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sidebar { transition: none; }
}
