/* Styles for client-side markdown rendering (marked.js → #content).
   Used by methods.html, terms.html, and how_to_use.html. */

#content h1 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: #eee;
}

#content h2 {
  font-size: 1.05rem;
  margin: 2.5rem 0 0.75rem;
  color: #ccc;
  border-bottom: 1px solid #333;
  padding-bottom: 0.3rem;
}

#content h2:first-of-type { margin-top: 2rem; }

#content h3 {
  font-size: 0.95rem;
  margin: 1.5rem 0 0.5rem;
  color: #ccc;
}

#content p {
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: #bbb;
}

#content ul,
#content ol {
  margin: 0.5rem 0 1.2rem 1.5rem;
  font-size: 0.88rem;
  color: #bbb;
}

#content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

#content strong { color: #ddd; }

#content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.85rem;
}

#content th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #444;
  color: #ccc;
}

#content td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #222;
  color: #bbb;
}

#content tr:last-child td { border-bottom: none; }

#content code {
  background: #1a1a1a;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85em;
  color: #ccc;
}

#content pre {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  font-size: 0.85rem;
  color: #ccc;
}

#content pre code {
  background: none;
  padding: 0;
}

#content blockquote {
  border-left: 2px solid #333;
  padding-left: 1rem;
  margin: 1rem 0 1.5rem;
  color: #999;
  font-size: 0.88rem;
}

#content a { color: #8ab4f8; }
#content a:hover { color: #aecbfa; }

/* Screenshots embedded via standard ![alt](src) markdown syntax.
   Wrap in a bordered frame, scale to container width. */
#content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto 0.5rem;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 0.5rem;
  background: #1a1a1a;
}

/* Italic text directly after an image is treated as a caption.
   Use *Caption text* on the line right below the image. */
#content img + em,
#content p > em:only-child {
  display: block;
  text-align: center;
  color: #888;
  font-size: 0.78rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

#content .loading {
  color: #666;
  font-size: 0.88rem;
}

#content .error {
  color: #e57373;
  font-size: 0.88rem;
}
