/* Blog post page — scoped overrides. Loaded ONLY by blog/post.php, so it
   cannot affect any other page. styles.css is intentionally left untouched. */

/* 1) Restore list markers inside the article body.
      styles.css line 105 (`ul, ol { list-style: none }`) strips them, and
      Quill emits plain <ul>/<ol> without the design's .article-list class. */
.article-body ul,
.article-body ol {
  margin: 0 0 1.375rem;
  padding-left: 1.5rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.article-body li::marker { color: var(--maroon); }
/* nested lists: no double gap */
.article-body li > ul,
.article-body li > ol { margin-top: 0.5rem; margin-bottom: 0; }

/* 2) Hero contrast on the maroon article head (#5A0000). */
.article-head .article-tag { color: var(--accent); }        /* brand yellow, was dark maroon */
.article-head .article-meta span { color: var(--on-dark); } /* ~12:1 on maroon (AA/AAA) */
.article-head .article-meta b { color: var(--on-dark-2); }  /* ~6.7:1 on maroon (AA) */
.article-head .article-meta { border-top-color: rgba(255, 255, 255, 0.18); }

/* 3) Cover image: lock to a 16:9 frame with a capped height so tall/portrait
      photos are cropped (object-fit: cover) instead of filling the screen. */
.article-figure img {
  aspect-ratio: 16 / 9;
  max-height: 520px;
  object-fit: cover;
}

/* 4) In-content images: fit the column, cap height, centred, small radius. */
.article-body img {
  display: block;
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 1.5rem auto;
  border-radius: 8px;
}

/* 5) Card thumbnails (listing + related): lazy (in markup), fixed 16:9. */
.post-row__main { display: flex; gap: 1rem; align-items: flex-start; }
.post-row__text { flex: 1 1 auto; min-width: 0; }
.post-thumb {
  flex: 0 0 120px;
  width: 120px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: var(--gray-100);
}
.related-card--thumb { gap: 1rem; }
.related-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: var(--gray-100);
}
@media (max-width: 560px) {
  .post-row__main { flex-direction: column; }
  .post-thumb { width: 100%; flex-basis: auto; }
}

/* 6) Draft preview bar (admin-only). */
.preview-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--base-950, #3A0000);
  background: var(--accent, #FEED00);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.preview-bar strong { font-weight: 700; }
