body.ft-docs {
  min-height: 100dvh;
}

body.ft-docs main {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.nav-pill--active {
  color: #f7f9f3 !important;
  background: rgba(200, 255, 61, 0.14) !important;
  border: 1px solid rgba(200, 255, 61, 0.35) !important;
  box-shadow: none !important;
}

.docs-static {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 72px;
  color: #f7f9f3;
  line-height: 1.65;
}

.docs-static h1 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.docs-static a {
  color: #c8ff3d;
}

.docs-static a:hover {
  color: #e2ff91;
}

.docs-static code {
  color: #dfff84;
  background: rgba(200, 255, 61, 0.08);
  padding: 0.12em 0.35em;
  border-radius: 6px;
}

.docs-static .lead {
  color: #b8c0b4;
  font-size: 1.02rem;
  margin-bottom: 28px;
  max-width: 42rem;
}

.docs-static h2 {
  margin: 32px 0 12px;
  font-size: 1.05rem;
  color: #c8ff3d;
  letter-spacing: 0.02em;
}

.docs-static p,
.docs-static li {
  color: #d8ddd2;
}

.docs-static ul,
.docs-static ol {
  padding-left: 1.25rem;
}

.docs-static a {
  color: #c8ff3d;
}

.docs-static nav.breadcrumb {
  font-size: 0.85rem;
  color: #8b9682;
  margin-bottom: 16px;
}

.docs-static nav.breadcrumb a {
  color: #a8b0a4;
  text-decoration: none;
}

.docs-static nav.breadcrumb a:hover {
  color: #c8ff3d;
}

.docs-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 8px 0 28px;
}

.docs-hub-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 16, 22, 0.75);
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.docs-hub-card strong {
  color: #f7f9f3;
  font-size: 0.98rem;
}

.docs-hub-card span {
  color: #9aa392;
  font-size: 0.88rem;
  line-height: 1.45;
}

.docs-hub-card:hover {
  border-color: rgba(200, 255, 61, 0.35);
  background: rgba(18, 24, 16, 0.9);
}

.docs-link-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.docs-link-list li {
  margin: 8px 0;
}

.docs-static .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(105deg, #e4ff7a, #aeea24);
  color: #10130c !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(174, 234, 36, 0.22);
}

.docs-static .related {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* React /docs long guide page */
div.docs > nav.nav.shell .nav-links,
div.docs > nav.nav.shell > a.nav-cta {
  display: none !important;
}

div.docs .docs-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

div.docs .docs-side {
  position: sticky;
  top: 76px;
}

@media (max-width: 900px) {
  div.docs .docs-layout {
    display: block !important;
  }

  div.docs .docs-side {
    position: static;
    margin-bottom: 24px;
  }
}
