/* Competition blog (Competition-Backend, shared).
   The blog sits in each site's own content box (SYS blog_layout: cbox, section, page), so fonts, colours,
   headings and widths come from the site. This file only lays out the article list and keeps long
   articles readable. Per-site adjustments: SYS blog_custom_css. */

.ehblog-box .ehblog-intro,
.ehblog-box .ehblog-topics,
.ehblog-box .ehblog-crumbs,
.ehblog-box .ehblog-meta,
.ehblog-box .ehblog-pager,
.ehblog-list,
.ehblog-article { text-align: left; }

.ehblog-box .ehblog-topics { line-height: 1.9; }
.ehblog-box .ehblog-crumbs { font-size: .9em; margin-bottom: 0; }
.ehblog-box .ehblog-meta { font-size: .9em; opacity: .75; }

/* List of articles: photo left, text right, a thin rule between entries. */
.ehblog-list { margin: 10px 0 0; }
.ehblog-item { display: flex; gap: 22px; align-items: flex-start; padding: 20px 0; border-top: 1px solid rgba(128, 128, 128, .3); }
.ehblog-thumb { flex: 0 0 220px; display: block; }
.ehblog-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ehblog-item-text { flex: 1 1 auto; min-width: 0; }
.ehblog-box .ehblog-item-text p { margin: 0 0 6px; }
.ehblog-item-title { font-size: 1.15em; }
.ehblog-pager { margin-top: 20px; }

/* Article: the site's typography at a readable width. */
.ehblog-article { max-width: 780px; margin: 0 auto; }
.ehblog-article .ehblog-cover { display: block; width: auto; max-width: 100%; height: auto; margin: 6px auto 22px; }
.ehblog-article h3, .ehblog-article h4 { text-align: left; margin: 26px 0 8px; }
.ehblog-article ul, .ehblog-article ol { text-align: left; padding-left: 24px; margin: 0 0 14px; }
.ehblog-article li { list-style: revert; margin-bottom: 4px; }
.ehblog-article blockquote { margin: 14px 0; padding-left: 14px; border-left: 3px solid rgba(128, 128, 128, .5); }
.ehblog-article table { border-collapse: collapse; margin: 0 0 16px; max-width: 100%; display: block; overflow-x: auto; }
.ehblog-article th, .ehblog-article td { border: 1px solid rgba(128, 128, 128, .45); padding: 6px 9px; text-align: left; }
.ehblog-article pre { overflow-x: auto; padding: 10px 12px; border: 1px solid rgba(128, 128, 128, .35); text-align: left; }
.ehblog-article code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }
.ehblog-article .ehblog-about { margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(128, 128, 128, .3); }
.ehblog-more { text-align: left; padding-left: 20px; }
.ehblog-more li { list-style: disc; margin-bottom: 4px; }

@media (max-width: 640px) {
  .ehblog-item { flex-direction: column; gap: 10px; }
  .ehblog-thumb { flex-basis: auto; width: 100%; }
}
