/* Crystal Health journal listing v5 */

body.chb-journal,
body.blog,
body.blog.archive,
body.home.blog {
  background: #f7f2eb !important;
}

body.chb-journal .site-content,
body.chb-journal .content-wrapper,
body.chb-journal .homepage-content,
body.blog .site-content,
body.blog .content-wrapper {
  background: #f7f2eb !important;
}

body.chb-journal .page-header,
body.chb-journal .klb-page-header,
body.chb-journal .woocommerce-products-header,
body.chb-journal h2.search-title,
body.chb-journal .search-title,
body.blog .page-header,
body.blog .klb-page-header {
  display: none !important;
}

body.chb-journal .content-secondary,
body.chb-journal .site-sidebar,
body.chb-journal aside.widget-area,
body.blog .content-secondary,
body.blog .site-sidebar,
body.blog aside.widget-area,
body.blog .col-lg-3.site-sidebar {
  display: none !important;
  width: 0 !important;
  max-width: 0 !important;
  flex: 0 0 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

body.chb-journal .site-content,
body.blog .site-content {
  padding: 0 0 1rem !important;
  overflow-x: clip;
}

body.chb-journal .row.content-wrapper,
body.chb-journal .content-wrapper.row,
body.blog .row.content-wrapper,
body.blog .content-wrapper.row {
  display: block !important;
  max-width: none !important;
  margin: 0 !important;
  width: 100% !important;
  padding: 0 !important;
}

body.chb-journal .content-primary,
body.chb-journal .col-lg-9.content-primary,
body.blog .content-primary,
body.blog .col-lg-9.content-primary,
body.blog .col-md-12.content-primary {
  float: none !important;
  display: block !important;
  width: min(1120px, calc(100% - 2.5rem)) !important;
  max-width: 1120px !important;
  margin: 1.25rem auto 0 !important;
  padding: 0 0 3.2rem !important;
  flex: 0 0 auto !important;
}

body.chb-journal .site-posts,
body.blog .site-posts {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100% !important;
  float: none !important;
}

/* Beat chb-site-v2 800px cap so featured can span the grid */
html body.chb-journal article.post,
html body.blog article.post {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (min-width: 760px) {
  body.chb-journal .site-posts,
  body.blog .site-posts {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.4rem;
  }
  body.chb-journal .site-posts > article.post:first-of-type,
  body.blog .site-posts > article.post:first-of-type {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: 360px;
  }
  body.chb-journal .site-posts > article.post:first-of-type .post-thumbnail,
  body.chb-journal .site-posts > article.post:first-of-type figure.post-thumbnail,
  body.blog .site-posts > article.post:first-of-type .post-thumbnail,
  body.blog .site-posts > article.post:first-of-type figure.post-thumbnail {
    height: 100%;
    margin: 0 !important;
    aspect-ratio: auto;
  }
  body.chb-journal .site-posts > article.post:first-of-type .post-thumbnail img,
  body.blog .site-posts > article.post:first-of-type .post-thumbnail img {
    height: 100% !important;
    min-height: 360px;
    object-fit: cover !important;
  }
  body.chb-journal .site-posts > article.post:first-of-type .post-wrapper,
  body.blog .site-posts > article.post:first-of-type .post-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.6rem 1.7rem 1.7rem !important;
  }
  body.chb-journal .site-posts > article.post:first-of-type .entry-title,
  body.blog .site-posts > article.post:first-of-type .entry-title {
    font-size: clamp(1.7rem, 2.6vw, 2.15rem) !important;
  }
}

.chb-blog-hero {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: #14100e;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  left: auto !important;
  box-sizing: border-box !important;
}
body.chb-journal .site-posts > .chb-blog-hero,
body.blog .site-posts > .chb-blog-hero {
  grid-column: 1 / -1 !important;
  border-radius: 18px !important;
  min-height: 280px;
}
body.chb-journal .site-content > .chb-blog-hero,
body.blog .site-content > .chb-blog-hero {
  border-radius: 0 !important;
  min-height: 360px;
}
.chb-blog-hero img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 38% !important;
}
.chb-blog-hero .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 16, 14, 0.78) 8%, rgba(47, 61, 42, 0.22) 78%);
}
.chb-blog-hero .inner {
  position: relative;
  z-index: 2;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.4rem 1.6rem 1.8rem;
}
body.chb-journal .site-content > .chb-blog-hero .inner {
  min-height: 360px;
}
.chb-blog-hero .eye {
  margin: 0 0 0.4rem;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e0c878;
}
.chb-blog-hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  color: #fffef8;
  line-height: 1.08;
  text-transform: none !important;
}
.chb-blog-hero h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  background: #c9a84c;
  margin-top: 0.85rem;
}
.chb-blog-hero .lede {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #f3eadc;
}

.chb-blog-archive-head {
  grid-column: 1 / -1;
  padding: 0.4rem 0 0.2rem;
}
.chb-blog-archive-head .eye {
  margin: 0 0 0.35rem;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a84c;
}
.chb-blog-archive-head h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  color: #2f3d2a;
  letter-spacing: -0.03em;
}

body.chb-journal article.klb-article,
body.chb-journal article.post,
body.blog article.klb-article,
body.blog article.post {
  display: flex !important;
  flex-direction: column;
  background: #fffef8 !important;
  border: 1px solid #eee6dc !important;
  border-radius: 16px !important;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: 0 10px 24px rgba(18, 10, 8, 0.05);
  min-height: 0;
}

