.docs .topbar { position: static; }
.doc-link, .doc-nav a { color: var(--accent); text-decoration: none; }
.doc-link { font-weight: 600; }
.doc-link:hover, .doc-nav a:hover { text-decoration: underline; }
.doc-link:focus-visible, .doc-nav a:focus-visible, .docs summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.doc-layout { max-width: 1120px; display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 1rem; align-items: start; }
.doc-nav { position: sticky; top: 1rem; }
.doc-nav p { margin: 0 0 .6rem; font-weight: 700; }
.doc-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.doc-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.doc-section { scroll-margin-top: 1rem; }
.doc-section h2 { font-size: 1.25rem; overflow-wrap: anywhere; }
.doc-section h2 span { font-size: .925rem; color: var(--muted); margin-left: .35rem; }
.doc-kicker { margin: 0 0 .35rem; font-size: .85rem; font-weight: 700; color: var(--accent); }
.doc-intro h1 { font-size: clamp(1.8rem, 5vw, 2.35rem); }
.docs code { font-family: var(--mono); overflow-wrap: anywhere; }
.doc-endpoint, .doc-note { background: var(--accent-soft); padding: .65rem .8rem; border-radius: 8px; }
.doc-endpoint { display: flex; gap: .65rem; align-items: baseline; }
.doc-endpoint strong { font: 700 .85rem var(--mono); color: var(--accent); }
.doc-endpoint code { min-width: 0; font-size: .9rem; }
.doc-section ul { padding-left: 1.35rem; }
.doc-section li + li { margin-top: .35rem; }
.doc-section table { width: 100%; table-layout: fixed; }
.doc-section th, .doc-section td { padding: .5rem .6rem; white-space: normal; vertical-align: top; overflow-wrap: anywhere; }
.doc-section tbody th { font-size: inherit; background: transparent; text-transform: none; letter-spacing: normal; color: var(--text); }
.doc-section tbody tr:last-child th { border-bottom: 0; }
.doc-section thead th { text-transform: none; }
.doc-section table:not(.error-table) thead th:nth-child(1) { width: 24%; }
.doc-section table:not(.error-table) thead th:nth-child(2) { width: 17%; }
.doc-section table:not(.error-table) thead th:nth-child(3) { width: 14%; }
.error-table thead th:first-child { width: 12%; }
.error-table thead th:nth-child(2) { width: 38%; }
.doc-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: 1rem; align-items: start; }
.code-block { min-width: 0; margin: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.code-block figcaption { display: flex; justify-content: space-between; gap: .65rem; align-items: center; padding: .5rem .7rem; border-bottom: 1px solid var(--border); font-size: .85rem; font-weight: 600; overflow-wrap: anywhere; }
.code-block pre { margin: 0; padding: .65rem .7rem; font: .85rem/1.5 var(--mono); white-space: pre-wrap; }
.code-block button { flex: none; }
.docs details { margin-top: .5rem; }
.docs summary { color: var(--accent); cursor: pointer; }
.docs details .code-block { margin-top: .4rem; }
@media (max-width: 740px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-nav { position: static; margin-bottom: 0; }
  .doc-nav ul { display: flex; flex-wrap: wrap; column-gap: 1rem; }
  .doc-examples { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .doc-section { padding: .85rem; }
  .doc-section th, .doc-section td { padding: .45rem .3rem; }
  .doc-section table:not(.error-table) thead th:first-child { width: 30%; }
}
