.doc-nav {
  position: relative;
  z-index: 5;
}

.doc-nav .nav-right {
  gap: 6px;
}

.doc-nav .nav-ext[aria-current="page"] {
  color: var(--fg);
}

.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 4vw, 32px) clamp(72px, 10vw, 128px);
}

.doc > * {
  animation: rise 800ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}

.doc h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 16px;
}

.doc .updated {
  color: var(--dim);
  margin-bottom: 36px;
}

.doc .lead {
  max-width: none;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--fg);
  margin-bottom: 40px;
}

.doc section {
  margin-bottom: 40px;
}

.doc h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.doc p {
  color: #c4c4c4;
  margin-bottom: 14px;
}

.doc ul {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding-left: 22px;
  list-style: disc;
  color: #c4c4c4;
}

.doc li::marker {
  color: var(--dim);
}

.doc strong {
  color: var(--fg);
  font-weight: 500;
}

.doc a {
  color: var(--fg);
  background-image: linear-gradient(var(--fg), var(--fg));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 420ms var(--ease);
}

.doc a:hover,
.doc a:focus-visible {
  background-size: 0 1px;
  background-position: 100% 100%;
}

.doc-table-wrap {
  overflow-x: auto;
  margin-bottom: 14px;
}

.doc-table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 0.9375rem;
}

.doc-table th,
.doc-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  background: var(--surface);
  color: #c4c4c4;
  font-weight: 400;
}

.doc-table thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 500;
}

.doc-table tr > :first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--fg);
  white-space: nowrap;
}

.doc-table tr > :last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.doc-foot {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px) 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--dim);
  font-size: 0.9375rem;
}

.doc-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
