:root {
  color-scheme: light;
  --docs-bg: #f8fafc;
  --docs-surface: #ffffff;
  --docs-surface-alt: #f1f5f9;
  --docs-text: #0f172a;
  --docs-muted: #475569;
  --docs-border: #e2e8f0;
  --docs-primary: #2563eb;
  --docs-primary-dark: #1d4ed8;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  background-color: var(--docs-bg);
  color: var(--docs-text);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--docs-bg);
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.docs-container {
  width: min(1100px, 94vw);
  margin: 0 auto;
}

.docs-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.docs-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 1.5rem;
}

.docs-logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--docs-primary);
  font-size: 0.95rem;
}

.docs-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 500;
  color: var(--docs-muted);
}

.docs-nav a {
  color: inherit;
}

.docs-nav a[aria-current="page"] {
  color: var(--docs-primary);
  font-weight: 600;
}

.docs-nav__cta {
  padding: 0.4rem 0.9rem;
  border-radius: 9px;
  border: 1px solid var(--docs-primary);
  color: var(--docs-primary);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.docs-nav__cta:hover,
.docs-nav__cta:focus-visible {
  background: var(--docs-primary);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

.docs-main {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  width: min(1100px, 94vw);
  margin: 40px auto 80px;
}

.docs-sidebar {
  position: sticky;
  align-self: start;
  top: 96px;
  padding-bottom: 2rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.docs-toc {
  background: var(--docs-surface);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 16px 45px -38px rgba(15, 23, 42, 0.3);
}

.docs-toc__title {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--docs-muted);
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.docs-toc ol {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
}

.docs-content {
  background: var(--docs-surface);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 24px 60px -42px rgba(15, 23, 42, 0.35);
  padding: 48px clamp(20px, 6vw, 56px);
}

.docs-breadcrumb {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--docs-muted);
  font-size: 0.88rem;
}

.docs-breadcrumb a {
  color: inherit;
}

.docs-content h1 {
  margin-top: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.2;
}

.docs-content h2 {
  margin-top: 2.6rem;
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2.5vw, 1.8rem);
}

.docs-content h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.docs-content p {
  margin: 1rem 0;
  color: var(--docs-muted);
  font-size: 1rem;
}

.docs-content ul,
.docs-content ol {
  color: var(--docs-muted);
  padding-left: 1.3rem;
}

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

.docs-callout {
  background: rgba(37, 99, 235, 0.08);
  border-left: 4px solid var(--docs-primary);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: var(--docs-primary-dark);
}

pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
  overflow-x: auto;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.docs-footer {
  background: #0f172a;
  color: rgba(226, 232, 240, 0.8);
  padding: 32px 0;
}

.docs-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.docs-footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.docs-footer__links a {
  color: rgba(191, 219, 254, 0.95);
}

.docs-footer__links a:hover,
.docs-footer__links a:focus-visible {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 980px) {
  .docs-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    order: -1;
    width: 100%;
    margin-bottom: 1rem;
  }

  .docs-toc {
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
  }
}

@media (max-width: 720px) {
  .docs-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .docs-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.6rem;
  }

  .docs-content {
    padding: 36px clamp(18px, 6vw, 42px);
  }

  .docs-toc ol {
    padding-left: 0.75rem;
  }

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

@media (max-width: 560px) {
  .docs-main {
    gap: 1.5rem;
  }

  .docs-content {
    padding: 28px clamp(16px, 6vw, 34px);
  }

  pre {
    font-size: 0.88rem;
    padding: 1rem 1.1rem;
  }

  .docs-toc {
    padding: 14px 16px;
  }
}
