.demo-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 2rem 2.25rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  align-items: start;
  box-sizing: border-box;
}

.demo-page-layout__main {
  min-width: 0;
}

.demo-page-layout__main > .demo.demo-page {
  max-width: none;
  margin: 0;
  padding: 0;
}

.demo-guide {
  position: sticky;
  top: 1.25rem;
  align-self: start;
}

.demo-guide__inner {
  border: 1px solid var(--border, #e5e4e7);
  border-radius: 12px;
  background: var(--code-bg, #f8f7f4);
  padding: 1.25rem 1.25rem 1.35rem;
  box-shadow: 0 1px 0 rgba(8, 6, 13, 0.04);
}

.demo-guide__title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-h, #08060d);
}

.demo-guide__summary {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-secondary, #64748b);
}

.demo-guide__props-overview {
  margin: -0.35rem 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--color-text-default, #334155);
}

.demo-guide__subtitle {
  margin: 1rem 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text, #6b6375);
}

.demo-guide__subtitle:first-of-type {
  margin-top: 0;
}

.demo-guide__list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-default, #334155);
}

.demo-guide__list li {
  margin-bottom: 0.35rem;
}

.demo-guide__list li:last-child {
  margin-bottom: 0;
}

.demo-guide__code {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.72rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
  border: 1px solid rgba(15, 23, 42, 0.85);
}

.demo-guide__code code {
  font-family: inherit;
  font-size: inherit;
}

@media (max-width: 960px) {
  .demo-page-layout {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
  }

  .demo-guide {
    position: static;
  }
}
