/* SpecChat docs stylesheet */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  max-width: 52rem;
  margin: 2.5em auto;
  padding: 0 1.5rem;
  line-height: 1.7;
  color: #1a1a2e;
  background: #fff;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 1.8rem;
  border-bottom: 2px solid #3a86ff;
  padding-bottom: 0.4rem;
}

h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }

/* Links */
a { color: #3a86ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Paragraphs */
p { margin: 0.8em 0; }

/* Lists */
ul, ol { padding-left: 1.8em; }
li { margin: 0.3em 0; }

/* Code */
code {
  font-family: 'Cascadia Code', 'Fira Code', Consolas, 'Courier New', monospace;
  font-size: 0.9em;
  background: #f4f4f8;
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

pre {
  background: #f4f4f8;
  padding: 1em 1.2em;
  border-radius: 6px;
  overflow-x: auto;
  line-height: 1.5;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}

th, td {
  border: 1px solid #ddd;
  padding: 0.5em 0.75em;
  text-align: left;
}

th {
  background: #f4f4f8;
  font-weight: 600;
}

tr:nth-child(even) {
  background: #fafafa;
}

/* Blockquotes */
blockquote {
  margin: 1em 0;
  padding: 0.5em 1em;
  border-left: 3px solid #3a86ff;
  color: #555;
  background: #f9f9fc;
}

blockquote p {
  margin: 0.4em 0;
}

/* Horizontal rules */
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2em 0;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Bold and emphasis */
strong { font-weight: 600; }

/* Docs index page */
.doc-list {
  list-style: none;
  padding: 0;
}

.doc-list li {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.doc-list li a {
  font-size: 1.1rem;
  font-weight: 600;
}

.doc-list li p {
  margin: 0.5rem 0 0;
  color: #555;
}

.back-link {
  margin-top: 2rem;
  display: inline-block;
}

/* Mermaid diagrams */
pre.mermaid {
  text-align: center;
  background: none;
  border: none;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    margin: 1em auto;
    padding: 0 0.75rem;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }

  pre {
    padding: 0.75em;
    font-size: 0.85em;
  }
}
