/* ==========================================================================
   Blog post list - responsive

   Registered before blog-list.css, so these render last and win on ties.
   The two-up grid folds to one column before the layout's own side column
   drops under the posts, so the cards never get squeezed into a narrow strip.
   ========================================================================== */

/* laptop: the hero loses some of its height, the lead post its extra setting */
@media all and (max-width: 1199px) {
  .html-blog-page .ch-bl-hero {
    padding: 54px 28px 48px;
  }

  .html-blog-page .ch-bl-hero-title {
    font-size: 44px;
  }

  .html-blog-page .ch-bl-card--lead .ch-bl-card-title {
    font-size: 26px;
  }
}

/* the main column is still beside the side column here, so one card per row */
@media all and (max-width: 1024px) {
  .html-blog-page .ch-bl-hero-wrap {
    margin-bottom: 26px;
  }

  .html-blog-page .ch-bl-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .html-blog-page .ch-bl-card-in,
  .html-blog-page .ch-bl-card--lead .ch-bl-card-in {
    padding: 22px 22px 20px;
  }

  .html-blog-page .ch-bl-card--lead .ch-bl-card-title {
    font-size: 23px;
  }

  .html-blog-page .ch-bl-card--lead .ch-bl-card-excerpt {
    font-size: 15.5px;
  }
}

/* tablet */
@media all and (max-width: 900px) {
  .html-blog-page .ch-bl-hero {
    padding: 44px 22px 40px;
  }

  .html-blog-page .ch-bl-hero-title {
    font-size: 36px;
  }

  .html-blog-page .ch-bl-hero-sub {
    font-size: 15.5px;
  }

  .html-blog-page .ch-bl-hero-meta {
    margin-top: 22px;
  }

  .html-blog-page .ch-bl-card-title,
  .html-blog-page .ch-bl-card--lead .ch-bl-card-title {
    font-size: 20px;
  }
}

/* phone */
@media all and (max-width: 600px) {
  .html-blog-page .ch-bl-hero-wrap {
    margin-bottom: 20px;
  }

  .html-blog-page .ch-bl-hero {
    padding: 34px 18px 32px;
  }

  .html-blog-page .ch-bl-hero-eyebrow {
    margin-bottom: 14px;
    padding: 5px 12px;
    font-size: 10.5px;
    letter-spacing: .1em;
  }

  .html-blog-page .ch-bl-hero-title {
    font-size: 29px;
    line-height: 1.14;
  }

  .html-blog-page .ch-bl-hero-sub {
    font-size: 14.5px;
    line-height: 1.55;
  }

  .html-blog-page .ch-bl-hero-meta {
    gap: 8px 14px;
    margin-top: 18px;
  }

  .html-blog-page .ch-bl-hero-rss {
    padding: 7px 13px;
    font-size: 12.5px;
  }

  .html-blog-page .ch-bl-grid {
    gap: 14px;
  }

  .html-blog-page .ch-bl-card {
    border-radius: 14px;
  }

  .html-blog-page .ch-bl-card-in,
  .html-blog-page .ch-bl-card--lead .ch-bl-card-in {
    padding: 18px 17px 16px;
  }

  .html-blog-page .ch-bl-card-title,
  .html-blog-page .ch-bl-card--lead .ch-bl-card-title {
    font-size: 18.5px;
    line-height: 1.32;
  }

  .html-blog-page .ch-bl-card-excerpt,
  .html-blog-page .ch-bl-card--lead .ch-bl-card-excerpt {
    margin-bottom: 15px;
    font-size: 14.5px;
  }

  /* the foot stacks: tags first, then the read link on its own line */
  .html-blog-page .ch-bl-card-foot {
    align-items: flex-start;
    gap: 12px;
    padding-top: 14px;
  }

  .html-blog-page .ch-bl-card-cta {
    margin-left: 0;
  }

  .html-blog-page .ch-bl-empty {
    padding: 40px 18px;
  }

  .html-blog-page .ch-bl-pager li a,
  .html-blog-page .ch-bl-pager li span {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13.5px;
  }
}

/* narrow phones: the meta row is the first thing to run out of room */
@media all and (max-width: 380px) {
  .html-blog-page .ch-bl-hero-title {
    font-size: 26px;
  }

  .html-blog-page .ch-bl-card-date,
  .html-blog-page .ch-bl-card-read {
    font-size: 11px;
  }

  .html-blog-page .ch-bl-card-tags a {
    font-size: 11.5px;
  }
}
