:root{
  --chai-blog-card:#fffaf1;
  --chai-blog-border:#ead8bd;
  --chai-blog-text:#2b1b10;
  --chai-blog-muted:#776454;
  --chai-blog-accent:#526f35;
  --chai-blog-accent-hover:#3f5829;
}

body.blog main.wp-block-group{
  width:min(1340px,calc(100% - 20px));
  max-width:1340px;
  margin-inline:auto!important;
  padding-top:clamp(22px,4vw,52px);
  padding-bottom:clamp(48px,6vw,82px);
}

body.blog main.wp-block-group>h1,
body.blog main.wp-block-group>h2{
  margin:0 auto clamp(22px,3vw,36px)!important;
  text-align:center!important;
  color:var(--chai-blog-text);
  font-size:clamp(34px,4vw,54px)!important;
  line-height:1.05!important;
  letter-spacing:-.045em;
}

body.blog .wp-block-query.alignfull{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
}

body.blog .wp-block-post-template{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}

body.blog .wp-block-post{
  min-width:0;
  height:100%;
  margin:0!important;
  border:1px solid var(--chai-blog-border);
  border-radius:24px;
  background:linear-gradient(180deg,#fffdf8 0%,var(--chai-blog-card) 100%);
  box-shadow:0 12px 34px rgba(84,49,21,.07);
  overflow:hidden;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

body.blog .wp-block-post>.wp-block-group{
  display:flex!important;
  flex-direction:column;
  min-height:100%;
  padding:18px!important;
  gap:0!important;
  box-sizing:border-box;
}

body.blog .wp-block-post-featured-image{
  order:0;
  margin:0 0 15px!important;
  border-radius:17px;
  overflow:hidden;
  background:#f3e5cf;
}
body.blog .wp-block-post-featured-image img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:17px;
  transition:transform .25s ease;
}

body.blog .wp-block-post-date{
  order:1;
  width:fit-content;
  margin:0 0 10px!important;
  padding:5px 9px;
  border:1px solid #e7d7be;
  border-radius:999px;
  color:#7a4f2b;
  background:#fff7e8;
  font-size:11px!important;
  line-height:1.1;
  font-weight:800;
}

body.blog .wp-block-post-title{
  order:2;
  margin:0 0 12px!important;
  font-size:clamp(20px,1.8vw,25px)!important;
  line-height:1.15!important;
  letter-spacing:-.025em;
  font-weight:850;
}
body.blog .wp-block-post-title a{color:var(--chai-blog-text)!important;text-decoration:none!important}

body.blog .chai-blog-preview{
  order:3;
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  margin:0!important;
  padding:0!important;
  font-size:15px;
  line-height:1.58;
  color:var(--chai-blog-muted);
}
body.blog .chai-blog-preview__text{margin:0 0 16px!important}
body.blog .chai-blog-read-more{
  display:flex!important;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:44px;
  margin:auto 0 0!important;
  padding:10px 14px;
  border-radius:14px;
  background:var(--chai-blog-accent)!important;
  color:#fff!important;
  font-weight:850;
  text-align:center;
  text-decoration:none!important;
  box-shadow:0 8px 18px rgba(82,111,53,.16);
  transition:transform .17s ease,box-shadow .17s ease,background-color .17s ease;
}

body.blog .wp-block-post .wp-block-separator{display:none!important}

@media(hover:hover){
  body.blog .wp-block-post:hover{
    transform:translateY(-4px);
    border-color:#d9c09a;
    box-shadow:0 20px 46px rgba(84,49,21,.11);
  }
  body.blog .wp-block-post:hover .wp-block-post-featured-image img{transform:scale(1.025)}
  body.blog .chai-blog-read-more:hover{transform:translateY(-2px);background:var(--chai-blog-accent-hover)!important;box-shadow:0 12px 24px rgba(82,111,53,.22)}
}

@media(max-width:1050px){body.blog .wp-block-post-template{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:680px){
  body.blog main.wp-block-group{width:calc(100% - 20px);padding-top:18px}
  body.blog .wp-block-post-template{grid-template-columns:1fr!important;gap:12px!important}
  body.blog .wp-block-post{border-radius:20px}
  body.blog .wp-block-post>.wp-block-group{padding:14px!important}
  body.blog main.wp-block-group>h1,body.blog main.wp-block-group>h2{font-size:34px!important;margin-bottom:18px!important}
}

/* v2.3.0 — real Query Loop card geometry: no clipped Read More button */
body.blog{
  background:
    radial-gradient(circle at 8% 2%,rgba(220,188,136,.14),transparent 30%),
    #fff8ea;
}

body.blog .wp-block-post-template{
  align-items:stretch!important;
}

body.blog .wp-block-post{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  height:100%!important;
  padding:18px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}

body.blog .wp-block-post>*{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}

body.blog .wp-block-post-featured-image{
  width:100%;
}

body.blog .chai-blog-preview{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}

body.blog .chai-blog-read-more{
  width:100%!important;
  max-width:100%!important;
  min-height:48px!important;
  margin:auto 0 0!important;
  padding:11px 18px!important;
  border:1px solid rgba(63,88,41,.18);
  border-radius:14px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}

body.blog .wp-block-post-date{
  flex:0 0 auto;
}

body.blog .wp-block-post-title{
  text-wrap:balance;
  overflow-wrap:anywhere;
}

@media(max-width:680px){
  body.blog .wp-block-post{
    padding:13px!important;
  }

  body.blog .chai-blog-read-more{
    min-height:46px!important;
    border-radius:13px!important;
  }
}


/* v2.4.0 — styled blog pagination */
body.blog .wp-block-query-pagination{
  display:flex!important;align-items:center;justify-content:center!important;flex-wrap:wrap;
  gap:10px 12px!important;width:min(100%,760px);margin:34px auto 16px!important;padding:14px 16px!important;
  border:1px solid #e7d5b9;border-radius:22px;background:rgba(255,250,241,.88);
  box-shadow:0 10px 28px rgba(84,49,21,.06);box-sizing:border-box
}
body.blog .wp-block-query-pagination-numbers{
  display:flex!important;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:0!important
}
body.blog .wp-block-query-pagination .page-numbers,
body.blog .wp-block-query-pagination-previous,
body.blog .wp-block-query-pagination-next{
  display:inline-flex!important;align-items:center;justify-content:center;min-width:42px;min-height:42px;
  margin:0!important;padding:8px 13px!important;border:1px solid #dfc9a6;border-radius:999px;
  background:#fffaf1;color:#2b1b10!important;font-size:15px;line-height:1;font-weight:750;
  text-decoration:none!important;box-sizing:border-box;
  transition:transform .18s ease,background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease
}
body.blog .wp-block-query-pagination .page-numbers.current{
  border-color:#7a4f2b!important;background:#7a4f2b!important;color:#fff!important;
  box-shadow:0 8px 18px rgba(122,79,43,.18)
}
body.blog .wp-block-query-pagination .page-numbers.dots{
  min-width:34px;padding-inline:7px!important;border-color:transparent;background:transparent;color:#8a7461!important
}
body.blog .wp-block-query-pagination a.page-numbers:hover,
body.blog .wp-block-query-pagination-previous:hover,
body.blog .wp-block-query-pagination-next:hover{
  transform:translateY(-1px);border-color:#526f35;background:#526f35;color:#fff!important;
  box-shadow:0 8px 18px rgba(82,111,53,.16)
}
body.blog .wp-block-query-pagination-previous,
body.blog .wp-block-query-pagination-next{min-width:auto;padding-inline:17px!important}
@media(max-width:640px){
  body.blog .wp-block-query-pagination{gap:8px!important;padding:11px!important;border-radius:18px}
  body.blog .wp-block-query-pagination .page-numbers,
  body.blog .wp-block-query-pagination-previous,
  body.blog .wp-block-query-pagination-next{min-width:38px;min-height:38px;padding:7px 11px!important;font-size:14px}
  body.blog .wp-block-query-pagination-previous,
  body.blog .wp-block-query-pagination-next{flex:1 1 auto}
}
