/* Specsketch docs — mirrors packages/microsite DocsLayout.astro so the two
 * products' docs are visually consistent (same tokens, same sidebar layout,
 * same product switcher). Update both if the docs shell design changes. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --muted: #888;
  --accent: #e8925b;
  --accent-hover: #f0a873;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

nav.top {
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav.top a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
}

nav.top .logo {
  font-weight: 700;
  color: var(--accent);
  margin-right: auto;
}

nav.top a:hover { color: var(--accent-hover); }

.docs-container {
  flex: 1;
  display: flex;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
}

aside {
  width: 14rem;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  position: sticky;
  top: 3rem;
  height: calc(100vh - 3rem);
  overflow-y: auto;
}

aside .section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

aside ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

aside a {
  display: block;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: background 0.1s, color 0.1s;
}

aside a:hover {
  background: var(--surface);
  color: var(--text);
}

aside a.active {
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
}

aside .product-switcher {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

aside .product-switcher .all-products {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

.docs-content {
  flex: 1;
  min-width: 0;
  padding: 2rem 3rem;
}

.docs-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.docs-content h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--border);
}

.docs-content p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1rem;
}

.docs-content a { color: var(--accent); }

.docs-content code {
  background: #1e1e1e;
  border: 1px solid #333;
  padding: 0.125em 0.375em;
  border-radius: 3px;
  font-size: 0.8125rem;
  color: var(--accent);
}

.docs-content pre {
  background: #141414;
  border: 1px solid rgba(232, 146, 91, 0.6);
  border-radius: 0.5rem;
  padding: 0.75rem 0.875rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #e0e0e0;
}

.docs-content ul {
  list-style: none;
  margin-bottom: 1rem;
}

.docs-content ul li {
  font-size: 0.875rem;
  line-height: 1.75;
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.375rem;
}

.docs-content ul li::before {
  content: '›';
  position: absolute;
  left: 0.25rem;
  color: var(--accent);
}

.docs-content .subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.docs-content .next-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.5rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
}

.docs-content .next-link:hover {
  border-color: var(--accent);
}

@media (max-width: 48rem) {
  aside { display: none; }
  .docs-content { padding: 1.5rem; }
}
