/* Documentation hub — tabbed layout */

.docs-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.docs-shell {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.25rem 0;
  box-shadow: 0 4px 14px rgba(15, 39, 68, 0.06);
}

.docs-nav-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 1rem 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.docs-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-nav-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 1.15rem;
  border: none;
  border-left: 3px solid transparent;
  background: transparent;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.4;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.docs-nav-btn:hover {
  color: var(--navy);
  background: var(--bg-alt);
}

.docs-nav-btn.is-active {
  color: var(--accent);
  background: #eff6ff;
  border-left-color: var(--accent);
}

.docs-content {
  min-width: 0;
}

.docs-panel {
  display: none;
}

.docs-panel.is-active {
  display: block;
}

.docs-panel h1 {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.docs-lead {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  line-height: 1.6;
  max-width: 42rem;
}

.docs-panel h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 700;
  margin: 1.75rem 0 0.65rem;
}

.docs-panel h2:first-of-type {
  margin-top: 0;
}

.docs-panel p,
.docs-panel li {
  margin-bottom: 0.85rem;
  color: var(--text);
  line-height: 1.65;
}

.docs-panel ul,
.docs-panel ol {
  margin: 0 0 1rem 1.2rem;
}

.docs-panel li {
  margin-bottom: 0.4rem;
}

.docs-panel code {
  font-size: 0.92em;
  background: var(--bg-alt);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.docs-callout {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.docs-callout strong {
  color: var(--navy);
}

.docs-panel a {
  color: var(--accent);
  font-weight: 600;
}

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

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

  .docs-nav {
    position: static;
  }

  .docs-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0 0.75rem 0.25rem;
  }

  .docs-nav-btn {
    width: auto;
    border: 1px solid var(--border);
    border-radius: 999px;
    border-left: 1px solid var(--border);
    padding: 0.4rem 0.85rem;
    font-size: var(--text-xs);
  }

  .docs-nav-btn.is-active {
    border-color: var(--accent);
  }
}
