main { padding-bottom: 20px; }

section {
  padding: 26px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 26px;
}

section:first-of-type { border-top: 0; margin-top: 8px; }

h2 { margin: 0 0 10px; font-size: 21px; letter-spacing: -0.01em; }
h3 { margin: 24px 0 8px; font-size: 15px; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 20px; }
li { margin: 4px 0; }
.muted { color: var(--text-secondary); }

pre {
  margin: 0 0 14px;
  padding: 13px 15px;
  overflow-x: auto;
  background:
    linear-gradient(90deg, var(--bg-surface) 30%, transparent) left / 44px 100%,
    linear-gradient(-90deg, var(--bg-surface) 30%, transparent) right / 44px 100%,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .5), transparent) left / 16px 100%,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .5), transparent) right / 16px 100%;
  background-color: var(--bg-surface);
  background-repeat: no-repeat;
  background-attachment: local, local, scroll, scroll;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}

pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

p code, li code, td code {
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  overflow-wrap: break-word;
}

table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 14.5px; }

th, td {
  text-align: left;
  vertical-align: top;
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--border);
}

th {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  font-weight: 650;
}

td:first-child { white-space: nowrap; }

.toc {
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-surface);
}

.toc p {
  margin: 0 0 8px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  font-weight: 650;
}

.toc p.grp { margin: 14px 0 5px; color: var(--g-action-text); letter-spacing: .06em; }
.toc p.grp:first-of-type { margin-top: 0; }
.toc ol { margin: 0; padding-left: 18px; font-size: 14.5px; }
.toc ul { margin: 0; padding-left: 0; list-style: none; font-size: 14.5px; }
.toc li { margin: 3px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.toc .away {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

@media (min-width: 1100px) {
  .layout { display: grid; grid-template-columns: 1fr 220px; gap: 40px; align-items: start; }

    .toc {
    position: sticky;
    top: 86px;
    margin: 34px 0 0;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  .layout > main { min-width: 0; }
}

@media (max-width: 1000px) {
  td:first-child { white-space: normal; }
}


.needs {
  font-size: 13px;
  color: var(--text-muted);
}
