/**
 * GitHub Theme
 * Description: GitHub-style markdown rendering with familiar look and feel
 * Author: Markdown-to-File Project
 */

.preview-content {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #24292f;
  background-color: #ffffff;
  padding: 1rem;
}

/* Headers */
.preview-content h1 {
  font-size: 2em;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #d0d7de;
  line-height: 1.25;
}

.preview-content h2 {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #d0d7de;
  line-height: 1.25;
}

.preview-content h3 {
  font-size: 1.25em;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.25;
}

.preview-content h4 {
  font-size: 1em;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.25;
}

.preview-content h5 {
  font-size: 0.875em;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.25;
}

.preview-content h6 {
  font-size: 0.85em;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.25;
  color: #57606a;
}

/* Paragraphs */
.preview-content p {
  margin-top: 0;
  margin-bottom: 1em;
}

/* Links */
.preview-content a {
  color: #0969da;
  text-decoration: none;
}

.preview-content a:hover {
  text-decoration: underline;
}

/* Lists */
.preview-content ul,
.preview-content ol {
  margin-top: 0;
  margin-bottom: 1em;
  padding-left: 2em;
}

.preview-content li {
  margin-top: 0.25em;
}

.preview-content li > p {
  margin-top: 1em;
}

/* Code */
.preview-content code {
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  background-color: rgba(175, 184, 193, 0.2);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

.preview-content pre {
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  background-color: #f6f8fa;
  border-radius: 6px;
  margin-top: 0;
  margin-bottom: 1em;
}

.preview-content pre code {
  display: inline;
  padding: 0;
  margin: 0;
  overflow: visible;
  line-height: inherit;
  background-color: transparent;
  border: 0;
  font-size: 100%;
}

/* Tables */
.preview-content table {
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}

.preview-content table th {
  font-weight: 600;
  padding: 6px 13px;
  border: 1px solid #d0d7de;
  background-color: #f6f8fa;
}

.preview-content table td {
  padding: 6px 13px;
  border: 1px solid #d0d7de;
}

.preview-content table tr {
  background-color: #ffffff;
  border-top: 1px solid #d0d7de;
}

.preview-content table tr:nth-child(2n) {
  background-color: #f6f8fa;
}

/* Blockquotes */
.preview-content blockquote {
  padding: 0 1em;
  color: #57606a;
  border-left: 0.25em solid #d0d7de;
  margin-top: 0;
  margin-bottom: 1em;
}

.preview-content blockquote > :first-child {
  margin-top: 0;
}

.preview-content blockquote > :last-child {
  margin-bottom: 0;
}

/* Horizontal Rule */
.preview-content hr {
  height: 0.25em;
  padding: 0;
  margin: 1.5em 0;
  background-color: #d0d7de;
  border: 0;
}

/* Strong and Emphasis */
.preview-content strong {
  font-weight: 600;
}

.preview-content em {
  font-style: italic;
}

/* Task Lists */
.preview-content input[type="checkbox"] {
  margin-right: 0.5em;
}

/* Images */
.preview-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