body.chb-journal article.post .post-thumbnail,
body.chb-journal article.post figure.post-thumbnail,
body.blog article.post .post-thumbnail,
body.blog article.post figure.post-thumbnail {
  margin: 0 !important;
  background: #efe6d8;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
body.chb-journal article.post .post-thumbnail a,
body.blog article.post .post-thumbnail a {
  display: block;
  height: 100%;
}
body.chb-journal article.post .post-thumbnail img,
body.blog article.post .post-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  min-height: 200px;
  object-fit: cover !important;
  display: block !important;
  transform: scale(1);
  transition: transform 0.4s ease;
}
body.chb-journal article.post:hover .post-thumbnail img,
body.blog article.post:hover .post-thumbnail img {
  transform: scale(1.04);
}

body.chb-journal article.post .post-wrapper,
body.blog article.post .post-wrapper {
  padding: 1.1rem 1.2rem 1.25rem !important;
  display: flex;
  flex-direction: column;
  flex: 1;
}

body.chb-journal .entry-meta,
body.blog .entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin: 0 0 0.5rem !important;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a7f76;
}
body.chb-journal .entry-meta i,
body.chb-journal .klbth-icon-clock,
body.chb-journal .klbth-icon-bookmark-empty,
body.blog .entry-meta i,
body.blog .klbth-icon-clock,
body.blog .klbth-icon-bookmark-empty {
  display: none !important;
}
body.chb-journal .entry-meta a,
body.blog .entry-meta a {
  color: #c9a84c !important;
  text-decoration: none !important;
}

/* One category chip — hide the rest and the commas between them */
body.chb-journal .entry-category,
body.chb-journal .post-categories,
body.blog .entry-category,
body.blog .post-categories {
  font-size: 0 !important;
}
body.chb-journal .entry-category a,
body.chb-journal .post-categories a,
body.blog .entry-category a,
body.blog .post-categories a {
  font-size: 0.7rem !important;
}
body.chb-journal .entry-category a:not(:first-of-type),
body.chb-journal .post-categories a:not(:first-of-type),
body.chb-journal .entry-meta a[href*="/tag/"],
body.blog .entry-category a:not(:first-of-type),
body.blog .post-categories a:not(:first-of-type),
body.blog .entry-meta a[href*="/tag/"] {
  display: none !important;
}

html body.chb-journal article.post .entry-title,
html body.chb-journal article.post h2.entry-title,
html body.blog article.post .entry-title,
html body.blog article.post h2.entry-title {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 600 !important;
  font-size: clamp(1.35rem, 2vw, 1.6rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem !important;
  text-transform: none !important;
  color: #2f3d2a !important;
}
html body.chb-journal article.post .entry-title a,
html body.blog article.post .entry-title a {
  color: #2f3d2a !important;
  text-decoration: none !important;
}
html body.chb-journal article.post .entry-title a:hover,
html body.blog article.post .entry-title a:hover {
  color: #c9a84c !important;
}

body.chb-journal article.post .entry-content,
body.chb-journal article.post .klb-post,
body.chb-journal article.post .klb-post > p,
body.blog article.post .entry-content,
body.blog article.post .klb-post,
body.blog article.post .klb-post > p {
  font-family: Montserrat, system-ui, sans-serif !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
  color: #3d4038 !important;
  margin: 0 !important;
}
body.chb-journal article.post .klb-post > p,
body.blog article.post .klb-post > p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.chb-journal article.post .klb-post a.more-link,
body.chb-journal article.post .klb-post a.button,
body.blog article.post .klb-post a.more-link,
body.blog article.post .klb-post a.button {
  display: none !important;
}

body.chb-journal .chb-blog-more,
body.blog .chb-blog-more {
  margin-top: auto;
  padding-top: 1rem;
}
body.chb-journal .chb-blog-more a,
body.blog .chb-blog-more a,
body.blog .klb-readmore .button,
body.blog .entry-button .button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px !important;
  background: #c9a84c !important;
  color: #2a2208 !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-family: Montserrat, system-ui, sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.04em;
  text-transform: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
body.chb-journal .chb-blog-more a:hover,
body.blog .chb-blog-more a:hover,
body.blog .klb-readmore .button:hover {
  background: #d4b45c !important;
  color: #2a2208 !important;
}

body.chb-journal .entry-comments,
body.chb-journal .entry-author,
body.chb-journal .post-footer,
body.chb-journal .klb-post-bottom,
body.blog .entry-comments,
body.blog .entry-author,
body.blog .post-footer,
body.blog .klb-post-bottom {
  display: none !important;
}

body.chb-journal .pagination,
body.blog .pagination,
body.blog .klb-pagination,
body.blog nav.woocommerce-pagination {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.2rem 0 0;
}
body.chb-journal .pagination a,
body.chb-journal .pagination span,
body.blog .pagination a,
body.blog .pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2f3d2a !important;
  background: #fff;
  border: 1px solid #eee6dc;
  text-decoration: none !important;
}
body.chb-journal .pagination .current,
body.blog .pagination .current {
  background: #2f3d2a !important;
  color: #fffef8 !important;
  border-color: #2f3d2a;
}

.elementor-location-header img.custom-logo,
.elementor-location-header .elementor-widget-theme-site-logo img,
.site-header .site-brand img {
  background: transparent !important;
  mix-blend-mode: multiply;
}

@media (max-width: 759px) {
  body.chb-journal .content-primary,
  body.blog .content-primary {
    width: calc(100% - 1.6rem) !important;
    margin-top: 1rem !important;
  }
  .chb-blog-hero,
  body.chb-journal .site-content > .chb-blog-hero {
    min-height: 260px;
  }
  .chb-blog-hero .inner,
  body.chb-journal .site-content > .chb-blog-hero .inner {
    min-height: 260px;
    padding: 1.6rem 1.2rem 1.3rem;
  }
}
