:root {
  --docs-bg: #f6f7f8;
  --docs-card: #ffffff;
  --docs-line: #e4e7eb;
  --docs-text: #1f2933;
  --docs-muted: #677281;
  --docs-green: #17aa45;
  --docs-green-soft: #dff4e6;
}

.docs-portal-body {
  background: radial-gradient(circle at top right, #ecf7ef 0, #f6f7f8 38%, #f6f7f8 100%);
  color: var(--docs-text);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.docs-topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--docs-line);
  display: flex;
  gap: 1rem;
  min-height: 74px;
  padding: 0.75rem 1.5rem;
}

.docs-brand-wrap {
  min-width: 220px;
}

.docs-brand-mark {
  color: var(--docs-green);
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.docs-search-wrap {
  align-items: center;
  background: #f8fafb;
  border: 1px solid var(--docs-line);
  border-radius: 16px;
  display: flex;
  flex: 1;
  gap: 0.6rem;
  max-width: 620px;
  padding: 0.55rem 0.9rem;
}

.docs-search-wrap i {
  color: var(--docs-muted);
  font-size: 1.2rem;
}

.docs-search-input {
  background: transparent;
  border: none;
  color: var(--docs-text);
  flex: 1;
  font-size: 1rem;
  outline: none;
}

.docs-search-input::placeholder {
  color: #97a2b0;
}

.docs-search-hint {
  color: var(--docs-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.docs-topbar-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
}

.docs-pill-action,
.docs-primary-action {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 700;
  font-size: 0.9rem;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  text-decoration: none;
}

.docs-pill-action {
  border: 1px solid var(--docs-line);
  color: var(--docs-muted);
}

.docs-primary-action {
  background: var(--docs-green);
  color: #fff;
}

.docs-primary-action:hover,
.docs-pill-action:hover {
  text-decoration: none;
}

.docs-shell {
  max-width: 1440px;
}

.docs-shell-row {
  align-items: flex-start;
}

.docs-left-rail {
  max-width: 300px;
  padding: 1.8rem 1rem 1rem 1.4rem;
}

.docs-sidebar {
  border-right: 1px solid var(--docs-line);
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  padding-right: 0.9rem;
  position: sticky;
  top: 86px;
}

.docs-sidebar-section {
  margin-bottom: 1.6rem;
}

.docs-sidebar-section h6 {
  color: #202938;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.docs-sidebar-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.docs-sidebar-section a {
  border-radius: 10px;
  color: #4f5d6d;
  display: block;
  font-size: 1.04rem;
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.docs-sidebar-section a.active {
  background: var(--docs-green-soft);
  color: #0e8b36;
  font-weight: 700;
}

.docs-main {
  min-height: calc(100vh - 100px);
  padding: 2.2rem 2.3rem 3rem;
}

.docs-page-head {
  margin-bottom: 1.85rem;
}

.docs-page-eyebrow {
  color: var(--docs-green);
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.docs-page-title {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.55rem;
}

.docs-page-subtitle {
  color: #4f5d6d;
  font-size: 1.6rem;
  line-height: 1.35;
  margin-bottom: 0;
  max-width: 900px;
}

.docs-main .card {
  background: var(--docs-card);
  border: 1px solid var(--docs-line);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(27, 44, 67, 0.05);
}

.docs-main .card-header {
  border-bottom: 1px solid var(--docs-line);
  border-radius: 18px 18px 0 0;
}

.docs-main pre,
.docs-main code {
  border-radius: 8px;
}

.docs-right-rail {
  max-width: 280px;
  padding: 2rem 1.2rem 0.8rem;
}

.docs-toc-wrap {
  position: sticky;
  top: 94px;
}

.docs-toc-title {
  color: #202938;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.docs-toc-list {
  border-left: 1px solid var(--docs-line);
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.9rem;
}

.docs-toc-list li {
  margin-bottom: 0.55rem;
}

.docs-toc-list a {
  color: #5d6b79;
  font-size: 0.98rem;
  font-weight: 500;
}

.docs-toc-list a:hover {
  color: #0e8b36;
}

@media (max-width: 1199.98px) {
  .docs-main {
    padding-right: 1.4rem;
  }

  .docs-page-subtitle {
    font-size: 1.25rem;
  }
}

@media (max-width: 991.98px) {
  .docs-topbar {
    min-height: 66px;
    padding: 0.65rem 1rem;
  }

  .docs-brand-wrap {
    min-width: 136px;
  }

  .docs-brand-mark {
    font-size: 1.6rem;
  }

  .docs-left-rail {
    max-width: 100%;
    padding: 1rem;
  }

  .docs-sidebar {
    border-right: none;
    max-height: none;
    position: static;
  }

  .docs-main {
    padding: 1rem;
  }

  .docs-page-title {
    font-size: 1.8rem;
  }

  .docs-page-subtitle {
    font-size: 1.1rem;
  }
}
