/* Blog-specific layout + post card composition. */

.blog-posts.cards {
  grid-template-columns: 1fr;
}

.post-card {
  padding: 0;
  overflow: hidden;
}

.post-card__inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.post-card__thumb {
  flex: 0 0 280px;
  max-width: 280px;
}

.post-card__thumb img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.post-card__body {
  flex: 1;
  min-width: 0;
  padding: 18px 18px 18px 0;
  display: flex;
  flex-direction: column;
}

.post-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.post-card__excerpt {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.post-card__readmore {
  align-self: flex-start;
}

.blog-search {
  margin-top: 8px;
}

.blog-search button {
  margin-top: 10px;
}

.post-content p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

/* Remove the thin divider under fixed header for blog layout. */
.header{
  border-bottom:none !important;
}

/* WordPress custom logo: same bounds as default .brand__img wordmark */
.brand{
  max-width:min(280px,46vw);
}
.brand img,
.brand .brand__img,
.brand .brand__img--custom{
  display:block;
  height:clamp(30px,5.8vw,42px);
  width:auto;
  max-width:100%;
  max-height:42px;
  object-fit:contain;
}

/* 1) Remove the top border from the "alt" section background. */
.section--alt{
  border-top:none !important;
}

/* 3) Move sidebar to the right (desktop) while reusing legal-layout styling. */
.blog-layout{
  grid-template-columns:minmax(0,1fr) minmax(200px,240px) !important;
}
.blog-layout .legal-layout__content{
  grid-column:1;
}
.blog-layout .blog-sidebar{
  grid-column:2;
}

@media (max-width: 980px) {
  .blog-layout{
    grid-template-columns:1fr !important;
  }
  .blog-layout .legal-layout__content,
  .blog-layout .blog-sidebar{
    grid-column:auto;
  }

  .post-card__inner {
    flex-direction: column;
  }

  .post-card__thumb {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }

  .post-card__thumb img {
    border-radius: 12px;
  }

  .post-card__body {
    padding: 0 0 0 0;
    width: 100%;
  }
}

