.docs-skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--black);
  transform: translateY(-160%);
}

.docs-skip-link:focus {
  transform: translateY(0);
}

.docs a:focus-visible,
.docs summary:focus-visible,
.docs-table-wrap:focus-visible,
.docs-skip-link:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 5px;
}

.docs .eyebrow {
  color: var(--gold-bright);
  font-size: 12px;
}

.docs .lede {
  margin-bottom: 20px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.docs .docs-updated {
  color: var(--muted);
  font-size: 0.85rem;
}

.docs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 36px;
}

.docs-nav a {
  padding-block: 6px;
  font-size: 0.9rem;
}

.docs section {
  scroll-margin-top: 24px;
}

.docs .callout {
  margin-top: 24px;
}

.docs .docs-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style-position: inside;
}

.docs .docs-flow li {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(217, 166, 46, 0.28);
  border-radius: 12px;
  font-size: 0.9rem;
}

.docs-flow li::marker {
  color: var(--gold-bright);
}

.docs-flow span {
  display: block;
  margin-top: 8px;
}

.docs-table-wrap {
  max-width: 100%;
  margin-block: 24px;
  overflow-x: auto;
}

.docs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}

.docs caption {
  margin-bottom: 12px;
  color: var(--muted);
  text-align: left;
}

.docs th,
.docs td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 250, 240, 0.13);
  vertical-align: top;
}

.docs thead th {
  color: var(--gold-bright);
}

.docs tbody th {
  width: 30%;
  font-weight: 600;
}

.docs td {
  color: rgba(255, 250, 240, 0.76);
}

.docs code {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 250, 240, 0.07);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.docs details {
  padding-block: 18px;
  border-bottom: 1px solid rgba(255, 250, 240, 0.13);
}

.docs summary {
  cursor: pointer;
  font-weight: 600;
  line-height: 1.6;
}

.docs details p {
  margin: 14px 0 0;
}

.docs details + p {
  margin-top: 24px;
}

@media (max-width: 620px) {
  .docs .docs-flow {
    grid-template-columns: 1fr;
  }

  .docs th,
  .docs td {
    padding-inline: 8px;
  }
}
