/*
 * Heis Soma — application.css
 * Base styles and custom components on top of Tabler (loaded via CDN).
 */

/* ── Docs layout (/integrate, /integrate/guide) ─────────────────────────── */

.page-wrapper--docs {
  display: flex;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  gap: 2rem;
}

.docs-nav {
  flex: 0 0 220px;
  position: sticky;
  top: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-size: 0.9rem;
}

.docs-nav strong {
  display: block;
  margin-bottom: 0.75rem;
  color: #1E369C;
  font-size: 0.95rem;
}

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

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

.docs-nav ul li a {
  color: #495057;
  text-decoration: none;
}

.docs-nav ul li a:hover {
  color: #1E369C;
  text-decoration: underline;
}

.docs-toc {
  color: #6c757d;
}

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

/* Markdown content typography */
.docs-content h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; color: #1a1a2e; }
.docs-content h2 { font-size: 1.25rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; color: #1a1a2e; border-bottom: 1px solid #e9ecef; padding-bottom: 0.4rem; }
.docs-content h3 { font-size: 1.05rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; color: #1a1a2e; }
.docs-content h4 { font-size: 0.95rem; font-weight: 600; margin-top: 1rem; margin-bottom: 0.25rem; }

.docs-content p  { margin-bottom: 0.9rem; line-height: 1.6; }

.docs-content a  { color: #1E369C; }

.docs-content code {
  background: #f1f3f9;
  border: 1px solid #dee2ef;
  border-radius: 3px;
  padding: 0.1em 0.35em;
  font-size: 0.875em;
  color: #c0392b;
}

.docs-content pre {
  background: #1a1a2e;
  color: #e8e8f0;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.docs-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.docs-content table th,
.docs-content table td {
  border: 1px solid #dee2ef;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.docs-content table th {
  background: #f1f3f9;
  font-weight: 600;
}

.docs-content blockquote {
  border-left: 4px solid #1E369C;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background: #f1f3f9;
  border-radius: 0 4px 4px 0;
  color: #495057;
  font-size: 0.9rem;
}

.docs-content blockquote p { margin-bottom: 0; }

.docs-content hr {
  border: none;
  border-top: 1px solid #e9ecef;
  margin: 2rem 0;
}

/* Responsive — stack nav above content on small screens */
@media (max-width: 768px) {
  .page-wrapper--docs {
    flex-direction: column;
  }
  .docs-nav {
    flex: none;
    width: 100%;
    position: static;
  }
}
