/* Koajo docs: the same dark room, read slowly */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; max-width: 1180px; margin: 0 auto; padding: 108px var(--gutter) 64px; }
.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; }
.toc summary { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; min-height: 36px; padding: 4px 0 4px 14px; border-left: 1px solid var(--line); color: var(--ink-3); text-decoration: none; font-size: 15px; line-height: 1.35;
  transition: color 160ms var(--ease-press), border-color 160ms var(--ease-press); }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--rose); }
.doc { max-width: 72ch; min-width: 0; }
.doc h1 { margin: 0 0 16px; font: 360 clamp(34px, 4.2vw, 60px)/1.08 var(--title); font-stretch: 112%; letter-spacing: -0.03em; }
.doc .lede { font-size: 19px; line-height: 1.65; color: var(--ink-2); margin: 0 0 14px; }
.doc .label { font: 400 13px/1.65 var(--mono); color: var(--ink-3); margin: 0 0 10px; }
.doc > .ca { margin: 18px 0 6px; }
.doc section { padding-top: 56px; scroll-margin-top: 80px; }
.doc h2 { margin: 0 0 14px; font: 420 30px/1.15 var(--title); font-stretch: 108%; letter-spacing: -0.02em; }
.doc h3 { margin: 26px 0 8px; font: 600 18px/1.35 var(--body); }
.doc p, .doc li { color: var(--ink-2); line-height: 1.7; }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol.plain { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--ink); text-decoration-color: var(--rose); text-underline-offset: 3px; }
.tbl-wrap { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: 12px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th { text-align: left; font: 500 13px/1.4 var(--body); color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--room-1); white-space: nowrap; }
.doc td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; line-height: 1.6; }
.doc tr:last-child td { border-bottom: 0; }
.doc td code, .doc th code { white-space: nowrap; }
.note { margin: 16px 0 20px; padding: 18px 22px; border-left: 2px solid var(--rose); background: var(--room-1); border-radius: 0 12px 12px 0; color: var(--ink-2); line-height: 1.7; }
.note b { color: var(--ink); }
.figure-line { font: 340 clamp(28px, 3vw, 40px)/1.25 var(--title); font-stretch: 108%; color: var(--ink-2); margin: 6px 0 18px; }
.figure-line b { font-weight: 340; color: var(--ink); }
.docs-foot { max-width: 1180px; margin: 0 auto; padding: 24px var(--gutter) 30px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; font-size: 15px; color: var(--ink-3); border-top: 1px solid var(--line); }
.docs-foot .links { display: flex; gap: 24px; flex-wrap: wrap; }
.docs-foot a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.docs-foot a:hover { color: var(--rose-pale); }
.docs-foot .meta { justify-self: end; align-self: center; }

@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 12px; padding-top: 84px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; }
  .toc summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--ink); font-weight: 600; }
  .toc ol { padding-bottom: 10px; }
  .corner.tr a.sign[data-board] { display: none; }
  .docs-foot { grid-template-columns: 1fr; }
  .docs-foot .links { gap: 4px 20px; }
  .docs-foot .meta { justify-self: start; }
}
@media (max-width: 420px) {
  .corner.tr { gap: 12px; }
  .corner.tr .sign[data-x] { display: none; }
}
body::before { content: ""; position: fixed; z-index: 25; left: 0; right: 0; top: 0; height: 76px; pointer-events: none;
  background: linear-gradient(var(--room-0) 55%, rgba(20, 10, 15, 0)); }
