body.page-docs {
  background: var(--ink);
}

.page-docs {
  --page-width: 960px;
}

.doc-nav {
  margin-bottom: 22px;
}

.doc-main {
  padding-bottom: 70px;
}

.doc-back {
  width: fit-content;
  min-height: 38px;
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-soft);
  text-decoration: none;
}

.doc-back:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.doc-hero {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--line);
}

.doc-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.04;
}

.doc-hero p {
  max-width: 860px;
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.62;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.doc-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.doc-jump a {
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-size: 14px;
}

.doc-jump a:hover {
  color: var(--text);
  border-bottom-color: var(--line-strong);
}

.doc-content {
  padding-top: 18px;
}

.doc-section {
  min-width: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.doc-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.doc-section h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.12;
}

.doc-section p {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.62;
}

.doc-section ul,
.doc-section ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-soft);
}

.doc-section li + li {
  margin-top: 8px;
}

.doc-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.doc-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.doc-table th,
.doc-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.doc-table td {
  color: var(--text-soft);
  font-size: 14px;
  padding-right: 14px;
}

.doc-code {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-soft);
  overflow-x: auto;
}

.doc-code code {
  color: var(--text-soft);
  overflow-wrap: normal;
}

.doc-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.doc-footer {
  margin: 20px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 13px;
}

@media (max-width: 700px) {
  .doc-main {
    padding-bottom: 56px;
  }

  .doc-jump {
    gap: 10px;
  }

  .doc-actions {
    display: grid;
  }
}
