/* Docs-only styles, layered on styles.css (shared design system). Hand-authored
   unlike docs.html, this file is NOT generated. */

.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding-top: 32px;
  padding-bottom: 96px;
}

.docs-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  font-size: 13px;
}

.docs-side-group { margin-bottom: 24px; }

.docs-side-title {
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  margin-bottom: 8px;
}

.docs-sidebar a {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.docs-sidebar a:hover { background: var(--surface-2); color: var(--ink); }

.docs-main { min-width: 0; }
.docs-main h1 { margin: 0 0 8px; }

.docs-version {
  color: var(--ink-2);
  font-size: 14px;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 40px;
}

.docs-section { margin-bottom: 48px; }
.docs-section h2, .docs-main > h2 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-top: 48px;
}

.docs-endpoint {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  margin: 24px 0;
}

.docs-endpoint h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 16px;
}

.docs-endpoint h4 { margin: 20px 0 8px; color: var(--ink-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }

.docs-method {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.04em;
}
.docs-method.post { background: var(--accent-dim); color: var(--accent-strong); }
.docs-method.get { background: rgba(168, 199, 232, 0.12); color: var(--blue); }

.docs-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  background: rgba(217, 164, 65, 0.08);
  border: 1px solid rgba(217, 164, 65, 0.25);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 12px;
}
.docs-chip-free { color: var(--teal); background: rgba(48, 209, 88, 0.08); border-color: rgba(48, 209, 88, 0.25); }

.docs-summary { color: var(--ink); font-weight: 600; margin: 8px 0; }

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 16px 0;
}
.docs-table th {
  text-align: left;
  color: var(--ink-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-strong);
}
.docs-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--ink-2);
}
.docs-table td:first-child { white-space: nowrap; }
.docs-table code { color: var(--ink); }

.req {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--accent-strong);
  border: 1px solid var(--accent-dim);
  background: var(--accent-dim);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
}

.docs-code {
  background: var(--terminal);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.docs-code code { color: inherit; }

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; max-height: none; }
}

/* Reference tables scroll inside themselves on a phone. td:first-child is
   nowrap so the endpoint path stays readable, which means the table has a
   real minimum width and must carry its own scroll container. */
@media (max-width: 900px) {
  .docs-table { display: block; max-width: 100%; overflow-x: auto; }
}
