/* Docs page styles — extends style.css */

.docs { padding-top: 0; }

.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sidebar TOC */
.docs-toc {
  position: sticky;
  top: 80px;
}
.toc-title {
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.docs-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.docs-toc li {
  margin-bottom: 8px;
}
.docs-toc a {
  font-size: .9rem;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.docs-toc a:hover {
  color: var(--accent-deep);
}

/* Main content */
.docs-main {
  min-width: 0;
}
.docs-main article {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.docs-main article:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}
.docs-main h2 {
  font-size: 1.6rem;
  margin-top: 0;
}
.docs-main h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 10px;
}
.docs-main p {
  color: var(--ink-soft);
  font-size: .97rem;
  line-height: 1.7;
  margin: 0 0 16px;
}
.docs-main ul, .docs-main ol {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.7;
  padding-left: 24px;
  margin: 0 0 16px;
}
.docs-main li {
  margin-bottom: 6px;
}
.docs-main code {
  background: var(--bg-soft);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: .88rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.docs-main strong {
  color: var(--ink);
}

/* Table */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: .93rem;
}
.docs-table th, .docs-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.docs-table th {
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
}
.docs-table td {
  color: var(--ink-soft);
}
.docs-table tr:last-child td {
  border-bottom: 0;
}

/* Tip box */
.docs-tip {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: .93rem;
  color: var(--ink-soft);
}
.docs-tip strong {
  color: var(--accent-deep);
}

/* Responsive */
@media (max-width: 860px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .docs-toc {
    position: static;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  .docs-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}
