.docs-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.docs-hero code {
  background: rgba(138, 154, 91, 0.18);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
}

.command-search {
  width: 100%;
  max-width: 28rem;
  margin: 1.5rem auto 0;
  display: block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--moss-green);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream-card);
  color: var(--text-dark);
}

.command-search:focus {
  outline: none;
  border-color: var(--apple-red);
}

.docs-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  padding: 1rem 1.5rem 5rem;
}

.docs-toc {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 0 0 220px;
  background: rgba(255, 251, 242, 0.88);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 6px 16px rgba(74, 47, 31, 0.08);
}

.docs-toc a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
}

.docs-toc a:hover {
  background: rgba(138, 154, 91, 0.18);
}

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

.doc-category {
  background: rgba(255, 251, 242, 0.9);
  border-radius: 18px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 16px rgba(74, 47, 31, 0.08);
  scroll-margin-top: 5.5rem;
}

.doc-category h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: var(--apple-red);
  margin: 0 0 0.25rem;
}

.doc-category-desc {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.doc-command {
  padding: 0.9rem 0;
  border-top: 1px dashed rgba(138, 154, 91, 0.4);
}

.doc-command:first-of-type {
  border-top: none;
}

.doc-command h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--cider-brown);
}

.doc-command h3 code {
  background: rgba(183, 65, 14, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.doc-command p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.doc-command.is-hidden {
  display: none;
}

.doc-category.is-hidden {
  display: none;
}

@media (max-width: 900px) {
  .docs-layout {
    flex-direction: column;
  }

  .docs-toc {
    position: static;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
