.docs-page { min-height: 100vh; background: var(--bg); }
.docs-page .landing-nav { position: sticky; top: 0; z-index: 20; background: var(--panel); }

.docs-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 32px 72px;
}

.docs-toc {
  position: sticky;
  top: 88px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.docs-toc-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.docs-toc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 550;
}
.docs-toc-link:hover { background: var(--accent-soft); color: var(--text); }
.docs-toc-link .stack-mark { width: 18px; height: 18px; }
.docs-toc-link .stack-mark svg { width: 18px; height: 18px; display: block; }

.docs-hero { margin-bottom: 28px; }
.docs-hero h1 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 10px 0 14px;
}
.docs-lede { color: var(--text-dim); font-size: 16px; line-height: 1.5; max-width: 40rem; }
.docs-lede a { color: var(--accent); font-weight: 600; }

.docs-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  scroll-margin-top: 84px;
}
.docs-card h2 { font-size: 20px; letter-spacing: -0.03em; }
.docs-card h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 18px 0 8px;
}
.docs-card ul { padding-left: 1.15rem; color: var(--text-dim); }
.docs-card li { margin: 6px 0; line-height: 1.45; }
.docs-muted { color: var(--text-faint); font-size: 13px; margin: 6px 0 14px; }

.docs-stack-head {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 4px;
}
.docs-stack-head .stack-mark { width: 36px; height: 36px; }
.docs-stack-head .stack-mark svg { width: 36px; height: 36px; display: block; }
.docs-stack-head p { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.docs-change-link {
  font-size: 12px;
  font-weight: 650;
  color: var(--accent);
  padding-top: 6px;
}

.docs-faq details {
  border-top: 1px solid var(--border-soft);
  padding: 10px 0;
}
.docs-faq details:first-child { border-top: 0; }
.docs-faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--text);
}
.docs-faq details p { color: var(--text-dim); margin-top: 8px; line-height: 1.45; }

.docs-change { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.docs-change:first-of-type { border-top: 0; padding-top: 0; }
.docs-change time {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.docs-change h3 {
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 15px;
  color: var(--text);
  margin: 4px 0 8px;
}

.docs-page .landing-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 32px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-dim);
}

@media (max-width: 840px) {
  .docs-shell { grid-template-columns: 1fr; padding: 24px 18px 56px; }
  .docs-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .docs-stack-head { grid-template-columns: 32px 1fr; }
  .docs-change-link { grid-column: 2; padding-top: 0; }
}
