.docs-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 3.5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.docs-sidebar {
  align-self: start;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  padding-right: 1rem;
}

.docs-nav-section {
  margin-bottom: 1.65rem;
}

.docs-nav-heading {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
}

.docs-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-nav-list li {
  margin: 0.15rem 0;
}

.docs-nav-list a {
  border-radius: 7px;
  color: #4b5563;
  display: block;
  font-size: 0.94rem;
  line-height: 1.35;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
}

.docs-nav-list a:hover {
  background: #f1f5f9;
  color: #111827;
}

.docs-nav-list a[aria-current="page"] {
  background: #eef2ff;
  color: #1a53ff;
  font-weight: 700;
}

.docs-mobile-nav {
  display: none;
}

.docs-content {
  color: #374151;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 800px;
  min-width: 0;
}

.docs-content > :first-child {
  margin-top: 0;
}

.docs-content h1 {
  color: #172033;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.docs-content h2 {
  border-top: 1px solid #e5e7eb;
  color: #263449;
  font-size: 1.45rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.docs-content h3 {
  color: #334155;
  font-size: 1.13rem;
  margin-top: 1.8rem;
}

.docs-content p,
.docs-content ul,
.docs-content ol,
.docs-content table {
  margin-bottom: 1.1rem;
}

.docs-content li + li {
  margin-top: 0.35rem;
}

.docs-content code {
  background: #f1f5f9;
  border-radius: 5px;
  color: #be185d;
  font-size: 0.9em;
  padding: 0.14em 0.35em;
}

.docs-lede {
  color: #596579;
  font-size: 1.12rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.docs-eyebrow {
  color: #1a53ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.docs-note {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1a53ff;
  border-radius: 8px;
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
}

.docs-note > :last-child {
  margin-bottom: 0;
}

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

.docs-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: inherit;
  padding: 1.2rem;
  text-decoration: none;
}

.docs-card:hover {
  border-color: #9fb2ff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  color: inherit;
  text-decoration: none;
}

.docs-card h2,
.docs-card h3 {
  border: 0;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  padding: 0;
}

.docs-card p {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.docs-table-wrap {
  overflow-x: auto;
}

.docs-content table {
  border-collapse: collapse;
  width: 100%;
}

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

.docs-content th {
  background: #f8fafc;
  color: #334155;
  font-size: 0.85rem;
}

.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

@media (max-width: 860px) {
  .docs-shell {
    display: block;
    padding-top: 1.25rem;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-mobile-nav {
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    display: block;
    margin-bottom: 2rem;
    padding: 0.2rem 1rem;
  }

  .docs-mobile-nav summary {
    color: #334155;
    cursor: pointer;
    font-weight: 700;
    padding: 0.75rem 0;
  }

  .docs-mobile-nav nav {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
  }
}

@media (max-width: 560px) {
  .docs-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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