/* Owner post cards + Soro list alignment.
   Tokens taken from the Soro widget's injected #soro-blog-styles-light CSS:
   20px padding, 12px radius, 1px #e5e5e5 border, 24px list gap,
   18px/600 title (bumped to 1.25rem per the visible live cards),
   14px #666 excerpt with 2-line clamp, 12px #999 date, 8px image radius.
   Cards also get a light fill so they sit on the page like the live Soro cards.
*/

.post-card-grid,
#soro-blog .soro-blog-list{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
  list-style:none;
  margin:28px 0 0;
  padding:0;
  max-width:none;
}

.post-card{
  margin:0;
  min-width:0;
}

.post-card-link,
#soro-blog .soro-blog-card{
  display:flex;
  flex-direction:column;
  gap:12px;
  height:100%;
  padding:20px;
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:12px;
  color:#1a1a1a;
  text-decoration:none;
  cursor:pointer;
  transition:box-shadow .2s,border-color .2s;
  box-sizing:border-box;
}

.post-card-link:hover,
#soro-blog .soro-blog-card:hover{
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  border-color:#d0d0d0;
}

.post-card-link:focus{
  outline:none;
}

.post-card-link:focus-visible,
#soro-blog .soro-blog-card:focus-visible{
  outline:3px solid #075bff;
  outline-offset:3px;
}

.post-card-link picture{
  display:block;
  width:100%;
  flex-shrink:0;
  border-radius:8px;
  overflow:hidden;
}
.post-card-image,
#soro-blog .soro-blog-card-image{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  object-position:center;
  border-radius:8px;
  background:
    linear-gradient(135deg,#e7f8ff 0%,#efe7ff 48%,#e9fff6 100%);
  flex-shrink:0;
}
/* Future posts without art: use the branded SVG fallback.
   <img class="post-card-image post-card-image--fallback" src="/assets/img/blog-card-fallback.svg" width="1200" height="675" alt="iFocusFlow app icon on a soft brand gradient" loading="lazy">
*/
.post-card-image--fallback{
  object-fit:contain;
  object-position:center;
  background:
    linear-gradient(135deg,#e7f8ff 0%,#efe7ff 48%,#e9fff6 100%);
}

.post-card-body,
#soro-blog .soro-blog-card-content{
  display:flex;
  flex-direction:column;
  flex:1;
  min-width:0;
  gap:0;
}

.post-card-title,
.page-intro .post-card-title,
.blog-list .post-card-title,
.from-the-blog .post-card-title,
#soro-blog .soro-blog-card-title,
#soro-blog h2.soro-blog-card-title,
.page-intro #soro-blog h2.soro-blog-card-title{
  font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:1.25rem;
  font-weight:700;
  line-height:1.3;
  letter-spacing:0;
  margin:0 0 8px;
  color:#1a1a1a;
  max-width:none;
}

.post-card-excerpt,
#soro-blog .soro-blog-card-excerpt{
  font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:14px;
  font-weight:400;
  line-height:1.5;
  color:#666;
  margin:0 0 12px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.post-card-date,
#soro-blog .soro-blog-card-date{
  font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:12px;
  font-weight:400;
  line-height:1.4;
  color:#999;
  margin:auto 0 0;
}

@media (min-width:700px){
  .post-card-grid,
  #soro-blog .soro-blog-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (min-width:1080px){
  .post-card-grid,
  #soro-blog .soro-blog-list{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
