/* Archive + post page shell. Tokens come from .me-landing in the plugin. */

.me-blog-page,
.me-post {
  background: var(--me-bg);
  overflow-x: clip;
  max-width: 100%;
}

.me-blog-wrap,
.me-post-wrap {
  width: 100%;
  max-width: var(--me-max);
  margin: 0 auto;
  padding-left: var(--me-gutter);
  padding-right: var(--me-gutter);
  box-sizing: border-box;
  min-width: 0;
}

.me-blog-head { padding: 0; background: transparent; }
.me-blog-crumbs,
.me-post-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--me-muted);
}
.me-landing .me-blog-crumbs a {
  color: var(--me-muted) !important;
  text-decoration: none;
}
.me-landing .me-blog-crumbs a:hover { color: var(--me-text) !important; }
.me-blog-head__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.me-blog-head__title {
  margin: 0;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.me-blog-head__count {
  margin: 0;
  font-size: 13px;
  color: var(--me-muted);
  white-space: nowrap;
}

.me-blog-body { padding: 22px 0 72px; }

.me-blog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-areas:
    "side head"
    "side main";
  column-gap: 36px;
  row-gap: 14px;
  align-items: start;
}
.me-blog-head { grid-area: head; min-width: 0; }
.me-blog-side { grid-area: side; min-width: 0; }
.me-blog-main { grid-area: main; min-width: 0; }
.me-blog-layout--solo {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "head"
    "main";
}

.me-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.me-blog-grid--related {
  margin-top: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
