/* GitHub-flavored Markdown look — closest to what people expect on github.com */

.preview[data-theme="github"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  word-wrap: break-word;
}

.preview[data-theme="github"] h1,
.preview[data-theme="github"] h2,
.preview[data-theme="github"] h3,
.preview[data-theme="github"] h4,
.preview[data-theme="github"] h5,
.preview[data-theme="github"] h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.preview[data-theme="github"] h1 {
  font-size: 2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border);
}
.preview[data-theme="github"] h2 {
  font-size: 1.5em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border);
}
.preview[data-theme="github"] h3 { font-size: 1.25em; }
.preview[data-theme="github"] h4 { font-size: 1em; }
.preview[data-theme="github"] h5 { font-size: 0.875em; }
.preview[data-theme="github"] h6 { font-size: 0.85em; color: var(--text-muted); }

.preview[data-theme="github"] p { margin: 0 0 16px; }

.preview[data-theme="github"] a {
  color: var(--accent);
  text-decoration: none;
}
.preview[data-theme="github"] a:hover { text-decoration: underline; }

.preview[data-theme="github"] code {
  background: var(--bg-subtle);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 85%;
  font-family: var(--font-mono);
}

.preview[data-theme="github"] pre {
  background: var(--bg-subtle);
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  font-size: 85%;
  line-height: 1.45;
  margin: 0 0 16px;
}

.preview[data-theme="github"] pre code {
  background: transparent;
  padding: 0;
  font-size: 100%;
  border-radius: 0;
}

.preview[data-theme="github"] blockquote {
  border-left: 4px solid var(--border-strong);
  padding: 0 1em;
  margin: 0 0 16px;
  color: var(--text-muted);
}

.preview[data-theme="github"] ul,
.preview[data-theme="github"] ol {
  padding-left: 2em;
  margin: 0 0 16px;
}

.preview[data-theme="github"] li + li { margin-top: 4px; }

.preview[data-theme="github"] hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.preview[data-theme="github"] table {
  border-collapse: collapse;
  margin: 0 0 16px;
  width: 100%;
}

.preview[data-theme="github"] th,
.preview[data-theme="github"] td {
  border: 1px solid var(--border);
  padding: 6px 13px;
}

.preview[data-theme="github"] th {
  background: var(--bg-subtle);
  font-weight: 600;
}

.preview[data-theme="github"] img { max-width: 100%; }
