.main-blog {
  background-color: rgb(var(--color-background));
}

.main-blog__container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.main-blog__list {
  --gap: 22px;
}

/* Tablet: 2 columns (matches live's 1/2--tablet). The base .grid only has
   mobile (<=959px) and desktop (>=960px) tiers, so add a tablet band here. */
@media (min-width: 700px) and (max-width: 959px) {
  .main-blog__list.grid {
    --column-width: calc((100% - var(--column-gap, 22px)) / 2);

    grid-auto-flow: row;
    grid-template-columns: repeat(2, var(--column-width));
    overflow-x: visible;
  }
}

.main-blog__title {
  color: rgba(var(--color-text));
  /* consistent with the theme's section titles (20px / 500 / 0.2em / upper) */
  font-size: 20px !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
}

/* ------------------------------------------------------------------ */
/* Match the live site's blog index cards (Prestige "ArticleItem").    */
/* Scoped to .main-blog so the shared article-card block is unchanged  */
/* on the homepage widget and the standalone blog section.             */
/* ------------------------------------------------------------------ */

/* Cards: left-aligned, dark text, tighter vertical rhythm */
.main-blog .block-article-card {
  align-items: flex-start;
  color: rgb(var(--color-text));
  text-align: start;
  row-gap: 14px;
}
.main-blog .block-article-card__info {
  align-items: flex-start;
  row-gap: 14px;
  text-align: start;
}

/* Hide cover entirely when the article has no real image (text-only card,
   like most cards on the live site). Real images keep their cover. */
.main-blog .block-article-card__cover:not(:has(img)) {
  display: none;
}
.main-blog .block-article-card__image-wrapper {
  padding: 0;
  background-color: transparent;
}

/* Title — Montserrat 18 / 500 / 0.2em / uppercase, matching .ArticleItem__Title */
.main-blog .block-article-card__title {
  font-family: var(--sort-heading-font, "Montserrat", sans-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: start;
}

/* Excerpt — Nunito Sans 14 / 400 / 1.65, no clamp truncation styling needed */
.main-blog .block-article-card__excerpt {
  font-family: var(--sort-body-font, "Nunito Sans", sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  text-align: start;
}

/* "Read more" — underlined inline link, not a boxed button */
.main-blog .block-article-card__button {
  align-self: flex-start;
  padding: 0;
  font-family: var(--sort-body-font, "Nunito Sans", sans-serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
