/* Blog styles */

/* Folder/file icons */
.pm-tile.folder {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-tile.folder svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.pm-tile.file {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-tile.file svg {
  width: 16px;
  height: 16px;
  color: var(--text-off);
}

.new-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-size: 9px;
  font-weight: bold;
  padding: 0 3px;
  margin-left: 4px;
  vertical-align: middle;
  text-transform: uppercase;
}

/* Breadcrumb in panel head */
.pm-panel .head .breadcrumb {
  display: inline;
  font-size: inherit;
  color: inherit;
}
.pm-panel .head .breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
}
.pm-panel .head .breadcrumb a:hover {
  color: var(--accent);
}
.pm-panel .head .breadcrumb-sep {
  color: var(--text-off);
  margin: 0 2px;
}

/* Breadcrumb in body (folder listing pages) */
.pm-panel .body .breadcrumb {
  font-size: var(--size);
  margin-bottom: 6px;
}
.pm-panel .body .breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}
.pm-panel .body .breadcrumb a:hover {
  text-decoration: underline;
}
.pm-panel .body .breadcrumb-sep {
  color: var(--text-off);
  margin: 0 3px;
}
.pm-panel .body .breadcrumb-current {
  color: var(--text-dim);
}

/* Blog post article */
.blog-post {
  max-width: 100%;
}

/* Post header - matches panel header style */
.post-header {
  margin-bottom: 12px;
}
.post-header h1 {
  font-size: var(--size);
  font-weight: bold;
  color: var(--text);
  margin: 0 0 3px;
}
.post-subtitle {
  color: var(--text-dim);
  font-size: var(--size);
  margin: 3px 0;
}
.post-meta {
  color: var(--text-off);
  font-size: var(--size);
  margin-top: 6px;
}

/* Blog post content */
.post-content {
  line-height: var(--line);
  color: var(--text-dim);
  font-size: var(--size);
}
.post-content h2 {
  color: var(--accent);
  font-size: var(--size);
  font-weight: bold;
  margin: 18px 0 6px;
  padding: 0;
  border: none;
}
.post-content h2:first-child {
  margin-top: 9px;
}
.post-content h3 {
  color: var(--text);
  font-size: var(--size);
  font-weight: bold;
  margin: 15px 0 6px;
}
.post-content p {
  margin: 9px 0;
}
.post-content ul, .post-content ol {
  margin: 9px 0;
  padding-left: 18px;
}
.post-content li {
  margin: 3px 0;
}
.post-content li::marker {
  color: var(--accent);
}
.post-content a {
  color: var(--accent);
  text-decoration: none;
}
.post-content a:hover {
  text-decoration: underline;
}

/* Inline code */
.post-content code {
  font-family: var(--font-mono);
  background: var(--field);
  border: 1px solid var(--field-border);
  padding: 0 3px;
  font-size: var(--size);
  color: var(--accent-hi);
}

/* Code blocks */
.post-content pre {
  background: var(--dark);
  border: 1px solid var(--field-border);
  padding: var(--pad);
  overflow-x: auto;
  margin: 12px 0;
}
.post-content pre code {
  font-family: var(--font-mono);
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  line-height: 15px;
  color: var(--text-dim);
}

/* Blockquotes */
.post-content blockquote {
  border-left: 2px solid var(--accent);
  margin: 12px 0;
  padding: 6px 9px;
  background: var(--field);
  color: var(--text-dim);
  font-style: italic;
}
.post-content blockquote p {
  margin: 0;
}

.post-content strong {
  color: var(--text);
  font-weight: bold;
}
.post-content img {
  max-width: 100%;
  margin: 12px 0;
  border: 1px solid var(--border);
}

/* Highlight.js overrides */
.hljs {
  background: transparent !important;
  padding: 0 !important;
}
.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-section, .hljs-link { color: #c678dd; }
.hljs-string, .hljs-title, .hljs-name, .hljs-type, .hljs-attribute, .hljs-symbol, .hljs-bullet, .hljs-addition, .hljs-variable, .hljs-template-tag, .hljs-template-variable { color: #98c379; }
.hljs-comment, .hljs-quote, .hljs-deletion, .hljs-meta { color: #5c6370; }
.hljs-number { color: #d19a66; }
.hljs-built_in, .hljs-class .hljs-title { color: #e6c07b; }
.hljs-function { color: #61afef; }
.hljs-params { color: #abb2bf; }
.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-title, .hljs-section, .hljs-doctag, .hljs-type, .hljs-name, .hljs-strong { font-weight: normal; }

/* Blog listing item text */
.pm-panel .body.flush .pm-item .info b {
  font-size: var(--size);
  display: block;
  margin-bottom: 3px;
}
.pm-panel .body.flush .pm-item .info .dim {
  font-size: 11px;
  display: block;
  color: var(--text-off);
}
