/* ════════════════════════════════════════
   DOCS PAGE
   ════════════════════════════════════════ */

.docs-hero {
  padding: 8.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.docs-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin-bottom: 0.75rem;
}

.docs-hero__sub {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 540px;
  line-height: 1.6;
}

/* Docs layout */
.docs {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  padding: 2.5rem 0 5rem;
  min-height: 60vh;
}

/* Sidebar */
.docs__sidebar {
  position: sticky;
  top: 5rem;
  align-self: start;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}

.docs__nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.docs__nav-link {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-3);
  text-decoration: none;
  border-radius: 5px;
  transition: color 0.15s ease, background 0.15s ease;
  line-height: 1.4;
}

.docs__nav-link:hover {
  color: var(--text-1);
  background: var(--bg-subtle);
}

.docs__nav-link--active {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 500;
}

.docs__nav-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0.75rem;
}

/* Content */
.docs__content {
  max-width: 720px;
}

.docs__section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 5rem;
}

.docs__section:last-child {
  margin-bottom: 0;
}

.docs__h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.docs__h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.docs__p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 1rem;
}

.docs__list {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.docs__list li {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 0.3rem;
}

.docs__list li strong {
  color: var(--text-1);
  font-weight: 500;
}

/* Screenshots */
.docs__img {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.docs__img img {
  width: 100%;
  display: block;
}

.docs__img-caption {
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  color: var(--text-3);
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  font-family: var(--font-mono);
}

/* Callout */
.docs__callout {
  padding: 1rem 1.25rem;
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  margin: 1.25rem 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-2);
}

.docs__callout strong {
  color: var(--text-1);
}

/* Metric card grid */
.docs__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.docs__metric {
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.docs__metric-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.25rem;
}

.docs__metric-desc {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-3);
}

/* TODO markers */
.docs__todo {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: #fef3c7;
  color: #92400e;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  border-radius: 3px;
  font-weight: 500;
}

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

  .docs__sidebar {
    position: static;
    max-height: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
  }

  .docs__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .docs__nav-divider { display: none; }

  .docs__metrics { grid-template-columns: 1fr; }
}
