/* ================================================================
   DOCS LAYOUT — shared by crono-vm.html and crono-sharp.html
   ================================================================ */

/* ----------------------------------------------------------------
   Docs shell
   ---------------------------------------------------------------- */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 52px);
  margin-top: 52px; /* nav height */
}

/* ----------------------------------------------------------------
   Sidebar
   ---------------------------------------------------------------- */
.docs-sidebar {
  border-right: 1px solid var(--n3);
  padding: 36px 0;
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 28px;
  padding: 0 24px;
}

.sidebar-label {
  font-family: 'Syne Mono', monospace;
  font-size: 9px;
  color: var(--n4);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sidebar-link {
  display: block;
  font-family: 'Syne Mono', monospace;
  font-size: 12px;
  color: var(--n4);
  padding: 5px 0;
  transition: color 0.15s;
  letter-spacing: 0.02em;
}

.sidebar-link:hover {
  color: var(--vanilla);
}

.sidebar-link.is-active {
  color: var(--crono);
}

/* ----------------------------------------------------------------
   Content area
   ---------------------------------------------------------------- */
.docs-content {
  padding: 60px 72px 100px;
  max-width: 820px;
}

.docs-header {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--n3);
}

.docs-tag {
  font-family: 'Syne Mono', monospace;
  font-size: 9px;
  color: var(--crono);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.docs-title {
  font-family: 'Syne Mono', monospace;
  font-size: 42px;
  color: var(--vanilla);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.docs-subtitle {
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  color: var(--n4);
  line-height: 1.8;
  max-width: 560px;
  font-weight: 300;
}

/* ----------------------------------------------------------------
   Placeholder (for in-progress sections)
   ---------------------------------------------------------------- */
.docs-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  border: 1px dashed var(--n3);
  color: var(--n4);
  font-family: 'Syne Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .docs-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--n3);
    padding: 24px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }

  .sidebar-section {
    padding: 0;
    margin-right: 32px;
  }

  .docs-content {
    padding: 40px 28px 80px;
  }

  .docs-title {
    font-size: 32px;
  }
}
