/* Connector Foundry — docs section.
   Layout + article typography on top of the marketing site's design tokens. */

.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-900);
  padding: 18px;
}

.docs-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.docs-sidebar a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
}

.docs-sidebar a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.docs-sidebar a[aria-current="page"] {
  color: var(--neon-300);
  background: var(--neon-dim);
}

.docs-article { min-width: 0; max-width: 760px; }

.docs-article h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.docs-article h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 44px 0 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.docs-article h3 { font-size: 18px; margin: 30px 0 10px; }

.docs-article p, .docs-article li { color: var(--muted); }

.docs-article p { margin: 0 0 14px; }

.docs-article ul, .docs-article ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 7px; }

.docs-article a { color: var(--neon-300); text-decoration: none; }
.docs-article a:hover { text-decoration: underline; }

.docs-article strong { color: var(--text); }

.docs-article code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
}

.docs-article pre {
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 18px;
}

.docs-article pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.7;
}

.table-wrap { overflow-x: auto; margin: 0 0 18px; }

.docs-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.docs-article th, .docs-article td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.docs-article th {
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.docs-article tbody tr:last-child th, .docs-article tbody tr:last-child td { border-bottom: none; }

.docs-article td { color: var(--muted); }
.docs-article td strong { color: var(--text); }

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--neon);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--ink-900);
  padding: 14px 18px;
  margin: 0 0 18px;
}

.callout p { margin: 0; color: var(--muted); }
.callout p + p { margin-top: 8px; }

.docs-article hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 28px; }
  .docs-sidebar { position: static; }
  .docs-sidebar ul { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
}
