:root {
  --docs-bg: #f5f6fa;
  --docs-surface: #ffffff;
  --docs-border: #e5e7ef;
  --docs-text: #1f2430;
  --docs-muted: #5d6679;
  --docs-accent: #eb5d13;
  --docs-accent-soft: rgba(235, 93, 19, 0.14);
  --docs-shadow: 0 12px 30px rgba(31, 36, 48, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--docs-text);
  background:
    radial-gradient(1200px 600px at 0% -10%, rgba(47, 191, 113, 0.16), transparent 60%),
    radial-gradient(1000px 500px at 100% 20%, rgba(235, 93, 19, 0.12), transparent 62%),
    var(--docs-bg);
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem 1rem;
  border-bottom: 1px solid var(--docs-border);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
}

.docs-brand {
  color: var(--docs-text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.docs-top-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.docs-top-link {
  color: var(--docs-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.docs-top-link:hover {
  color: var(--docs-accent);
}

.docs-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
}

.docs-sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  border: 1px solid var(--docs-border);
  border-radius: 14px;
  background: var(--docs-surface);
  box-shadow: var(--docs-shadow);
  overflow: hidden;
}

.docs-sidebar-head {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--docs-border);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--docs-muted);
}

.docs-menu {
  max-height: calc(100vh - 180px);
  overflow: auto;
  padding: 0.5rem;
}

.docs-menu-group + .docs-menu-group {
  margin-top: 0.55rem;
}

.docs-menu-title {
  margin: 0;
  padding: 0.4rem 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #7b8497;
  text-transform: uppercase;
  font-weight: 700;
}

.docs-menu-link {
  display: block;
  padding: 0.42rem 0.5rem;
  border-radius: 8px;
  color: var(--docs-text);
  text-decoration: none;
  font-size: 0.9rem;
}

.docs-menu-link:hover {
  background: var(--docs-accent-soft);
  color: #9c410d;
}

.docs-content {
  border: 1px solid var(--docs-border);
  border-radius: 16px;
  background: var(--docs-surface);
  box-shadow: var(--docs-shadow);
  padding: 1.2rem 1.25rem;
}

.docs-content h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

.docs-lead {
  margin: 0.5rem 0 0;
  color: var(--docs-muted);
  line-height: 1.65;
}

.docs-section {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--docs-border);
}

.docs-section h2 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.docs-section h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1rem;
}

.docs-section p,
.docs-section li {
  color: var(--docs-muted);
  line-height: 1.65;
}

.docs-section ul,
.docs-section ol {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
}

.docs-note {
  margin-top: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: var(--docs-accent-soft);
  color: #7e3509;
  font-size: 0.9rem;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.7rem;
}

.docs-feature-card {
  border: 1px solid var(--docs-border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}

.docs-feature-card p {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
}

.docs-footer {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--docs-border);
  color: #7b8497;
  font-size: 0.84rem;
}

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

  .docs-sidebar {
    position: static;
  }

  .docs-card-grid {
    grid-template-columns: 1fr;
  }
}
