/* Opt-in article feeds only: health blog, cafe news, product articles. */
.article-feed-grid:is(#health-blog-list, #home-blog-latest, #cafe-news-list, [data-product-articles-grid]) {
  display: grid;
  width: 100%;
  max-width: 1200px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
  margin-right: auto;
  margin-left: auto;
}

.page-section-wide > .article-feed-grid:is(#home-blog-latest, #cafe-news-list) {
  width: 86%;
}

.article-feed-grid .blog-post-card {
  display: grid;
  grid-template-rows: auto minmax(64px, auto) calc(6.4em + 10px) 3.4em auto;
  align-content: start;
  min-width: 0;
  padding: 16px;
  border: var(--border-card, 1px solid #e7e3da);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  font-size: 16px;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.article-feed-grid .blog-post-card .blog-post-thumb {
  display: block;
  grid-row: 1;
  width: calc(100% + 32px);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: -16px -16px 14px;
  padding: 0;
  border-radius: 14px 14px 0 0;
  background: #e8eceb;
  object-fit: cover;
}

.article-feed-grid .blog-post-card .blog-post-meta {
  display: grid;
  grid-row: 2;
  grid-template-rows: 20px auto;
  justify-content: start;
  align-content: start;
  align-items: start;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.article-feed-grid .blog-post-meta time { grid-row: 1; }
.article-feed-grid .blog-post-meta .blog-post-tag { grid-row: 2; }

.article-feed-grid .blog-post-tag,
.article-detail-page .article-category {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 4px 10px;
  border: 0;
  border-radius: 5px;
  background: #E1F2EC;
  color: #087D70;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.article-feed-grid .blog-post-card .blog-post-title {
  display: -webkit-box;
  grid-row: 3;
  height: 6.4em;
  margin: 0;
  overflow: hidden;
  color: #555;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.article-feed-grid .blog-post-card .blog-post-excerpt {
  display: -webkit-box;
  grid-row: 4;
  max-height: 3.4em;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.article-feed-grid .blog-post-card .blog-post-read {
  grid-row: 5;
  align-self: end;
  margin: 14px 0 0;
  color: var(--kohki-green-deep);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-feed-grid .news-empty { grid-column: 1 / -1; }

.article-detail-page .article-detail-content { padding-bottom: 0; }
.article-detail-page .article-content { display: flow-root; }
.article-detail-page .article-content > :last-child { margin-bottom: 0; }
.article-detail-page .article-detail-back { padding-top: 48px; padding-bottom: 64px; }
.article-detail-page .article-detail-back .button { margin-top: 0; }
.article-detail-page .health-detail-cta { margin-top: 0; }

@media (max-width: 780px) {
  .page-section-wide > .article-feed-grid:is(#home-blog-latest, #cafe-news-list) { width: 90%; }
  .article-feed-grid .blog-post-card { font-size: 15px; }
  .article-detail-page .article-detail-back { padding-top: 32px; padding-bottom: 40px; }
}
