.docs { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding: 50px 0 0; }
.toc { position: sticky; top: 100px; align-self: start; display: grid; gap: 2px; font-size: 14.5px; }
.toc a { text-decoration: none; color: var(--dim); padding: 7px 10px; border-left: 2px solid var(--line); }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--red); }
.doc { max-width: 760px; }
.doc h1 { margin: 0 0 10px; font: 800 56px/1.1 var(--serif); }
.doc section { padding-top: 34px; scroll-margin-top: 90px; }
.doc h2 { margin: 0 0 14px; font: 700 30px/1.2 var(--serif); }
.doc p, .doc li { color: var(--dim); }
.doc b { color: var(--ink); }
.doc a { color: var(--ink); }
.doc ol, .doc ul { padding-left: 22px; display: grid; gap: 10px; }
.doc .mono { font-size: 14px; word-break: break-all; }
.doc table { table-layout: fixed; } .doc td, .doc th { overflow-wrap: anywhere; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 14px; }
.doc th, .doc td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--faint); font-weight: 500; font-size: 13.5px; }
.doc td { color: var(--dim); }
.doc td:first-child { color: var(--ink); font-weight: 700; }
.note-line { border-left: 3px solid var(--red); padding-left: 14px; }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; gap: 10px; padding-top: 30px; }
  .toc { position: static; display: flex; gap: 4px; overflow-x: auto; padding-bottom: 6px; }
  .toc a { white-space: nowrap; border-left: 0; border-bottom: 2px solid var(--line); }
  .toc a.on { border-bottom-color: var(--red); }
  .doc h1 { font-size: 42px; }
}
