/* Upvora docs — sidebar layout on the brand tokens. */
.docs {
  display: grid;
  grid-template-columns: 260px 1fr;
  max-width: 1240px;
  margin: 0 auto;
  min-height: calc(100vh - 64px);
}
.docs__side {
  border-right: 1px solid var(--line);
  padding: 32px 20px 60px;
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.docs__side h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 22px 0 8px;
}
.docs__side h4:first-child {
  margin-top: 0;
}
.docs__side a {
  display: block;
  color: var(--fg-dim);
  font-size: 14.5px;
  padding: 6px 10px;
  border-radius: 8px;
}
.docs__side a:hover {
  color: var(--fg);
  background: var(--surface);
  text-decoration: none;
}
.docs__side a.active {
  color: var(--orange);
  background: color-mix(in srgb, var(--orange) 10%, transparent);
  font-weight: 600;
}
.docs__main {
  padding: 44px 56px 100px;
  min-width: 0;
}
.docs__main h1 {
  font-size: 34px;
  margin-bottom: 0.3em;
}
.docs__main h2 {
  font-size: 24px;
  margin-top: 1.8em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line);
}
.docs__main h3 {
  font-size: 18px;
  margin-top: 1.4em;
}
.docs__main p,
.docs__main li {
  color: var(--fg-dim);
  font-size: 15.5px;
}
.docs__main ul,
.docs__main ol {
  padding-left: 22px;
}
.docs__main li {
  margin: 6px 0;
}
.docs__main a {
  color: var(--orange);
}
.docs__lead {
  font-size: 18px;
  color: var(--fg-dim);
  margin-bottom: 1.5em;
}
.docs__main code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: #f0b892;
}
.docs__main pre {
  background: #0a0b0d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 1.2em 0;
}
.docs__main pre code {
  background: none;
  border: none;
  padding: 0;
  color: #d7dbe0;
  font-size: 13.5px;
  line-height: 1.7;
}
.docs__main table {
  min-width: 0;
  width: 100%;
  margin: 1.2em 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.docs__main th,
.docs__main td {
  font-size: 14px;
  padding: 10px 14px;
}
.docs__main th {
  color: var(--fg);
}
.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 1.4em 0;
}
.callout p {
  margin: 0;
  font-size: 14.5px;
}
.callout--warn {
  border-left-color: #f5b301;
}
.docs__nextprev {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid var(--line);
}
.docs__nextprev a {
  font-weight: 600;
}
.docs__foot {
  margin-top: 4em;
  padding-top: 1.5em;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-mute);
}
.docs__foot .hody {
  color: var(--fg-dim);
}
.docs__foot .hody img {
  height: 18px;
}
@media (max-width: 860px) {
  .docs {
    grid-template-columns: 1fr;
  }
  .docs__side {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .docs__main {
    padding: 32px 22px 80px;
  }
}
