#docs {
  display: none;
}

body.docs #docs {
  display: block;
}

body.docs #home {
  display: none;
}

.dhead {
  padding: 52px 0 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.dhead h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 10px;
}

.dhead .sub {
  margin: 0;
}

.dlay {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  align-items: start;
}

.side {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 80px);
  border-inline-end: 1px solid var(--line);
  padding: 0 0 0 12px;
}

.side a {
  display: block;
  padding: 7px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14.5px;
}

.side a:hover {
  background: var(--hover);
  color: var(--ink);
}

.dsec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  margin-bottom: 16px;
  min-width: 0;
}

.dsec h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.dsec h3 {
  font-size: 17px;
}

.dsec p {
  color: var(--muted);
  margin: 6px 0 12px;
}

.dsec .doc-sub {
  margin: 22px 0 4px;
}

.ep {
  display: flex;
  gap: 10px;
  align-items: center;
  direction: ltr;
  margin: 10px 0;
  font-family: var(--mono);
  font-size: 14px;
  flex-wrap: wrap;
}

.m {
  padding: 2px 9px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12.5px;
  color: #fff;
}

.m.get { background: #1B7F5A; }
.m.post { background: #B88628; }

.code {
  position: relative;
  direction: ltr;
  text-align: left;
  background: #060A0D;
  color: var(--code-ink);
  border-radius: var(--radius);
  padding: 18px;
  margin: 10px 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre;
  border: 1px solid var(--line);
}

.cp {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  color: var(--code-dim);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font);
}

.cp:hover {
  color: var(--code-ink);
  border-color: var(--code-dim);
}

.tabs {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  border-bottom: 1px solid var(--line);
}

.tb {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 8px 14px;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
}

.tb.on {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.pane {
  display: none;
}

.pane.on {
  display: block;
}
