:root {
  --docs-bg: #ffffff;
  --docs-fg: #111827;
  --docs-muted: #6b7280;
  --docs-border: #e5e7eb;
  --docs-code-bg: #f5f5f7;
  --docs-link: #2563eb;
  --docs-link-hover: #1d4ed8;
  --docs-max-width: 760px;
  --docs-header-height: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--docs-bg);
  color: var(--docs-fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--docs-link);
  text-decoration: none;
}

a:hover {
  color: var(--docs-link-hover);
  text-decoration: underline;
}

.docs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--docs-header-height);
  padding: 0 1.5rem;
  background: var(--docs-bg);
  border-bottom: 1px solid var(--docs-border);
}

.docs-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--docs-fg);
  font-weight: 600;
}

.docs-logo-link:hover {
  color: var(--docs-fg);
  text-decoration: none;
}

.docs-logo {
  max-height: 32px;
  width: auto;
  display: block;
}

.docs-title {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.docs-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.docs-nav a {
  color: var(--docs-fg);
  font-size: 0.95rem;
}

.docs-nav a:hover {
  color: var(--docs-link);
  text-decoration: none;
}

.docs-content {
  max-width: var(--docs-max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.docs-content h1,
.docs-content h2,
.docs-content h3 {
  color: var(--docs-fg);
  line-height: 1.25;
}

.docs-content h1 {
  font-size: 2rem;
  margin: 0 0 1rem;
}

.docs-content h2 {
  font-size: 1.4rem;
  margin: 2.25rem 0 0.75rem;
}

.docs-content h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.5rem;
}

.docs-content p {
  margin: 0 0 1rem;
}

.docs-content ul,
.docs-content ol {
  margin: 0 0 1rem 1.5rem;
  padding: 0;
}

.docs-content li {
  margin-bottom: 0.25rem;
}

.docs-content pre {
  background: var(--docs-code-bg);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
}

.docs-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
}

.docs-content :not(pre) > code {
  background: var(--docs-code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.docs-content th,
.docs-content td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--docs-border);
  vertical-align: top;
}

.docs-content th {
  background: var(--docs-code-bg);
  font-weight: 600;
}

.docs-content blockquote {
  margin: 0 0 1rem;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--docs-border);
  background: var(--docs-code-bg);
  color: var(--docs-muted);
}

.docs-reference {
  display: block;
}

.docs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--docs-border);
  font-size: 0.9rem;
  color: var(--docs-muted);
}

.docs-footer a {
  color: var(--docs-muted);
}

.docs-footer a:hover {
  color: var(--docs-link);
}

@media (max-width: 640px) {
  .docs-header {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 1rem;
    gap: 0.75rem;
  }

  .docs-nav {
    gap: 0.75rem;
  }

  .docs-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
