/* BASKT docs: same tokens and type as the site (../styles.css), documentation layout on top. */

.docs {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-block: 40px 120px;
  align-items: start;
}
.docs__side {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.docs__side summary { display: none; }
.docs__side .eyebrow { margin-bottom: 8px; }
.docs__nav { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.docs__nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--fg-muted);
  border-left: 2px solid transparent;
  transition: color .15s, background-color .15s;
}
.docs__nav a:hover { color: var(--fg); background: var(--surface); }
.docs__nav a.current { color: var(--fg); background: var(--surface); border-left-color: var(--cta); border-radius: 0 6px 6px 0; }
.docs__side .side-links { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.docs__side .side-links a { font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-muted); }
.docs__side .side-links a:hover { color: var(--fg); }

.doc { max-width: 720px; min-width: 0; }
.docs__side { min-width: 0; }
.doc > .eyebrow { margin-bottom: 16px; }
.doc h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.doc .updated { font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-muted); margin-bottom: 8px; }
.doc h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.doc h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; margin-top: 32px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.doc p { color: var(--fg-muted); line-height: 1.65; margin: 14px 0; text-wrap: pretty; }
.doc p.lead { color: var(--fg); font-size: 1.125rem; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc a:not(.btn) { color: var(--fg); border-bottom: 1px solid var(--border-strong); }
.doc a:not(.btn):hover { border-color: var(--fg); }
.doc ul, .doc ol { color: var(--fg-muted); line-height: 1.6; padding-left: 1.25em; margin: 12px 0; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--fg-subtle); }
.doc code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--fg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}
.doc pre {
  margin: 16px 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--fg);
}
.doc pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.doc .table-wrap { overflow-x: auto; margin: 16px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.doc th {
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-strong);
}
.doc td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--fg-muted); vertical-align: top; line-height: 1.5; }
.doc td:first-child { color: var(--fg); }
.doc .callout {
  margin: 20px 0;
  padding: 16px 18px 16px 20px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--cta);
  border-radius: 0 10px 10px 0;
  background: var(--surface);
}
.doc .callout p { margin: 0; }
.doc .callout p + p { margin-top: 10px; }
.doc .callout--planned { border-left-color: var(--fg-subtle); }
.doc .status-line { display: inline-flex; align-items: center; gap: 10px; }
.doc .faq dt { color: var(--fg); font-weight: 600; margin-top: 24px; }
.doc .faq dd { margin: 8px 0 0; color: var(--fg-muted); line-height: 1.65; }
.doc .foot { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-muted); }

.nav__docs { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--fg-muted); margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--border-strong); }

@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .docs__side { position: static; }
  .docs__side details { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
  .docs__side summary { display: block; cursor: pointer; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); list-style: none; }
  .docs__side summary::-webkit-details-marker { display: none; }
  .docs__side .eyebrow { display: none; }
  .docs__nav { margin-top: 12px; }
  .docs__side .side-links { display: none; }
  .doc h2 { margin-top: 56px; }
}
