.docs-top { max-width: 1080px; margin: 0 auto; padding: 56px clamp(20px, 5vw, 72px) 8px; }
.docs-top .eyebrow { font: 700 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); }
.docs-top h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.04; letter-spacing: -.02em; margin-top: 14px; }
.docs-top .lede { font-size: 19px; color: var(--ink-2); max-width: 40em; margin: 16px 0 0; text-wrap: pretty; }
.docs-status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.docs-status li { font: 600 13px/1 var(--display); padding: 8px 12px; border-radius: 999px; background: var(--surface); color: var(--ink-2); }
.docs-status li.warn { background: var(--sun-soft); color: var(--ink); }

.docs { max-width: 1080px; margin: 0 auto; padding: 24px clamp(20px, 5vw, 72px) 80px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.docs-toc { position: sticky; top: calc(var(--top) + 24px); font-family: var(--display); }
.docs-toc p { font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.docs-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.docs-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.docs-toc a:hover { color: var(--ink); border-left-color: var(--blue-2); }

.docs-body { min-width: 0; }
.docs-body section { padding-top: 8px; margin-bottom: 56px; scroll-margin-top: calc(var(--top) + 16px); }
.docs-body h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.015em; line-height: 1.1; margin-bottom: 14px; }
.docs-body h3 { font-size: 19px; margin: 28px 0 8px; }
.docs-body p, .docs-body li { font-size: 17px; line-height: 1.6; max-width: 44em; text-wrap: pretty; overflow-wrap: anywhere; }
.docs-body ul, .docs-body ol { padding-left: 1.3em; }
.docs-body li { margin: 6px 0; }
.docs-body a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.docs-body code { font: 500 .86em/1.4 var(--mono); background: var(--surface); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.docs-body pre { margin: 14px 0 18px; padding: 18px 20px; border-radius: 16px; background: var(--deep); color: var(--on-deep); box-shadow: inset 0 0 0 1px var(--deep-rim); overflow-x: auto; font: 500 14px/1.6 var(--mono); tab-size: 4; }
.docs-body pre code { background: none; padding: 0; font: inherit; color: inherit; overflow-wrap: normal; }
.docs-body .file { display: block; margin: 18px 0 -8px; font: 600 13px/1 var(--mono); color: var(--ink-3); }

.note { margin: 18px 0; padding: 16px 18px; border-radius: 14px; background: var(--blue-soft); border-left: 4px solid var(--blue); }
.note.warn { background: var(--sun-soft); border-left-color: var(--tone-amber); }
.note p { margin: 0; font-size: 16px; }
.note p + p { margin-top: 8px; }

.docs-table { width: 100%; overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--line); border-radius: 14px; }
.docs-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.docs-table th, .docs-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.docs-table th { font: 700 13px/1.3 var(--display); color: var(--ink-2); background: var(--surface); }
.docs-table tr:last-child td { border-bottom: 0; }

.trouble { margin: 0; padding: 0; list-style: none; }
.trouble li { margin: 0 0 12px; padding: 16px 18px; border-radius: 14px; background: var(--surface); max-width: none; }
.trouble strong { display: block; font: 700 16px/1.35 var(--display); margin-bottom: 4px; overflow-wrap: anywhere; }

.bar-links a[aria-current="page"] { color: var(--aqua-deep); }

@media (max-width: 899px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .docs-toc { position: static; padding: 16px 18px; border-radius: 16px; background: var(--surface); }
  .docs-toc ol { border-left: 0; columns: 2; column-gap: 16px; }
  .docs-toc a { padding: 5px 0; border-left: 0; margin-left: 0; }
}
@media (max-width: 720px) {
  .docs-top { padding-top: 36px; }
  .docs-top .lede { font-size: 17px; }
  .docs-body p, .docs-body li { font-size: 16px; }
  .docs-body pre { margin-left: -4px; margin-right: -4px; padding: 14px 16px; font-size: 13px; border-radius: 12px; }
  .docs-toc ol { columns: 1; }
  .foot-in { grid-template-columns: 1fr; gap: 24px; }
}
