/* Blog. Sits on top of topics.css and only adds what an article listing needs:
   the card grid, the banner, the meta line and the fade of a teaser. Colours are
   the ones topics.css already uses (#7d0845 burgundy, #2e1a4a ink, #ffb000
   amber, #ead8d6 line, #fdf5f3 tint), no new values. */

.blog-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 20px 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ead8d6;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 26, 74, .10);
}

.blog-card-img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
  background: #fdf5f3;
}

.blog-card-text {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.blog-card-text h2 {
  font-family: "Bauhaus Bugler", "Lexend", system-ui, -apple-system, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #7d0845;
  line-height: 1.25;
  margin: 0;
}

.blog-card-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #3a2f33;
}

.blog-card-meta {
  margin-top: auto !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px !important;
  color: #6b6266 !important;
}

.blog-card-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fdf5f3;
  border: 1px solid #ead8d6;
  color: #7d0845;
  font-size: 12px;
  font-weight: 600;
}

/* ---- article ---- */

.blog-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  background: #fdf5f3;
}

/* The summary box under the headline: the takeaways plus who wrote it and
   when. Set on the warm surface the topic pages use for their "at a glance"
   block, so the two read as the same kind of element. */
.blog-summary {
  background: #fdf5f3;
  border: 1px solid #f2e3de;
  border-radius: 18px;
  padding: 22px 24px 18px;
  margin: 0 0 22px;
}

.blog-summary .blog-takeaways {
  margin: 0;
}

.blog-summary-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0ddd7;
}

.blog-summary-foot .blog-byline {
  margin: 0;
}

.blog-summary-foot .blog-meta {
  margin: 0;
}

@media (max-width: 600px) {
  .blog-summary {
    padding: 18px 18px 16px;
    border-radius: 14px;
  }
}

/* Author row: avatar + name, links to the team on the about page. */
.blog-byline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  text-decoration: none;
  color: inherit;
}

.blog-byline-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #fdf5f3;
  flex-shrink: 0;
}

.blog-byline-name {
  font-size: 15px;
  font-weight: 500;
  color: #4b4b55;
  transition: color .15s;
}

.blog-byline:hover .blog-byline-name {
  color: #7d0845;
}

/* The takeaway list under the headline: the same role the "Auf einen Blick"
   block has on a topic page, and what blog_posts.excerpt_* actually holds. */
.blog-takeaways {
  margin: 0 0 4px;
  padding-left: 1.1em;
  color: #4a4045;
  font-size: 17px;
  line-height: 1.6;
}

.blog-takeaways li {
  margin-bottom: 6px;
}

.blog-cover-figure {
  margin: 0;
}

/* The AI picture credit, in the same role it has under an article cover in the
   app: quiet, right-aligned, directly under the image. */
.blog-cover-credit {
  font-size: 12px;
  color: #8a8085;
  text-align: right;
  margin: 6px 2px 0;
}

.blog-meta {
  font-size: 14px;
  color: #6b6266;
  margin: 0;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: #fdf5f3;
  border: 1px solid #ead8d6;
  color: #7d0845;
  font-size: 13px;
  font-weight: 500;
}

.blog-hero .seo-definition {
  font-size: 19px;
  line-height: 1.6;
}

.seo-body blockquote {
  margin: 20px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid #ffb000;
  color: #2e1a4a;
  font-size: 18px;
}

.seo-body img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  margin: 20px 0;
}

/* A teaser stops mid thought on purpose. The fade says so before the reader
   hits the end of the text and wonders whether something failed to load. */
.blog-body--teaser {
  position: relative;
  max-height: 34em;
  overflow: hidden;
}

.blog-body--teaser::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9em;
  background: linear-gradient(to bottom, rgba(250, 250, 248, 0), #fafaf8 85%);
  pointer-events: none;
}

.blog-cta {
  margin-top: 4px;
}

.blog-cta .bn-floatnav-cta {
  display: inline-block;
}

@media (max-width: 640px) {
  .blog-grid { padding: 4px 16px 56px; gap: 18px; }
  .blog-body--teaser { max-height: 40em; }
}
