/* Public docs (/docs) */
.docs-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.docs-top nav { display: flex; gap: 8px; }
.docs-tag { font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; max-width: 1120px; margin: 0 auto; padding: 32px 24px 80px; }
.docs-nav { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.docs-nav p { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 0 0 8px; }
.docs-nav a { color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 6px; }
.docs-nav a:hover { color: var(--text); background: var(--surface-2); }
.docs-nav a.l3 { padding-left: 20px; font-size: 13px; }
.docs-body { max-width: 780px; min-width: 0; }
.docs-body h1 { font-family: var(--display); font-size: 40px; letter-spacing: -.03em; margin: 8px 0 16px; }
.docs-body h2 { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; margin: 52px 0 14px; padding-top: 8px; scroll-margin-top: 80px; }
.docs-body h3 { font-size: 18px; margin: 32px 0 10px; scroll-margin-top: 80px; }
.docs-body .anchor { color: var(--faint); text-decoration: none; font-weight: 400; opacity: 0; margin-left: 4px; }
.docs-body h2:hover .anchor, .docs-body h3:hover .anchor { opacity: 1; }
.docs-body p, .docs-body li { font-size: 15.5px; line-height: 1.7; }
.docs-body p { margin: 0 0 14px; }
.docs-body ul, .docs-body ol { padding-left: 24px; margin: 0 0 16px; }
.docs-body li { margin-bottom: 8px; }
.docs-body li > p { margin-bottom: 8px; }
.docs-body blockquote { margin: 0 0 18px; padding: 12px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--r) var(--r) 0; }
.docs-body blockquote p:last-child { margin-bottom: 0; }
.docs-body .code { position: relative; margin: 0 0 18px; }
.docs-body pre { margin: 0; padding: 16px 18px; background: var(--ink); color: #e7e7ee; border-radius: var(--r); overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
.docs-body pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.docs-body .copy { position: absolute; top: 8px; right: 8px; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color: #e7e7ee; font-size: 12px; font-weight: 600; cursor: pointer; opacity: 0; transition: opacity .15s; }
.docs-body .code:hover .copy, .docs-body .copy:focus-visible { opacity: 1; }
.docs-body .table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--r); }
.docs-body table { border-collapse: collapse; width: 100%; font-size: 14px; }
.docs-body th, .docs-body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs-body th { background: var(--surface-2); font-weight: 600; }
.docs-body tr:last-child td { border-bottom: 0; }
.docs-body td code { white-space: nowrap; }
.agent-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 16px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--accent-soft); font-size: 14px; }
.agent-hint code { background: var(--surface); }
.docs-foot { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; padding: 28px 16px 40px; border-top: 1px solid var(--line); font-size: 14px; }
.docs-foot a { color: var(--muted); text-decoration: none; }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; gap: 0; padding: 20px 16px 60px; }
  .docs-nav { display: none; }
  .docs-top { padding: 10px 16px; }
  .docs-top .ghost { display: none; }
  .docs-body h1 { font-size: 32px; }
}
.docs-body code, .agent-hint code { font-variant-ligatures: none; }
.docs-body p code, .docs-body li code, .agent-hint code { overflow-wrap: anywhere; }
