/* QUANTUM LABS — Documentation Page */

.docs-layout {
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: 200px 1fr;
  margin-top: var(--sp-8);
}

/* Docs Sidebar */
.docs-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

/* Docs Nav */
.docs-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

/* Docs Nav Item */
.docs-nav-item {
  padding: var(--sp-2) var(--sp-3);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--ash);
  text-align: left;
  background: none;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  border-left: 2px solid transparent;
  border-right: none;
  border-top: none;
  border-bottom: none;
}
.docs-nav-item:hover {
  color: var(--bone);
  background: var(--white-03);
}
.docs-nav-item.active {
  color: var(--ember);
  background: var(--ember-06);
  border-left-color: var(--ember);
}

/* Docs Content */
.docs-content {
  min-width: 0;
}

/* Docs Section */
.docs-section {
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--wire);
}
.docs-section:last-child {
  border-bottom: none;
}
.docs-section h2 {
  margin-bottom: var(--sp-4);
  font-size: var(--text-xl);
}
.docs-section h3 {
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  font-size: var(--text-md);
  color: var(--ember);
}
.docs-section p {
  margin-bottom: var(--sp-3);
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--chalk);
}
.docs-section ul, .docs-section ol {
  margin-bottom: var(--sp-3);
  padding-left: var(--sp-6);
}
.docs-section li {
  margin-bottom: var(--sp-1);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--chalk);
}
.docs-section code {
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--flame);
  background: var(--graphite);
  border-radius: var(--radius-sm);
}
.docs-section pre {
  margin-bottom: var(--sp-4);
  padding: var(--sp-4);
  background: var(--graphite);
  border: 1px solid var(--wire);
  border-radius: var(--radius-md);
  overflow-x: auto;
}
.docs-section pre code {
  padding: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--chalk);
  background: none;
}

/* Gate reference table */
.gate-ref-table {
  display: block;
  width: 100%;
  margin: var(--sp-4) 0;
  font-size: var(--text-sm);
  border-collapse: collapse;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Gate Ref Table */
.gate-ref-table th {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ash);
  text-align: left;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--wire);
}
.gate-ref-table td {
  padding: var(--sp-2) var(--sp-3);
  color: var(--chalk);
  border-bottom: 1px solid var(--wire);
}
.gate-ref-table tr:hover td {
  background: var(--white-02);
}

/* Gate Ref Symbol */
.gate-ref-symbol {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ember);
}

/* Docs Tip */
.docs-tip {
  margin: var(--sp-4) 0;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--ash);
  background: var(--surface-hover);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-left: 3px solid var(--ember);
}
.docs-tip strong {
  font-weight: 600;
  color: var(--bone);
}

