.moonlit-blog {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 68px;
  color: var(--content-primary-themed, #19232d);
}
.moonlit-blog [hidden] { display: none !important; }
.moonlit-blog h1 {
  font: 500 clamp(2.3rem, 5vw, 3.5rem)/1.12 Georgia, serif;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.blog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--border-divider-themed, #d7e1dd);
  margin-bottom: 8px;
  padding-bottom: 22px;
}
.blog-heading p,
.moonlit-blog time {
  color: var(--content-secondary-themed, #526271);
}
.blog-heading p { margin: .75rem 0 0; }
.blog-entry {
  display: grid;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-divider-themed, #d7e1dd);
}
.blog-entry.has-thumbnail {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 30%);
}
.blog-entry h2 { margin: .4rem 0 .7rem; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.blog-entry h2 a { color: inherit; text-decoration: none; }
.blog-entry h2 a:hover { text-decoration: underline; }
.blog-entry p { line-height: 1.65; }
.blog-entry, .blog-prose { overflow-wrap: anywhere; }
.blog-thumbnail { align-self: start; }
.blog-thumbnail img, .blog-cover {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border: 1px solid var(--border-divider-themed, #d7e1dd);
  border-radius: 10px;
  background: var(--tf-soft, #edf4ef);
}
.blog-article { display: flow-root; }
.blog-cover {
  float: inline-start;
  width: auto;
  height: auto;
  max-width: min(26%, 144px);
  max-height: 144px;
  margin: .25rem clamp(.75rem, 3vw, 1.25rem) .55rem 0;
}
.blog-cover + .blog-prose > :first-child { margin-top: 0; }
.blog-read-more, .blog-back { display: inline-block; margin: .75rem 0 0; }
.blog-back { margin-bottom: 1rem; }
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: .75rem 0;
}
.blog-tags li {
  padding: .2rem .55rem;
  border-radius: 5px;
  background: var(--tf-soft, #edf4ef);
  font-size: .83rem;
}
.blog-pagination { margin-top: 28px; }
.blog-empty { padding: 24px 0; }
.blog-article h1 { margin: .65rem 0 1.3rem; }
.blog-prose { font-size: 1.05rem; line-height: 1.72; }
.blog-prose :is(h2, h3, h4) { margin: 1.5em 0 .55em; }
.blog-prose img { max-width: 100%; height: auto; border-radius: 6px; }
.blog-prose blockquote {
  border-inline-start: 3px solid var(--border-divider-themed, #d7e1dd);
  padding-inline-start: 1rem;
}
.blog-prose pre { padding: 1rem; overflow: auto; background: var(--tf-soft, #edf4ef); }
.blog-prose table { display: block; overflow: auto; }
.blog-prose :is(td, th) { padding: .4rem .65rem; border: 1px solid var(--border-divider-themed, #d7e1dd); }
.blog-editor {
  margin-top: 1.4rem;
  border: 1px solid var(--border-divider-themed, #d7e1dd);
  border-radius: 14px;
  padding: clamp(16px, 3vw, 28px);
}
.blog-editor-meta, .blog-thumbnail-editor {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}
.blog-editor-meta { grid-template-columns: 3fr 2fr; }
.blog-thumbnail-editor {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: 16px;
  background: var(--tf-soft, #edf4ef);
  border-radius: 9px;
}
.blog-thumbnail-editor > div { grid-column: -2 / -1; }
.blog-thumbnail-editor img { width: 128px; max-height: 90px; object-fit: contain; border-radius: 5px; }
.blog-composer {
  border: 1px solid var(--border-divider-themed, #d7e1dd);
  border-radius: 8px;
}
.blog-editor-toolbar, .blog-format-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.blog-editor-toolbar { padding: 8px; background: var(--tf-soft, #edf4ef); }
.blog-editor-toolbar [aria-pressed='true'] { font-weight: 700; }
.blog-composer textarea { border-radius: 0 0 8px 8px; }
#blog-preview { min-height: 15rem; padding: 16px; }
@media (max-width: 575px) {
  .moonlit-blog { padding-top: 94px; }
  .blog-entry.has-thumbnail, .blog-editor-meta, .blog-thumbnail-editor { grid-template-columns: 1fr; }
  .blog-thumbnail { grid-row: 1; max-width: 220px; }
}

.blog-management-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .75rem;
  margin: 1.25rem 0;
}
.blog-management-filters > :first-child { flex: 1 1 14rem; }
.blog-management-table th[scope='row'] { overflow-wrap: anywhere; }
.blog-management-table th:last-child { min-width: 8.5rem; }
